Main Page
Modules
Namespaces
Classes
Files
File List
File Members
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
*/
52
class
TEQTWIDGETSEXPORT
Frame
:
public
LayoutObject
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
te::qt::widgets::Frame::m_new
bool m_new
Definition:
Frame.h:71
te::qt::widgets::Frame::m_pressPoint
QPoint m_pressPoint
Definition:
Frame.h:90
TEQTWIDGETSEXPORT
#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::Frame::m_dragging
bool m_dragging
Definition:
Frame.h:69
te::qt::widgets::Frame::m_recSel2
QRect m_recSel2
Definition:
Frame.h:77
te::qt::widgets::Frame::m_frameRect
QRectF m_frameRect
Definition:
Frame.h:73
te::qt::widgets::Frame::m_auxFrameRect
QRectF m_auxFrameRect
Definition:
Frame.h:88
te::qt::widgets::Frame::m_recSel4
QRect m_recSel4
Definition:
Frame.h:79
te::qt::widgets::Frame::m_recSel6
QRect m_recSel6
Definition:
Frame.h:81
te::qt::widgets::Frame::m_copyAuxFrameRect
QRectF m_copyAuxFrameRect
Definition:
Frame.h:89
te::qt::widgets::LayoutEditor
A map editor ....
Definition:
LayoutEditor.h:63
te::qt::widgets::Frame::m_recSel7
QRect m_recSel7
Definition:
Frame.h:82
LayoutObject.h
te::qt::widgets::Frame
Definition:
Frame.h:52
te::qt::widgets::Frame::m_recSel3
QRect m_recSel3
Definition:
Frame.h:78
te::qt::widgets::Frame::m_recSel5
QRect m_recSel5
Definition:
Frame.h:80
te::qt::widgets::Frame::m_showToolTip
bool m_showToolTip
Definition:
Frame.h:70
te::qt::widgets::LayoutObject
Definition:
LayoutObject.h:42
te::qt::widgets::Frame::m_recSel9
QRect m_recSel9
Definition:
Frame.h:84
te::qt::widgets::Frame::m_recSel8
QRect m_recSel8
Definition:
Frame.h:83
te::qt::widgets::Frame::m_selected
int m_selected
Definition:
Frame.h:68
te::qt::widgets::Frame::m_recSel10
QRect m_recSel10
Definition:
Frame.h:85
te::qt::widgets::Frame::m_recSel1
QRect m_recSel1
Definition:
Frame.h:76
git
src
terralib
qt
widgets
layout
Frame.h
Generated on Wed Dec 18 2013 08:52:09 for TerraLib by
1.8.5