Skip to content

Commit ac0c5d1

Browse files
nyalldawsonmhugent
authored andcommittedOct 29, 2013
Add sip bindings for guide controls
1 parent 46009c6 commit ac0c5d1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎python/core/composer/qgscomposition.sip

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ class QgsComposition : QGraphicsScene
5252

5353
void setGridVisible( bool b );
5454
bool gridVisible() const;
55+
56+
/**Toggles state of smart guides*/
57+
void setSmartGuidesEnabled( bool b );
58+
/**Returns true if smart guides are enabled*/
59+
bool smartGuidesEnabled() const;
5560

5661
/**Removes all snap lines*/
5762
void clearSnapLines();
@@ -229,6 +234,8 @@ class QgsComposition : QGraphicsScene
229234
// QGraphicsLineItem* nearestSnapLine( bool horizontal, double x, double y, double tolerance, QList< QPair< QgsComposerItem*, QgsComposerItem::ItemPositionMode > >& snappedItems );
230235
/**Hides / shows custom snap lines*/
231236
void setSnapLinesVisible( bool visible );
237+
/**Returns visibility of custom snap lines*/
238+
bool snapLinesVisible() const;
232239

233240
/**Allocates new item command and saves initial state in it
234241
@param item target item

0 commit comments

Comments
 (0)
Please sign in to comment.