A dialog class to select a model and load its distribution data. More...
#include "us_model_loader.h"
Classes | |
class | ModelDesc |
Signals | |
void | changed (bool DB) |
A signal to the parent that disk/db selection has changed. More... | |
Public Member Functions | |
US_ModelLoader (bool, QString &, US_Model &, QString &, const QString="") | |
Main constructor for dialog to select a model and load its distribution data. More... | |
US_ModelLoader (bool, QString &, US_Model &, QString &, QStringList &) | |
Alternate constructor for dialog to select a model and load its distribution data (with pre-filter) More... | |
US_ModelLoader (bool, QString &, QList< US_Model > &, QStringList &, QStringList &) | |
Alternate constructor for dialog to select models and load their distribution data. More... | |
US_ModelLoader (bool, QString &, QList< US_Model > &, QStringList &) | |
Alternate constructor for dialog to select models and load their distribution data (no runIDs list) More... | |
Public Member Functions inherited from US_WidgetsDialog | |
US_WidgetsDialog (QWidget *, Qt::WindowFlags) | |
QLabel * | us_label (const QString &, int=0, int=QFont::Bold) |
QLabel * | us_textlabel (const QString &, int=-1, int=QFont::Bold) |
QLabel * | us_banner (const QString &, int=0, int=QFont::Bold) |
QPushButton * | us_pushbutton (const QString &, bool=true, int=0) |
QTextEdit * | us_textedit (void) |
QLineEdit * | us_lineedit (const QString &=0, int=0, bool=false) |
void | us_setReadOnly (QLineEdit *, bool=true) |
void | us_setReadOnly (QTextEdit *, bool=true) |
QListWidget * | us_listwidget (int=0) |
QGridLayout * | us_checkbox (const QString &, QCheckBox *&, bool=false) |
QGridLayout * | us_radiobutton (const QString &text, QRadioButton *&rb, bool state=false) |
QProgressBar * | us_progressBar (int, int, int=0) |
QComboBox * | us_comboBox (void) |
QLCDNumber * | us_lcd (int, int=0) |
QwtCounter * | us_counter (int, double, double, double=0.0) |
QwtPlot * | us_plot (const QString &, const QString &=QString(), const QString &=QString()) |
QwtPlotGrid * | us_grid (QwtPlot *) |
QwtPlotCurve * | us_curve (QwtPlot *, const QString &) |
QwtPlotPicker * | us_picker (QwtPlot *) |
QTabWidget * | us_tabwidget (int=0, int=QFont::Bold) |
Protected Member Functions | |
bool | eventFilter (QObject *, QEvent *) |
Event filter to flag whether a mouse click is with the right mouse button. More... | |
Private Slots | |
int | load_model (US_Model &, int) |
Load model at a given index. More... | |
QString | description (int) |
Get a description of the model at a given index. More... | |
void | build_dialog (void) |
void | select_diskdb (void) |
void | get_person (void) |
void | update_person (int) |
void | list_models (void) |
void | msearch (const QString &) |
void | records_list (void) |
void | singles_list (void) |
void | cancelled (void) |
void | accepted (void) |
void | change_single (bool) |
void | change_edit (bool) |
void | change_unasgn (bool) |
void | help (void) |
int | modelIndex (QString mdesc, QList< ModelDesc >) |
void | show_model_info (QPoint) |
Private Attributes | |
bool | loadDB |
QString & | dsearch |
US_Model & | omodel |
QString & | odescr |
QList< US_Model > & | omodels |
QStringList & | odescrs |
QStringList & | runIDs |
bool | multi |
QString | editGUID |
US_DB2 * | dbP |
US_Help | showHelp |
QList< ModelDesc > | model_descriptions |
QList< ModelDesc > | model_descrs_recs |
QList< ModelDesc > | model_descrs_sings |
QList< ModelDesc > | model_descrs_ufilt |
US_Model | model |
QList< US_Model > | wmodels |
QRadioButton * | rb_db |
QRadioButton * | rb_disk |
QPushButton * | pb_investigator |
QPushButton * | pb_filtmodels |
QLineEdit * | le_investigator |
QLineEdit * | le_mfilter |
QCheckBox * | ck_single |
QCheckBox * | ck_edit |
QCheckBox * | ck_unasgn |
US_Disk_DB_Controls * | dkdb_cntrls |
US_ListWidget * | lw_models |
int | modelsCount |
int | db_id1 |
int | db_id2 |
bool | singprev |
bool | do_single |
bool | do_run |
bool | do_edit |
bool | do_unasgn |
bool | do_manual |
bool | can_run |
bool | can_edit |
QString | reqGUID |
QStringList | mdescrs |
QStringList | wrunIDs |
Additional Inherited Members | |
Public Attributes inherited from US_WidgetsDialog | |
US_Global | g |
Connect to global memory and make the values accessible. More... | |
QPalette | vlgray |
Very light gray palette for read-only line edits. More... | |
A dialog class to select a model and load its distribution data.
Definition at line 17 of file us_model_loader.h.
US_ModelLoader::US_ModelLoader | ( | bool | dbSrc, |
QString & | search, | ||
US_Model & | amodel, | ||
QString & | adescr, | ||
const QString | eGUID = "" |
||
) |
Main constructor for dialog to select a model and load its distribution data.
dbSrc | Flag: default models source to database |
search | List search filter string |
amodel | Output loaded model |
adescr | Output selected model description string |
eGUID | Edit GUID for filtering on Edit children |
Definition at line 14 of file us_model_loader.cpp.
US_ModelLoader::US_ModelLoader | ( | bool | dbSrc, |
QString & | search, | ||
US_Model & | amodel, | ||
QString & | adescr, | ||
QStringList & | arunIDs | ||
) |
Alternate constructor for dialog to select a model and load its distribution data (with pre-filter)
dbSrc | Flag: default models source to database |
search | List search filter string |
amodel | Output loaded model |
adescr | Output selected model description string |
arunIDs | List of pre-filter runIDs (ID-db/GUID-file) |
Definition at line 27 of file us_model_loader.cpp.
US_ModelLoader::US_ModelLoader | ( | bool | dbSrc, |
QString & | search, | ||
QList< US_Model > & | amodels, | ||
QStringList & | adescrs, | ||
QStringList & | arunIDs | ||
) |
Alternate constructor for dialog to select models and load their distribution data.
dbSrc | Flag: default models source to database |
search | List search filter string |
amodels | Output loaded models |
adescrs | Output selected model description strings |
arunIDs | List of pre-filter runIDs (ID-db/GUID-file) |
Definition at line 40 of file us_model_loader.cpp.
US_ModelLoader::US_ModelLoader | ( | bool | dbSrc, |
QString & | search, | ||
QList< US_Model > & | amodels, | ||
QStringList & | adescrs | ||
) |
Alternate constructor for dialog to select models and load their distribution data (no runIDs list)
dbSrc | Flag: default models source to database |
search | List search filter string |
amodels | Output loaded models |
adescrs | Output selected model description strings |
Definition at line 54 of file us_model_loader.cpp.
|
privateslot |
Definition at line 814 of file us_model_loader.cpp.
|
privateslot |
Definition at line 67 of file us_model_loader.cpp.
|
privateslot |
Definition at line 805 of file us_model_loader.cpp.
|
privateslot |
Definition at line 1211 of file us_model_loader.cpp.
|
privateslot |
Definition at line 1201 of file us_model_loader.cpp.
|
privateslot |
Definition at line 1222 of file us_model_loader.cpp.
|
signal |
A signal to the parent that disk/db selection has changed.
DB | True if DB source is selected |
|
privateslot |
Get a description of the model at a given index.
index | Index in list of models loaded (0,...,count-1) |
Definition at line 281 of file us_model_loader.cpp.
|
protected |
Event filter to flag whether a mouse click is with the right mouse button.
obj | Pointer to object on which event occurred. |
e | Pointer to event to filter. |
Definition at line 890 of file us_model_loader.cpp.
|
privateslot |
Definition at line 318 of file us_model_loader.cpp.
|
inlineprivateslot |
Definition at line 175 of file us_model_loader.h.
|
privateslot |
Definition at line 340 of file us_model_loader.cpp.
|
privateslot |
Load model at a given index.
model | Model to load from given index |
index | Index in list of models to load (0,...,count-1) |
Definition at line 214 of file us_model_loader.cpp.
|
privateslot |
Definition at line 911 of file us_model_loader.cpp.
|
privateslot |
Definition at line 1190 of file us_model_loader.cpp.
|
privateslot |
Definition at line 1146 of file us_model_loader.cpp.
|
privateslot |
Definition at line 303 of file us_model_loader.cpp.
|
privateslot |
Definition at line 928 of file us_model_loader.cpp.
|
privateslot |
Definition at line 1152 of file us_model_loader.cpp.
|
privateslot |
Definition at line 331 of file us_model_loader.cpp.
|
private |
Definition at line 132 of file us_model_loader.h.
|
private |
Definition at line 131 of file us_model_loader.h.
|
private |
Definition at line 114 of file us_model_loader.h.
|
private |
Definition at line 113 of file us_model_loader.h.
|
private |
Definition at line 115 of file us_model_loader.h.
|
private |
Definition at line 122 of file us_model_loader.h.
|
private |
Definition at line 123 of file us_model_loader.h.
|
private |
Definition at line 79 of file us_model_loader.h.
|
private |
Definition at line 117 of file us_model_loader.h.
|
private |
Definition at line 128 of file us_model_loader.h.
|
private |
Definition at line 130 of file us_model_loader.h.
|
private |
Definition at line 127 of file us_model_loader.h.
|
private |
Definition at line 126 of file us_model_loader.h.
|
private |
Definition at line 129 of file us_model_loader.h.
|
private |
Definition at line 71 of file us_model_loader.h.
|
private |
Definition at line 78 of file us_model_loader.h.
|
private |
Definition at line 110 of file us_model_loader.h.
|
private |
Definition at line 111 of file us_model_loader.h.
|
private |
Definition at line 70 of file us_model_loader.h.
|
private |
Definition at line 119 of file us_model_loader.h.
|
private |
Definition at line 136 of file us_model_loader.h.
|
private |
Definition at line 101 of file us_model_loader.h.
|
private |
Definition at line 96 of file us_model_loader.h.
|
private |
Definition at line 97 of file us_model_loader.h.
|
private |
Definition at line 98 of file us_model_loader.h.
|
private |
Definition at line 99 of file us_model_loader.h.
|
private |
Definition at line 121 of file us_model_loader.h.
|
private |
Definition at line 77 of file us_model_loader.h.
|
private |
Definition at line 73 of file us_model_loader.h.
|
private |
Definition at line 75 of file us_model_loader.h.
|
private |
Definition at line 72 of file us_model_loader.h.
|
private |
Definition at line 74 of file us_model_loader.h.
|
private |
Definition at line 108 of file us_model_loader.h.
|
private |
Definition at line 107 of file us_model_loader.h.
|
private |
Definition at line 104 of file us_model_loader.h.
|
private |
Definition at line 105 of file us_model_loader.h.
|
private |
Definition at line 134 of file us_model_loader.h.
|
private |
Definition at line 76 of file us_model_loader.h.
|
private |
Definition at line 81 of file us_model_loader.h.
|
private |
Definition at line 125 of file us_model_loader.h.
|
private |
Definition at line 102 of file us_model_loader.h.
|
private |
Definition at line 137 of file us_model_loader.h.