QGIS API Documentation 3.41.0-Master (57ec4277f5e)
Loading...
Searching...
No Matches
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#include "qgis.h"
21#include "qgis_gui.h"
22
23class QgsMapLayer;
24
30class GUI_EXPORT QgsLayerTreeEmbeddedConfigWidget : public QWidget, protected Ui::QgsLayerTreeEmbeddedConfigWidgetBase
31{
32 Q_OBJECT
33 public:
38 QgsLayerTreeEmbeddedConfigWidget( QWidget *parent SIP_TRANSFERTHIS = nullptr );
39
41 void setLayer( QgsMapLayer *layer );
42
44 void applyToLayer();
45
46 private slots:
47 void onAddClicked();
48 void onRemoveClicked();
49
50 private:
51 QgsMapLayer *mLayer = nullptr;
52};
53
54#endif // QGSLAYERTREEEMBEDDEDCONFIGWIDGET_H
A widget to configure layer tree embedded widgets for a particular map layer.
Base class for all map layer types.
Definition qgsmaplayer.h:76
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53