UltraScan III
us_select_runid.h
Go to the documentation of this file.
1 #ifndef US_SELECT_RUNID_H
3 #define US_SELECT_RUNID_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 
26 
27  US_SelectRunid( bool, QStringList& );
28 
29  signals:
33  void changed( bool isDB );
34 
35  private:
36  QStringList& runIDs; // Selected run IDs
37  bool sel_db; // Select-database flag
38 
39  QPushButton* pb_invest; // Investigator button
40 
41  QLineEdit* le_invest; // Investigator id:name text entry
42  QLineEdit* le_dfilter; // Data search filter text entry
43 
44  QTextEdit* te_status; // Text box for current list status
45 
46  QListWidget* lw_data; // Data list widget
47 
48  US_Disk_DB_Controls* dkdb_cntrls; // Radio buttons for disk/db choice
49 
50  QString dsearch; // Current data search string
51 
52  QStringList rlabels; // Run ID labels
53 
54  int count_allr; // Count of all user runs
55  int count_list; // Count of runs with vHW distribution plots
56  int count_seld; // Count of runs currently selected;
57  int dbg_level; // Debug level
58 
59  private slots:
60 
61  void scan_dbase_runs ( void );
62  void scan_local_runs ( void );
63  void list_data ( void );
64  void search ( const QString& );
65  void cancelled ( void );
66  void accepted ( void );
67  void get_person ( void );
68  void update_person ( int );
69  void update_disk_db ( bool );
70  void selectionChanged( void );
71 };
72 #endif