Skip to content

Commit 9930215

Browse files
author
jef
committed
Merged rest of composer branch (9087-9115)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9125 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 1f19b8d commit 9930215

File tree

111 files changed

+479
-471
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+479
-471
lines changed

python/core/qgscontinuouscolorrenderer.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class QgsContinuousColorRenderer : QgsRenderer
2929
/** whether to draw a polygon outline*/
3030
bool drawPolygonOutline() const;
3131
/**Reads the renderer configuration from an XML file
32-
@param rnode the DOM node to read
32+
@param rnode the Dom node to read
3333
@param vl the vector layer which will be associated with the renderer*/
3434
virtual void readXML(const QDomNode& rnode, QgsVectorLayer& vl);
3535
/**Writes the contents of the renderer to a configuration file

python/core/qgscoordinatereferencesystem.sip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,12 @@ class QgsCoordinateReferenceSystem
175175
*/
176176
QString toWkt() const;
177177

178-
/*! Restores state from the given DOM node.
178+
/*! Restores state from the given Dom node.
179179
* @param theNode The node from which state will be restored
180180
* @return bool True on success, False on failure
181181
*/
182182
bool readXML( QDomNode & theNode );
183-
/*! Stores state to the given DOM node in the given document.
183+
/*! Stores state to the given Dom node in the given document.
184184
* Below is an example of the generated tag.
185185
* <spatialrefsys>
186186
* <proj4>+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs </proj4>

python/core/qgscoordinatetransform.sip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,13 @@ class QgsCoordinateTransform : QObject
169169
//!initialise is used to actually create the Transformer instance
170170
void initialise();
171171

172-
/*! Restores state from the given DOM node.
172+
/*! Restores state from the given Dom node.
173173
* @param theNode The node from which state will be restored
174174
* @return bool True on success, False on failure
175175
*/
176176
bool readXML( QDomNode & theNode );
177177

178-
/*! Stores state to the given DOM node in the given document
178+
/*! Stores state to the given Dom node in the given document
179179
* @param theNode The node in which state will be restored
180180
* @param theDom The document in which state will be stored
181181
* @return bool True on success, False on failure

python/core/qgsgraduatedsymbolrenderer.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class QgsGraduatedSymbolRenderer : QgsRenderer
2828
\param field the number of the field to classify*/
2929
void setClassificationField(int field);
3030
/**Reads the renderer configuration from an XML file
31-
@param rnode the DOM node to read
31+
@param rnode the Dom node to read
3232
@param vl the vector layer which will be associated with the renderer*/
3333
virtual void readXML(const QDomNode& rnode, QgsVectorLayer& vl);
3434
/**Writes the contents of the renderer to a configuration file

python/core/qgslabel.sip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ public:
4545
* \param sizeScale global scale factor for size in pixels, labels in map units are not scaled
4646
*/
4747
void renderLabel ( QPainter* painter, QgsRect& viewExtent,
48-
QgsCoordinateTransform* coordTransform,
48+
QgsCoordinateTransform* coordinateTransform,
4949
QgsMapToPixel *transform,
5050
QgsFeature &feature, bool selected, QgsLabelAttributes *classAttributes=0, double sizeScale = 1);
5151

5252
/** Reads the renderer configuration from an XML file
53-
@param rnode the DOM node to read
53+
@param rnode the Dom node to read
5454
*/
5555
void readXML(const QDomNode& node);
5656

python/core/qgsmaplayer.sip

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ public:
5757

5858
/** Render the layer, to be overridden in child classes
5959
*/
60-
virtual bool draw(QgsRenderContext& renderContext);
60+
virtual bool draw(QgsRenderContext& rendererContext);
6161

6262
/** Draw labels
6363
* @TODO to be removed: used only in vector layers
6464
*/
65-
virtual void drawLabels(QgsRenderContext& renderContext);
65+
virtual void drawLabels(QgsRenderContext& rendererContext);
6666

6767
/** Return the extent of the layer as a QRect */
6868
const QgsRect extent();
@@ -107,15 +107,15 @@ public:
107107
/** True if the layer can be edited */
108108
virtual bool isEditable() const = 0;
109109

