UltraScan III
Namespaces
Classes
Files
File List
File Members
gui
us_project_gui.h
Go to the documentation of this file.
1
#ifndef US_PROJECT_GUI_H
3
#define US_PROJECT_GUI_H
4
5
#include "
us_extern.h
"
6
#include "
us_widgets.h
"
7
#include "
us_widgets_dialog.h
"
8
#include "
us_project.h
"
9
#include "
us_help.h
"
10
15
class
US_ProjectGuiGeneral
:
public
US_Widgets
16
{
17
Q_OBJECT
18
19
public
:
27
US_ProjectGuiGeneral
(
int
*,
28
int
);
29
31
void
reset
(
void
);
32
35
void
setGUID
( QString );
36
39
void
setDesc
( QString );
40
42
QString
getDesc
(
void
);
43
44
QLineEdit*
le_investigator
;
45
QLineEdit*
le_projectDesc
;
46
QLineEdit*
le_guid
;
47
48
int
*
investigatorID
;
49
50
QListWidget*
lw_projects
;
51
52
QPushButton*
pb_query
;
53
QPushButton*
pb_save
;
54
QPushButton*
pb_newProject
;
55
QPushButton*
pb_del
;
56
QPushButton*
pb_resetAll
;
57
58
US_Disk_DB_Controls
*
disk_controls
;
59
60
signals:
62
void
newProject
(
void
);
63
65
void
load
(
void
);
66
69
void
selectProject
( QListWidgetItem* item );
70
72
void
saveDescription
(
const
QString& );
73
75
void
save
(
void
);
76
78
void
deleteProject
(
void
);
79
82
void
source_changed
(
bool
db );
83
84
private
:
85
private
slots:
86
void
sel_investigator
(
void
);
87
void
assign_investigator
(
int
);
88
};
89
93
class
US_ProjectGuiGoals
:
public
US_Widgets
94
{
95
Q_OBJECT
96
97
public
:
99
US_ProjectGuiGoals
(
void
);
100
102
QString
getGoals
(
void
);
103
106
void
setGoals
( QString );
107
108
signals:
110
void
goalsTabChanged
(
void
);
111
112
private
:
113
QTextEdit*
te_goals
;
114
115
};
116
120
class
US_ProjectGuiMolecules
:
public
US_Widgets
121
{
122
Q_OBJECT
123
124
public
:
126
US_ProjectGuiMolecules
(
void
);
127
129
QString
getMolecules
(
void
);
130
133
void
setMolecules
( QString );
134
135
signals:
137
void
moleculesTabChanged
(
void
);
138
139
private
:
140
QTextEdit*
te_molecules
;
141
142
};
143
147
class
US_ProjectGuiPurity
:
public
US_Widgets
148
{
149
Q_OBJECT
150
151
public
:
153
US_ProjectGuiPurity
(
void
);
154
156
QString
getPurity
(
void
);
157
160
void
setPurity
( QString );
161
162
signals:
164
void
purityTabChanged
(
const
QString& );
165
166
private
:
167
QLineEdit*
le_purity
;
168
169
};
170
174
class
US_ProjectGuiExpense
:
public
US_Widgets
175
{
176
Q_OBJECT
177
178
public
:
180
US_ProjectGuiExpense
(
void
);
181
183
QString
getExpense
(
void
);
184
187
void
setExpense
( QString );
188
189
signals:
191
void
expenseTabChanged
(
void
);
192
193
private
:
194
QTextEdit*
te_expense
;
195
196
};
197
201
class
US_ProjectGuiBufferComponents
:
public
US_Widgets
202
{
203
Q_OBJECT
204
205
public
:
207
US_ProjectGuiBufferComponents
(
void
);
208
210
QString
getBufferComponents
(
void
);
211
214
void
setBufferComponents
( QString );
215
216
signals:
218
void
bufferComponentsTabChanged
(
void
);
219
220
private
:
221
QTextEdit*
te_bufferComponents
;
222
223
};
224
228
class
US_ProjectGuiSaltInformation
:
public
US_Widgets
229
{
230
Q_OBJECT
231
232
public
:
234
US_ProjectGuiSaltInformation
(
void
);
235
237
QString
getSaltInformation
(
void
);
238
241
void
setSaltInformation
( QString );
242
243
signals:
245
void
saltInformationTabChanged
(
void
);
246
247
private
:
248
QTextEdit*
te_saltInformation
;
249
250
};
251
255
class
US_ProjectGuiAUC_questions
:
public
US_Widgets
256
{
257
Q_OBJECT
258
259
public
:
261
US_ProjectGuiAUC_questions
(
void
);
262
264
QString
getAUC_questions
(
void
);
265
268
void
setAUC_questions
( QString );
269
270
signals:
272
void
AUC_questionsTabChanged
(
void
);
273
274
private
:
275
QTextEdit*
te_auc_questions
;
276
277
};
278
282
class
US_ProjectGuiExpDesign
:
public
US_Widgets
283
{
284
Q_OBJECT
285
286
public
:
288
US_ProjectGuiExpDesign
(
void
);
289
291
QString
getExpDesign
(
void
);
292
295
void
setExpDesign
( QString );
296
297
signals:
299
void
expDesignTabChanged
(
void
);
300
301
private
:
302
QTextEdit*
te_exp_design
;
303
304
};
305
309
class
US_ProjectGuiNotes
:
public
US_Widgets
310
{
311
Q_OBJECT
312
313
public
:
315
US_ProjectGuiNotes
(
void
);
316
318
QString
getNotes
(
void
);
319
322
void
setNotes
( QString );
323
324
signals:
326
void
notesTabChanged
(
void
);
327
328
private
:
329
QTextEdit*
te_notes
;
330
331
};
332
338
class
US_GUI_EXTERN
US_ProjectGui
:
public
US_WidgetsDialog
339
{
340
Q_OBJECT
341
342
public
:
343
355
US_ProjectGui
(
bool
=
false
,
356
int
=
US_Disk_DB_Controls::Default
,
357
const
US_Project
& =
US_Project
() );
358
360
~
US_ProjectGui
();
361
364
class
ProjectInfo
365
{
366
public
:
367
int
projectID
;
368
QString
GUID
;
369
QString
description
;
370
QString
filename
;
371
int
index
;
372
};
373
374
QList< ProjectInfo >
info
;
375
int
investigatorID
;
376
US_Project
project
;
377
378
QStringList
IDs
;
379
QStringList
descriptions
;
380
QStringList
GUIDs
;
381
QStringList
filenames
;
382
383
QMap< QListWidgetItem*, int >
projectMap
;
384
385
signals:
386
394
void
updateProjectGuiSelection(
US_Project
& project );
395
400
void
cancelProjectGuiSelection(
void
);
401
404
void
use_db(
bool
DB );
405
406
private
:
407
bool
signal
;
408
bool
text_changed
;
409
410
US_Help
showHelp
;
411
412
QTabWidget*
tabWidget
;
413
414
US_ProjectGuiGeneral
*
generalTab
;
415
US_ProjectGuiGoals
*
goalsTab
;
416
US_ProjectGuiMolecules
*
moleculesTab
;
417
US_ProjectGuiPurity
*
purityTab
;
418
US_ProjectGuiExpense
*
expenseTab
;
419
US_ProjectGuiBufferComponents
*
bufferComponentsTab
;
420
US_ProjectGuiSaltInformation
*
saltInformationTab
;
421
US_ProjectGuiAUC_questions
*
auc_questionsTab
;
422
US_ProjectGuiExpDesign
*
expDesignTab
;
423
US_ProjectGuiNotes
*
notesTab
;
424
425
QPushButton*
pb_accept
;
426
427
public
slots:
429
void
newProject (
void
);
430
432
void
load (
void
);
433
435
void
selectProject ( QListWidgetItem* );
436
438
void
saveDescription (
const
QString& );
439
441
void
saveProject (
void
);
442
444
void
deleteProject (
void
);
445
447
void
source_changed (
bool
);
448
450
void
tabTextChanged (
const
QString& =
""
);
451
452
private
slots:
453
void
reset (
void
);
454
void
enableButtons (
void
);
455
void
resetAll (
void
);
456
void
accept (
void
);
457
void
cancel (
void
);
458
void
loadDisk (
void
);
459
void
loadDB (
void
);
460
void
loadProjects (
void
);
461
void
db_error (
const
QString& );
462
void
help
(
void
)
463
{ showHelp.show_help(
"manual/us_project.html"
); };
464
};
465
#endif
Generated on Sun Jun 21 2015 11:40:43 for UltraScan III by
1.8.3.1-20130324