QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
qgsstylev2groupselectiondialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsstylev2groupselectiondialog.h
3  ---------------------
4  begin : Oct 2015
5  copyright : (C) 2015 by Alessandro Pasotti
6  email : elpaso at itopen dot it
7 
8  ***************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  ***************************************************************************/
16 
17 #ifndef QGSSTYLEV2GROUPSELECTIONDIALOG_H
18 #define QGSSTYLEV2GROUPSELECTIONDIALOG_H
19 
20 #include <QDialog>
21 #include <QStandardItem>
22 #include "ui_qgsstylev2groupselectiondialogbase.h"
23 
24 
25 class QgsStyleV2;
26 
30 class GUI_EXPORT QgsStyleV2GroupSelectionDialog : public QDialog, private Ui::SymbolsV2GroupSelectionDialogBase
31 {
32  Q_OBJECT
33 
34  public:
35  QgsStyleV2GroupSelectionDialog( QgsStyleV2* style, QWidget *parent = nullptr );
38  void setBold( QStandardItem *item );
39 
40  signals:
42  void groupSelected( const QString& groupName );
44  void groupDeselected( const QString& groupName );
46  void smartgroupSelected( const QString& groupName );
48  void smartgroupDeselected( const QString& groupName );
50  void allDeselected();
52  void allSelected();
53 
54  private slots:
55  void groupTreeSelectionChanged( const QItemSelection& selected, const QItemSelection& deselected );
56 
57  private:
62  void buildGroupTree( QStandardItem *&parent );
63  QgsStyleV2* mStyle;
64 
65 };
66 
67 #endif // QGSSTYLEV2GROUPSELECTIONDIALOG_H