|
QGIS API Documentation
master-59fd5e0
|
#include <qgsstylev2managerdialog.h>
Collaboration diagram for QgsStyleV2ManagerDialog:Public Slots | |
| void | addGroup () |
| void | addItem () |
| void | editItem () |
| void | editSmartgroupAction () |
| edit the selected smart group | |
| void | exportItems () |
| void | filterSymbols (QString) |
| filter the symbols based on input search term | |
| void | groupChanged (const QModelIndex &) |
| void | groupRenamed (QStandardItem *) |
| void | groupSymbolsAction () |
| carryout symbol grouping using check boxes | |
| void | grouptreeContextMenu (const QPoint &) |
| Context menu for the groupTree. | |
| void | importItems () |
| void | itemChanged (QStandardItem *item) |
| void | listitemsContextMenu (const QPoint &) |
| Context menu for the listItems ( symbols list ) | |
| void | on_buttonBox_helpRequested () |
| void | on_tabItemType_currentChanged (int) |
| void | onFinished () |
| called when the dialog is going to be closed | |
| void | populateList () |
| adds symbols of some type to list | |
| void | regrouped (QStandardItem *) |
| symbol changed from one group | |
| void | removeGroup () |
| void | removeItem () |
| void | symbolSelected (const QModelIndex &) |
| Perform symbol specific tasks when selected. | |
| void | tagsChanged () |
| Listen to tag changes. | |
Public Member Functions | |
| QgsStyleV2ManagerDialog (QgsStyleV2 *style, QWidget *parent=NULL) | |
Static Public Member Functions | |
| static QString | addColorRampStatic (QWidget *parent, QgsStyleV2 *style, QString RampType=QString()) |
| open add color ramp dialog, return color ramp's name if the ramp has been added | |
Protected Slots | |
| bool | addColorRamp (QAction *action) |
Protected Member Functions | |
| bool | addColorRamp () |
| add a new color ramp to style | |
| bool | addSymbol () |
| add a new symbol to style | |
| void | buildGroupTree (QStandardItem *&parent) |
| build the groups tree | |
| QString | currentItemName () |
| int | currentItemType () |
| bool | editColorRamp () |
| bool | editSymbol () |
| void | enableGroupInputs (bool) |
| Enables or disables the groupTree specific inputs. | |
| void | enableItemsForGroupingMode (bool) |
| Enables or diables the groupTree items for grouping mode. | |
| void | enableSymbolInputs (bool) |
| Enables or disbables the symbol specific inputs. | |
| bool | eventFilter (QObject *, QEvent *) |
| Event filter to capture tagsLineEdit out of focus. | |
| void | populateColorRamps (QStringList colorRamps, bool check) |
| populate list view with color ramps | |
| void | populateGroups () |
| populate the groups | |
| void | populateSymbols (QStringList symbolNames, bool checkable=false) |
| populate list view with symbols of the current type with the given names | |
| void | populateTypes () |
| populate combo box with known style items (symbols, color ramps) | |
| bool | removeColorRamp () |
| bool | removeSymbol () |
| void | setBold (QStandardItem *) |
| sets the text of the item with bold font | |
| void | setSymbolsChecked (QStringList) |
| to set symbols checked when in editing mode | |
Protected Attributes | |
| bool | mGrouppingMode |
| Mode to display the symbol list. | |
| bool | mModified |
| QgsStyleV2 * | mStyle |
| QString | mStyleFilename |
| QStringList | mTagList |
| space to store symbol tags | |
Definition at line 29 of file qgsstylev2managerdialog.h.
| QgsStyleV2ManagerDialog::QgsStyleV2ManagerDialog | ( | QgsStyleV2 * | style, |
| QWidget * | parent = NULL |
||
| ) |
Definition at line 44 of file qgsstylev2managerdialog.cpp.
References addGroup(), addItem(), editItem(), editSmartgroupAction(), exportItems(), filterSymbols(), groupChanged(), groupRenamed(), groupSymbolsAction(), grouptreeContextMenu(), QgsApplication::iconPath(), importItems(), itemChanged(), listitemsContextMenu(), mGrouppingMode, on_tabItemType_currentChanged(), onFinished(), populateGroups(), populateTypes(), removeGroup(), removeItem(), symbolSelected(), and tr.
| bool QgsStyleV2ManagerDialog::addColorRamp | ( | QAction * | action | ) | [protected, slot] |
Definition at line 546 of file qgsstylev2managerdialog.cpp.
References addColorRampStatic(), mModified, mStyle, and populateList().
| bool QgsStyleV2ManagerDialog::addColorRamp | ( | ) | [protected] |
add a new color ramp to style
Definition at line 541 of file qgsstylev2managerdialog.cpp.
Referenced by addItem(), and on_tabItemType_currentChanged().
| QString QgsStyleV2ManagerDialog::addColorRampStatic | ( | QWidget * | parent, |
| QgsStyleV2 * | style, | ||
| QString | RampType = QString() |
||
| ) | [static] |
open add color ramp dialog, return color ramp's name if the ramp has been added
Definition at line 413 of file qgsstylev2managerdialog.cpp.
References QgsStyleV2::addColorRamp(), QgsCptCityColorRampV2::cloneGradientRamp(), QgsStyleV2::colorRampNames(), QgsVectorColorBrewerColorRampV2::colors(), QgsDebugMsg, QgsCptCityColorRampV2Dialog::saveAsGradientRamp(), QgsVectorColorBrewerColorRampV2::schemeName(), QgsCptCityColorRampV2::schemeName(), tr, and QgsCptCityColorRampV2::variantName().
Referenced by addColorRamp(), and QgsColorRampComboBox::colorRampChanged().
| void QgsStyleV2ManagerDialog::addGroup | ( | ) | [slot] |
Definition at line 880 of file qgsstylev2managerdialog.cpp.
References QgsStyleV2::addSmartgroup(), mStyle, and tr.
Referenced by grouptreeContextMenu(), and QgsStyleV2ManagerDialog().
| void QgsStyleV2ManagerDialog::addItem | ( | ) | [slot] |
Definition at line 308 of file qgsstylev2managerdialog.cpp.
References addColorRamp(), addSymbol(), currentItemType(), populateList(), and populateTypes().
Referenced by QgsStyleV2ManagerDialog().
| bool QgsStyleV2ManagerDialog::addSymbol | ( | ) | [protected] |
add a new symbol to style
Definition at line 331 of file qgsstylev2managerdialog.cpp.
References QgsStyleV2::addSymbol(), currentItemType(), QgsSymbolV2::Fill, QgsSymbolV2::Line, QgsSymbolV2::Marker, mModified, mStyle, QgsStyleV2::symbolNames(), and tr.
Referenced by addItem().
| void QgsStyleV2ManagerDialog::buildGroupTree | ( | QStandardItem *& | parent | ) | [protected] |
build the groups tree
Definition at line 805 of file qgsstylev2managerdialog.cpp.
References QgsStyleV2::childGroupNames(), and mStyle.
Referenced by populateGroups().
| QString QgsStyleV2ManagerDialog::currentItemName | ( | ) | [protected] |
Definition at line 300 of file qgsstylev2managerdialog.cpp.
Referenced by editColorRamp(), editSymbol(), and removeColorRamp().
| int QgsStyleV2ManagerDialog::currentItemType | ( | ) | [protected] |
Definition at line 288 of file qgsstylev2managerdialog.cpp.
References QgsSymbolV2::Fill, QgsSymbolV2::Line, and QgsSymbolV2::Marker.
Referenced by addItem(), addSymbol(), editItem(), groupChanged(), itemChanged(), listitemsContextMenu(), on_tabItemType_currentChanged(), populateList(), populateSymbols(), regrouped(), removeItem(), symbolSelected(), and tagsChanged().
| bool QgsStyleV2ManagerDialog::editColorRamp | ( | ) | [protected] |
Definition at line 603 of file qgsstylev2managerdialog.cpp.
References QgsStyleV2::addColorRamp(), QgsCptCityColorRampV2::cloneGradientRamp(), QgsStyleV2::colorRamp(), currentItemName(), mModified, mStyle, QgsCptCityColorRampV2Dialog::saveAsGradientRamp(), and QgsVectorColorRampV2::type().
Referenced by editItem().
| void QgsStyleV2ManagerDialog::editItem | ( | ) | [slot] |
Definition at line 561 of file qgsstylev2managerdialog.cpp.
References currentItemType(), editColorRamp(), editSymbol(), and populateList().
Referenced by QgsStyleV2ManagerDialog().
| void QgsStyleV2ManagerDialog::editSmartgroupAction | ( | ) | [slot] |
edit the selected smart group
Definition at line 1330 of file qgsstylev2managerdialog.cpp.
References QgsStyleV2::addSmartgroup(), groupChanged(), mStyle, QgsStyleV2::remove(), QgsStyleV2::smartgroup(), QgsStyleV2::SmartgroupEntity, QgsStyleV2::smartgroupOperator(), and tr.
Referenced by grouptreeContextMenu(), and QgsStyleV2ManagerDialog().
| bool QgsStyleV2ManagerDialog::editSymbol | ( | ) | [protected] |
Definition at line 581 of file qgsstylev2managerdialog.cpp.
References QgsStyleV2::addSymbol(), currentItemName(), mModified, mStyle, and QgsStyleV2::symbol().
Referenced by editItem().
| void QgsStyleV2ManagerDialog::enableGroupInputs | ( | bool | enable | ) | [protected] |
Enables or disables the groupTree specific inputs.
Definition at line 1205 of file qgsstylev2managerdialog.cpp.
Referenced by groupChanged().
| void QgsStyleV2ManagerDialog::enableItemsForGroupingMode | ( | bool | enable | ) | [protected] |
Enables or diables the groupTree items for grouping mode.
Definition at line 1212 of file qgsstylev2managerdialog.cpp.
Referenced by groupSymbolsAction().
| void QgsStyleV2ManagerDialog::enableSymbolInputs | ( | bool | enable | ) | [protected] |
Enables or disbables the symbol specific inputs.
Definition at line 1195 of file qgsstylev2managerdialog.cpp.
| bool QgsStyleV2ManagerDialog::eventFilter | ( | QObject * | obj, |
| QEvent * | event | ||
| ) | [protected] |
Event filter to capture tagsLineEdit out of focus.
Definition at line 1367 of file qgsstylev2managerdialog.cpp.
References tagsChanged().
| void QgsStyleV2ManagerDialog::exportItems | ( | ) | [slot] |
Definition at line 738 of file qgsstylev2managerdialog.cpp.
References QgsStyleV2ExportImportDialog::Export, and mStyle.
Referenced by QgsStyleV2ManagerDialog().
| void QgsStyleV2ManagerDialog::filterSymbols | ( | QString | qword | ) | [slot] |
filter the symbols based on input search term
Definition at line 1128 of file qgsstylev2managerdialog.cpp.
References QgsStyleV2::findSymbols(), mStyle, and populateSymbols().
Referenced by QgsStyleV2ManagerDialog().
| void QgsStyleV2ManagerDialog::groupChanged | ( | const QModelIndex & | index | ) | [slot] |
Definition at line 819 of file qgsstylev2managerdialog.cpp.
References QgsStyleV2::ColorrampEntity, QgsStyleV2::colorRampNames(), currentItemType(), enableGroupInputs(), mGrouppingMode, mStyle, populateColorRamps(), populateSymbols(), QgsDebugMsg, setSymbolsChecked(), QgsStyleV2::SymbolEntity, QgsStyleV2::symbolNames(), QgsStyleV2::symbolsOfGroup(), and QgsStyleV2::symbolsOfSmartgroup().
Referenced by editSmartgroupAction(), groupSymbolsAction(), populateList(), and QgsStyleV2ManagerDialog().
| void QgsStyleV2ManagerDialog::groupRenamed | ( | QStandardItem * | item | ) | [slot] |
Definition at line 979 of file qgsstylev2managerdialog.cpp.
References QgsStyleV2::addGroup(), QgsStyleV2::GroupEntity, mStyle, QgsDebugMsg, QgsStyleV2::rename(), QgsStyleV2::SmartgroupEntity, and tr.
Referenced by groupSymbolsAction(), and QgsStyleV2ManagerDialog().
| void QgsStyleV2ManagerDialog::groupSymbolsAction | ( | ) | [slot] |
carryout symbol grouping using check boxes
Definition at line 1023 of file qgsstylev2managerdialog.cpp.
References enableItemsForGroupingMode(), groupChanged(), groupRenamed(), itemChanged(), mGrouppingMode, and regrouped().
Referenced by QgsStyleV2ManagerDialog(), and regrouped().
| void QgsStyleV2ManagerDialog::grouptreeContextMenu | ( | const QPoint & | point | ) | [slot] |
Context menu for the groupTree.
Definition at line 1248 of file qgsstylev2managerdialog.cpp.
References addGroup(), editSmartgroupAction(), QgsDebugMsg, and removeGroup().
Referenced by QgsStyleV2ManagerDialog().
| void QgsStyleV2ManagerDialog::importItems | ( | ) | [slot] |
Definition at line 744 of file qgsstylev2managerdialog.cpp.
References QgsStyleV2ExportImportDialog::Import, mStyle, populateGroups(), and populateList().
Referenced by QgsStyleV2ManagerDialog().
| void QgsStyleV2ManagerDialog::itemChanged | ( | QStandardItem * | item | ) | [slot] |
Definition at line 715 of file qgsstylev2managerdialog.cpp.
References currentItemType(), mModified, mStyle, populateList(), QgsStyleV2::renameColorRamp(), and QgsStyleV2::renameSymbol().
Referenced by groupSymbolsAction(), and QgsStyleV2ManagerDialog().
| void QgsStyleV2ManagerDialog::listitemsContextMenu | ( | const QPoint & | point | ) | [slot] |
Context menu for the listItems ( symbols list )
Definition at line 1288 of file qgsstylev2managerdialog.cpp.
References QgsStyleV2::ColorrampEntity, currentItemType(), QgsStyleV2::group(), QgsStyleV2::groupId(), QgsStyleV2::groupNames(), mStyle, populateList(), QgsDebugMsg, and QgsStyleV2::SymbolEntity.
Referenced by QgsStyleV2ManagerDialog().
| void QgsStyleV2ManagerDialog::on_buttonBox_helpRequested | ( | ) | [inline, slot] |
Definition at line 54 of file qgsstylev2managerdialog.h.
References QgsContextHelp::run().
| void QgsStyleV2ManagerDialog::on_tabItemType_currentChanged | ( | int | ) | [slot] |
Definition at line 188 of file qgsstylev2managerdialog.cpp.
References addColorRamp(), currentItemType(), populateList(), and tr.
Referenced by QgsStyleV2ManagerDialog().
| void QgsStyleV2ManagerDialog::onFinished | ( | ) | [slot] |
called when the dialog is going to be closed
Definition at line 136 of file qgsstylev2managerdialog.cpp.
References mModified, mStyle, and QgsStyleV2::save().
Referenced by QgsStyleV2ManagerDialog().
| void QgsStyleV2ManagerDialog::populateColorRamps | ( | QStringList | colorRamps, |
| bool | check | ||
| ) | [protected] |
populate list view with color ramps
Definition at line 267 of file qgsstylev2managerdialog.cpp.
References QgsStyleV2::colorRamp(), QgsSymbolLayerV2Utils::colorRampPreviewIcon(), icon(), and mStyle.
Referenced by groupChanged().
| void QgsStyleV2ManagerDialog::populateGroups | ( | ) | [protected] |
populate the groups
Definition at line 759 of file qgsstylev2managerdialog.cpp.
References buildGroupTree(), mStyle, setBold(), and QgsStyleV2::smartgroupsListMap().
Referenced by importItems(), and QgsStyleV2ManagerDialog().
| void QgsStyleV2ManagerDialog::populateList | ( | ) | [slot] |
adds symbols of some type to list
Definition at line 230 of file qgsstylev2managerdialog.cpp.
References currentItemType(), and groupChanged().
Referenced by addColorRamp(), addItem(), editItem(), importItems(), itemChanged(), listitemsContextMenu(), on_tabItemType_currentChanged(), and removeItem().
| void QgsStyleV2ManagerDialog::populateSymbols | ( | QStringList | symbolNames, |
| bool | checkable = false |
||
| ) | [protected] |
populate list view with symbols of the current type with the given names
Definition at line 240 of file qgsstylev2managerdialog.cpp.
References currentItemType(), icon(), mStyle, QgsStyleV2::symbol(), QgsSymbolLayerV2Utils::symbolPreviewIcon(), and QgsSymbolV2::type().
Referenced by filterSymbols(), and groupChanged().
| void QgsStyleV2ManagerDialog::populateTypes | ( | ) | [protected] |
populate combo box with known style items (symbols, color ramps)
Definition at line 148 of file qgsstylev2managerdialog.cpp.
References QgsStyleV2::colorRampCount(), QgsSymbolV2::Fill, QgsSymbolV2::Line, QgsSymbolV2::Marker, mStyle, QgsStyleV2::symbolNames(), QgsStyleV2::symbolRef(), tr, and QgsSymbolV2::type().
Referenced by addItem(), QgsStyleV2ManagerDialog(), and removeItem().
| void QgsStyleV2ManagerDialog::regrouped | ( | QStandardItem * | item | ) | [slot] |
symbol changed from one group
Definition at line 1092 of file qgsstylev2managerdialog.cpp.
References QgsStyleV2::ColorrampEntity, currentItemType(), QgsStyleV2::group(), groupSymbolsAction(), mStyle, QgsDebugMsg, QgsStyleV2::SymbolEntity, and tr.
Referenced by groupSymbolsAction().
| bool QgsStyleV2ManagerDialog::removeColorRamp | ( | ) | [protected] |
Definition at line 704 of file qgsstylev2managerdialog.cpp.
References currentItemName(), mModified, mStyle, and QgsStyleV2::removeColorRamp().
Referenced by removeItem().
| void QgsStyleV2ManagerDialog::removeGroup | ( | ) | [slot] |
Definition at line 942 of file qgsstylev2managerdialog.cpp.
References QgsStyleV2::GroupEntity, mStyle, QgsStyleV2::remove(), QgsStyleV2::SmartgroupEntity, and tr.
Referenced by grouptreeContextMenu(), and QgsStyleV2ManagerDialog().
| void QgsStyleV2ManagerDialog::removeItem | ( | ) | [slot] |
Definition at line 667 of file qgsstylev2managerdialog.cpp.
References currentItemType(), populateList(), populateTypes(), removeColorRamp(), and removeSymbol().
Referenced by QgsStyleV2ManagerDialog().
| bool QgsStyleV2ManagerDialog::removeSymbol | ( | ) | [protected] |
Definition at line 690 of file qgsstylev2managerdialog.cpp.
References mModified, mStyle, and QgsStyleV2::removeSymbol().
Referenced by removeItem().
| void QgsStyleV2ManagerDialog::setBold | ( | QStandardItem * | item | ) | [protected] |
sets the text of the item with bold font
Definition at line 752 of file qgsstylev2managerdialog.cpp.
Referenced by populateGroups().
| void QgsStyleV2ManagerDialog::setSymbolsChecked | ( | QStringList | symbols | ) | [protected] |
to set symbols checked when in editing mode
Definition at line 1117 of file qgsstylev2managerdialog.cpp.
Referenced by groupChanged().
| void QgsStyleV2ManagerDialog::symbolSelected | ( | const QModelIndex & | index | ) | [slot] |
Perform symbol specific tasks when selected.
Definition at line 1185 of file qgsstylev2managerdialog.cpp.
References QgsStyleV2::ColorrampEntity, currentItemType(), mStyle, mTagList, QgsStyleV2::SymbolEntity, and QgsStyleV2::tagsOfSymbol().
Referenced by QgsStyleV2ManagerDialog().
| void QgsStyleV2ManagerDialog::tagsChanged | ( | ) | [slot] |
Listen to tag changes.
Definition at line 1134 of file qgsstylev2managerdialog.cpp.
References QgsStyleV2::ColorrampEntity, currentItemType(), QgsStyleV2::detagSymbol(), mStyle, mTagList, QgsDebugMsg, QgsStyleV2::SymbolEntity, and QgsStyleV2::tagSymbol().
Referenced by eventFilter().
bool QgsStyleV2ManagerDialog::mGrouppingMode [protected] |
Mode to display the symbol list.
Definition at line 142 of file qgsstylev2managerdialog.h.
Referenced by groupChanged(), groupSymbolsAction(), and QgsStyleV2ManagerDialog().
bool QgsStyleV2ManagerDialog::mModified [protected] |
Definition at line 139 of file qgsstylev2managerdialog.h.
Referenced by addColorRamp(), addSymbol(), editColorRamp(), editSymbol(), itemChanged(), onFinished(), removeColorRamp(), and removeSymbol().
QgsStyleV2* QgsStyleV2ManagerDialog::mStyle [protected] |
Definition at line 135 of file qgsstylev2managerdialog.h.
Referenced by addColorRamp(), addGroup(), addSymbol(), buildGroupTree(), editColorRamp(), editSmartgroupAction(), editSymbol(), exportItems(), filterSymbols(), groupChanged(), groupRenamed(), importItems(), itemChanged(), listitemsContextMenu(), onFinished(), populateColorRamps(), populateGroups(), populateSymbols(), populateTypes(), regrouped(), removeColorRamp(), removeGroup(), removeSymbol(), symbolSelected(), and tagsChanged().
QString QgsStyleV2ManagerDialog::mStyleFilename [protected] |
Definition at line 137 of file qgsstylev2managerdialog.h.
QStringList QgsStyleV2ManagerDialog::mTagList [protected] |
space to store symbol tags
Definition at line 145 of file qgsstylev2managerdialog.h.
Referenced by symbolSelected(), and tagsChanged().