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
regularData1DWidget.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_KERNEL_MODULARWIDGET_H
6
# include <
BALL/VIEW/KERNEL/modularWidget.h
>
7
#endif
8
9
#ifndef BALL_VIEW_WIDGETS_CANVASWIDGET_H
10
# include <
BALL/VIEW/WIDGETS/canvasWidget.h
>
11
#endif
12
13
#ifndef BALL_DATATYPE_REGULARDATA1D_H
14
# include <
BALL/DATATYPE/regularData1D.h
>
15
#endif
16
17
#ifndef BALL_VIEW_WIDGETS_DOCKWIDGET_H
18
# include <
BALL/VIEW/WIDGETS/dockWidget.h
>
19
#endif
20
21
#include <QtGui/QColor>
22
//Added by qt3to4:
23
#include <QContextMenuEvent>
24
#include <QResizeEvent>
25
26
namespace
BALL
27
{
28
namespace
VIEW
29
{
33
class
BALL_VIEW_EXPORT
RegularData1DWidget
34
:
public
CanvasWidget
,
35
public
ModularWidget
36
{
37
Q_OBJECT
38
39
public
:
40
41
BALL_EMBEDDABLE
(
RegularData1DWidget
,
ModularWidget
)
42
43
45
RegularData1DWidget
(
const
RegularData1D
* data,
QWidget
*parent = 0);
46
49
~
RegularData1DWidget
();
50
54
virtual
void
onNotify(
Message
*message);
55
56
public
slots:
57
60
void
createPlot();
61
62
protected
:
63
64
RegularData1DWidget
(
RegularData1DWidget
* widget);
65
66
const
RegularData1D
*
data_
;
67
QColor
diagram_color_
;
68
QColor
background_color_
;
69
QColor
axis_color_
;
70
};
71
72
74
class
BALL_VIEW_EXPORT
DockableRegularData1DWidget
75
:
public
DockWidget
76
{
77
Q_OBJECT
78
79
public
:
80
82
DockableRegularData1DWidget
(
const
RegularData1D
* data,
QWidget
*parent=0 );
83
85
~
DockableRegularData1DWidget
();
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
protected
slots:
102
virtual
void
resizeEvent(QResizeEvent* e);
103
virtual
void
contextMenuEvent(QContextMenuEvent* e);
104
105
protected
:
106
DockableRegularData1DWidget
(
const
DockableRegularData1DWidget
& dockcanwid);
107
QSize sizeHint()
const
;
108
109
RegularData1DWidget
canWidget_
;
110
};
111
112
}
//end of namespace VIEW
113
}
//end of namespace BALL
Generated by
1.8.3.1