|
QGIS API Documentation 4.1.0-Master (467af3bbe65)
|
A dialog allowing users to customize and populate a QgsStyle. More...
#include <qgsstylemanagerdialog.h>

Public Slots | |
| void | activate () |
| Raises, unminimizes and activates this window. | |
| void | addItem () |
| Triggers the dialog for adding a new item, based on the currently selected item type tab. | |
| int | addSmartgroup () |
| Triggers the dialog to add a new smart group. | |
| int | addTag () |
| Triggers the dialog to add a new tag. | |
| void | editItem () |
| Triggers the dialog for editing the current item. | |
| void | editSmartgroupAction () |
| Triggers the dialog for editing the selected smart group. | |
| void | exportItems () |
| Triggers the dialog to export items. | |
| void | exportItemsPNG () |
| Triggers the dialog to export selected items as PNG files. | |
| void | exportItemsSVG () |
| Triggers the dialog to export selected items as SVG files. | |
| void | exportSelectedItemsImages (const QString &dir, const QString &format, QSize size) |
| Triggers the dialog to export selected items as images of the specified format and size. | |
| void | filterSymbols (const QString &filter) |
| Sets the filter string to filter symbols by. | |
| void | groupChanged (const QModelIndex &) |
| Triggered when the current group (or tag) is changed. | |
| void | groupRenamed (QStandardItem *item) |
| Triggered when a group item is renamed. | |
| void | grouptreeContextMenu (QPoint) |
| Context menu for the groupTree. | |
| void | importItems () |
| Triggers the dialog to import items. | |
| Q_DECL_DEPRECATED void | itemChanged (QStandardItem *item) |
| void | listitemsContextMenu (QPoint) |
| Context menu for the listItems ( symbols list ). | |
| void | onClose () |
| Closes the dialog. | |
| void | onFinished () |
| Called when the dialog is going to be closed. | |
| void | populateList () |
| Refreshes the list of items. | |
| Q_DECL_DEPRECATED void | regrouped (QStandardItem *) |
| void | removeGroup () |
| Removes the selected tag or smartgroup. | |
| void | removeItem () |
| Removes the current selected item. | |
| void | selectedSymbolsChanged (const QItemSelection &selected, const QItemSelection &deselected) |
| Perform tasks when the selected symbols change. | |
| void | showHelp () |
| Opens the associated help. | |
| void | symbolSelected (const QModelIndex &) |
| Perform symbol specific tasks when selected. | |
| void | tagSymbolsAction () |
| Toggles the interactive item tagging mode. | |
Public Member Functions | |
| QgsStyleManagerDialog (QgsStyle *style, QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags(), bool readOnly=false) | |
| Constructor for QgsStyleManagerDialog, with the specified parent widget and window flags. | |
| QgsStyleManagerDialog (QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags()) | |
| Constructor for QgsStyleManagerDialog, with the specified parent widget and window flags. | |
| void | setBaseStyleName (const QString &name) |
| Sets the base name for the style, which is used by the dialog to reflect the original style/XML file name. | |
| void | setFavoritesGroupVisible (bool show) |
| Sets whether the favorites group should be shown. | |
| void | setSmartGroupsVisible (bool show) |
| Sets whether smart groups should be shown. | |
Static Public Member Functions | |
| static QString | addColorRampStatic (QWidget *parent, QgsStyle *style, const QString &RampType=QString()) |
| Opens the add color ramp dialog, returning the new color ramp's name if the ramp has been added. | |
Static Public Attributes | |
| static const QgsSettingsEntryString * | settingLastStyleDatabaseFolder = new QgsSettingsEntryString( u"last-style-database-folder"_s, sTtreeStyleManager, QString(), u"Last used folder for style databases"_s ) |
| Last used folder for generic style database actions. | |
| static QgsSettingsTreeNode * | sTtreeStyleManager = QgsSettingsTree::sTreeApp->createChildNode( u"style-manager"_s ) |
Protected Slots | |
| bool | addColorRamp (const QString &type=QString()) |
| Triggers adding a new color ramp. | |
| void | addFavoriteSelectedSymbols () |
| Add selected symbols to favorites. | |
| void | detagSelectedSymbols () |
| Remove all tags from selected symbols. | |
| void | removeFavoriteSelectedSymbols () |
| Remove selected symbols from favorites. | |
| void | tagSelectedSymbols (bool newTag=false) |
| Tag selected symbols using menu item selection. | |
Protected Member Functions | |
| bool | addSymbol (int symbolType=-1) |
| add a new symbol to style | |
| QString | currentItemName () |
| int | currentItemType () |
| bool | editColorRamp () |
| bool | editSymbol () |
| void | enableGroupInputs (bool) |
| Enables or disables the groupTree specific inputs. | |
| void | enableItemsForGroupingMode (bool) |
| Enables or disables the groupTree items for grouping mode. | |
| void | enableSymbolInputs (bool) |
| Enables or disbables the symbol specific inputs. | |
| Q_DECL_DEPRECATED void | populateColorRamps (const QStringList &colorRamps, bool checkable=false) |
| Populates the list view with color ramps of the current type with the given names. | |
| void | populateGroups () |
| populate the groups | |
| Q_DECL_DEPRECATED void | populateSymbols (const QStringList &symbolNames, bool checkable=false) |
| Populates the list view with symbols of the current type with the given names. | |
| Q_DECL_DEPRECATED void | populateTypes () |
| Populate combo box with known style items (symbols, color ramps). | |
| Q_DECL_DEPRECATED bool | removeColorRamp () |
| Q_DECL_DEPRECATED bool | removeSymbol () |
| void | setBold (QStandardItem *) |
| sets the text of the item with bold font | |
| Q_DECL_DEPRECATED void | setSymbolsChecked (const QStringList &) |
Friends | |
| class | QgsStyleExportImportDialog |
A dialog allowing users to customize and populate a QgsStyle.
Definition at line 71 of file qgsstylemanagerdialog.h.
| QgsStyleManagerDialog::QgsStyleManagerDialog | ( | QgsStyle * | style, |
| QWidget * | parent = nullptr, | ||
| Qt::WindowFlags | flags = Qt::WindowFlags(), | ||
| bool | readOnly = false ) |
Constructor for QgsStyleManagerDialog, with the specified parent widget and window flags.
The style argument specifies the linked QgsStyle database. Symbols and objects contained within this style will be shown in the dialog, and changes made within the dialog will be applied to style. The style object must last for the lifetime of the dialog.
Definition at line 180 of file qgsstylemanagerdialog.cpp.
| QgsStyleManagerDialog::QgsStyleManagerDialog | ( | QWidget * | parent = nullptr, |
| Qt::WindowFlags | flags = Qt::WindowFlags() ) |
Constructor for QgsStyleManagerDialog, with the specified parent widget and window flags.
All styles linked to the current project will be available.
Definition at line 189 of file qgsstylemanagerdialog.cpp.
|
slot |
Raises, unminimizes and activates this window.
Definition at line 1783 of file qgsstylemanagerdialog.cpp.
|
protectedslot |
Triggers adding a new color ramp.
If type is set to a string representing a valid QgsColorRamp::type() value then a new ramp of that type will be created. If type is empty, then the user will be prompted to select the color ramp type.
Definition at line 1790 of file qgsstylemanagerdialog.cpp.
|
static |
Opens the add color ramp dialog, returning the new color ramp's name if the ramp has been added.
The RampType argument should be set to a string representing a valid QgsColorRamp::type() value.
Definition at line 1621 of file qgsstylemanagerdialog.cpp.
|
protectedslot |
Add selected symbols to favorites.
Definition at line 3066 of file qgsstylemanagerdialog.cpp.
|
slot |
Triggers the dialog for adding a new item, based on the currently selected item type tab.
Definition at line 1478 of file qgsstylemanagerdialog.cpp.
|
slot |
Triggers the dialog to add a new smart group.
Definition at line 2741 of file qgsstylemanagerdialog.cpp.
|
protected |
add a new symbol to style
Definition at line 1523 of file qgsstylemanagerdialog.cpp.
|
slot |
Triggers the dialog to add a new tag.
Definition at line 2689 of file qgsstylemanagerdialog.cpp.
|
protected |
Definition at line 1469 of file qgsstylemanagerdialog.cpp.
|
protected |
Definition at line 1442 of file qgsstylemanagerdialog.cpp.
|
protectedslot |
Remove all tags from selected symbols.
Definition at line 3119 of file qgsstylemanagerdialog.cpp.
|
protected |
Definition at line 1863 of file qgsstylemanagerdialog.cpp.
|
slot |
Triggers the dialog for editing the current item.
Definition at line 1804 of file qgsstylemanagerdialog.cpp.
|
slot |
Triggers the dialog for editing the selected smart group.
Definition at line 3136 of file qgsstylemanagerdialog.cpp.
|
protected |
Definition at line 1840 of file qgsstylemanagerdialog.cpp.
|
protected |
Enables or disables the groupTree specific inputs.
Definition at line 2957 of file qgsstylemanagerdialog.cpp.
|
protected |
Enables or disables the groupTree items for grouping mode.
Definition at line 2964 of file qgsstylemanagerdialog.cpp.
|
protected |
Enables or disbables the symbol specific inputs.
Definition at line 2944 of file qgsstylemanagerdialog.cpp.
|
slot |
Triggers the dialog to export items.
Definition at line 2499 of file qgsstylemanagerdialog.cpp.
|
slot |
Triggers the dialog to export selected items as PNG files.
Definition at line 2468 of file qgsstylemanagerdialog.cpp.
|
slot |
Triggers the dialog to export selected items as SVG files.
Definition at line 2474 of file qgsstylemanagerdialog.cpp.
|
slot |
Triggers the dialog to export selected items as images of the specified format and size.
Definition at line 2481 of file qgsstylemanagerdialog.cpp.
|
slot |
Sets the filter string to filter symbols by.
Definition at line 2915 of file qgsstylemanagerdialog.cpp.
|
slot |
Triggered when the current group (or tag) is changed.
Definition at line 2589 of file qgsstylemanagerdialog.cpp.
|
slot |
Triggered when a group item is renamed.
Definition at line 2826 of file qgsstylemanagerdialog.cpp.
|
slot |
Context menu for the groupTree.
Definition at line 2996 of file qgsstylemanagerdialog.cpp.
|
slot |
Triggers the dialog to import items.
Definition at line 2505 of file qgsstylemanagerdialog.cpp.
|
slot |
Definition at line 2465 of file qgsstylemanagerdialog.cpp.
|
slot |
Context menu for the listItems ( symbols list ).
Definition at line 3005 of file qgsstylemanagerdialog.cpp.
|
slot |
Closes the dialog.
Definition at line 3177 of file qgsstylemanagerdialog.cpp.
|
slot |
Called when the dialog is going to be closed.
Definition at line 610 of file qgsstylemanagerdialog.cpp.
|
protected |
Populates the list view with color ramps of the current type with the given names.
Definition at line 1439 of file qgsstylemanagerdialog.cpp.
|
protected |
populate the groups
Definition at line 2520 of file qgsstylemanagerdialog.cpp.
|
slot |
Refreshes the list of items.
Definition at line 1431 of file qgsstylemanagerdialog.cpp.
|
protected |
Populates the list view with symbols of the current type with the given names.
Definition at line 1436 of file qgsstylemanagerdialog.cpp.
|
protected |
Populate combo box with known style items (symbols, color ramps).
Definition at line 616 of file qgsstylemanagerdialog.cpp.
|
slot |
Definition at line 2909 of file qgsstylemanagerdialog.cpp.
|
protected |
Definition at line 2460 of file qgsstylemanagerdialog.cpp.
|
protectedslot |
Remove selected symbols from favorites.
Definition at line 3078 of file qgsstylemanagerdialog.cpp.
|
slot |
Removes the selected tag or smartgroup.
Definition at line 2782 of file qgsstylemanagerdialog.cpp.
|
slot |
Removes the current selected item.
Definition at line 2381 of file qgsstylemanagerdialog.cpp.
|
protected |
Definition at line 2455 of file qgsstylemanagerdialog.cpp.
|
slot |
Perform tasks when the selected symbols change.
Definition at line 2925 of file qgsstylemanagerdialog.cpp.
| void QgsStyleManagerDialog::setBaseStyleName | ( | const QString & | name | ) |
Sets the base name for the style, which is used by the dialog to reflect the original style/XML file name.
name should be stripped of any extensions and folder information, e.g. "transport_styles", not "d:/stuff/transport_styles.xml".
Definition at line 1778 of file qgsstylemanagerdialog.cpp.
|
protected |
sets the text of the item with bold font
Definition at line 2513 of file qgsstylemanagerdialog.cpp.
| void QgsStyleManagerDialog::setFavoritesGroupVisible | ( | bool | show | ) |
Sets whether the favorites group should be shown.
The default is to show the group.
Definition at line 1766 of file qgsstylemanagerdialog.cpp.
| void QgsStyleManagerDialog::setSmartGroupsVisible | ( | bool | show | ) |
Sets whether smart groups should be shown.
The default is to show the groups.
Definition at line 1772 of file qgsstylemanagerdialog.cpp.
|
protected |
Definition at line 2912 of file qgsstylemanagerdialog.cpp.
|
slot |
Opens the associated help.
Definition at line 3182 of file qgsstylemanagerdialog.cpp.
|
slot |
Perform symbol specific tasks when selected.
Definition at line 2920 of file qgsstylemanagerdialog.cpp.
|
protectedslot |
Tag selected symbols using menu item selection.
Definition at line 3090 of file qgsstylemanagerdialog.cpp.
|
slot |
Toggles the interactive item tagging mode.
Definition at line 2846 of file qgsstylemanagerdialog.cpp.
|
friend |
Definition at line 495 of file qgsstylemanagerdialog.h.
|
static |
Last used folder for generic style database actions.
Definition at line 84 of file qgsstylemanagerdialog.h.
|
inlinestatic |
Definition at line 78 of file qgsstylemanagerdialog.h.