QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
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
***************************************************************************/
15
#include "
qgsmaplayerconfigwidget.h
"
16
17
#include "
qgslayertreegroup.h
"
18
#include "
qgspanelwidget.h
"
19
20
#include "moc_qgsmaplayerconfigwidget.cpp"
21
22
//
23
// QgsMapLayerConfigWidgetContext
24
//
25
26
void
QgsMapLayerConfigWidgetContext::setLayerTreeGroup
(
QgsLayerTreeGroup
*group )
27
{
28
mLayerTreeGroup = group;
29
}
30
31
QgsLayerTreeGroup
*
QgsMapLayerConfigWidgetContext::layerTreeGroup
()
const
32
{
33
return
mLayerTreeGroup;
34
}
35
36
//
37
// QgsMapLayerConfigWidget
38
//
39
40
QgsMapLayerConfigWidget::QgsMapLayerConfigWidget
(
QgsMapLayer
*
layer
,
QgsMapCanvas
*canvas, QWidget *parent )
41
:
QgsPanelWidget
( parent )
42
,
mLayer
(
layer
)
43
,
mMapCanvas
( canvas )
44
{}
45
46
QgsMapLayer
*
QgsMapLayerConfigWidget::layer
()
47
{
48
return
mLayer
;
49
}
50
51
void
QgsMapLayerConfigWidget::setMapLayerConfigWidgetContext
(
const
QgsMapLayerConfigWidgetContext
&context )
52
{
53
mMapLayerConfigWidgetContext
= context;
54
}
55
56
void
QgsMapLayerConfigWidget::focusDefaultWidget
()
57
{}
QgsLayerTreeGroup
Layer tree group node serves as a container for layers and further groups.
Definition
qgslayertreegroup.h:45
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition
qgsmapcanvas.h:96
QgsMapLayerConfigWidgetContext
Encapsulates the context for a QgsMapLayerConfigWidget.
Definition
qgsmaplayerconfigwidget.h:37
QgsMapLayerConfigWidgetContext::layerTreeGroup
QgsLayerTreeGroup * layerTreeGroup() const
Returns the layer tree group associated with the widget.
Definition
qgsmaplayerconfigwidget.cpp:31
QgsMapLayerConfigWidgetContext::setLayerTreeGroup
void setLayerTreeGroup(QgsLayerTreeGroup *group)
Sets the layer tree group associated with the widget.
Definition
qgsmaplayerconfigwidget.cpp:26
QgsMapLayerConfigWidget::setMapLayerConfigWidgetContext
virtual void setMapLayerConfigWidgetContext(const QgsMapLayerConfigWidgetContext &context)
Sets the context under which the widget is being shown.
Definition
qgsmaplayerconfigwidget.cpp:51
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:40
QgsMapLayerConfigWidget::mLayer
QPointer< QgsMapLayer > mLayer
Definition
qgsmaplayerconfigwidget.h:191
QgsMapLayerConfigWidget::mMapCanvas
QgsMapCanvas * mMapCanvas
Definition
qgsmaplayerconfigwidget.h:192
QgsMapLayerConfigWidget::mMapLayerConfigWidgetContext
QgsMapLayerConfigWidgetContext mMapLayerConfigWidgetContext
Definition
qgsmaplayerconfigwidget.h:193
QgsMapLayerConfigWidget::focusDefaultWidget
virtual void focusDefaultWidget()
Focuses the default widget for the page.
Definition
qgsmaplayerconfigwidget.cpp:56
QgsMapLayerConfigWidget::layer
QgsMapLayer * layer()
Returns the layer the widget is associated with.
Definition
qgsmaplayerconfigwidget.cpp:46
QgsMapLayer
Base class for all map layer types.
Definition
qgsmaplayer.h:83
QgsPanelWidget::QgsPanelWidget
QgsPanelWidget(QWidget *parent=nullptr)
Base class for any widget that can be shown as an inline panel.
Definition
qgspanelwidget.cpp:30
qgslayertreegroup.h
qgsmaplayerconfigwidget.h
qgspanelwidget.h
Generated on
for QGIS API Documentation by
1.17.0