QGIS API Documentation 3.41.0-Master (45a0abf3bec)
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#include "moc_qgsmaplayerconfigwidget.cpp"
17#include "qgspanelwidget.h"
18#include "qgslayertreegroup.h"
19
20//
21// QgsMapLayerConfigWidgetContext
22//
23
25{
26 mLayerTreeGroup = group;
27}
28
30{
31 return mLayerTreeGroup;
32}
33
34//
35// QgsMapLayerConfigWidget
36//
37
39 : QgsPanelWidget( parent )
40 , mLayer( layer )
41 , mMapCanvas( canvas )
42{
43
44}
45
50
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.
QgsMapLayerConfigWidgetContext mMapLayerConfigWidgetContext
virtual void focusDefaultWidget()
Focuses the default widget for the page.
Base class for all map layer types.
Definition qgsmaplayer.h:76
Base class for any widget that can be shown as a inline panel.