QGIS API Documentation  3.25.0-Master (dec16ba68b)
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 "qgspanelwidget.h"
17 #include "qgslayertreegroup.h"
18 
19 //
20 // QgsMapLayerConfigWidgetContext
21 //
22 
24 {
25  mLayerTreeGroup = group;
26 }
27 
29 {
30  return mLayerTreeGroup;
31 }
32 
33 //
34 // QgsMapLayerConfigWidget
35 //
36 
38  : QgsPanelWidget( parent )
39  , mLayer( layer )
40  , mMapCanvas( canvas )
41 {
42 
43 }
44 
46 {
48 }
49 
51 {
52 }
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.
Definition: qgsmapcanvas.h:90
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:73
Base class for any widget that can be shown as a inline panel.