QuickSelectDialog.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/query/QuickSelectDialog.h
22 
23  \brief This file defines a class for a Select Dialog.
24 */
25 
26 #ifndef __TERRALIB_QT_WIDGETS_QUERY_INTERNAL_QUICKSELECT_H
27 #define __TERRALIB_QT_WIDGETS_QUERY_INTERNAL_QUICKSELECT_H
28 
29 // TerraLib
30 #ifndef Q_MOC_RUN
31 #include "../../../dataaccess/datasource/DataSource.h"
32 #include "../../../dataaccess/query/Select.h"
33 #include "../../../dataaccess/query/Where.h"
34 #include "QueryBuilderWidget.h"
35 #endif
36 
37 #include "../Config.h"
38 
39 
40 // STL
41 #include <memory>
42 #include <string>
43 #include <set>
44 
45 // Qt
46 #include <QColor>
47 #include <QDialog>
48 #include <QGridLayout>
49 
50 namespace Ui { class QuickSelectDialogForm; }
51 
52 namespace te
53 {
54 // Forward declaration
55 
56  namespace qt
57  {
58  namespace widgets
59  {
60  /*!
61  \class QuickSelectDialog
62 
63  \brief This file defines a class for a Select Dialog.
64  */
65  class TEQTWIDGETSEXPORT QuickSelectDialog : public QDialog
66  {
67  Q_OBJECT
68 
69  public:
70 
71  QuickSelectDialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
72 
74 
75  public:
76 
78 
79  std::set<std::string> getFunctionsNames();
80 
82 
83  std::string getSelectString();
84 
85  protected slots:
86 
87  void onDataSetComboBoxSelected(int index);
88 
90 
92 
94 
96 
97  protected:
98 
99  std::string setAliasName(std::string value);
100 
101  private:
102 
103  std::unique_ptr<Ui::QuickSelectDialogForm> m_ui;
104 
105  QGridLayout* m_queryLayout;
106 
108 
110  };
111  } // end namespace widgets
112  } // end namespace qt
113 } // end namespace te
114 
115 #endif // __TERRALIB_QT_WIDGETS_QUERY_INTERNAL_QUICKSELECT_H
te::qt::widgets::QuickSelectDialog::m_ui
std::unique_ptr< Ui::QuickSelectDialogForm > m_ui
Definition: QuickSelectDialog.h:103
te
TerraLib.
Definition: AddressGeocodingOp.h:52
te::qt::widgets::QuickSelectDialog::m_dataSource
te::da::DataSourcePtr m_dataSource
Definition: QuickSelectDialog.h:109
te::qt::widgets::QuickSelectDialog::setInputDataSource
void setInputDataSource(te::da::DataSourcePtr dataSource)
te::qt::widgets::QuickSelectDialog::onDataSetComboBoxSelected
void onDataSetComboBoxSelected(int index)
te::qt::widgets::QuickSelectDialog
This file defines a class for a Select Dialog.
Definition: QuickSelectDialog.h:66
te::qt::widgets::QuickSelectDialog::~QuickSelectDialog
~QuickSelectDialog()
te::qt::widgets::QuickSelectDialog::setAliasName
std::string setAliasName(std::string value)
te::qt::widgets::QuickSelectDialog::onAddAttrToolButtonClicked
void onAddAttrToolButtonClicked()
TEQTWIDGETSEXPORT
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63
te::qt::widgets::QuickSelectDialog::onRemoveAttrToolButtonClicked
void onRemoveAttrToolButtonClicked()
te::qt::widgets::QuickSelectDialog::QuickSelectDialog
QuickSelectDialog(QWidget *parent=0, Qt::WindowFlags f=0)
te::qt::widgets::QuickSelectDialog::m_queryLayout
QGridLayout * m_queryLayout
Definition: QuickSelectDialog.h:105
Ui
Definition: ConfigInputAddressDialog.h:44
slots
#define slots
Definition: VirtualMachine.h:48
te::qt::widgets::QuickSelectDialog::getSelectString
std::string getSelectString()
te::qt::widgets::QuickSelectDialog::getSelect
te::da::Select getSelect()
te::da::Select
A Select models a query to be used when retrieving data from a DataSource.
Definition: Select.h:67
te::da::DataSourcePtr
boost::shared_ptr< DataSource > DataSourcePtr
Definition: DataSource.h:1449
te::qt::widgets::QuickSelectDialog::onCheckToolButtonClicked
void onCheckToolButtonClicked()
te::qt::widgets::QuickSelectDialog::getFunctionsNames
std::set< std::string > getFunctionsNames()
QueryBuilderWidget.h
This file has the QueryBuilderWidget class.
te::qt::widgets::QuickSelectDialog::m_queryWidget
te::qt::widgets::QueryBuilderWidget * m_queryWidget
Definition: QuickSelectDialog.h:107
te::qt::widgets::QuickSelectDialog::onOkPushButtonClicked
void onOkPushButtonClicked()
te::qt::widgets::QueryBuilderWidget
This class is used to define the Where Clause object of select operation.
Definition: QueryBuilderWidget.h:65