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 
31  QWidget(me->getAuxWidget(), f),
32  m_id(0),
33  m_layoutEditor(me)
34 {
35 }
36 
38  QWidget((QWidget*)rhs.parent(), rhs.windowFlags())
39 {
40  m_id = rhs.m_id;
42 }
43 
45 {
46  hide();
47 }
48 
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 
62 {
63  return m_layoutEditor;
64 }
65 
67 {
68  return m_id;
69 }
70 
72 {
73  m_id = id;
74 }
75 
77 {
78  QWidget::hide();
79 }
80 
82 {
83  QWidget::show();
84 }
85 
87 {
88 }
89 
91 {
92  if(b == true)
93  removeEventFilter(m_layoutEditor);
94  else
95  installEventFilter(m_layoutEditor);
96 }
97 
99 {
100 }
101 
103 {
104 }
105 
107 {
108  return 1;
109 }
110 
112 {
113 }
114 
116 {
117  return false;
118 }
119 
121 {
122 }
123 
125 {
126  return QRectF();
127 }
128 
130 {
131  return 0;
132 }
virtual QPixmap * getPixmap()
virtual void sendEventToChildren(bool)
virtual void setScale(double v)
virtual void showSelectionPoints()
LayoutObject & operator=(const LayoutObject &rhs)
te::qt::widgets::LayoutEditor * getLayoutEditor()
te::qt::widgets::LayoutEditor * m_layoutEditor
Definition: LayoutObject.h:74
LayoutObject(te::qt::widgets::LayoutEditor *me, Qt::WindowFlags f=Qt::Widget)