All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LayoutObject.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 TerraView - A Free and Open Source GIS Application.
4 
5  TerraView is free software: you can redistribute it and/or modify
6  it under the terms of the GNU 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  TerraView 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 General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with TerraLib Code Editor. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@dpi.inpe.br>.
18  */
19 
20 /*!
21  \file terralib/qt/widgets/canvas/FrameData.h
22 
23  \brief The main class of FrameData.
24 */
25 
26 #ifndef __TERRALIB_QT_WIDGETS_INTERNAL_LAYOUT_OBJECT_H
27 #define __TERRALIB_QT_WIDGETS_INTERNAL_LAYOUT_OBJECT_H
28 
29 // TerraLib
30 #include "../Config.h"
31 
32 // Qt
33 #include <QtGui/QWidget>
34 
35 namespace te
36 {
37  namespace qt
38  {
39  namespace widgets
40  {
41  class LayoutEditor;
42  class TEQTWIDGETSEXPORT LayoutObject : public QWidget
43  {
44  public:
45  LayoutObject(te::qt::widgets::LayoutEditor* me, Qt::WindowFlags f = Qt::Widget); // LayoutEditor não é o pai
46  LayoutObject(const LayoutObject& rhs);
47 
48  virtual ~LayoutObject();
49 
50  LayoutObject& operator=(const LayoutObject& rhs);
51 
52  unsigned int getId();
53  void setId(unsigned int);
54  te::qt::widgets::LayoutEditor* getLayoutEditor();
55  void setLayoutEditorChanged(bool);
56  bool getLayoutEditorChanged();
57  virtual void hide();
58  virtual void show();
59  virtual void adjust();
60  virtual void sendEventToChildren(bool);
61  virtual void showSelectionPoints();
62  virtual void hideSelectionPoints();
63  virtual double getScale();
64  virtual void setScale(double v);
65  virtual bool isNew();
66  virtual void setNew(bool);
67  virtual QRectF getFrameRect();
68  virtual QPixmap* getPixmap();
69 
70 
71  protected:
72  unsigned int m_id; // identificador do frame (utilizado para fazer undo).
73  // Serve tambem para identificar mudancas no map editor (id = 0). Tais como resize, zoom, formato, etc.
75  };
76  } // end namespace widgets
77  } // end namespace qt
78 } // end namespace te
79 
80 #endif // __TERRALIB_QT_WIDGETS_INTERNAL_LAYOUT_OBJECT_H
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:101
te::qt::widgets::LayoutEditor * m_layoutEditor
Definition: LayoutObject.h:74