Skip to content

Commit

Permalink
Merged rest of composer branch (9087-9115)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9125 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Aug 23, 2008
1 parent 1f19b8d commit 9930215
Show file tree
Hide file tree
Showing 111 changed files with 479 additions and 471 deletions.
2 changes: 1 addition & 1 deletion python/core/qgscontinuouscolorrenderer.sip
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class QgsContinuousColorRenderer : QgsRenderer
/** whether to draw a polygon outline*/
bool drawPolygonOutline() const;
/**Reads the renderer configuration from an XML file
@param rnode the DOM node to read
@param rnode the Dom node to read
@param vl the vector layer which will be associated with the renderer*/
virtual void readXML(const QDomNode& rnode, QgsVectorLayer& vl);
/**Writes the contents of the renderer to a configuration file
Expand Down
4 changes: 2 additions & 2 deletions python/core/qgscoordinatereferencesystem.sip
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@ class QgsCoordinateReferenceSystem
*/
QString toWkt() const;

/*! Restores state from the given DOM node.
/*! Restores state from the given Dom node.
* @param theNode The node from which state will be restored
* @return bool True on success, False on failure
*/
bool readXML( QDomNode & theNode );
/*! Stores state to the given DOM node in the given document.
/*! Stores state to the given Dom node in the given document.
* Below is an example of the generated tag.
* <spatialrefsys>
* <proj4>+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs </proj4>
Expand Down
4 changes: 2 additions & 2 deletions python/core/qgscoordinatetransform.sip
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,13 @@ class QgsCoordinateTransform : QObject
//!initialise is used to actually create the Transformer instance
void initialise();

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

/*! Stores state to the given DOM node in the given document
/*! Stores state to the given Dom node in the given document
* @param theNode The node in which state will be restored
* @param theDom The document in which state will be stored
* @return bool True on success, False on failure
Expand Down
2 changes: 1 addition & 1 deletion python/core/qgsgraduatedsymbolrenderer.sip
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class QgsGraduatedSymbolRenderer : QgsRenderer
\param field the number of the field to classify*/
void setClassificationField(int field);
/**Reads the renderer configuration from an XML file
@param rnode the DOM node to read
@param rnode the Dom node to read
@param vl the vector layer which will be associated with the renderer*/
virtual void readXML(const QDomNode& rnode, QgsVectorLayer& vl);
/**Writes the contents of the renderer to a configuration file
Expand Down
4 changes: 2 additions & 2 deletions python/core/qgslabel.sip
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ public:
* \param sizeScale global scale factor for size in pixels, labels in map units are not scaled
*/
void renderLabel ( QPainter* painter, QgsRect& viewExtent,
QgsCoordinateTransform* coordTransform,
QgsCoordinateTransform* coordinateTransform,
QgsMapToPixel *transform,
QgsFeature &feature, bool selected, QgsLabelAttributes *classAttributes=0, double sizeScale = 1);

/** Reads the renderer configuration from an XML file
@param rnode the DOM node to read
@param rnode the Dom node to read
*/
void readXML(const QDomNode& node);

Expand Down
20 changes: 10 additions & 10 deletions python/core/qgsmaplayer.sip
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ public:

/** Render the layer, to be overridden in child classes
*/
virtual bool draw(QgsRenderContext& renderContext);
virtual bool draw(QgsRenderContext& rendererContext);

/** Draw labels
* @TODO to be removed: used only in vector layers
*/
virtual void drawLabels(QgsRenderContext& renderContext);
virtual void drawLabels(QgsRenderContext& rendererContext);

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

/** sets state from DOM document
@param layer_node is DOM node corresponding to ``maplayer'' tag
/** sets state from Dom document
@param layer_node is Dom node corresponding to ``maplayer'' tag
@note

The DOM node corresponds to a DOM document project file XML element read
The Dom node corresponds to a Dom document project file XML element read
by QgsProject.

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

Invoked by QgsProject::read().

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


/** stores state in DOM node
@param layer_node is DOM node corresponding to ``projectlayers'' tag
/** stores state in Dom node
@param layer_node is Dom node corresponding to ``projectlayers'' tag
@note

The DOM node corresponds to a DOM document project file XML element to be
The Dom node corresponds to a Dom document project file XML element to be
written by QgsProject.

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

Invoked by QgsProject::write().

Expand Down
8 changes: 4 additions & 4 deletions python/core/qgsmaprenderer.sip
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class QgsMapRenderer : QObject
//! returns current extent
QgsRect extent();

const QgsMapToPixel* coordXForm();
const QgsMapToPixel* coordinateTransform();

double scale() const;
double mupp() const;
Expand Down Expand Up @@ -57,13 +57,13 @@ class QgsMapRenderer : QObject
QgsRect layerExtentToOutputExtent(QgsMapLayer* theLayer, QgsRect extent);

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

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

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

//! sets whether to use projections for this layer set
void setProjectionsEnabled(bool enabled);
Expand Down
2 changes: 1 addition & 1 deletion python/core/qgsmaptopixel.sip
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class QgsMapToPixel
//! Set minimum y value
void setYmin(double ymin);
//! set minimum x value
void setXmin(double xmin);
void setXMinimum(double xmin);
/*! Set parameters for use in tranfsorming coordinates
* @param mupp Map units per pixel
* @param xmin Minimum x value
Expand Down
4 changes: 2 additions & 2 deletions python/core/qgspoint.sip
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ public:
double y() const;

//! String representation of the point (x,y)
QString stringRep() const;
QString toString() const;

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

/*! Return the well known text representation for the point.
* The wkt is created without an SRID.
Expand Down
10 changes: 5 additions & 5 deletions python/core/qgsproject.sip
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public:
write()
*/
//@{
bool dirty() const;
bool isDirty() const;

