Main Page
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
OutsideFactory.cpp
Go to the documentation of this file.
1
/* Copyright (C) 2014-2014 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 OutsideFactory.cpp
22
23
\brief
24
25
\ingroup layout
26
*/
27
28
// TerraLib
29
#include "
OutsideFactory.h
"
30
#include "
AbstractType.h
"
31
#include "
OutsideParamsCreate.h
"
32
#include "
ToolbarOutside.h
"
33
#include "
PropertiesOutside.h
"
34
#include "
DisplayOutside.h
"
35
#include "
ObjectInspectorOutside.h
"
36
#include "
GridSettingsOutside.h
"
37
#include "
PageSetupOutside.h
"
38
39
te::layout::OutsideFactory::OutsideFactory
()
40
{
41
42
}
43
44
te::layout::OutsideFactory::~OutsideFactory
()
45
{
46
47
}
48
49
te::layout::Observer
*
te::layout::OutsideFactory::make
(
LayoutAbstractObjectType
type,
OutsideParamsCreate
params
/*= LayoutItemParamsCreate()*/
)
50
{
51
Observer
* outside = 0;
52
53
switch
(type)
54
{
55
56
case
TPToolbar
:
57
{
58
ToolbarOutside
* toolbar =
new
ToolbarOutside
(params.
getController
(), params.
getModel
());
59
outside = (
Observer
*)toolbar;
60
return
outside;
61
break
;
62
}
63
case
TPPropertiesWindow
:
64
{
65
PropertiesOutside
* window =
new
PropertiesOutside
(params.
getController
(), params.
getModel
());
66
outside = (
Observer
*)window;
67
return
outside;
68
break
;
69
}
70
case
TPObjectInspectorWindow
:
71
{
72
ObjectInspectorOutside
* inspector =
new
ObjectInspectorOutside
(params.
getController
(), params.
getModel
());
73
outside = (
Observer
*)inspector;
74
return
outside;
75
break
;
76
}
77
case
TPDisplayWindow
:
78
{
79
DisplayOutside
* displayWindow =
new
DisplayOutside
(params.
getController
(), params.
getModel
());
80
outside = (
Observer
*)displayWindow;
81
return
outside;
82
break
;
83
}
84
85
case
TPGridSettings
:
86
{
87
GridSettingsOutside
* gridSettings =
new
GridSettingsOutside
(params.
getController
(), params.
getModel
());
88
outside = (
Observer
*)gridSettings;
89
return
outside;
90
break
;
91
}
92
case
TPPageSetup
:
93
{
94
PageSetupOutside
* pageSetup =
new
PageSetupOutside
(params.
getController
(), params.
getModel
());
95
outside = (
Observer
*)pageSetup;
96
return
outside;
97
break
;
98
}
99
}
100
101
return
0;
102
}
te::layout::TPDisplayWindow
Definition:
AbstractType.h:46
ObjectInspectorOutside.h
te::layout::PropertiesOutside
Definition:
PropertiesOutside.h:67
OutsideParamsCreate.h
te::layout::TPPropertiesWindow
Definition:
AbstractType.h:45
te::layout::OutsideFactory::OutsideFactory
OutsideFactory()
Definition:
OutsideFactory.cpp:39
GridSettingsOutside.h
te::layout::PageSetupOutside
Definition:
PageSetupOutside.h:50
te::layout::OutsideParamsCreate::getController
OutsideController * getController()
Definition:
OutsideParamsCreate.h:71
AbstractType.h
te::layout::ObjectInspectorOutside
Definition:
ObjectInspectorOutside.h:46
te::layout::Observer
Definition:
Observer.h:42
te::layout::OutsideParamsCreate
Definition:
OutsideParamsCreate.h:41
ToolbarOutside.h
te::layout::OutsideFactory::~OutsideFactory
virtual ~OutsideFactory()
Definition:
OutsideFactory.cpp:44
PageSetupOutside.h
te::layout::DisplayOutside
Definition:
DisplayOutside.h:45
te::layout::GridSettingsOutside
Definition:
GridSettingsOutside.h:53
te::layout::TPGridSettings
Definition:
AbstractType.h:49
te::layout::TPToolbar
Definition:
AbstractType.h:48
te::layout::OutsideParamsCreate::getModel
Observable * getModel()
Definition:
OutsideParamsCreate.h:76
te::layout::LayoutAbstractObjectType
LayoutAbstractObjectType
Enum TdkAbstractComponentType. This is the enumeration of the components types.
Definition:
AbstractType.h:38
te::layout::TPPageSetup
Definition:
AbstractType.h:58
te::layout::TPObjectInspectorWindow
Definition:
AbstractType.h:47
te::layout::OutsideFactory::make
virtual Observer * make(LayoutAbstractObjectType type, OutsideParamsCreate params=OutsideParamsCreate())
Definition:
OutsideFactory.cpp:49
te::layout::ToolbarOutside
Definition:
ToolbarOutside.h:55
PropertiesOutside.h
DisplayOutside.h
OutsideFactory.h
BB_TL5
terralib5
src
terralib
layout
qt
src
core
pattern
factory
OutsideFactory.cpp
Generated on Mon Sep 29 2014 13:46:33 for TerraLib by
1.8.7