UltraScan III
us_investigator.h
Go to the documentation of this file.
1 #ifndef US_INVESTIGATOR_H
3 #define US_INVESTIGATOR_H
4 
5 #include <QtGui>
6 
7 #include "us_extern.h"
8 #include "us_widgets_dialog.h"
9 #include "us_help.h"
10 
12 
20 {
21  Q_OBJECT
22 
23  public:
24  US_Investigator( bool = false, int = -1 );
25 
27 
32  {
33  public:
34  int invID;
35  QString invGuid;
36  QString lastName;
37  QString firstName;
38  QString address;
39  QString city;
40  QString state;
41  QString zip;
42  QString phone;
43  QString email;
44  QString organization;
45  };
46 
47  signals:
50  void investigator_accepted( int investigatorID );
51 
52  private:
55  QList< US_InvestigatorData > investigators;
56 
57  QLineEdit* le_search;
58  QLineEdit* le_invID;
59  QLineEdit* le_invGuid;
60  QLineEdit* le_fname;
61  QLineEdit* le_lname;
62  QLineEdit* le_address;
63  QLineEdit* le_city;
64  QLineEdit* le_state;
65  QLineEdit* le_zip;
66  QLineEdit* le_phone;
67  QLineEdit* le_email;
68  QLineEdit* le_org;
69 
70  QListWidget* lw_names;
71 
72  QPushButton* pb_update;
73 
75 
76  bool check_fields( void );
77  bool changed ( void );
78 
79  private slots:
80  void queryDB ( void );
81  void update ( void );
82  void reset ( void );
83  void close ( void );
84  void limit_names ( const QString& );
85  void get_inv_data( QListWidgetItem* );
86 
87  void help ( void )
88  { showHelp.show_help( "us_investigator.html" ); };
89 
90 };
91 #endif