QGIS API Documentation
3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
src
gui
layertree
qgslayertreeembeddedconfigwidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgslayertreeembeddedconfigwidget.h
3
--------------------------------------
4
Date : May 2016
5
Copyright : (C) 2016 by Martin Dobias
6
Email : wonder dot sk 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
16
#ifndef QGSLAYERTREEEMBEDDEDCONFIGWIDGET_H
17
#define QGSLAYERTREEEMBEDDEDCONFIGWIDGET_H
18
19
#include "ui_qgslayertreeembeddedconfigwidgetbase.h"
20
21
#include "
qgis.h
"
22
#include "qgis_gui.h"
23
24
class
QgsMapLayer
;
25
31
class
GUI_EXPORT
QgsLayerTreeEmbeddedConfigWidget
:
public
QWidget,
protected
Ui::QgsLayerTreeEmbeddedConfigWidgetBase
32
{
33
Q_OBJECT
34
public
:
35
40
QgsLayerTreeEmbeddedConfigWidget
( QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
);
41
43
void
setLayer
(
QgsMapLayer
*layer );
44
46
void
applyToLayer
();
47
48
private
slots:
49
void
onAddClicked();
50
void
onRemoveClicked();
51
52
private
:
53
QgsMapLayer
*mLayer =
nullptr
;
54
};
55
56
#endif
// QGSLAYERTREEEMBEDDEDCONFIGWIDGET_H
QgsLayerTreeEmbeddedConfigWidget::applyToLayer
void applyToLayer()
Store changes made in the widget to the layer.
Definition
qgslayertreeembeddedconfigwidget.cpp:103
QgsLayerTreeEmbeddedConfigWidget::QgsLayerTreeEmbeddedConfigWidget
QgsLayerTreeEmbeddedConfigWidget(QWidget *parent=nullptr)
A widget to configure layer tree embedded widgets for a particular map layer.
Definition
qgslayertreeembeddedconfigwidget.cpp:27
QgsLayerTreeEmbeddedConfigWidget::setLayer
void setLayer(QgsMapLayer *layer)
Initialize widget with a map layer.
Definition
qgslayertreeembeddedconfigwidget.cpp:34
QgsMapLayer
Base class for all map layer types.
Definition
qgsmaplayer.h:80
qgis.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:53
Generated on
for QGIS API Documentation by
1.15.0