QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
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_qgslayertreeembeddedconfigwidget.h"
20 
21 class QgsMapLayer;
22 
28 class GUI_EXPORT QgsLayerTreeEmbeddedConfigWidget : public QWidget, protected Ui::QgsLayerTreeEmbeddedConfigWidget
29 {
30  Q_OBJECT
31  public:
36  QgsLayerTreeEmbeddedConfigWidget( QWidget* parent = nullptr );
37 
39  void setLayer( QgsMapLayer* layer );
40 
42  void applyToLayer();
43 
44  private slots:
45  void onAddClicked();
46  void onRemoveClicked();
47 
48  private:
49  QgsMapLayer* mLayer;
50 };
51 
52 #endif // QGSLAYERTREEEMBEDDEDCONFIGWIDGET_H
Base class for all map layer types.
Definition: qgsmaplayer.h:49
A widget to configure layer tree embedded widgets for a particular map layer.