Loading...
Searching...
No Matches
Form.h
Go to the documentation of this file.
1/* Copyright (C) 2011-2012 National Institute For Space Research (INPE) - Brazil.
2
3This file is part of the TerraLib - a Framework for building GIS enabled applications.
4
5TerraLib is free software: you can redistribute it and/or modify
6it under the terms of the GNU Lesser General Public License as published by
7the Free Software Foundation, either version 3 of the License,
8or (at your option) any later version.
9
10TerraLib is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU Lesser General Public License for more details.
14
15You should have received a copy of the GNU Lesser General Public License
16along with TerraLib. See COPYING. If not, write to
17TerraLib Team at <terralib-team@terralib.org>.
18*/
19
20/*!
21\file src/terralib/qt/plugins/mobile/core/form/Form.h
22
23\brief This file defines the form class.
24*/
25
26#ifndef __TE_QT_PLUGINS_TERRAMOBILE_INTERNAL_FORM_H
27#define __TE_QT_PLUGINS_TERRAMOBILE_INTERNAL_FORM_H
28
29// TerraLib
30#include "../../Config.h"
31#include "AbstractFormItem.h"
32
33// Boost
34#include <boost/property_tree/ptree.hpp>
35
36// STL
37#include <string>
38#include <vector>
39
40namespace te
41{
42 namespace qt
43 {
44 namespace plugins
45 {
46 namespace terramobile
47 {
48
49 /*!
50 \class Form
51
52 \brief This class defines the Form object.
53 */
54
55 class Form
56 {
57 public:
58
59 /* \brief Default Constructor */
61
62 /* \brief Default Destructor*/
64
65 public:
66
67 std::string getName() { return m_name; }
68
69 void setName(std::string name) { m_name = name; }
70
71 std::vector<AbstractFormItem*>& getItems() { return m_items; }
72
73 AbstractFormItem* getItem(std::string itemName);
74
75 protected:
76
77 std::string m_name;
78
79 std::vector<AbstractFormItem*> m_items;
80 };
81
82 } // end namespace thirdParty
83 } // end namespace plugins
84 } // end namespace qt
85} // end namespace te
86
87
88#endif // __TE_QT_PLUGINS_TERRAMOBILE_INTERNAL_FORM_H
This file defines the abstract class for a form item.
This file defines the abstract class for a form item.
This class defines the Form object.
Definition: Form.h:56
void setName(std::string name)
Definition: Form.h:69
std::vector< AbstractFormItem * > m_items
Definition: Form.h:79
std::vector< AbstractFormItem * > & getItems()
Definition: Form.h:71
AbstractFormItem * getItem(std::string itemName)
TerraLib.