QGIS API Documentation
3.4.15-Madeira (e83d02e274)
|
A dialog allowing users to customize and populate a QgsStyle. More...
#include <qgsstylemanagerdialog.h>
Public Slots | |
void | activate () |
Raises, unminimizes and activates this window. More... | |
void | addItem () |
int | addSmartgroup () |
add a smartgroup More... | |
int | addTag () |
add a tag More... | |
void | editItem () |
void | editSmartgroupAction () |
edit the selected smart group More... | |
void | exportItems () |
void | exportItemsPNG () |
void | exportItemsSVG () |
void | exportSelectedItemsImages (const QString &dir, const QString &format, QSize size) |
void | filterSymbols (const QString &) |
filter the symbols based on input search term More... | |
void | groupChanged (const QModelIndex &) |
void | groupRenamed (QStandardItem *) |
void | grouptreeContextMenu (QPoint) |
Context menu for the groupTree. More... | |
void | importItems () |
void | itemChanged (QStandardItem *item) |
void | listitemsContextMenu (QPoint) |
Context menu for the listItems ( symbols list ) More... | |
void | onClose () |
Close the dialog. More... | |
void | onFinished () |
called when the dialog is going to be closed More... | |
void | populateList () |
adds symbols of some type to list More... | |
void | regrouped (QStandardItem *) |
symbol changed from one group More... | |
void | removeGroup () |
remove a tag or smartgroup More... | |
void | removeItem () |
void | selectedSymbolsChanged (const QItemSelection &selected, const QItemSelection &deselected) |
Perform tasks when the selected symbols change. More... | |
void | showHelp () |
Open the associated help. More... | |
void | symbolSelected (const QModelIndex &) |
Perform symbol specific tasks when selected. More... | |
void | tagSymbolsAction () |
carry out symbol tagging using check boxes More... | |
Public Member Functions | |
QgsStyleManagerDialog (QgsStyle *style, QWidget *parent SIP_TRANSFERTHIS=nullptr, Qt::WindowFlags flags=Qt::WindowFlags()) | |
Constructor for QgsStyleManagerDialog, with the specified parent widget and window flags. More... | |
Static Public Member Functions | |
static QString | addColorRampStatic (QWidget *parent, QgsStyle *style, QString RampType=QString()) |
Opens the add color ramp dialog, returning the new color ramp's name if the ramp has been added. More... | |
Protected Slots | |
bool | addColorRamp (QAction *action) |
void | addFavoriteSelectedSymbols () |
Add selected symbols to favorites. More... | |
void | detagSelectedSymbols () |
Remove all tags from selected symbols. More... | |
void | removeFavoriteSelectedSymbols () |
Remove selected symbols from favorites. More... | |
void | tagSelectedSymbols (bool newTag=false) |
Tag selected symbols using menu item selection. More... | |
Protected Member Functions | |
bool | addColorRamp () |
add a new color ramp to style More... | |
bool | addSymbol () |
add a new symbol to style More... | |
QString | currentItemName () |
int | currentItemType () |
bool | editColorRamp () |
bool | editSymbol () |
void | enableGroupInputs (bool) |
Enables or disables the groupTree specific inputs. More... | |
void | enableItemsForGroupingMode (bool) |
Enables or disables the groupTree items for grouping mode. More... | |
void | enableSymbolInputs (bool) |
Enables or disbables the symbol specific inputs. More... | |
void | populateColorRamps (const QStringList &colorRamps, bool checkable=false) |
populate list view with color ramps More... | |
void | populateGroups () |
populate the groups More... | |
void | populateSymbols (const QStringList &symbolNames, bool checkable=false) |
populate list view with symbols of the current type with the given names More... | |
void | populateTypes () |
populate combo box with known style items (symbols, color ramps) More... | |
bool | removeColorRamp () |
bool | removeSymbol () |
void | setBold (QStandardItem *) |
sets the text of the item with bold font More... | |
void | setSymbolsChecked (const QStringList &) |
to set symbols checked when in editing mode More... | |
A dialog allowing users to customize and populate a QgsStyle.
Definition at line 36 of file qgsstylemanagerdialog.h.
QgsStyleManagerDialog::QgsStyleManagerDialog | ( | QgsStyle * | style, |
QWidget *parent | SIP_TRANSFERTHIS = nullptr , |
||
Qt::WindowFlags | flags = Qt::WindowFlags() |
||
) |
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 46 of file qgsstylemanagerdialog.cpp.
|
slot |
Raises, unminimizes and activates this window.
Definition at line 611 of file qgsstylemanagerdialog.cpp.
|
protectedslot |
Definition at line 623 of file qgsstylemanagerdialog.cpp.
|
protected |
add a new color ramp to style
Definition at line 618 of file qgsstylemanagerdialog.cpp.
|
static |
Opens the add color ramp dialog, returning the new color ramp's name if the ramp has been added.
Definition at line 470 of file qgsstylemanagerdialog.cpp.
|
protectedslot |
Add selected symbols to favorites.
Definition at line 1437 of file qgsstylemanagerdialog.cpp.
|
slot |
Definition at line 350 of file qgsstylemanagerdialog.cpp.
|
slot |
add a smartgroup
Definition at line 1114 of file qgsstylemanagerdialog.cpp.
|
protected |
add a new symbol to style
Definition at line 373 of file qgsstylemanagerdialog.cpp.
|
slot |
add a tag
Definition at line 1062 of file qgsstylemanagerdialog.cpp.
|
protected |
Definition at line 342 of file qgsstylemanagerdialog.cpp.
|
protected |
Definition at line 325 of file qgsstylemanagerdialog.cpp.
|
protectedslot |
Remove all tags from selected symbols.
Definition at line 1510 of file qgsstylemanagerdialog.cpp.
|
protected |
Definition at line 679 of file qgsstylemanagerdialog.cpp.
|
slot |
Definition at line 638 of file qgsstylemanagerdialog.cpp.
|
slot |
edit the selected smart group
Definition at line 1533 of file qgsstylemanagerdialog.cpp.
|
protected |
Definition at line 658 of file qgsstylemanagerdialog.cpp.
|
protected |
Enables or disables the groupTree specific inputs.
Definition at line 1359 of file qgsstylemanagerdialog.cpp.
|
protected |
Enables or disables the groupTree items for grouping mode.
Definition at line 1365 of file qgsstylemanagerdialog.cpp.
|
protected |
Enables or disbables the symbol specific inputs.
Definition at line 1347 of file qgsstylemanagerdialog.cpp.
|
slot |
Definition at line 885 of file qgsstylemanagerdialog.cpp.
|
slot |
Definition at line 850 of file qgsstylemanagerdialog.cpp.
|
slot |
Definition at line 859 of file qgsstylemanagerdialog.cpp.
|
slot |
Definition at line 869 of file qgsstylemanagerdialog.cpp.
|
slot |
filter the symbols based on input search term
Definition at line 1312 of file qgsstylemanagerdialog.cpp.
|
slot |
Definition at line 964 of file qgsstylemanagerdialog.cpp.
|
slot |
Definition at line 1187 of file qgsstylemanagerdialog.cpp.
|
slot |
Context menu for the groupTree.
Definition at line 1395 of file qgsstylemanagerdialog.cpp.
|
slot |
Definition at line 891 of file qgsstylemanagerdialog.cpp.
|
slot |
Definition at line 822 of file qgsstylemanagerdialog.cpp.
|
slot |
Context menu for the listItems ( symbols list )
Definition at line 1406 of file qgsstylemanagerdialog.cpp.
|
slot |
Close the dialog.
Definition at line 1572 of file qgsstylemanagerdialog.cpp.
|
slot |
called when the dialog is going to be closed
Definition at line 194 of file qgsstylemanagerdialog.cpp.
|
protected |
populate list view with color ramps
Definition at line 303 of file qgsstylemanagerdialog.cpp.
|
protected |
populate the groups
Definition at line 906 of file qgsstylemanagerdialog.cpp.
|
slot |
adds symbols of some type to list
Definition at line 262 of file qgsstylemanagerdialog.cpp.
|
protected |
populate list view with symbols of the current type with the given names
Definition at line 272 of file qgsstylemanagerdialog.cpp.
|
protected |
populate combo box with known style items (symbols, color ramps)
Definition at line 206 of file qgsstylemanagerdialog.cpp.
|
slot |
symbol changed from one group
Definition at line 1273 of file qgsstylemanagerdialog.cpp.
|
protected |
Definition at line 800 of file qgsstylemanagerdialog.cpp.
|
protectedslot |
Remove selected symbols from favorites.
Definition at line 1454 of file qgsstylemanagerdialog.cpp.
|
slot |
remove a tag or smartgroup
Definition at line 1152 of file qgsstylemanagerdialog.cpp.
|
slot |
Definition at line 755 of file qgsstylemanagerdialog.cpp.
|
protected |
Definition at line 778 of file qgsstylemanagerdialog.cpp.
|
slot |
Perform tasks when the selected symbols change.
Definition at line 1332 of file qgsstylemanagerdialog.cpp.
|
protected |
sets the text of the item with bold font
Definition at line 899 of file qgsstylemanagerdialog.cpp.
|
protected |
to set symbols checked when in editing mode
Definition at line 1301 of file qgsstylemanagerdialog.cpp.
|
slot |
Open the associated help.
Definition at line 1577 of file qgsstylemanagerdialog.cpp.
|
slot |
Perform symbol specific tasks when selected.
Definition at line 1327 of file qgsstylemanagerdialog.cpp.
|
protectedslot |
Tag selected symbols using menu item selection.
Definition at line 1471 of file qgsstylemanagerdialog.cpp.
|
slot |
carry out symbol tagging using check boxes
Definition at line 1204 of file qgsstylemanagerdialog.cpp.