Loading...
Searching...
No Matches
BuilderFormsWizardPage.h
Go to the documentation of this file.
1/* Copyright (C) 2011-2012 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 src/terraMobilePlugin/qt/BuilderFormsWizardPage.h
22
23 \brief This interface is used to configure the form json file for GeoPackage Builder wizard operation.
24*/
25
26#ifndef __TE_QT_PLUGINS_TERRAMOBILE_INTERNAL_BUILDERFORMSWIZARDPAGE_H
27#define __TE_QT_PLUGINS_TERRAMOBILE_INTERNAL_BUILDERFORMSWIZARDPAGE_H
28
29// TerraLib
30#include "../../../../maptools/AbstractLayer.h"
31#include "../core/form/AbstractFormItem.h"
32#include "../Config.h"
33
34// STL
35#include <memory>
36
37// Qt
38#include <QTreeWidgetItem>
39#include <QWizardPage>
40
41// Forward declaration
42namespace Ui { class BuilderFormsWizardPageForm; }
43
44namespace te
45{
46 namespace qt
47 {
48 namespace plugins
49 {
50 namespace terramobile
51 {
52
53 class Section;
54 class Form;
55 /*!
56 \class BuilderFormsWizardPage
57
58 \brief This interface is used to configure the form json file for GeoPackage Builder wizard operation.
59 */
60 class BuilderFormsWizardPage : public QWizardPage
61 {
62 Q_OBJECT
63
64 public:
65
66 BuilderFormsWizardPage(QWidget* parent = 0);
67
69
70 public:
71
72 bool isComplete() const;
73
74 void setLayerList(std::list<te::map::AbstractLayerPtr> list);
75
76 std::map<std::string, Section*>& getSections();
77
78 public slots:
79
80 void onTreeItemClicked(QTreeWidgetItem* item, int column);
81
83
85
87
88 void onItemTypeChanged(int index);
89
90 protected:
91
92 Form* getForm(const std::string& formName);
93
95
96 private:
97
98 std::auto_ptr<Ui::BuilderFormsWizardPageForm> m_ui;
99
100 std::list<te::map::AbstractLayerPtr> m_list;
101
102 std::map<std::string, Section*> m_sectionsMap;
103
106
108 };
109 } // end namespace thirdParty
110 } // end namespace plugins
111 } // end namespace qt
112} // end namespace te
113
114#endif // __TE_QT_PLUGINS_TERRAMOBILE_INTERNAL_BUILDERFORMSWIZARDPAGE_H
115
This file defines the abstract class for a form item.
This interface is used to configure the form json file for GeoPackage Builder wizard operation.
te::qt::plugins::terramobile::AbstractFormItem * m_curFormItem
Form * getForm(const std::string &formName)
std::map< std::string, Section * > & getSections()
std::auto_ptr< Ui::BuilderFormsWizardPageForm > m_ui
void setLayerList(std::list< te::map::AbstractLayerPtr > list)
void onTreeItemClicked(QTreeWidgetItem *item, int column)
This class defines the Form object.
Definition Form.h:56
TerraLib.
#define slots