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

The QgsCustomLayerOrderWidget class provides a list box where the user can define custom order for drawing of layers. More...

#include <qgscustomlayerorderwidget.h>

Public Member Functions

 QgsCustomLayerOrderWidget (QgsLayerTreeMapCanvasBridge *bridge, QWidget *parent=0)

Protected Slots

void bridgeHasCustomLayerOrderChanged (bool override)
void bridgeCustomLayerOrderChanged (const QStringList &order)
void nodeVisibilityChanged (QgsLayerTreeNode *node, Qt::CheckState state)
void modelUpdated ()

Protected Attributes

QgsLayerTreeMapCanvasBridgemBridge
QCheckBox * mChkOverride
CustomLayerOrderModelmModel
QListView * mView

Detailed Description

The QgsCustomLayerOrderWidget class provides a list box where the user can define custom order for drawing of layers.

It also features a checkbox for enabling or disabling the custom order. Any changes made by the user are automatically propagated to the assigned QgsLayerTreeMapCanvasBridge. Also, any updates to the layer tree cause refresh of the list.

See Also
QgsLayerTreeMapCanvasBridge
Note
added in 2.4

Constructor & Destructor Documentation

QgsCustomLayerOrderWidget::QgsCustomLayerOrderWidget ( QgsLayerTreeMapCanvasBridge bridge,
QWidget *  parent = 0 
)
explicit

Member Function Documentation

void QgsCustomLayerOrderWidget::bridgeCustomLayerOrderChanged ( const QStringList &  order)
protectedslot
void QgsCustomLayerOrderWidget::bridgeHasCustomLayerOrderChanged ( bool  override)
protectedslot
void QgsCustomLayerOrderWidget::modelUpdated ( )
protectedslot
void QgsCustomLayerOrderWidget::nodeVisibilityChanged ( QgsLayerTreeNode node,
Qt::CheckState  state 
)
protectedslot

Member Data Documentation

QgsLayerTreeMapCanvasBridge* QgsCustomLayerOrderWidget::mBridge
protected
QCheckBox* QgsCustomLayerOrderWidget::mChkOverride
protected
CustomLayerOrderModel* QgsCustomLayerOrderWidget::mModel
protected
QListView* QgsCustomLayerOrderWidget::mView
protected

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