Loading...
Searching...
No Matches
ConstraintsIndexesPropertyDialog.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/property/ConstraintsIndexesPropertyDialog.h
22
23 \brief A class used to define a constraint or index property creator.
24*/
25
26#ifndef __TERRALIB_QT_WIDGETS_PROPERTY_INTERNAL_CONSTRAINTSINDEXESPROPERTYDIALOG_H
27#define __TERRALIB_QT_WIDGETS_PROPERTY_INTERNAL_CONSTRAINTSINDEXESPROPERTYDIALOG_H
28
29// TerraLib
30#ifndef Q_MOC_RUN
31#include "../../../dataaccess/dataset/DataSetType.h"
32#endif
33#include "../Config.h"
34
35
36// Qt
37#include <QDialog>
38#include <QGridLayout>
39
40namespace Ui { class ConstraintsIndexesPropertyDialogForm; }
41
42namespace te
43{
44 namespace da
45 {
46 class Constraint;
47 class Index;
48 }
49
50 namespace qt
51 {
52 namespace widgets
53 {
54 class PrimaryKeyConstraintWidget;
55 class UniqueKeyConstraintWidget;
56 class IndexWidget;
57
58 /*!
59 \class ConstraintsIndexesPropertyDialog
60
61 \brief A dialog for creating a constraint or a index property.
62 */
64 {
65 Q_OBJECT
66
67 public:
68
69 ConstraintsIndexesPropertyDialog(te::da::DataSetType* dsType, QWidget* parent = 0, Qt::WindowFlags f = 0);
70
72
74
75 void setIndex(te::da::Index* index);
76
77 public slots:
78
79 void onpkRadioButtonToggled(bool status);
80 void onukRadioButtonToggled(bool status);
81 void onidxRadioButtonToggled(bool status);
83
84 protected:
85
86 void freeWidget();
87
88 private:
89
90 std::unique_ptr<Ui::ConstraintsIndexesPropertyDialogForm> m_ui;
95
96 QGridLayout* m_widgetLayout;
97 };
98 } // end namespace widgets
99 } // end namespace qt
100} // end namespace te
101
102#endif // __TERRALIB_QT_WIDGETS_PROPERTY_INTERNAL_CONSTRAINTSINDEXESPROPERTYDIALOG_H
103
A class that models the description of a dataset.
Definition: DataSetType.h:73
It describes an index associated to a DataSetType.
Definition: Index.h:53
A dialog for creating a constraint or a index property.
te::qt::widgets::UniqueKeyConstraintWidget * m_ukConstraintWidget
ConstraintsIndexesPropertyDialog(te::da::DataSetType *dsType, QWidget *parent=0, Qt::WindowFlags f=0)
te::qt::widgets::PrimaryKeyConstraintWidget * m_pkConstraintWidget
void setConstraint(te::da::Constraint *constraint)
std::unique_ptr< Ui::ConstraintsIndexesPropertyDialogForm > m_ui
This class is used to define a Index DataSet class object.
Definition: IndexWidget.h:56
This class is used to define a Primare Key Constraint DataSet class object.
This class is used to define a Unique Key Constraint DataSet class object.
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