DataExchangerWizard.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/plugins/exchanger/DataExchangerWizard.h
22 
23  \brief A Qt dialog for ....
24 */
25 
26 #ifndef __TERRALIB_PLUGINS_EXCHANGER_INTERNAL_DATAEXCHANGERWIZARD_H
27 #define __TERRALIB_PLUGINS_EXCHANGER_INTERNAL_DATAEXCHANGERWIZARD_H
28 
29 // TerraLib
30 #ifndef Q_MOC_RUN
31 #include "../../../dataaccess/datasource/DataSourceInfo.h"
32 #endif
33 #include "../Config.h"
34 
35 // STL
36 #include <memory>
37 #include <set>
38 
39 // Qt
40 #include <QWizard>
41 
42 // Forward declaration
43 namespace Ui { class DataExchangerWizardForm; }
44 
45 namespace te
46 {
47  namespace qt
48  {
49  namespace widgets
50  {
51  class DataExchangeSummaryWizardPage;
52  class DataSetOptionsWizardPage;
53  class DataSetSelectorWizardPage;
54  class DataSourceSelectorWizardPage;
55 
56  /*!
57  \class DataExchangerWizard
58 
59  \brief Qt dialog for ....
60 
61  \ingroup widgets
62  */
63  class TEQTWIDGETSEXPORT DataExchangerWizard : public QWizard
64  {
65  Q_OBJECT
66 
67  public:
68 
69  DataExchangerWizard(QWidget* parent = 0, Qt::WindowFlags f = 0);
70 
72 
73  int nextId() const;
74 
75  te::da::DataSourceInfoPtr getDataSource() const;
76 
77  te::da::DataSourceInfoPtr getTargetDataSource() const;
78 
79  protected slots:
80 
81  void back();
82 
83  void next();
84 
85  protected:
86 
87  void exchange();
88 
89  private:
90 
91  enum
92  {
97  PAGE_SUMMARY
98  };
99 
100  std::auto_ptr<Ui::DataExchangerWizardForm> m_ui;
101  std::auto_ptr<DataSourceSelectorWizardPage> m_datasourceSelectorPage;
102  std::auto_ptr<DataSetSelectorWizardPage> m_datasetSelectorPage;
103  std::auto_ptr<DataSourceSelectorWizardPage> m_targetSelectorPage;
104  std::auto_ptr<DataSetOptionsWizardPage> m_datasetOptionsPage;
105  std::auto_ptr<DataExchangeSummaryWizardPage> m_summaryPage;
106  };
107 
108  } // end namespace widgets
109  } // end namespace qt
110 } // end namespace te
111 
112 #endif // __TERRALIB_PLUGINS_EXCHANGER_INTERNAL_DATAEXCHANGERWIZARD_H
std::auto_ptr< DataSourceSelectorWizardPage > m_datasourceSelectorPage
std::auto_ptr< DataSetOptionsWizardPage > m_datasetOptionsPage
std::auto_ptr< DataExchangeSummaryWizardPage > m_summaryPage
std::auto_ptr< Ui::DataExchangerWizardForm > m_ui
std::auto_ptr< DataSetSelectorWizardPage > m_datasetSelectorPage
URI C++ Library.
std::auto_ptr< DataSourceSelectorWizardPage > m_targetSelectorPage
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63
boost::shared_ptr< DataSourceInfo > DataSourceInfoPtr