Skip to content

Commit

Permalink
Add sip bindings for guide controls
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson authored and mhugent committed Oct 29, 2013
1 parent 46009c6 commit ac0c5d1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions python/core/composer/qgscomposition.sip
Expand Up @@ -52,6 +52,11 @@ class QgsComposition : QGraphicsScene

void setGridVisible( bool b );
bool gridVisible() const;

/**Toggles state of smart guides*/
void setSmartGuidesEnabled( bool b );
/**Returns true if smart guides are enabled*/
bool smartGuidesEnabled() const;

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

/**Allocates new item command and saves initial state in it
@param item target item
Expand Down

0 comments on commit ac0c5d1

Please sign in to comment.