UltraScan III
Namespaces
Classes
Files
File List
File Members
programs
us_config
us_color.h
Go to the documentation of this file.
1
#ifndef US_COLOR_H
3
#define US_COLOR_H
4
5
#include <QtGui>
6
#include "qwt_plot.h"
7
#include "qwt_plot_grid.h"
8
#include "qwt_plot_curve.h"
9
#include "qwt_plot_picker.h"
10
#include "qwt_counter.h"
11
12
#include "
us_widgets.h
"
13
#include "
us_help.h
"
14
#include "
us_plot.h
"
15
17
21
class
US_Color
:
public
US_Widgets
22
{
23
Q_OBJECT
24
25
public
:
28
US_Color
( QWidget* = 0, Qt::WindowFlags = 0 );
30
//~US_Color();
31
32
private
:
33
US_Help
showhelp
;
34
35
// Banners
36
QLabel*
lbl_background
;
37
QLabel*
lbl_margin
;
38
QLabel*
lbl_example
;
39
QLabel*
lbl_banner
;
40
QLabel*
lbl_progress
;
41
QLabel*
lbl_lcd
;
42
QLabel*
lbl_counter
;
43
QLabel*
lbl_assign
;
44
QLabel*
lbl_style
;
45
46
// Labels
47
48
QLabel*
lbl_text
;
49
QLabel*
lbl_choices
;
50
QLabel*
lbl_select
;
51
QLabel*
lbl_color1
;
52
QLabel*
lbl_color2
;
53
QLabel*
lbl_color3
;
54
QLabel*
lbl_color4
;
55
QLabel*
lbl_color5
;
56
QLabel*
lbl_color6
;
57
QLabel*
lbl_select_scheme
;
58
QLabel*
lbl_select_element
;
59
60
// Color Fields
61
QLabel*
color_field1
;
62
QLabel*
color_field2
;
63
QLabel*
color_field3
;
64
QLabel*
color_field4
;
65
QLabel*
color_field5
;
66
QLabel*
color_field6
;
67
68
// Pushbuttons
69
70
QPushButton*
pb_color1
;
71
QPushButton*
pb_color2
;
72
QPushButton*
pb_color3
;
73
QPushButton*
pb_color4
;
74
QPushButton*
pb_color5
;
75
QPushButton*
pb_color6
;
76
77
QPushButton*
pb_normal
;
78
QPushButton*
pb_active
;
79
QPushButton*
pb_disabled
;
80
81
QPushButton*
pb_save_as
;
82
QPushButton*
pb_apply
;
83
QPushButton*
pb_reset
;
84
QPushButton*
pb_delete
;
85
QPushButton*
pb_help
;
86
QPushButton*
pb_quit
;
87
88
89
// Edit Boxes
90
QLineEdit*
le_choice
;
91
QLineEdit*
le_edit
;
92
QLineEdit*
le_save_as
;
93
QListWidget*
schemes
;
94
QListWidget*
elements
;
95
96
// Other Widgets
97
QComboBox*
cmbb_margin
;
98
QComboBox*
cmbb_style
;
99
QProgressBar*
progress
;
100
QwtCounter*
cnt
;
101
102
// LCD
103
QLCDNumber*
lcd
;
104
105
// Plot Widgets
106
QwtPlot*
plot
;
107
QwtPlotGrid*
grid
;
108
QwtPlotCurve*
curve
;
109
QwtPlotPicker*
pick
;
110
111
US_Plot
*
us_plot
;
112
113
struct
114
{
115
int
plotMargin
;
116
117
QColor
plotCurve
;
118
QColor
plotBg
;
119
QColor
plotMajorGrid
;
120
QColor
plotMinorGrid
;
121
QColor
plotPicker
;
122
123
QString
guiStyle
;
124
125
QPalette
frameColor
;
126
QPalette
pushbColor
;
127
QPalette
labelColor
;
128
QPalette
editColor
;
129
QPalette
normalColor
;
130
QPalette
lcdColor
;
131
QPalette
plotColor
;
132
}
current
;
133
134
enum
{
FRAME
,
NORMAL_PB
,
DISABLED_PB
,
PLOT_FRAME
,
PLOT_CANVAS
,
LABELS
,
135
OTHER_WIDGETS
,
LCD
,
EDIT_BOXES
};
136
137
void
getCurrentSettings
(
void
);
138
void
updateScreen
(
void
);
139
void
updateSchemeList
(
const
QString& = QString() );
140
141
void
resetFrames
(
void
);
142
void
resetButtons
(
void
);
143
void
resetLabels
(
void
);
144
void
resetWidgets
(
void
);
145
void
resetEditBoxes
(
void
);
146
147
private
slots:
148
void
updateWidgets
(
double
);
149
void
selected_scheme
(
void
);
150
void
save_as
(
void
);
151
void
selMargin
(
int
);
152
void
selectedElement
(
int
);
153
void
selectStyle
(
const
QString& );
154
155
void
apply
(
void
);
// set as current
156
void
reset
(
void
);
157
void
delete_scheme
(
void
);
158
void
help
(
void
);
159
160
void
pick_color1
(
void
);
161
void
pick_color2
(
void
);
162
void
pick_color3
(
void
);
163
void
pick_color4
(
void
);
164
void
pick_color5
(
void
);
165
void
pick_color6
(
void
);
166
};
167
168
#endif
Generated on Sun Jun 21 2015 11:40:41 for UltraScan III by
1.8.3.1-20130324