QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
QgsSymbolV2SelectorDialog Class Reference

#include <qgssymbolv2selectordialog.h>

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

Public Slots

void moveLayerDown ()
 
void moveLayerUp ()
 
void addLayer ()
 
void removeLayer ()
 
void saveSymbol ()
 
void lockLayer ()
 
void layerChanged ()
 
void updateLayerPreview ()
 
void updatePreview ()
 
void symbolChanged ()
 Slot to update tree when a new symbol from style. More...
 
void changeLayer (QgsSymbolLayerV2 *layer)
 alters tree and sets proper widget when Layer Type is changed More...
 

Signals

void symbolModified ()
 

Public Member Functions

 QgsSymbolV2SelectorDialog (QgsSymbolV2 *symbol, QgsStyleV2 *style, const QgsVectorLayer *vl, QWidget *parent=0, bool embedded=false)
 
QMenu * advancedMenu ()
 return menu for "advanced" button - create it if doesn't exist and show the advanced button More...
 

Protected Member Functions

void keyPressEvent (QKeyEvent *event)
 Reimplements dialog keyPress event so we can ignore it. More...
 
void loadSymbol ()
 
void loadSymbol (QgsSymbolV2 *symbol, SymbolLayerItem *parent)
 
void updateUi ()
 
void updateLockButton ()
 
SymbolLayerItemcurrentLayerItem ()
 
QgsSymbolLayerV2currentLayer ()
 
void moveLayerByOffset (int offset)
 
void setWidget (QWidget *widget)
 

Protected Attributes

QgsStyleV2mStyle
 
QgsSymbolV2mSymbol
 
QMenu * mAdvancedMenu
 
const QgsVectorLayermVectorLayer
 
QStandardItemModel * model
 
QWidget * mPresentWidget
 

Detailed Description

Definition at line 35 of file qgssymbolv2selectordialog.h.

Constructor & Destructor Documentation

QgsSymbolV2SelectorDialog::QgsSymbolV2SelectorDialog ( QgsSymbolV2 symbol,
QgsStyleV2 style,
const QgsVectorLayer vl,
QWidget *  parent = 0,
bool  embedded = false 
)

Member Function Documentation

void QgsSymbolV2SelectorDialog::addLayer ( )
slot
QMenu * QgsSymbolV2SelectorDialog::advancedMenu ( )

return menu for "advanced" button - create it if doesn't exist and show the advanced button

Definition at line 207 of file qgssymbolv2selectordialog.cpp.

References layerChanged(), and mAdvancedMenu.

Referenced by QgsSingleSymbolRendererV2Widget::QgsSingleSymbolRendererV2Widget().

void QgsSymbolV2SelectorDialog::changeLayer ( QgsSymbolLayerV2 layer)
slot

alters tree and sets proper widget when Layer Type is changed

Note
: The layer is received from the LayerPropertiesWidget

Definition at line 517 of file qgssymbolv2selectordialog.cpp.

References QgsSymbolV2::changeSymbolLayer(), currentLayerItem(), SymbolLayerItem::layer(), layerChanged(), loadSymbol(), SymbolLayerItem::setLayer(), QgsSymbolLayerV2::subSymbol(), SymbolLayerItem::updatePreview(), and updatePreview().

Referenced by layerChanged().

QgsSymbolLayerV2 * QgsSymbolV2SelectorDialog::currentLayer ( )
protected
SymbolLayerItem * QgsSymbolV2SelectorDialog::currentLayerItem ( )
protected
Note
not available in python bindings

Definition at line 290 of file qgssymbolv2selectordialog.cpp.

References SymbolLayerItem::isLayer(), and model.

Referenced by changeLayer(), moveLayerByOffset(), removeLayer(), and updateLayerPreview().

void QgsSymbolV2SelectorDialog::keyPressEvent ( QKeyEvent *  event)
protected

Reimplements dialog keyPress event so we can ignore it.

Definition at line 194 of file qgssymbolv2selectordialog.cpp.

