SymbolGroupDialog.h
Go to the documentation of this file.
1 /* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file terralib/qt/widgets/se/SymbolSelectorDialog.h
22 
23  \brief A dialog used to create or edit a specific symbol.
24 */
25 
26 #ifndef __TERRALIB_QT_WIDGETS_SE_INTERNAL_SYMBOL_GROUP_DIALOG_H
27 #define __TERRALIB_QT_WIDGETS_SE_INTERNAL_SYMBOL_GROUP_DIALOG_H
28 
29 // TerraLib
30 #include "../Config.h"
31 
32 // Qt
33 #include <QDialog>
34 
35 // STL
36 #include <string>
37 #include <memory>
38 
39 namespace Ui
40 {
41  class SymbolGroupDialogForm;
42 }
43 
44 namespace te
45 {
46  namespace qt
47  {
48  namespace widgets
49  {
50 
51  /*!
52  \class SymbolSelectorDialog
53 
54  \brief A dialog used to create or edit a specific symbol.
55  */
56  class TEQTWIDGETSEXPORT SymbolGroupDialog : public QDialog
57  {
58  Q_OBJECT
59 
60  public:
61 
62  /** @name Initializer Methods
63  * Methods related to instantiation and destruction.
64  */
65  //@{
66 
67  /*!
68  \brief Constructs
69 
70  \note
71  */
72  SymbolGroupDialog(QWidget* parent = nullptr, Qt::WindowFlags f = nullptr);
73 
74  /*!
75  \brief Constructs
76 
77  \note
78  */
79  SymbolGroupDialog(const std::string& groupName, QWidget* parent = nullptr, Qt::WindowFlags f = nullptr);
80 
81  /*! \brief Destructor. */
82  virtual ~SymbolGroupDialog();
83 
84  /*!
85  \brief Gets the selected symbol.
86 
87  \return The selected fill element.
88 
89  \note The caller will take the ownership of the returned symbol.
90  \note It return a NULL pointer if there is not a symbol yet created.
91  */
92  virtual std::string getGroupName();
93 
94  virtual void setGroupName(const std::string& groupName);
95 
96  protected slots:
97 
99 
101 
103 
104  protected:
105 
106  void initialize();
107 
108  private:
109 
110  std::unique_ptr<Ui::SymbolGroupDialogForm> m_ui; //!< Dialog form.
111  std::string m_groupName; //!< Group name
112  };
113 
114  } // end namespace widgets
115  } // end namespace qt
116 } // end namespace te
117 
118 #endif // __TERRALIB_QT_WIDGETS_SE_INTERNAL_SYMBOL_EDITINFO_WIDGET_H
virtual ~SymbolGroupDialog()
Destructor.
virtual void setGroupName(const std::string &groupName)
SymbolGroupDialog(QWidget *parent=nullptr, Qt::WindowFlags f=nullptr)
Constructs.
SymbolGroupDialog(const std::string &groupName, QWidget *parent=nullptr, Qt::WindowFlags f=nullptr)
Constructs.
virtual std::string getGroupName()
Gets the selected symbol.
std::unique_ptr< Ui::SymbolGroupDialogForm > m_ui
Dialog form.
TerraLib.
#define slots
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63