UltraScan III
Namespaces
Classes
Files
File List
File Members
gui
us_rotor_gui.h
Go to the documentation of this file.
1
#ifndef US_ROTOR_GUI_H
3
#define US_ROTOR_GUI_H
4
5
#include <QtGui>
6
#include <QApplication>
7
#include <QDomDocument>
8
9
#include "
us_extern.h
"
10
#include "
us_db2.h
"
11
#include "
us_rotor.h
"
12
#include "
us_widgets.h
"
13
#include "
us_widgets_dialog.h
"
14
#include "
us_help.h
"
15
#include "
us_editor_gui.h
"
16
#include "
us_investigator.h
"
17
#include "
us_abstractrotor_gui.h
"
18
26
class
US_GUI_EXTERN
US_RotorGui
:
public
US_WidgetsDialog
27
{
28
29
Q_OBJECT
30
31
public
:
32
45
US_RotorGui
(
bool
=
false
,
46
int
=
US_Disk_DB_Controls::Default
,
47
const
US_Rotor::Rotor
& =
US_Rotor::Rotor
(),
48
const
US_Rotor::RotorCalibration
& =
US_Rotor::RotorCalibration
() );
49
60
US_RotorGui
(
US_Rotor::RotorCalibration
&,
61
bool
=
false
,
62
bool
=
false
,
63
int
=
US_Disk_DB_Controls::Default
);
64
65
US_Rotor::Status
rotorStatus
;
66
US_Rotor::Status
calibrationStatus
;
67
US_Rotor::Rotor
currentRotor
;
68
US_Rotor::RotorCalibration
currentCalibration
;
69
70
signals:
71
76
void
RotorCalibrationSelected (
US_Rotor::Rotor
& Rotor,
77
US_Rotor::RotorCalibration
& RotorCalibration );
78
81
void
RotorCalibrationCanceled (
void
);
82
85
void
use_db(
bool
DB );
86
87
private
:
88
int
labID
;
89
US_Help
showHelp
;
90
91
QPushButton*
pb_help
;
92
QPushButton*
pb_reset
;
93
QPushButton*
pb_accept
;
94
QPushButton*
pb_cancel
;
95
QPushButton*
pb_addRotor
;
96
QPushButton*
pb_deleteRotor
;
97
QPushButton*
pb_saveCalibration
;
98
QPushButton*
pb_deleteCalibration
;
99
QPushButton*
pb_viewReport
;
100
101
QLineEdit*
le_name
;
102
QLineEdit*
le_serialNumber
;
103
QLineEdit*
le_coefficient1
;
104
QLineEdit*
le_coefficient2
;
105
QLineEdit*
le_omega2t
;
106
107
QListWidget*
lw_rotors
;
108
QListWidget*
lw_calibrations
;
109
110
QLineEdit*
le_calibrationLabel
;
111
112
US_Disk_DB_Controls
*
disk_controls
;
113
114
QComboBox*
cb_lab
;
115
116
bool
signal
;
117
bool
savingCalibration
;
118
119
void
setupGui (
int
);
120
121
private
slots:
122
US_Rotor::Status
readCalibration(
int
,
int
);
123
US_Rotor::Status
readRotor (
int
,
int
);
124
125
void
source_changed (
bool
db );
126
bool
loadRotors (
const
int
);
127
void
addRotor (
void
);
128
void
update_disk_db (
bool
db );
129
void
selectRotor ( QListWidgetItem * );
130
void
deleteRotor (
void
);
131
bool
readCalibrationProfiles(
int
);
132
void
selectCalibration ( QListWidgetItem * );
133
void
viewReport (
void
);
134
void
deleteCalibration (
void
);
135
void
updateName (
const
QString & );
136
void
updateSerialNumber (
const
QString & );
137
void
updateLabel (
const
QString & );
138
void
updateOmega2t (
const
QString & );
139
void
saveCalibration (
void
);
140
void
replaceDummyCalibration(
void
);
141
142
void
help
(
void
)
143
{
144
showHelp.show_help(
"manual/rotor.html"
);
145
};
146
147
void
reset (
void
);
148
void
accept (
void
);
149
void
cancel (
void
);
150
bool
load (
void
);
151
void
changeLab (
int
);
152
void
connect_error (
const
QString & );
153
int
getIndex (
void
);
154
void
db_error (
const
QString & );
155
void
newRotor (
void
);
156
};
157
158
#endif
Generated on Sun Jun 21 2015 11:40:43 for UltraScan III by
1.8.3.1-20130324