BALL
1.4.2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
BALL
VIEW
WIDGETS
regularData2DWidget.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
5
#ifndef BALL_VIEW_WIDGETS_REGULARDATA2DWIDGET_H
6
#define BALL_VIEW_WIDGETS_REGULARDATA2DWIDGET_H
7
8
#ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H
9
# include <
BALL/VIEW/KERNEL/modularWidget.h
>
10
#endif
11
12
#ifndef BALL_VIEW_WIDGETS_CANVASWIDGET_H
13
# include <
BALL/VIEW/WIDGETS/canvasWidget.h
>
14
#endif
15
16
#ifndef BALL_DATATYPE_REGULARDATA2D_H
17
# include <
BALL/DATATYPE/regularData2D.h
>
18
#endif
19
20
#ifndef BALL_VIEW_WIDGETS_DOCKWIDGET_H
21
# include <
BALL/VIEW/WIDGETS/dockWidget.h
>
22
#endif
23
24
#include <QtGui/QColor>
25
//Added by qt3to4:
26
#include <QContextMenuEvent>
27
#include <QResizeEvent>
28
29
namespace
BALL
30
{
31
namespace
VIEW
32
{
36
class
BALL_VIEW_EXPORT
RegularData2DWidget
37
:
public
CanvasWidget
,
38
public
ModularWidget
39
{
40
Q_OBJECT
41
42
public
:
43
44
BALL_EMBEDDABLE
(
RegularData2DWidget
,
ModularWidget
)
45
46
47
RegularData2DWidget
(
const
RegularData2D
* data,
QWidget
*parent = 0);
48
50
~
RegularData2DWidget
();
51
55
virtual
void
onNotify(
Message
*message);
56
57
public
slots:
58
60
void
createPlot();
61
62
protected
:
63
64
RegularData2DWidget
(
RegularData2DWidget
* widget);
65
66
const
RegularData2D
*
data_
;
67
QColor
diagram_color_
;
68
QColor
background_color_
;
69
QColor
axis_color_
;
70
};
71
72
74
class
BALL_VIEW_EXPORT
DockableRegularData2DWidget
75
:
public
DockWidget
76
{
77
Q_OBJECT
78
79
public
:
80
82
DockableRegularData2DWidget
(
const
RegularData2D
* data,
QWidget
*parent=0 );
83
85
~
DockableRegularData2DWidget
();
86
88
void
plot();
89
90
public
slots:
91
93
virtual
void
zoomToFit();
94
96
virtual
void
zoomIn();
97
99
virtual
void
zoomOut();
100
101
102
protected
slots:
103
virtual
void
resizeEvent(QResizeEvent* e);
104
virtual
void
contextMenuEvent(QContextMenuEvent* e);
105
106
protected
:
107
DockableRegularData2DWidget
(
const
DockableRegularData2DWidget
& dockcanwid);
108
QSize sizeHint()
const
;
109
110
RegularData2DWidget
canWidget_
;
111
};
112
113
}
//end of namespace VIEW
114
}
//end of namespace BALL
115
116
#endif // BALL_VIEW_WIDGETS_DOCKWIDGET_H
Generated by
1.8.3.1