void QgsSymbolV2SelectorDialog::layerChanged ( )
slot
void QgsSymbolV2SelectorDialog::loadSymbol ( )
protected

Definition at line 241 of file qgssymbolv2selectordialog.cpp.

References model, and mSymbol.

Referenced by changeLayer(), loadSymbol(), QgsSymbolV2SelectorDialog(), and symbolChanged().

void QgsSymbolV2SelectorDialog::loadSymbol ( QgsSymbolV2 symbol,
SymbolLayerItem parent 
)
protected
Note
not available in python bindings

Definition at line 218 of file qgssymbolv2selectordialog.cpp.

References loadSymbol(), QgsSymbolLayerV2::subSymbol(), QgsSymbolV2::symbolLayer(), and QgsSymbolV2::symbolLayerCount().

void QgsSymbolV2SelectorDialog::lockLayer ( )
slot
void QgsSymbolV2SelectorDialog::moveLayerByOffset ( int  offset)
protected
void QgsSymbolV2SelectorDialog::moveLayerDown ( )
slot

Definition at line 445 of file qgssymbolv2selectordialog.cpp.

References moveLayerByOffset().

Referenced by QgsSymbolV2SelectorDialog().

void QgsSymbolV2SelectorDialog::moveLayerUp ( )
slot

Definition at line 450 of file qgssymbolv2selectordialog.cpp.

References moveLayerByOffset().

Referenced by QgsSymbolV2SelectorDialog().

void QgsSymbolV2SelectorDialog::removeLayer ( )
slot
void QgsSymbolV2SelectorDialog::saveSymbol ( )
slot
void QgsSymbolV2SelectorDialog::setWidget ( QWidget *  widget)
protected

Definition at line 373 of file qgssymbolv2selectordialog.cpp.

References index, and mPresentWidget.

Referenced by layerChanged().

void QgsSymbolV2SelectorDialog::symbolChanged ( )
slot

Slot to update tree when a new symbol from style.

Definition at line 344 of file qgssymbolv2selectordialog.cpp.

References SymbolLayerItem::isLayer(), layerChanged(), loadSymbol(), model, SymbolLayerItem::symbol(), SymbolLayerItem::updatePreview(), and updatePreview().

Referenced by layerChanged().

void QgsSymbolV2SelectorDialog::symbolModified ( )
signal

Referenced by updatePreview().

void QgsSymbolV2SelectorDialog::updateLayerPreview ( )
slot
void QgsSymbolV2SelectorDialog::updateLockButton ( )
protected

Definition at line 386 of file qgssymbolv2selectordialog.cpp.

References currentLayer(), and QgsSymbolLayerV2::isLocked().

Referenced by layerChanged().

void QgsSymbolV2SelectorDialog::updatePreview ( )
slot
void QgsSymbolV2SelectorDialog::updateUi ( )
protected

Member Data Documentation

QMenu* QgsSymbolV2SelectorDialog::mAdvancedMenu
protected

Definition at line 93 of file qgssymbolv2selectordialog.h.

Referenced by advancedMenu(), and layerChanged().

QStandardItemModel* QgsSymbolV2SelectorDialog::model
protected
QWidget* QgsSymbolV2SelectorDialog::mPresentWidget
protected

Definition at line 97 of file qgssymbolv2selectordialog.h.

Referenced by QgsSymbolV2SelectorDialog(), and setWidget().

QgsStyleV2* QgsSymbolV2SelectorDialog::mStyle
protected

Definition at line 91 of file qgssymbolv2selectordialog.h.

Referenced by layerChanged(), QgsSymbolV2SelectorDialog(), and saveSymbol().

QgsSymbolV2* QgsSymbolV2SelectorDialog::mSymbol
protected
const QgsVectorLayer* QgsSymbolV2SelectorDialog::mVectorLayer
protected

Definition at line 94 of file qgssymbolv2selectordialog.h.

Referenced by layerChanged().


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