Main Page
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
StringPropertyWidgetFactory.cpp
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/widget/property/StringPropertyWidgetFactory.h
22
23
\brief Defines the class StringPropertyWidgetFactory.
24
*/
25
26
#include "
StringPropertyWidget.h
"
27
#include "
StringPropertyWidgetFactory.h
"
28
29
te::qt::widgets::StringPropertyWidgetFactory
*
te::qt::widgets::StringPropertyWidgetFactory::sm_factory
(0);
30
31
void
te::qt::widgets::StringPropertyWidgetFactory::initialize
()
32
{
33
finalize
();
34
sm_factory
=
new
StringPropertyWidgetFactory
;
35
}
36
37
void
te::qt::widgets::StringPropertyWidgetFactory::finalize
()
38
{
39
delete
sm_factory;
40
sm_factory = 0;
41
}
42
43
int
te::qt::widgets::StringPropertyWidgetFactory::getType
()
const
44
{
45
return
te::dt::STRING_TYPE
;
46
}
47
48
te::qt::widgets::StringPropertyWidgetFactory::~StringPropertyWidgetFactory
()
49
{
50
51
}
52
53
te::qt::widgets::SimplePropertyWidget
*
te::qt::widgets::StringPropertyWidgetFactory::build
()
54
{
55
return
new
StringPropertyWidget
;
56
}
57
58
te::qt::widgets::StringPropertyWidgetFactory::StringPropertyWidgetFactory
()
59
: te::qt::widgets::
SimplePropertyWidgetFactory
(te::dt::
STRING_TYPE
)
60
{
61
62
}
63
64
te::qt::widgets::SimplePropertyWidget
*
te::qt::widgets::StringPropertyWidgetFactory::create
(QWidget* parent)
65
{
66
return
new
StringPropertyWidget
(parent);
67
}
te::qt::widgets::StringPropertyWidget
A widget used to define a string property.
Definition:
StringPropertyWidget.h:46
te::qt::widgets::SimplePropertyWidget
A base widget for simple properties.
Definition:
SimplePropertyWidget.h:51
te::qt::widgets::StringPropertyWidgetFactory::getType
int getType() const
It returns the type of component widget that the factory knows how to create.
Definition:
StringPropertyWidgetFactory.cpp:43
StringPropertyWidget.h
Defines the StringPropertyWidget class.
te::dt::STRING_TYPE
Definition:
Enums.h:200
te::qt::widgets::StringPropertyWidgetFactory::create
virtual te::qt::widgets::SimplePropertyWidget * create(QWidget *parent=0)
Definition:
StringPropertyWidgetFactory.cpp:64
te::qt::widgets::StringPropertyWidgetFactory::initialize
static void initialize()
Definition:
StringPropertyWidgetFactory.cpp:31
te::qt::widgets::StringPropertyWidgetFactory::finalize
static void finalize()
Definition:
StringPropertyWidgetFactory.cpp:37
te::qt::widgets::StringPropertyWidgetFactory::build
te::qt::widgets::SimplePropertyWidget * build()
Concrete factories (derived from this one) must implement this method in order to create objects...
Definition:
StringPropertyWidgetFactory.cpp:53
te::qt::widgets::StringPropertyWidgetFactory
A factory to build the string property widget object.
Definition:
StringPropertyWidgetFactory.h:50
te::qt::widgets::StringPropertyWidgetFactory::~StringPropertyWidgetFactory
~StringPropertyWidgetFactory()
Definition:
StringPropertyWidgetFactory.cpp:48
te::qt::widgets::StringPropertyWidgetFactory::StringPropertyWidgetFactory
StringPropertyWidgetFactory()
Definition:
StringPropertyWidgetFactory.cpp:58
te::qt::widgets::SimplePropertyWidgetFactory
A factory to build widget objects.
Definition:
SimplePropertyWidgetFactory.h:49
StringPropertyWidgetFactory.h
te::qt::widgets::StringPropertyWidgetFactory::sm_factory
static StringPropertyWidgetFactory * sm_factory
Definition:
StringPropertyWidgetFactory.h:72
TL5_2015_release
terralib5
src
terralib
qt
widgets
property
StringPropertyWidgetFactory.cpp
Generated on Wed Jun 3 2015 10:23:32 for TerraLib by
1.8.7