Loading...
Searching...
No Matches
CreateRuleDialog.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/CreateRuleDialog.h
22
23 \brief A dialog used to create a rule and define the filter restriction.
24*/
25
26#ifndef __TERRALIB_QT_WIDGETS_SE_INTERNAL_CREATERULEDIALOG_H
27#define __TERRALIB_QT_WIDGETS_SE_INTERNAL_CREATERULEDIALOG_H
28
29// TerraLib
30#include "../Config.h"
31#include "../query/QueryBuilderWidget.h"
32
33#ifndef Q_MOC_RUN
34#include "../../../maptools/AbstractLayer.h"
35#include "../../../se/Rule.h"
36#endif
37
38// Qt
39#include <QDialog>
40
41// STL
42#include <memory>
43
44// Forward declaraion
45namespace Ui { class CreateRuleDialogForm; }
46
47namespace te
48{
49// Forward declarations
50 namespace se
51 {
52 class Rule;
53 }
54
55 namespace qt
56 {
57 namespace widgets
58 {
59// Forward declarations
60
61 /*!
62 \class CreateRuleDialog
63
64 \brief A dialog used to create a rule and define the filter restriction.
65 */
66 class TEQTWIDGETSEXPORT CreateRuleDialog : public QDialog
67 {
68 Q_OBJECT
69
70 public:
71
72 /** @name Initializer Methods
73 * Methods related to instantiation and destruction.
74 */
75 //@{
76
77 /*! \brief Constructs a basic fill dialog which is a child of parent, with widget flags set to f. */
78 CreateRuleDialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
79
80 /*! \brief Destructor. */
82
83 //@}
84
85 public:
86 /*!
87 \brief This method is used to set current layer
88
89 */
90 void setDataInformation(std::string dataSourceId, std::string dataSetName);
91
92 void setRule(te::se::Rule* rule);
93
95
97
99
101
102 void setFilterGroupBoxChecked(bool check);
103
104 protected slots:
105
107
108
109 private:
110
112
114
115 std::unique_ptr<Ui::CreateRuleDialogForm> m_ui; //!< Dialog form.
116
118 };
119
120 } // end namespace widgets
121 } // end namespace qt
122} // end namespace te
123
124#endif // __TERRALIB_QT_WIDGETS_SE_INTERNAL_CREATERULEDIALOG_H
A dialog used to create a rule and define the filter restriction.
CreateRuleDialog(QWidget *parent=0, Qt::WindowFlags f=0)
Constructs a basic fill dialog which is a child of parent, with widget flags set to f.
te::qt::widgets::QueryBuilderWidget * m_queryWidget
void setDataInformation(std::string dataSourceId, std::string dataSetName)
This method is used to set current layer.
std::unique_ptr< Ui::CreateRuleDialogForm > m_ui
Dialog form.
void setRule(te::se::Rule *rule)
void setFilterGroupBoxCheckable(bool check)
void setFilterGroupBoxChecked(bool check)
This class is used to define the Where Clause object of select operation.
A Rule is used to attach property/scale conditions to and group the individual symbols used for rende...
Definition: Rule.h:77
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
Definition: Enums.h:42
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