|
| QgsLayoutGuideCollection (QgsLayout *layout, QgsLayoutPageCollection *pageCollection) |
| Constructor for QgsLayoutGuideCollection belonging to the specified layout, and linked to the specified pageCollection. More...
|
|
| ~QgsLayoutGuideCollection () override |
|
void | addGuide (QgsLayoutGuide *guide) |
| Adds a guide to the collection. More...
|
|
void | applyGuidesToAllOtherPages (int sourcePage) |
| Resets all other pages' guides to match the guides from the specified sourcePage. More...
|
|
void | clear () |
| Removes all guides from the collection. More...
|
|
int | columnCount (const QModelIndex &) const override |
|
QVariant | data (const QModelIndex &index, int role) const override |
|
Qt::ItemFlags | flags (const QModelIndex &index) const override |
|
QList< QgsLayoutGuide * > | guides () |
| Returns a list of all guides contained in the collection. More...
|
|
QList< QgsLayoutGuide * > | guides (Qt::Orientation orientation, int page=-1) |
| Returns the list of guides contained in the collection with the specified orientation and on a matching page. More...
|
|
QList< QgsLayoutGuide * > | guidesOnPage (int page) |
| Returns the list of guides contained on a matching page. More...
|
|
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
|
QgsLayout * | layout () override |
| Returns the layout the object belongs to. More...
|
|
bool | readXml (const QDomElement &collectionElement, const QDomDocument &document, const QgsReadWriteContext &context) override |
| Sets the collection's state from a DOM element. More...
|
|
void | removeGuide (QgsLayoutGuide *guide) |
| Removes the specified guide, and deletes it. More...
|
|
bool | removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) override |
|
int | rowCount (const QModelIndex &) const override |
|
bool | setData (const QModelIndex &index, const QVariant &value, int role) override |
|
void | setGuideLayoutPosition (QgsLayoutGuide *guide, double position) |
| Sets the absolute position (in layout coordinates) for guide within the layout. More...
|
|
void | setVisible (bool visible) |
| Sets whether the guide lines should be visible. More...
|
|
QString | stringType () const override |
| Returns the object type as a string. More...
|
|
void | update () |
| Updates the position (and visibility) of all guide line items. More...
|
|
bool | visible () const |
| Returns true if the guide lines should be drawn. More...
|
|
bool | writeXml (QDomElement &parentElement, QDomDocument &document, const QgsReadWriteContext &context) const override |
| Stores the collection's state in a DOM element. More...
|
|
QgsAbstractLayoutUndoCommand * | createCommand (const QString &text, int id, QUndoCommand *parent=nullptr) override |
| Creates a new layout undo command with the specified text and parent. More...
|
|
virtual QgsLayout * | layout ()=0 |
| Returns the layout the object belongs to. More...
|
|
virtual bool | readXml (const QDomElement &element, const QDomDocument &document, const QgsReadWriteContext &context)=0 |
| Sets the objects's state from a DOM element. More...
|
|
virtual QString | stringType () const =0 |
| Returns the object type as a string. More...
|
|
virtual bool | writeXml (QDomElement &parentElement, QDomDocument &document, const QgsReadWriteContext &context) const =0 |
| Stores the objects's state in a DOM element. More...
|
|
virtual | ~QgsLayoutUndoObjectInterface ()=default |
| Destructor for QgsLayoutUndoObjectInterface. More...
|
|
virtual QgsAbstractLayoutUndoCommand * | createCommand (const QString &text, int id=0, QUndoCommand *parent=nullptr)=0 |
| Creates a new layout undo command with the specified text and parent. More...
|
|