QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
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 }
QgsMapLayerConfigWidgetContext::setLayerTreeGroup
void setLayerTreeGroup(QgsLayerTreeGroup *group)
Sets the layer tree group associated with the widget.
Definition: qgsmaplayerconfigwidget.cpp:23
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition: qgsmapcanvas.h:89
QgsMapLayerConfigWidget::QgsMapLayerConfigWidget
QgsMapLayerConfigWidget(QgsMapLayer *layer, QgsMapCanvas *canvas, QWidget *parent=nullptr)
A panel widget that can be shown in the map style dock.
Definition: qgsmaplayerconfigwidget.cpp:37
QgsMapLayerConfigWidgetContext::layerTreeGroup
QgsLayerTreeGroup * layerTreeGroup() const
Returns the layer tree group associated with the widget.
Definition: qgsmaplayerconfigwidget.cpp:28
QgsPanelWidget
Base class for any widget that can be shown as a inline panel.
Definition: qgspanelwidget.h:29
qgslayertreegroup.h
QgsMapLayerConfigWidget::setMapLayerConfigWidgetContext
virtual void setMapLayerConfigWidgetContext(const QgsMapLayerConfigWidgetContext &context)
Sets the context under which the widget is being shown.
Definition: qgsmaplayerconfigwidget.cpp:45
QgsLayerTreeGroup
Layer tree group node serves as a container for layers and further groups.
Definition: qgslayertreegroup.h:40
QgsMapLayerConfigWidgetContext
Encapsulates the context for a QgsMapLayerConfigWidget.
Definition: qgsmaplayerconfigwidget.h:36
qgsmaplayerconfigwidget.h
QgsMapLayer
Base class for all map layer types. This is the base class for all map layer types (vector,...
Definition: qgsmaplayer.h:72
QgsMapLayerConfigWidget::mMapLayerConfigWidgetContext
QgsMapLayerConfigWidgetContext mMapLayerConfigWidgetContext
Definition: qgsmaplayerconfigwidget.h:184
qgspanelwidget.h
QgsMapLayerConfigWidget::focusDefaultWidget
virtual void focusDefaultWidget()
Focuses the default widget for the page.
Definition: qgsmaplayerconfigwidget.cpp:50