QGIS API Documentation 4.3.0-Master (b46232e4f9a)
Loading...
Searching...
No Matches
qgsmaplayerconfigwidget.cpp
Go to the documentation of this file.
1/***************************************************************************
2 qgsmaplayerconfigwidget.cpp
3 ---------------------------
4 begin : June 2016
5 copyright : (C) 2016 by Nathan Woodrow
6 email : woodrow dot nathan at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
16
17#include "qgslayertreegroup.h"
18#include "qgspanelwidget.h"
19
20#include "moc_qgsmaplayerconfigwidget.cpp"
21
22//
23// QgsMapLayerConfigWidgetContext
24//
25
27{
28 mLayerTreeGroup = group;
29}
30
32{
33 return mLayerTreeGroup;
34}
35
36//
37// QgsMapLayerConfigWidget
38//
39
41 : QgsPanelWidget( parent )
42 , mLayer( layer )
43 , mMapCanvas( canvas )
44{}
45
50
55
Layer tree group node serves as a container for layers and further groups.
Map canvas is a class for displaying all GIS data types on a canvas.
Encapsulates the context for a QgsMapLayerConfigWidget.
QgsLayerTreeGroup * layerTreeGroup() const
Returns the layer tree group associated with the widget.
void setLayerTreeGroup(QgsLayerTreeGroup *group)
Sets the layer tree group associated with the widget.
virtual void setMapLayerConfigWidgetContext(const QgsMapLayerConfigWidgetContext &context)
Sets the context under which the widget is being shown.
QgsMapLayerConfigWidget(QgsMapLayer *layer, QgsMapCanvas *canvas, QWidget *parent=nullptr)
A panel widget that can be shown in the map style dock.
QPointer< QgsMapLayer > mLayer
QgsMapLayerConfigWidgetContext mMapLayerConfigWidgetContext
virtual void focusDefaultWidget()
Focuses the default widget for the page.
QgsMapLayer * layer()
Returns the layer the widget is associated with.
Base class for all map layer types.
Definition qgsmaplayer.h:83
QgsPanelWidget(QWidget *parent=nullptr)
Base class for any widget that can be shown as an inline panel.