QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
A common interface for layout designer dialogs and widgets. More...
#include <qgslayoutdesignerinterface.h>
Classes | |
class | ExportResults |
Encapsulates the results of an export operation performed in the designer. More... | |
Public Types | |
enum | StandardTool { ToolMoveItemContent , ToolMoveItemNodes } |
Standard designer tools which are always available for use. More... | |
Public Slots | |
virtual void | close ()=0 |
Closes the layout designer. More... | |
virtual void | showRulers (bool visible)=0 |
Toggles whether or not the rulers should be visible in the designer. More... | |
Signals | |
void | layoutExported () |
Emitted whenever a layout is exported from the layout designer. More... | |
void | mapPreviewRefreshed (QgsLayoutItemMap *map) |
Emitted when a map item's preview has been refreshed. More... | |
Public Member Functions | |
QgsLayoutDesignerInterface (QObject *parent=nullptr) | |
Constructor for QgsLayoutDesignerInterface. More... | |
virtual QToolBar * | actionsToolbar ()=0 |
Returns a reference to the designer's "Actions" toolbar. More... | |
virtual void | activateTool (StandardTool tool)=0 |
Activates a standard layout designer tool. More... | |
virtual void | addDockWidget (Qt::DockWidgetArea area, QDockWidget *dock)=0 |
Adds a dock widget to the layout designer, in the specified dock area. More... | |
virtual QMenu * | atlasMenu ()=0 |
Returns a reference to the designer's "Atlas" menu. More... | |
virtual bool | atlasPreviewEnabled () const =0 |
Returns whether the atlas preview mode is enabled in the designer. More... | |
virtual QToolBar * | atlasToolbar ()=0 |
Returns a reference to the designer's "Atlas" toolbar. More... | |
virtual QMenu * | editMenu ()=0 |
Returns a reference to the designer's "Edit" menu. More... | |
virtual QMenu * | itemsMenu ()=0 |
Returns a reference to the designer's "Items" menu. More... | |
virtual QgsLayoutDesignerInterface::ExportResults * | lastExportResults () const =0 |
Returns the results of the last export operation performed in the designer. More... | |
virtual QgsLayout * | layout ()=0 |
Returns the current layout displayed in the designer. More... | |
virtual QMenu * | layoutMenu ()=0 |
Returns a reference to the designer's "Layout" menu. More... | |
virtual QToolBar * | layoutToolbar ()=0 |
Returns a reference to the designer's "Layout" toolbar. More... | |
virtual QgsMasterLayoutInterface * | masterLayout ()=0 |
Returns the master layout displayed in the designer. More... | |
virtual QgsMessageBar * | messageBar ()=0 |
Returns the designer's message bar. More... | |
virtual QToolBar * | navigationToolbar ()=0 |
Returns a reference to the designer's "Navigation" toolbar. More... | |
virtual void | removeDockWidget (QDockWidget *dock)=0 |
Removes the specified dock widget from layout designer (without deleting it). More... | |
virtual QMenu * | reportMenu ()=0 |
Returns a reference to the designer's "Report" menu. More... | |
virtual void | selectItems (const QList< QgsLayoutItem * > &items)=0 |
Selects the specified items. More... | |
virtual void | setAtlasFeature (const QgsFeature &feature)=0 |
Sets the specified feature as the current atlas feature. More... | |
virtual void | setAtlasPreviewEnabled (bool enabled)=0 |
Toggles whether the atlas preview mode should be enabled in the designer. More... | |
virtual QMenu * | settingsMenu ()=0 |
Returns a reference to the designer's "Settings" menu. More... | |
virtual void | showItemOptions (QgsLayoutItem *item, bool bringPanelToFront=true)=0 |
Shows the configuration widget for the specified layout item. More... | |
virtual QgsLayoutView * | view ()=0 |
Returns the layout view utilized by the designer. More... | |
virtual QMenu * | viewMenu ()=0 |
Returns a reference to the designer's "View" menu. More... | |
virtual QWidget * | window ()=0 |
Returns a pointer to the designer window. More... | |
A common interface for layout designer dialogs and widgets.
Provides a common interface and stable API for layout designer dialogs and widgets. This interface can be used by plugins and scripts to interact with open layout designer dialogs.
Definition at line 55 of file qgslayoutdesignerinterface.h.
Standard designer tools which are always available for use.
Enumerator | |
---|---|
ToolMoveItemContent | Move item content tool. |
ToolMoveItemNodes | Move item nodes tool. |
Definition at line 72 of file qgslayoutdesignerinterface.h.
|
inline |
Constructor for QgsLayoutDesignerInterface.
Definition at line 81 of file qgslayoutdesignerinterface.h.
|
pure virtual |
Returns a reference to the designer's "Actions" toolbar.
|
pure virtual |
Activates a standard layout designer tool.
|
pure virtual |
Adds a dock widget to the layout designer, in the specified dock area.
|
pure virtual |
Returns a reference to the designer's "Atlas" menu.
Note that this may not exist or may be hidden if the designer is in report mode.
|
pure virtual |
Returns whether the atlas preview mode is enabled in the designer.
|
pure virtual |
Returns a reference to the designer's "Atlas" toolbar.
Note that this toolbar may not exist or may be hidden if the designer is in report mode.
|
pure virtualslot |
Closes the layout designer.
|
pure virtual |
Returns a reference to the designer's "Edit" menu.
|
pure virtual |
Returns a reference to the designer's "Items" menu.
|
pure virtual |
Returns the results of the last export operation performed in the designer.
May be nullptr
if no export has been performed in the designer.
|
pure virtual |
Returns the current layout displayed in the designer.
|
signal |
Emitted whenever a layout is exported from the layout designer.
The results of the export can be retrieved by calling lastExportResults().
|
pure virtual |
Returns a reference to the designer's "Layout" menu.
|
pure virtual |
Returns a reference to the designer's "Layout" toolbar.
|
signal |
Emitted when a map item's preview has been refreshed.
|
pure virtual |
Returns the master layout displayed in the designer.
|
pure virtual |
Returns the designer's message bar.
|
pure virtual |
Returns a reference to the designer's "Navigation" toolbar.
|
pure virtual |
Removes the specified dock widget from layout designer (without deleting it).
|
pure virtual |
Returns a reference to the designer's "Report" menu.
Note that this may not exist or may be hidden if the designer is not in report mode.
|
pure virtual |
Selects the specified items.
|
pure virtual |
Sets the specified feature as the current atlas feature.
|
pure virtual |
Toggles whether the atlas preview mode should be enabled in the designer.
|
pure virtual |
Returns a reference to the designer's "Settings" menu.
|
pure virtual |
Shows the configuration widget for the specified layout item.
If bringPanelToFront is true
, then the item properties panel will be automatically shown and raised to the top of the interface.
|
pure virtualslot |
Toggles whether or not the rulers should be visible in the designer.
|
pure virtual |
Returns the layout view utilized by the designer.
|
pure virtual |
Returns a reference to the designer's "View" menu.
|
pure virtual |
Returns a pointer to the designer window.