diff --git a/python/core/qgscomposermap.sip b/python/core/qgscomposermap.sip index 63988d68790..8a05898d6ab 100644 --- a/python/core/qgscomposermap.sip +++ b/python/core/qgscomposermap.sip @@ -231,4 +231,6 @@ class QgsComposerMap : QObject, QgsComposerItem signals: /**Is emitted when width/height is changed as a result of user interaction*/ void extentChanged(); + /**Is emitted on rotation change to notify north arrow pictures*/ + void rotationChanged( double newRotation ); }; diff --git a/python/core/qgscomposerpicture.sip b/python/core/qgscomposerpicture.sip index 9290b599df1..0139080405a 100644 --- a/python/core/qgscomposerpicture.sip +++ b/python/core/qgscomposerpicture.sip @@ -38,6 +38,14 @@ class QgsComposerPicture: QObject, QgsComposerItem */ bool readXML( const QDomElement& itemElem, const QDomDocument& doc ); + /**Sets the map object for rotation (by id). A value of -1 disables the map rotation*/ + void setRotationMap( int composerMapId ); + /**Returns the id of the rotation map*/ + int rotationMap() const; + /**True if the rotation is taken from a map item*/ + bool useRotationMap() const; + + signals: /**Tell the configuration widget that the settings need to be updated*/ void settingsChanged();