void dirty( bool b );
//@}
Expand All @@ -59,7 +59,7 @@ public:
Every project has an associated file that contains its XML
*/
//@{
void filename( const QString & name );
void setFilename( const QString & name );

/** returns file name */
QString filename() const;
Expand Down Expand Up @@ -100,14 +100,14 @@ public:
//@}


/** read the layer described in the associated DOM node
/** read the layer described in the associated Dom node

@param layerNode represents a QgsProject DOM node that maps to a specific layer.
@param layerNode represents a QgsProject Dom node that maps to a specific layer.

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

Expand Down
10 changes: 5 additions & 5 deletions python/core/qgsrasterlayer.sip
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public:

/** \brief This is called when the view on the rasterlayer needs to be refreshed (redrawn).
*/
bool draw(QgsRenderContext& renderContext);
bool draw(QgsRenderContext& rendererContext);

/** \brief This is an overloaded version of the above function that is called by both draw above and drawThumbnail */
void draw(QPainter * theQPainter, QgsRasterViewPort * myRasterViewPort,
Expand Down Expand Up @@ -430,14 +430,14 @@ public:
*
* \retval 0 if not using the data provider model (i.e. directly using GDAL)
*/
QgsRasterDataProvider* getDataProvider();
QgsRasterDataProvider* dataProvider();

/** Returns the data provider in a const-correct manner
*
* \retval 0 if not using the data provider model (i.e. directly using GDAL)
*/
// PyQGIS: commented out, has the same signature as the function above
// const QgsRasterDataProvider* getDataProvider() const;
// const QgsRasterDataProvider* dataProvider() const;

/** \brief Mutator for mUserDefinedRGBMinMaxFlag */
void setUserDefinedRGBMinMax(bool theBool);
Expand Down Expand Up @@ -501,7 +501,7 @@ public slots:
QgsColorTable *colorTable ( int theBandNoInt );
protected:

/** reads vector layer specific state from project file DOM node.
/** reads vector layer specific state from project file Dom node.

@note

Expand All @@ -512,7 +512,7 @@ public slots:



/** write vector layer specific state to project file DOM node.
/** write vector layer specific state to project file Dom node.

@note

Expand Down
12 changes: 6 additions & 6 deletions python/core/qgsrect.sip
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ class QgsRect
// normalised after construction.
void set(double xmin, double ymin, double xmax, double ymax);
//! Set the minimum x value
void setXmin(double x);
void setXMinimum(double x);
//! Set the maximum x value
void setXmax(double x);
void setXMaximum(double x);
//! Set the maximum y value
void setYmin(double y);
//! Set the maximum y value
Expand Down Expand Up @@ -68,11 +68,11 @@ class QgsRect
//! test if rectangle is empty
bool isEmpty() const;
//! returns string representation in WKT form
QString asWKTCoords() const;
QString asWktCoordinates() const;
//! returns string representation of form xmin,ymin xmax,ymax
QString stringRep(bool automaticPrecision = false) const;
//! overloaded stringRep that allows precision of numbers to be set
QString stringRep(int thePrecision) const;
QString toString(bool automaticPrecision = false) const;
//! overloaded toString that allows precision of numbers to be set
QString toString(int thePrecision) const;
//! returns rectangle s a polygon
QString asPolygon() const;
/*! Comparison operator
Expand Down
2 changes: 1 addition & 1 deletion python/core/qgsrendercontext.sip
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class QgsRenderContext

QPainter* painter();

const QgsCoordinateTransform* coordTransform() const;
const QgsCoordinateTransform* coordinateTransform() const;

const QgsRect& extent() const;

Expand Down
2 changes: 1 addition & 1 deletion python/core/qgsrenderer.sip
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class QgsRenderer
@param scalefactor pointer to the scale factor for the marker image*/
virtual void renderFeature(QPainter* p, QgsFeature& f,QImage* pic, bool selected, double widthScale = 1.0, double rasterScaleFactor = 1.0)=0;
/**Reads the renderer configuration from an XML file
@param rnode the DOM node to read
@param rnode the Dom node to read
@param vl the vector layer which will be associated with the renderer*/
virtual void readXML(const QDomNode& rnode, QgsVectorLayer& vl)=0;
/**Writes the contents of the renderer to a configuration file
Expand Down
2 changes: 1 addition & 1 deletion python/core/qgssinglesymbolrenderer.sip
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class QgsSingleSymbolRenderer : QgsRenderer
/**Renders an OGRFeature*/
void renderFeature(QPainter* p, QgsFeature& f, QImage* img, bool selected, double widthScale = 1.0, double rasterScaleFactor = 1.0);
/**Reads the renderer configuration from an XML file
@param rnode the DOM node to read
@param rnode the Dom node to read
@param vl the vector layer which will be associated with the renderer*/
virtual void readXML(const QDomNode& rnode, QgsVectorLayer& vl);
/**Writes the contents of the renderer to a configuration file*/
Expand Down
2 changes: 1 addition & 1 deletion python/core/qgsuniquevaluerenderer.sip
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class QgsUniqueValueRenderer : QgsRenderer
bool willRenderFeature(QgsFeature *f);
void renderFeature(QPainter* p, QgsFeature& f, QImage* img, bool selected, double widthScale = 1.0, double rasterScaleFactor = 1.0);
/**Reads the renderer configuration from an XML file
@param rnode the DOM node to read
@param rnode the Dom node to read
@param vl the vector layer which will be associated with the renderer*/
void readXML(const QDomNode& rnode, QgsVectorLayer& vl);
/**Writes the contents of the renderer to a configuration file
Expand Down
2 changes: 1 addition & 1 deletion python/core/qgsvectordataprovider.sip
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class QgsVectorDataProvider : QgsDataProvider
* and maximal values. If provider has facilities to retrieve minimal
* value directly, override this function.
*/
virtual QVariant minValue(int index);
virtual QVariant minimumValue(int index);

/**
* Returns the maximum value of an attributs
Expand Down
18 changes: 9 additions & 9 deletions python/core/qgsvectorlayer.sip
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ public:
const QString displayField() const;

/** Returns the data provider */
QgsVectorDataProvider* getDataProvider();
QgsVectorDataProvider* dataProvider();

/** Returns the data provider in a const-correct manner */
//const QgsVectorDataProvider* getDataProvider() const;
//const QgsVectorDataProvider* dataProvider() const;

/** Sets the textencoding of the data provider */
void setProviderEncoding(const QString& encoding);
Expand Down Expand Up @@ -102,12 +102,12 @@ public:
/** Return the provider type for this layer */
QString providerType() const;

/** reads vector layer specific state from project file DOM node.
/** reads vector layer specific state from project file Dom node.
* @note Called by QgsMapLayer::readXml().
*/
virtual bool readXml( QDomNode & layer_node );

/** write vector layer specific state to project file DOM node.
/** write vector layer specific state to project file Dom node.
* @note Called by QgsMapLayer::writeXml().
*/
virtual bool writeXml( QDomNode & layer_node, QDomDocument & doc );
Expand Down Expand Up @@ -246,10 +246,10 @@ public:
int insertSegmentVerticesForSnap(const QList<QgsSnappingResult>& snapResults);

/** Set labels on */
void setLabelOn( bool on );
void enableLabels( bool on );

/** Label is on */
bool labelOn( );
bool hasLabelsEnabled( );

/** Returns true if the provider is in editing mode */
virtual bool isEditable() const;
Expand Down Expand Up @@ -277,10 +277,10 @@ public:
/** Draws the layer using coordinate transformation
* @return FALSE if an error occurred during drawing
*/
bool draw(QgsRenderContext& renderContext);
bool draw(QgsRenderContext& rendererContext);

/** Draws the layer labels using coordinate transformation */
void drawLabels(QgsRenderContext& renderContext);
void drawLabels(QgsRenderContext& rendererContext);

/** \brief Draws the layer labels using coordinate transformation
* \param scale size scale, applied to all values in pixels
Expand Down Expand Up @@ -372,7 +372,7 @@ signals:
void selectionChanged();

/** This signal is emitted when modifications has been done on layer */
void wasModified(bool onlyGeometry);
void layerModified(bool onlyGeometry);

void editingStarted();
void editingStopped();
Expand Down
Loading

0 comments on commit 9930215

Please sign in to comment.