110-
/** sets state from DOM document
111-
@param layer_node is DOM node corresponding to ``maplayer'' tag
110+
/** sets state from Dom document
111+
@param layer_node is Dom node corresponding to ``maplayer'' tag
112112
@note
113113

114-
The DOM node corresponds to a DOM document project file XML element read
114+
The Dom node corresponds to a Dom document project file XML element read
115115
by QgsProject.
116116

117117
This, in turn, calls readXml(), which is over-rideable by sub-classes so
118-
that they can read their own specific state from the given DOM node.
118+
that they can read their own specific state from the given Dom node.
119119

120120
Invoked by QgsProject::read().
121121

@@ -124,15 +124,15 @@ public:
124124
bool readXML(QDomNode & layer_node);
125125

126126

127-
/** stores state in DOM node
128-
@param layer_node is DOM node corresponding to ``projectlayers'' tag
127+
/** stores state in Dom node
128+
@param layer_node is Dom node corresponding to ``projectlayers'' tag
129129
@note
130130

131-
The DOM node corresponds to a DOM document project file XML element to be
131+
The Dom node corresponds to a Dom document project file XML element to be
132132
written by QgsProject.
133133

134134
This, in turn, calls writeXml(), which is over-rideable by sub-classes so
135-
that they can write their own specific state to the given DOM node.
135+
that they can write their own specific state to the given Dom node.
136136

137137
Invoked by QgsProject::write().
138138

python/core/qgsmaprenderer.sip

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class QgsMapRenderer : QObject
2828
//! returns current extent
2929
QgsRect extent();
3030

31-
const QgsMapToPixel* coordXForm();
31+
const QgsMapToPixel* coordinateTransform();
3232

3333
double scale() const;
3434
double mupp() const;
@@ -57,13 +57,13 @@ class QgsMapRenderer : QObject
5757
QgsRect layerExtentToOutputExtent(QgsMapLayer* theLayer, QgsRect extent);
5858

5959
//! transform coordinates from layer's CRS to output CRS
60-
QgsPoint layerCoordsToOutputCoords(QgsMapLayer* theLayer, QgsPoint point);
60+
QgsPoint layerToMapCoordinates(QgsMapLayer* theLayer, QgsPoint point);
6161

6262
//! transform coordinates from output CRS to layer's CRS
63-
QgsPoint outputCoordsToLayerCoords(QgsMapLayer* theLayer, QgsPoint point);
63+
QgsPoint mapToLayerCoordinates(QgsMapLayer* theLayer, QgsPoint point);
6464

6565
//! transform rect's coordinates from output CRS to layer's CRS
66-
QgsRect outputCoordsToLayerCoords(QgsMapLayer* theLayer, QgsRect rect);
66+
QgsRect mapToLayerCoordinates(QgsMapLayer* theLayer, QgsRect rect);
6767

6868
//! sets whether to use projections for this layer set
6969
void setProjectionsEnabled(bool enabled);

python/core/qgsmaptopixel.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class QgsMapToPixel
7373
//! Set minimum y value
7474
void setYmin(double ymin);
7575
//! set minimum x value
76-
void setXmin(double xmin);
76+
void setXMinimum(double xmin);
7777
/*! Set parameters for use in tranfsorming coordinates
7878
* @param mupp Map units per pixel
7979
* @param xmin Minimum x value

python/core/qgspoint.sip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ public:
4848
double y() const;
4949

5050
//! String representation of the point (x,y)
51-
QString stringRep() const;
51+
QString toString() const;
5252

5353
//! As above but with precision for string representaiton of a point
54-
QString stringRep(int thePrecision) const;
54+
QString toString(int thePrecision) const;
5555

5656
/*! Return the well known text representation for the point.
5757
* The wkt is created without an SRID.

python/core/qgsproject.sip

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public:
4949
write()
5050
*/
5151
//@{
52-
bool dirty() const;
52+
bool isDirty() const;
5353

5454
void dirty( bool b );
5555
//@}
@@ -59,7 +59,7 @@ public:
5959
Every project has an associated file that contains its XML
6060
*/
6161
//@{
62-
void filename( const QString & name );
62+
void setFilename( const QString & name );
6363

6464
/** returns file name */
6565
QString filename() const;
@@ -100,14 +100,14 @@ public:
100100
//@}
101101

102102

103-
/** read the layer described in the associated DOM node
103+
/** read the layer described in the associated Dom node
104104

105-
@param layerNode represents a QgsProject DOM node that maps to a specific layer.
105+
@param layerNode represents a QgsProject Dom node that maps to a specific layer.
106106

107107
QgsProject raises an exception when one of the QgsProject::read()
108108
implementations fails. Since the read()s are invoked from qgisapp,
109109
then qgisapp handles the exception. It prompts the user for the new
110-
location of the data, if any. If there is a new location, the DOM
110+
location of the data, if any. If there is a new location, the Dom
111111
node associated with the layer has its <datasource> tag corrected.
112112
Then that node is passed to this member function to be re-opened.
113113

0 commit comments

Comments
 (0)