You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: python/core/composer/qgscomposition.sip
+21-12Lines changed: 21 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,8 @@ class QgsComposition : QGraphicsScene
93
93
void setStatusMessage( const QString & message );
94
94
95
95
/**Refreshes the composition when composer related options change
96
-
*Note: added in version 2.1*/
96
+
@note added in version 2.1
97
+
*/
97
98
void updateSettings();
98
99
99
100
void setSnapToGridEnabled( const bool b );
@@ -109,7 +110,7 @@ class QgsComposition : QGraphicsScene
109
110
void setAlignmentSnap( const bool s );
110
111
bool alignmentSnap() const;
111
112
112
-
void setSmartGuidesEnabled( bool b );
113
+
void setSmartGuidesEnabled( const bool b );
113
114
bool smartGuidesEnabled() const;
114
115
115
116
/**Removes all snap lines*/
@@ -164,11 +165,11 @@ class QgsComposition : QGraphicsScene
164
165
165
166
/**Sets the snap tolerance to use when automatically snapping items during movement and resizing to guides
166
167
* and the edges and centers of other items.
167
-
* @param t snap tolerance in pixels
168
+
* @param snapTolerance snap tolerance in pixels
168
169
* @see alignmentSnapTolerance
169
170
* @note Added in QGIS 2.5
170
171
*/
171
-
void setSnapTolerance( int snapTolerance );
172
+
void setSnapTolerance( const int snapTolerance );
172
173
173
174
/**Returns the snap tolerance to use when automatically snapping items during movement and resizing to guides
174
175
* and the edges and centers of other items.
@@ -300,6 +301,11 @@ class QgsComposition : QGraphicsScene
300
301
/**Add items from XML representation to the graphics scene (for project file reading, pasting items from clipboard)
301
302
@param elem items parent element, e.g. \verbatim <Composer> \endverbatim or \verbatim <ComposerItemClipboard> \endverbatim
302
303
@param doc xml document
304
+
@param mapsToRestore for reading from project file: set preview move 'rectangle' to all maps and save the preview states to show composer maps on demand
305
+
@param addUndoCommands insert AddItem commands if true (e.g. for copy/paste)
306
+
@param pos item position. Optional, take position from xml if 0
307
+
@param pasteInPlace whether the position should be kept but mapped to the page origin. (the page is the page under to the mouse cursor)
308
+
@note parameters mapsToResotre, addUndoCommands pos and pasteInPlace not available in python bindings
0 commit comments