Skip to content
Permalink
Browse files

Python bindings for multipage composer

  • Loading branch information
mhugent committed Jul 17, 2012
1 parent f064cb0 commit cb1ecadec9361f9194fa1e598969ba1b68159f71
Showing with 13 additions and 0 deletions.
  1. +9 −0 python/core/qgscomposition.sip
  2. +4 −0 src/core/composer/qgscomposition.h
@@ -39,6 +39,11 @@ class QgsComposition: QGraphicsScene
/**Returns width of paper item*/
double paperWidth() const;

/**Note: added in version 1.9*/
void setNumPages( int pages );
/**Note: added in version 1.9*/
int numPages() const;

void setSnapToGridEnabled( bool b );
bool snapToGridEnabled() const;

@@ -172,4 +177,8 @@ class QgsComposition: QGraphicsScene

/**Convenience function to create a QgsAddRemoveItemCommand, connect its signals and push it to the undo stack*/
void pushAddRemoveCommand( QgsComposerItem* item, const QString& text, QgsAddRemoveItemCommand::State state );

/**Render a page to a paint device
@note added in version 1.9*/
void renderPage( QPainter* p, int page );
};
@@ -79,7 +79,9 @@ class CORE_EXPORT QgsComposition: public QGraphicsScene
/**Returns width of paper item*/
double paperWidth() const;

/**Note: added in version 1.9*/
void setNumPages( int pages );
/**Note: added in version 1.9*/
int numPages() const;

void setSnapToGridEnabled( bool b );
@@ -217,6 +219,8 @@ class CORE_EXPORT QgsComposition: public QGraphicsScene
/**Convenience function to create a QgsAddRemoveItemCommand, connect its signals and push it to the undo stack*/
void pushAddRemoveCommand( QgsComposerItem* item, const QString& text, QgsAddRemoveItemCommand::State state = QgsAddRemoveItemCommand::Added );

/**Render a page to a paint device
@note added in version 1.9*/
void renderPage( QPainter* p, int page );

public slots:

0 comments on commit cb1ecad

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