UltraScan III
us_select_rundd.h
Go to the documentation of this file.
1 #ifndef US_SELECT_RUNDD_H
3 #define US_SELECT_RUNDD_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_db2.h"
11 
12 #ifndef DbgLv
13 #define DbgLv(a) if(dbg_level>=a)qDebug()
14 #endif
15 
18 {
19  Q_OBJECT
20 
21  public:
22 
27 
28  US_SelectRunDD( bool, QStringList&, QStringList& );
29 
30  signals:
34  void changed( bool isDB );
35 
36  private:
37  QStringList& runIDs; // Selected run IDs
38  QStringList& mDescrs; // Selected runs' model descriptions
39  bool sel_db; // Select-database flag
40  bool mcounted; // Models-counted flag
41 
42  QStringList mRunIDs; // Model run IDs
43 
44  QPushButton* pb_invest; // Investigator button
45 
46  QLineEdit* le_invest; // Investigator id:name text entry
47  QLineEdit* le_dfilter; // Data search filter text entry
48 
49  QTextEdit* te_status; // Text box for current list status
50 
51  QListWidget* lw_data; // Data list widget
52 
53  US_Disk_DB_Controls* dkdb_cntrls; // Radio buttons for disk/db choice
54 
55  QString dsearch; // Current data search string
56 
57  QStringList rlabels; // Run ID labels
58  QStringList wDescrs; // Working model descriptions
59 
60  QList< int > rmodKnts; // Model counts for runs
61 
62  int count_allr; // Count of all user runs
63  int count_list; // Count of discrete distribution runs
64  int count_seld; // Count of runs currently selected;
65  int dbg_level; // Debug level
66  int nimodel; // Count of input model desriptions
67 
68  private slots:
69 
70  void scan_dbase_runs ( void );
71  void scan_local_runs ( void );
72  void scan_dbase_models( void );
73  void scan_local_models( void );
74  void list_data ( void );
75  void search ( const QString& );
76  void cancelled ( void );
77  void accepted ( void );
78  void get_person ( void );
79  void update_person ( int );
80  void update_disk_db ( bool );
81  void selectionChanged( void );
82  void count_models ( void );
83 };
84 #endif