Main Page
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
LayoutObject.cpp
Go to the documentation of this file.
1
/* Copyright (C) 2001-2009 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/widgets/canvas/DataFrame.h
22
23
\brief The frame data....
24
*/
25
26
// TerraLib
27
#include "
LayoutObject.h
"
28
#include "
LayoutEditor.h
"
29
30
te::qt::widgets::LayoutObject::LayoutObject
(
te::qt::widgets::LayoutEditor
* me, Qt::WindowFlags f) :
31
QWidget(me->getAuxWidget(), f),
32
m_id(0),
33
m_layoutEditor(me)
34
{
35
}
36
37
te::qt::widgets::LayoutObject::LayoutObject
(
const
LayoutObject
& rhs) :
38
QWidget((QWidget*)rhs.parent(), rhs.windowFlags())
39
{
40
m_id
= rhs.
m_id
;
41
m_layoutEditor
= rhs.
m_layoutEditor
;
42
}
43
44
te::qt::widgets::LayoutObject::~LayoutObject
()
45
{
46
hide();
47
}
48
49
te::qt::widgets::LayoutObject
&
te::qt::widgets::LayoutObject::operator=
(
const
LayoutObject
& rhs)
50
{
51
if
(
this
!= &rhs)
52
{
53
setParent((QWidget*)rhs.parent(), rhs.windowFlags());
54
m_id = rhs.
m_id
;
55
m_layoutEditor = rhs.
m_layoutEditor
;
56
}
57
58
return
*
this
;
59
}
60
61
te::qt::widgets::LayoutEditor
*
te::qt::widgets::LayoutObject::getLayoutEditor
()
62
{
63
return
m_layoutEditor;
64
}
65
66
unsigned
int
te::qt::widgets::LayoutObject::getId
()
67
{
68
return
m_id;
69
}
70
71
void
te::qt::widgets::LayoutObject::setId
(
unsigned
int
id
)
72
{
73
m_id = id;
74
}
75
76
void
te::qt::widgets::LayoutObject::hide
()
77
{
78
QWidget::hide();
79
}
80
81
void
te::qt::widgets::LayoutObject::show
()
82
{
83
QWidget::show();
84
}
85
86
void
te::qt::widgets::LayoutObject::adjust
()
87
{
88
}
89
90
void
te::qt::widgets::LayoutObject::sendEventToChildren
(
bool
b)
91
{
92
if
(b ==
true
)
93
removeEventFilter(m_layoutEditor);
94
else
95
installEventFilter(m_layoutEditor);
96
}
97
98
void
te::qt::widgets::LayoutObject::showSelectionPoints
()
99
{
100
}
101
102
void
te::qt::widgets::LayoutObject::hideSelectionPoints
()
103
{
104
}
105
106
double
te::qt::widgets::LayoutObject::getScale
()
107
{
108
return
1;
109
}
110
111
void
te::qt::widgets::LayoutObject::setScale
(
double
)
112
{
113
}
114
115
bool
te::qt::widgets::LayoutObject::isNew
()
116
{
117
return
false
;
118
}
119
120
void
te::qt::widgets::LayoutObject::setNew
(
bool
)
121
{
122
}
123
124
QRectF
te::qt::widgets::LayoutObject::getFrameRect
()
125
{
126
return
QRectF();
127
}
128
129
QPixmap*
te::qt::widgets::LayoutObject::getPixmap
()
130
{
131
return
0;
132
}
LayoutEditor.h
te::qt::widgets::LayoutObject::setNew
virtual void setNew(bool)
Definition:
LayoutObject.cpp:120
te::qt::widgets::LayoutObject::getId
unsigned int getId()
Definition:
LayoutObject.cpp:66
te::qt::widgets::LayoutObject
Definition:
LayoutObject.h:42
te::qt::widgets::LayoutObject::hide
virtual void hide()
Definition:
LayoutObject.cpp:76
te::qt::widgets::LayoutObject::show
virtual void show()
Definition:
LayoutObject.cpp:81
te::qt::widgets::LayoutObject::setId
void setId(unsigned int)
Definition:
LayoutObject.cpp:71
te::qt::widgets::LayoutObject::getPixmap
virtual QPixmap * getPixmap()
Definition:
LayoutObject.cpp:129
te::qt::widgets::LayoutObject::~LayoutObject
virtual ~LayoutObject()
Definition:
LayoutObject.cpp:44
te::qt::widgets::LayoutObject::m_id
unsigned int m_id
Definition:
LayoutObject.h:72
te::qt::widgets::LayoutObject::getFrameRect
virtual QRectF getFrameRect()
Definition:
LayoutObject.cpp:124
te::qt::widgets::LayoutObject::sendEventToChildren
virtual void sendEventToChildren(bool)
Definition:
LayoutObject.cpp:90
te::qt::widgets::LayoutObject::setScale
virtual void setScale(double v)
Definition:
LayoutObject.cpp:111
te::qt::widgets::LayoutObject::showSelectionPoints
virtual void showSelectionPoints()
Definition:
LayoutObject.cpp:98
te::qt::widgets::LayoutEditor
A map editor ....
Definition:
LayoutEditor.h:63
te::qt::widgets::LayoutObject::operator=
LayoutObject & operator=(const LayoutObject &rhs)
Definition:
LayoutObject.cpp:49
te::qt::widgets::LayoutObject::hideSelectionPoints
virtual void hideSelectionPoints()
Definition:
LayoutObject.cpp:102
LayoutObject.h
te::qt::widgets::LayoutObject::getLayoutEditor
te::qt::widgets::LayoutEditor * getLayoutEditor()
Definition:
LayoutObject.cpp:61
te::qt::widgets::LayoutObject::m_layoutEditor
te::qt::widgets::LayoutEditor * m_layoutEditor
Definition:
LayoutObject.h:74
te::qt::widgets::LayoutObject::adjust
virtual void adjust()
Definition:
LayoutObject.cpp:86
te::qt::widgets::LayoutObject::isNew
virtual bool isNew()
Definition:
LayoutObject.cpp:115
te::qt::widgets::LayoutObject::LayoutObject
LayoutObject(te::qt::widgets::LayoutEditor *me, Qt::WindowFlags f=Qt::Widget)
Definition:
LayoutObject.cpp:30
te::qt::widgets::LayoutObject::getScale
virtual double getScale()
Definition:
LayoutObject.cpp:106
BB_TL5
terralib5
src
terralib
qt
widgets
layout
LayoutObject.cpp
Generated on Mon Sep 29 2014 13:46:43 for TerraLib by
1.8.7