UltraScan III
Namespaces
Classes
Files
File List
File Members
programs
us_pcsa
us_mrecs_loader.h
Go to the documentation of this file.
1
#ifndef US_MRECS_LOAD_H
3
#define US_MRECS_LOAD_H
4
5
#include <QtGui>
6
7
#include "
us_extern.h
"
8
#include "
us_widgets_dialog.h
"
9
#include "
us_widgets.h
"
10
#include "
us_dataIO.h
"
11
#include "
us_pcsa_modelrec.h
"
12
#include "
us_model.h
"
13
#include "
us_plot.h
"
14
#include "
us_help.h
"
15
16
#define VEC_MRECS QVector< US_ModelRecord >
17
19
class
US_MrecsLoader
:
public
US_WidgetsDialog
20
{
21
Q_OBJECT
22
23
public
:
32
US_MrecsLoader
(
bool
, QString&,
VEC_MRECS
&, QString&,
33
const
QString =
""
,
const
QString =
""
);
34
35
private
:
36
bool
loadDB
;
// flag: true to load from DB; false=disk
37
QString&
dsearch
;
// reference to search string argument
38
VEC_MRECS
&
omrecs
;
// reference to mrecs argument
39
QString&
odescr
;
// reference to description argument
40
QString
editGUID
;
// edit GUID to possibly match
41
QString
runID
;
// run ID to possibly limit local files
42
US_DB2
*
dbP
;
// pointer to a database connection
43
44
US_Help
showHelp
;
45
46
class
MrecsDesc
47
{
// model description object
48
public
:
49
QString
description
;
// description string
50
QString
mrecsGUID
;
// mrecs GUID
51
QString
filename
;
// local file name
52
QString
DB_id
;
// database ID (-1 if local)
53
QString
editGUID
;
// edit GUID
54
QString
modelGUID
;
// model GUID
55
int
rec_index
;
// mrecs list index
56
};
57
58
QList< MrecsDesc >
mrecs_descriptions
;
// listed mrecs entries
59
QList< MrecsDesc >
mrecs_descrs_recs
;
// mrecs list from records
60
61
VEC_MRECS
mrecs
;
62
US_ModelRecord
mrec
;
63
QString
mrdesc
;
64
65
QPushButton*
pb_filtvmrecs
;
66
QPushButton*
pb_delete
;
67
QPushButton*
pb_details
;
68
QPushButton*
pb_accept
;
69
70
QLineEdit*
le_mfilter
;
71
72
QCheckBox*
ck_edit
;
73
QCheckBox*
ck_unasgn
;
74
75
US_ListWidget
*
lw_vmrecs
;
76
77
int
db_id1
;
78
int
db_id2
;
79
int
sel_row
;
80
81
bool
do_edit
;
82
bool
do_unasgn
;
83
bool
can_edit
;
84
85
QString
reqGUID
;
86
87
QStringList
mdescrs
;
88
89
private
slots:
94
int
load_mrecs
(
VEC_MRECS
&,
int
);
95
107
QString
concat_description
(
int
);
108
109
void
list_vmrecs
(
void
);
110
void
msearch
(
const
QString& );
111
void
cancelled
(
void
);
112
void
accepted
(
void
);
113
void
change_edit
(
bool
);
114
void
row_selected
(
int
);
115
void
delete_mrecs
(
void
);
116
117
void
help
(
void
)
118
{
showHelp
.
show_help
(
"load_modelrecs.html"
); };
119
120
int
mrecsIndex
( QString mdesc, QList< MrecsDesc > );
121
void
show_mrecs_info
(
void
);
122
};
123
#endif
124
Generated on Sun Jun 21 2015 11:40:42 for UltraScan III by
1.8.3.1-20130324