Skip to content

Commit db9aede

Browse files
author
mhugent
committedNov 2, 2009
Python bindings update for composer map and picture
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11895 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
 

‎python/core/qgscomposermap.sip

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,4 +231,6 @@ class QgsComposerMap : QObject, QgsComposerItem
231231
signals:
232232
/**Is emitted when width/height is changed as a result of user interaction*/
233233
void extentChanged();
234+
/**Is emitted on rotation change to notify north arrow pictures*/
235+
void rotationChanged( double newRotation );
234236
};

‎python/core/qgscomposerpicture.sip

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ class QgsComposerPicture: QObject, QgsComposerItem
3838
*/
3939
bool readXML( const QDomElement& itemElem, const QDomDocument& doc );
4040

41+
/**Sets the map object for rotation (by id). A value of -1 disables the map rotation*/
42+
void setRotationMap( int composerMapId );
43+
/**Returns the id of the rotation map*/
44+
int rotationMap() const;
45+
/**True if the rotation is taken from a map item*/
46+
bool useRotationMap() const;
47+
48+
4149
signals:
4250
/**Tell the configuration widget that the settings need to be updated*/
4351
void settingsChanged();

0 commit comments

Comments
 (0)
Please sign in to comment.