UltraScan III
us_get_run.h
Go to the documentation of this file.
1 #ifndef US_GET_RUN_H
2 #define US_GET_RUN_H
3 
4 #include <QtGui>
5 
6 #include "us_extern.h"
7 #include "us_widgets_dialog.h"
8 #include "us_widgets.h"
9 #include "us_help.h"
10 #include "us_db2.h"
11 
19 {
20  Q_OBJECT
21 
22  public:
24  // \param run A reference for the returned selected runID
25  // \param inDB Flag of whether data source is database
26  US_GetRun( QString&, bool = true );
27 
30  class RunInfo
31  {
32  public:
33  int ID;
34  QString date;
35  QString runID;
36  QString label;
37  };
38 
39  signals:
42  void dkdb_changed( bool DB );
43 
44  private:
45  QString& runID;
46 
47  QPushButton* pb_invest;
48  QLineEdit* le_invest;
49  QLineEdit* le_search;
50  QTableWidget* tw;
51  QList< RunInfo > runInfo;
53 
54  int personID;
55 
56 
58 
59  private slots:
60  void load_db ( void );
61  void load_disk ( void );
62  void sel_investigator ( void );
63  void assign_investigator( int );
64  void select ( void );
65  void deleteRun ( void );
66  void populate_list ( void );
67  void update_disk_db( bool );
68  void limit_data ( const QString& );
69  void help( void )
70  { showHelp.show_help( "get_run.help" ); };
71 };
72 #endif