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

Inheritance diagram for QgsCustomLayerOrderWidget:
Inheritance graph
[legend]

Public Member Functions

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

Protected Slots

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

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

Definition at line 38 of file qgscustomlayerorderwidget.h.

Constructor & Destructor Documentation

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

Definition at line 176 of file qgscustomlayerorderwidget.cpp.

Member Function Documentation

void QgsCustomLayerOrderWidget::bridgeCustomLayerOrderChanged ( const QStringList &  order)
protectedslot

Definition at line 217 of file qgscustomlayerorderwidget.cpp.

void QgsCustomLayerOrderWidget::bridgeHasCustomLayerOrderChanged ( bool  override)
protectedslot

Definition at line 210 of file qgscustomlayerorderwidget.cpp.

void QgsCustomLayerOrderWidget::modelUpdated ( )
protectedslot

Definition at line 232 of file qgscustomlayerorderwidget.cpp.

void QgsCustomLayerOrderWidget::nodeVisibilityChanged ( QgsLayerTreeNode node,
Qt::CheckState  state 
)
protectedslot

Definition at line 223 of file qgscustomlayerorderwidget.cpp.

Member Data Documentation

QgsLayerTreeMapCanvasBridge* QgsCustomLayerOrderWidget::mBridge
protected

Definition at line 54 of file qgscustomlayerorderwidget.h.

QCheckBox* QgsCustomLayerOrderWidget::mChkOverride
protected

Definition at line 56 of file qgscustomlayerorderwidget.h.

CustomLayerOrderModel* QgsCustomLayerOrderWidget::mModel
protected

Definition at line 57 of file qgscustomlayerorderwidget.h.

QListView* QgsCustomLayerOrderWidget::mView
protected

Definition at line 58 of file qgscustomlayerorderwidget.h.


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