All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Frame.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_FRAME_H
27 #define __TERRALIB_QT_WIDGETS_INTERNAL_FRAME_H
28 
29 // TerraLib
30 #include "LayoutObject.h"
31 #include "../Config.h"
32 
33 // Qt
34 #include <QtCore/QRect>
35 #include <QtCore/QRectF>
36 #include <QtGui/QPixmap>
37 #include <QtGui/QWidget>
38 
39 namespace te
40 {
41  namespace qt
42  {
43  namespace widgets
44  {
45  class LayoutEditor;
46  /*!
47  \class FrameData
48 
49  \brief A Framedata ....
50 
51  */
53  {
54  public:
55  Frame(te::qt::widgets::LayoutEditor* me, Qt::WindowFlags f = Qt::Widget);
56  Frame(const Frame& rhs);
57 
58  virtual ~Frame();
59 
60  Frame& operator=(const Frame& rhs);
61 
62  bool isNew();
63  void setNew(bool);
64  void showToolTip(bool b);
65  QRectF getFrameRect();
66 
67  protected:
68  int m_selected; // ponto selecionado
69  bool m_dragging; // para edicao
70  bool m_showToolTip; // true = mostra tool tip para edição por mouse
71  bool m_new; // se true, indica ao undo que deve ser deletado (pois o frame foi criado por edicao durante a secao).
72 
73  QRectF m_frameRect; // tamanho do frame em mm
74 
75  // selection points em mm
76  QRect m_recSel1;
77  QRect m_recSel2;
78  QRect m_recSel3;
79  QRect m_recSel4;
80  QRect m_recSel5;
81  QRect m_recSel6;
82  QRect m_recSel7;
83  QRect m_recSel8;
84  QRect m_recSel9;
85  QRect m_recSel10;
86 
87 
88  QRectF m_auxFrameRect; // para edicao
89  QRectF m_copyAuxFrameRect; // para edicao
90  QPoint m_pressPoint; // para edicao
91  };
92  } // end namespace widgets
93  } // end namespace qt
94 } // end namespace te
95 
96 #endif // __TERRALIB_QT_WIDGETS_INTERNAL_DATA_FRAME_H
QPoint m_pressPoint
Definition: Frame.h:90
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:101
QRectF m_frameRect
Definition: Frame.h:73
QRectF m_auxFrameRect
Definition: Frame.h:88
QRectF m_copyAuxFrameRect
Definition: Frame.h:89