QGIS API Documentation  master-59fd5e0
QgsStyleV2ManagerDialog Class Reference

#include <qgsstylev2managerdialog.h>

+ Collaboration diagram for QgsStyleV2ManagerDialog:

List of all members.

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
QgsStyleV2mStyle
QString mStyleFilename
QStringList mTagList
 space to store symbol tags

Detailed Description

Definition at line 29 of file qgsstylev2managerdialog.h.


Constructor & Destructor Documentation


Member Function Documentation

bool QgsStyleV2ManagerDialog::addColorRamp ( QAction *  action) [protected, slot]

Definition at line 546 of file qgsstylev2managerdialog.cpp.

References addColorRampStatic(), mModified, mStyle, and populateList().

add a new color ramp to style

Definition at line 541 of file qgsstylev2managerdialog.cpp.

Referenced by addItem(), and on_tabItemType_currentChanged().

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().

Definition at line 300 of file qgsstylev2managerdialog.cpp.

Referenced by editColorRamp(), editSymbol(), and removeColorRamp().

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::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().

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().

Definition at line 54 of file qgsstylev2managerdialog.h.

References QgsContextHelp::run().

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().

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::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::regrouped ( QStandardItem *  item) [slot]

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().


Member Data Documentation

Mode to display the symbol list.

Definition at line 142 of file qgsstylev2managerdialog.h.

Referenced by groupChanged(), groupSymbolsAction(), and QgsStyleV2ManagerDialog().

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().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines