QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules 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>

Inheritance diagram for QgsStyleV2ManagerDialog:
Inheritance graph
[legend]
Collaboration diagram for QgsStyleV2ManagerDialog:
Collaboration graph
[legend]

Public Slots

void addItem ()
 
void editItem ()
 
void removeItem ()
 
void exportItems ()
 
void importItems ()
 
void on_tabItemType_currentChanged (int)
 
void populateList ()
 adds symbols of some type to list More...
 
void onFinished ()
 called when the dialog is going to be closed More...
 
void on_buttonBox_helpRequested ()
 
void itemChanged (QStandardItem *item)
 
void groupChanged (const QModelIndex &)
 
void groupRenamed (QStandardItem *)
 
void addGroup ()
 
void removeGroup ()
 
void groupSymbolsAction ()
 carryout symbol grouping using check boxes More...
 
void editSmartgroupAction ()
 edit the selected smart group More...
 
void regrouped (QStandardItem *)
 symbol changed from one group More...
 
void filterSymbols (QString)
 filter the symbols based on input search term More...
 
void tagsChanged ()
 Listen to tag changes. More...
 
void symbolSelected (const QModelIndex &)
 Perform symbol specific tasks when selected. More...
 
void grouptreeContextMenu (const QPoint &)
 Context menu for the groupTree. More...
 
void listitemsContextMenu (const QPoint &)
 Context menu for the listItems ( symbols list ) More...
 

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 More...
 

Protected Slots

bool addColorRamp (QAction *action)
 

Protected Member Functions

void populateTypes ()
 populate combo box with known style items (symbols, color ramps) More...
 
void populateGroups ()
 populate the groups More...
 
void buildGroupTree (QStandardItem *&parent)
 build the groups tree More...
 
void setSymbolsChecked (QStringList)
 to set symbols checked when in editing mode More...
 
void populateSymbols (QStringList symbolNames, bool checkable=false)
 populate list view with symbols of the current type with the given names More...
 
void populateColorRamps (QStringList colorRamps, bool checkable=false)
 populate list view with color ramps More...
 
int currentItemType ()
 
QString currentItemName ()
 
bool addSymbol ()
 add a new symbol to style More...
 
bool addColorRamp ()
 add a new color ramp to style More...
 
bool editSymbol ()
 
bool editColorRamp ()
 
bool removeSymbol ()
 
bool removeColorRamp ()
 
void enableSymbolInputs (bool)
 Enables or disbables the symbol specific inputs. More...
 
void enableGroupInputs (bool)
 Enables or disables the groupTree specific inputs. More...
 
void enableItemsForGroupingMode (bool)
 Enables or diables the groupTree items for grouping mode. More...
 
bool eventFilter (QObject *, QEvent *)
 Event filter to capture tagsLineEdit out of focus. More...
 
void setBold (QStandardItem *)
 sets the text of the item with bold font More...
 

Protected Attributes

QgsStyleV2mStyle
 
QString mStyleFilename
 
bool mModified
 
bool mGrouppingMode
 Mode to display the symbol list. More...
 
QStringList mTagList
 space to store symbol tags More...
 

Detailed Description

Definition at line 29 of file qgsstylev2managerdialog.h.

Constructor & Destructor Documentation

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

Member Function Documentation

bool QgsStyleV2ManagerDialog::addColorRamp ( QAction *  action)
protectedslot

Definition at line 540 of file qgsstylev2managerdialog.cpp.

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

bool QgsStyleV2ManagerDialog::addColorRamp ( )
protected

add a new color ramp to style

Definition at line 535 of file qgsstylev2managerdialog.cpp.

Referenced by addItem(), and on_tabItemType_currentChanged().

QString QgsStyleV2ManagerDialog::addColorRampStatic ( QWidget *  parent,
QgsStyleV2 style,
QString  RampType = QString() 
)
static
void QgsStyleV2ManagerDialog::addGroup ( )
slot
void QgsStyleV2ManagerDialog::addItem ( )
slot
bool QgsStyleV2ManagerDialog::addSymbol ( )
protected
void QgsStyleV2ManagerDialog::buildGroupTree ( QStandardItem *&  parent)
protected

build the groups tree

Definition at line 799 of file qgsstylev2managerdialog.cpp.

References QgsStyleV2::childGroupNames(), and mStyle.

Referenced by populateGroups().

QString QgsStyleV2ManagerDialog::currentItemName ( )
protected

Definition at line 294 of file qgsstylev2managerdialog.cpp.

References index.

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

int QgsStyleV2ManagerDialog::currentItemType ( )
protected
bool QgsStyleV2ManagerDialog::editColorRamp ( )
protected
void QgsStyleV2ManagerDialog::editItem ( )
slot
void QgsStyleV2ManagerDialog::editSmartgroupAction ( )
slot
bool QgsStyleV2ManagerDialog::editSymbol ( )
protected
void QgsStyleV2ManagerDialog::enableGroupInputs ( bool  enable)
protected

Enables or disables the groupTree specific inputs.

