Skip to content
Permalink
Browse files

Add sip bindings for guide controls

  • Loading branch information
nyalldawson authored and mhugent committed Oct 29, 2013
1 parent 46009c6 commit ac0c5d1bd20679d3761e339f6fbc89f99da61788
Showing with 7 additions and 0 deletions.
  1. +7 −0 python/core/composer/qgscomposition.sip
@@ -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();
@@ -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

0 comments on commit ac0c5d1

Please sign in to comment.
You can’t perform that action at this time.