QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
QgsStyleV2ManagerDialog Class Reference

#include <qgsstylev2managerdialog.h>

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 *) override
 Event filter to capture tagsLineEdit out of focus.
void populateColorRamps (QStringList colorRamps, bool checkable=false)
 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

QgsStyleV2ManagerDialog::QgsStyleV2ManagerDialog ( QgsStyleV2 style,
QWidget *  parent = NULL 
)

Definition at line 44 of file qgsstylev2managerdialog.cpp.

Member Function Documentation

bool QgsStyleV2ManagerDialog::addColorRamp ( QAction *  action)
protectedslot

Definition at line 540 of file qgsstylev2managerdialog.cpp.

bool QgsStyleV2ManagerDialog::addColorRamp ( )
protected

add a new color ramp to style

Definition at line 535 of file qgsstylev2managerdialog.cpp.

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 407 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::addGroup ( )
slot

Definition at line 879 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::addItem ( )
slot

Definition at line 302 of file qgsstylev2managerdialog.cpp.

bool QgsStyleV2ManagerDialog::addSymbol ( )
protected

add a new symbol to style

Definition at line 325 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::buildGroupTree ( QStandardItem *&  parent)
protected

build the groups tree

Definition at line 804 of file qgsstylev2managerdialog.cpp.

QString QgsStyleV2ManagerDialog::currentItemName ( )
protected

Definition at line 294 of file qgsstylev2managerdialog.cpp.

int QgsStyleV2ManagerDialog::currentItemType ( )
protected

Definition at line 282 of file qgsstylev2managerdialog.cpp.

bool QgsStyleV2ManagerDialog::editColorRamp ( )
protected

Definition at line 597 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::editItem ( )
slot

Definition at line 555 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::editSmartgroupAction ( )
slot

edit the selected smart group

Definition at line 1338 of file qgsstylev2managerdialog.cpp.

bool QgsStyleV2ManagerDialog::editSymbol ( )
protected

Definition at line 575 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::enableGroupInputs ( bool  enable)
protected

Enables or disables the groupTree specific inputs.

Definition at line 1213 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::enableItemsForGroupingMode ( bool  enable)
protected

Enables or diables the groupTree items for grouping mode.

Definition at line 1220 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::enableSymbolInputs ( bool  enable)
protected

Enables or disbables the symbol specific inputs.

Definition at line 1203 of file qgsstylev2managerdialog.cpp.

bool QgsStyleV2ManagerDialog::eventFilter ( QObject *  obj,
QEvent *  event 
)
overrideprotected

Event filter to capture tagsLineEdit out of focus.

Definition at line 1375 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::exportItems ( )
slot

Definition at line 737 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::filterSymbols ( QString  qword)
slot

filter the symbols based on input search term

Definition at line 1127 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::groupChanged ( const QModelIndex &  index)
slot

Definition at line 818 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::groupRenamed ( QStandardItem *  item)
slot

Definition at line 978 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::groupSymbolsAction ( )
slot

carryout symbol grouping using check boxes

Definition at line 1022 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::grouptreeContextMenu ( const QPoint &  point)
slot

Context menu for the groupTree.

Definition at line 1256 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::importItems ( )
slot

Definition at line 743 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::itemChanged ( QStandardItem *  item)
slot

Definition at line 709 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::listitemsContextMenu ( const QPoint &  point)
slot

Context menu for the listItems ( symbols list )

Definition at line 1296 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::on_buttonBox_helpRequested ( )
inlineslot

Definition at line 54 of file qgsstylev2managerdialog.h.

void QgsStyleV2ManagerDialog::on_tabItemType_currentChanged ( int  )
slot

Definition at line 182 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::onFinished ( )
slot

called when the dialog is going to be closed

Definition at line 130 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::populateColorRamps ( QStringList  colorRamps,
bool  checkable = false 
)
protected

populate list view with color ramps

Definition at line 261 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::populateGroups ( )
protected

populate the groups

Definition at line 758 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::populateList ( )
slot

adds symbols of some type to list

Definition at line 224 of file qgsstylev2managerdialog.cpp.

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 234 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::populateTypes ( )
protected

populate combo box with known style items (symbols, color ramps)

Definition at line 142 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::regrouped ( QStandardItem *  item)
slot

symbol changed from one group

Definition at line 1091 of file qgsstylev2managerdialog.cpp.

bool QgsStyleV2ManagerDialog::removeColorRamp ( )
protected

Definition at line 698 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::removeGroup ( )
slot

Definition at line 941 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::removeItem ( )
slot

Definition at line 661 of file qgsstylev2managerdialog.cpp.

bool QgsStyleV2ManagerDialog::removeSymbol ( )
protected

Definition at line 684 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::setBold ( QStandardItem *  item)
protected

sets the text of the item with bold font

Definition at line 751 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::setSymbolsChecked ( QStringList  symbols)
protected

to set symbols checked when in editing mode

Definition at line 1116 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::symbolSelected ( const QModelIndex &  index)
slot

Perform symbol specific tasks when selected.

Definition at line 1193 of file qgsstylev2managerdialog.cpp.

void QgsStyleV2ManagerDialog::tagsChanged ( )
slot

Listen to tag changes.

Definition at line 1142 of file qgsstylev2managerdialog.cpp.

Member Data Documentation

bool QgsStyleV2ManagerDialog::mGrouppingMode
protected

Mode to display the symbol list.

Definition at line 142 of file qgsstylev2managerdialog.h.

bool QgsStyleV2ManagerDialog::mModified
protected

Definition at line 139 of file qgsstylev2managerdialog.h.

QgsStyleV2* QgsStyleV2ManagerDialog::mStyle
protected

Definition at line 135 of file qgsstylev2managerdialog.h.

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.


The documentation for this class was generated from the following files: