QGIS API Documentation  2.6.0-Brighton
 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 addItem ()
void editItem ()
void removeItem ()
void exportItems ()
void importItems ()
void on_tabItemType_currentChanged (int)
void populateList ()
 adds symbols of some type to list
void onFinished ()
 called when the dialog is going to be closed
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
void editSmartgroupAction ()
 edit the selected smart group
void regrouped (QStandardItem *)
 symbol changed from one group
void filterSymbols (QString)
 filter the symbols based on input search term
void tagsChanged ()
 Listen to tag changes.
void symbolSelected (const QModelIndex &)
 Perform symbol specific tasks when selected.
void grouptreeContextMenu (const QPoint &)
 Context menu for the groupTree.
void listitemsContextMenu (const QPoint &)
 Context menu for the listItems ( symbols list )

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

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

Protected Attributes

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

Constructor & Destructor Documentation

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

Member Function Documentation

bool QgsStyleV2ManagerDialog::addColorRamp ( QAction *  action)
protectedslot
bool QgsStyleV2ManagerDialog::addColorRamp ( )
protected

add a new color ramp to style

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

void QgsStyleV2ManagerDialog::addGroup ( )
slot
void QgsStyleV2ManagerDialog::addItem ( )
slot
bool QgsStyleV2ManagerDialog::addSymbol ( )
protected

add a new symbol to style

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

build the groups tree

QString QgsStyleV2ManagerDialog::currentItemName ( )
protected
int QgsStyleV2ManagerDialog::currentItemType ( )
protected
bool QgsStyleV2ManagerDialog::editColorRamp ( )
protected
void QgsStyleV2ManagerDialog::editItem ( )
slot
void QgsStyleV2ManagerDialog::editSmartgroupAction ( )
slot

edit the selected smart group

bool QgsStyleV2ManagerDialog::editSymbol ( )
protected
void QgsStyleV2ManagerDialog::enableGroupInputs ( bool  enable)
protected

Enables or disables the groupTree specific inputs.

void QgsStyleV2ManagerDialog::enableItemsForGroupingMode ( bool  enable)
protected

Enables or diables the groupTree items for grouping mode.

void QgsStyleV2ManagerDialog::enableSymbolInputs ( bool  enable)
protected

Enables or disbables the symbol specific inputs.

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

Event filter to capture tagsLineEdit out of focus.

void QgsStyleV2ManagerDialog::exportItems ( )
slot
void QgsStyleV2ManagerDialog::filterSymbols ( QString  qword)
slot

filter the symbols based on input search term

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

carryout symbol grouping using check boxes

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

Context menu for the groupTree.

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

Context menu for the listItems ( symbols list )

void QgsStyleV2ManagerDialog::on_buttonBox_helpRequested ( )
inlineslot
void QgsStyleV2ManagerDialog::on_tabItemType_currentChanged ( int  )
slot
void QgsStyleV2ManagerDialog::onFinished ( )
slot

called when the dialog is going to be closed

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

populate list view with color ramps

void QgsStyleV2ManagerDialog::populateGroups ( )
protected

populate the groups

void QgsStyleV2ManagerDialog::populateList ( )
slot

adds symbols of some type to list

void QgsStyleV2ManagerDialog::populateSymbols ( QStringList  symbolNames,
bool  checkable = false 
)
protected

populate list view with symbols of the current type with the given names

void QgsStyleV2ManagerDialog::populateTypes ( )
protected

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

void QgsStyleV2ManagerDialog::regrouped ( QStandardItem *  item)
slot

symbol changed from one group

bool QgsStyleV2ManagerDialog::removeColorRamp ( )
protected
void QgsStyleV2ManagerDialog::removeGroup ( )
slot
void QgsStyleV2ManagerDialog::removeItem ( )
slot
bool QgsStyleV2ManagerDialog::removeSymbol ( )
protected
void QgsStyleV2ManagerDialog::setBold ( QStandardItem *  item)
protected

sets the text of the item with bold font

void QgsStyleV2ManagerDialog::setSymbolsChecked ( QStringList  symbols)
protected

to set symbols checked when in editing mode

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

Perform symbol specific tasks when selected.

void QgsStyleV2ManagerDialog::tagsChanged ( )
slot

Listen to tag changes.

Member Data Documentation

bool QgsStyleV2ManagerDialog::mGrouppingMode
protected

Mode to display the symbol list.

bool QgsStyleV2ManagerDialog::mModified
protected
QgsStyleV2* QgsStyleV2ManagerDialog::mStyle
protected
QString QgsStyleV2ManagerDialog::mStyleFilename
protected
QStringList QgsStyleV2ManagerDialog::mTagList
protected

space to store symbol tags


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