BALL
1.4.79
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
canvasWidget.h
BALL::VIEW::RegularData1DWidget::background_color_
QColor background_color_
Definition:
regularData1DWidget.h:68
BALL::VIEW::Message
Definition:
message.h:52
BALL::TRegularData1D< float >
BALL::VIEW::DockableRegularData1DWidget
Definition:
regularData1DWidget.h:74
QWidget
modularWidget.h
BALL::VIEW::RegularData1DWidget
Definition:
regularData1DWidget.h:33
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition:
COMMON/global.h:52
BALL::VIEW::RegularData1DWidget::data_
const RegularData1D * data_
Definition:
regularData1DWidget.h:66
BALL::VIEW::RegularData1DWidget::diagram_color_
QColor diagram_color_
Definition:
regularData1DWidget.h:67
BALL::VIEW::DockWidget
Definition:
dockWidget.h:25
BALL::VIEW::ModularWidget
Definition:
modularWidget.h:61
BALL_EMBEDDABLE
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition:
embeddable.h:31
regularData1D.h
BALL::VIEW::RegularData1DWidget::axis_color_
QColor axis_color_
Definition:
regularData1DWidget.h:69
BALL::VIEW::CanvasWidget
Definition:
canvasWidget.h:22
BALL::VIEW::DockableRegularData1DWidget::canWidget_
RegularData1DWidget canWidget_
Definition:
regularData1DWidget.h:109
dockWidget.h
Generated by
1.8.7