Form.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/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
40
namespace
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 */
60
Form
();
61
62
/* \brief Default Destructor*/
63
~Form
();
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
AbstractFormItem.h
This file defines the abstract class for a form item.
te::qt::plugins::terramobile::AbstractFormItem
This file defines the abstract class for a form item.
Definition:
AbstractFormItem.h:64
te::qt::plugins::terramobile::Form
This class defines the Form object.
Definition:
Form.h:56
te::qt::plugins::terramobile::Form::~Form
~Form()
te::qt::plugins::terramobile::Form::m_name
std::string m_name
Definition:
Form.h:77
te::qt::plugins::terramobile::Form::getItem
AbstractFormItem * getItem(std::string itemName)
te::qt::plugins::terramobile::Form::getName
std::string getName()
Definition:
Form.h:67
te::qt::plugins::terramobile::Form::setName
void setName(std::string name)
Definition:
Form.h:69
te::qt::plugins::terramobile::Form::m_items
std::vector< AbstractFormItem * > m_items
Definition:
Form.h:79
te::qt::plugins::terramobile::Form::getItems
std::vector< AbstractFormItem * > & getItems()
Definition:
Form.h:71
te::qt::plugins::terramobile::Form::Form
Form()
te
TerraLib.
Definition:
AddressGeocodingOp.h:52
git_release
src
terralib
qt
plugins
mobile
core
form
Form.h
Generated on Mon Jun 5 2023 10:44:31 for TerraLib by
1.9.1