Definition at line 1208 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 1215 of file qgsstylev2managerdialog.cpp.

Referenced by groupSymbolsAction().

void QgsStyleV2ManagerDialog::enableSymbolInputs ( bool  enable)
protected

Enables or disbables the symbol specific inputs.

Definition at line 1198 of file qgsstylev2managerdialog.cpp.

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

Event filter to capture tagsLineEdit out of focus.

Definition at line 1370 of file qgsstylev2managerdialog.cpp.

References tagsChanged().

void QgsStyleV2ManagerDialog::exportItems ( )
slot

Definition at line 732 of file qgsstylev2managerdialog.cpp.

References QgsStyleV2ExportImportDialog::Export, and mStyle.

Referenced by QgsStyleV2ManagerDialog().

void QgsStyleV2ManagerDialog::filterSymbols ( QString  qword)
slot
void QgsStyleV2ManagerDialog::groupChanged ( const QModelIndex &  index)
slot
void QgsStyleV2ManagerDialog::groupRenamed ( QStandardItem *  item)
slot
void QgsStyleV2ManagerDialog::groupSymbolsAction ( )
slot

carryout symbol grouping using check boxes

Definition at line 1017 of file qgsstylev2managerdialog.cpp.

References enableItemsForGroupingMode(), groupChanged(), groupRenamed(), itemChanged(), mGrouppingMode, regrouped(), and tr.

Referenced by QgsStyleV2ManagerDialog(), and regrouped().

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

Context menu for the groupTree.

Definition at line 1251 of file qgsstylev2managerdialog.cpp.

References addGroup(), editSmartgroupAction(), index, QgsDebugMsg, removeGroup(), and tr.

Referenced by QgsStyleV2ManagerDialog().

void QgsStyleV2ManagerDialog::importItems ( )
slot
void QgsStyleV2ManagerDialog::itemChanged ( QStandardItem *  item)
slot
void QgsStyleV2ManagerDialog::listitemsContextMenu ( const QPoint &  point)
slot
void QgsStyleV2ManagerDialog::on_buttonBox_helpRequested ( )
inlineslot

Definition at line 54 of file qgsstylev2managerdialog.h.

References QgsContextHelp::run().

void QgsStyleV2ManagerDialog::on_tabItemType_currentChanged ( int  )
slot

Definition at line 182 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 130 of file qgsstylev2managerdialog.cpp.

References mModified, mStyle, and QgsStyleV2::save().

Referenced by QgsStyleV2ManagerDialog().

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

populate list view with color ramps

Definition at line 261 of file qgsstylev2managerdialog.cpp.

References QgsStyleV2::colorRamp(), QgsSymbolLayerV2Utils::colorRampPreviewIcon(), icon(), and mStyle.

Referenced by filterSymbols(), and groupChanged().

void QgsStyleV2ManagerDialog::populateGroups ( )
protected

populate the groups

Definition at line 753 of file qgsstylev2managerdialog.cpp.

References buildGroupTree(), mStyle, setBold(), QgsStyleV2::smartgroupsListMap(), and tr.

Referenced by importItems(), and QgsStyleV2ManagerDialog().

void QgsStyleV2ManagerDialog::populateList ( )
slot
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.

References currentItemType(), icon(), mStyle, QgsStyleV2::symbol(), QgsSymbolLayerV2Utils::symbolPreviewIcon(), and QgsSymbolV2::type().

Referenced by filterSymbols(), and groupChanged().

void QgsStyleV2ManagerDialog::populateTypes ( )
protected
void QgsStyleV2ManagerDialog::regrouped ( QStandardItem *  item)
slot
bool QgsStyleV2ManagerDialog::removeColorRamp ( )
protected

Definition at line 698 of file qgsstylev2managerdialog.cpp.

References currentItemName(), mModified, mStyle, and QgsStyleV2::removeColorRamp().

Referenced by removeItem().

void QgsStyleV2ManagerDialog::removeGroup ( )
slot
void QgsStyleV2ManagerDialog::removeItem ( )
slot
bool QgsStyleV2ManagerDialog::removeSymbol ( )
protected

Definition at line 684 of file qgsstylev2managerdialog.cpp.

References index, 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 746 of file qgsstylev2managerdialog.cpp.

Referenced by populateGroups().

void QgsStyleV2ManagerDialog::setSymbolsChecked ( QStringList  symbols)
protected

to set symbols checked when in editing mode

Definition at line 1111 of file qgsstylev2managerdialog.cpp.

Referenced by groupChanged().

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

Perform symbol specific tasks when selected.

Definition at line 1188 of file qgsstylev2managerdialog.cpp.

References QgsStyleV2::ColorrampEntity, currentItemType(), mStyle, mTagList, QgsStyleV2::SymbolEntity, and QgsStyleV2::tagsOfSymbol().

Referenced by QgsStyleV2ManagerDialog().

void QgsStyleV2ManagerDialog::tagsChanged ( )
slot

Member Data Documentation

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
QgsStyleV2* QgsStyleV2ManagerDialog::mStyle
protected
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().


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