UltraScan III
us_solution_gui.h
Go to the documentation of this file.
1 #ifndef US_SOLUTION_GUI_H
3 #define US_SOLUTION_GUI_H
4 
5 #include "us_extern.h"
6 #include "us_widgets.h"
7 #include "us_widgets_dialog.h"
8 #include "us_buffer.h"
9 #include "us_analyte.h"
10 #include "us_solution.h"
11 #include "us_help.h"
12 
20 {
21  Q_OBJECT
22 
23  public:
24 
42  US_SolutionGui( int = 1,
43  int = 1,
44  bool = false,
46  const US_Solution& = US_Solution(),
47  bool = true );
48 
51 
52  signals:
53 
62  void updateSolutionGuiSelection( US_Solution solution );
63 
69  void cancelSolutionGuiSelection( void );
70 
73  void use_db( bool DB );
74 
75  private:
77  {
78  public:
80  QString GUID;
81  QString description;
82  QString filename;
83  int index;
84  };
85 
86  QList< SolutionInfo > info;
89  int channelID;
90  bool signal;
92  bool autosave;
93  bool changed;
94 
95  QStringList IDs;
96  QStringList descriptions;
97  QStringList GUIDs;
98  QStringList filenames;
99 
101 
102  QLabel* lb_amount;
103 
104  QLineEdit* le_investigator;
105  QLineEdit* le_bufferInfo;
106  QLineEdit* le_solutionDesc;
107  QLineEdit* le_commonVbar20;
108  QLineEdit* le_density;
109  QLineEdit* le_viscosity;
110  QLineEdit* le_storageTemp;
111  QLineEdit* le_guid;
112  QwtCounter* ct_amount;
113 
114  QListWidget* lw_solutions;
115  QListWidget* lw_analytes;
116 
117  QTextEdit* te_notes;
118 
120 
121  QPushButton* pb_query;
122  QPushButton* pb_buffer;
123  QPushButton* pb_newSolution;
124  QPushButton* pb_save;
125  QPushButton* pb_del;
126  QPushButton* pb_addAnalyte;
127  QPushButton* pb_removeAnalyte;
128  QPushButton* pb_accept;
129 
130  QMap< QListWidgetItem*, int > solutionMap;
131  QMap< QListWidgetItem*, int > analyteMap;
132 
133  private slots:
134  void reset ( void );
135  void accept ( void );
136  void cancel ( void );
137  void sel_investigator ( void );
138  void assign_investigator( int );
139  void load ( void );
140  void loadDisk ( void );
141  void loadDB ( void );
142  void loadSolutions ( void );
143  void selectSolution ( QListWidgetItem* );
144  void addAnalyte ( void );
145  void assignAnalyte ( US_Analyte );
146  void replaceAnalyte ( US_Analyte );
147  void selectAnalyte ( QListWidgetItem* );
148  void changeAnalyte ( QListWidgetItem* );
149  void removeAnalyte ( void );
150  void calcCommonVbar20 ( void );
151  void selectBuffer ( void );
152  void assignBuffer ( US_Buffer );
153  void saveAmount ( double );
154  void saveDescription ( void );
155  void saveTemperature ( const QString& );
156  void saveNotes ( void );
157  void newSolution ( void );
158  void save ( bool = true );
159  void delete_solution ( void );
160  void source_changed ( bool );
161  void update_disk_db ( bool );
162  void db_error ( const QString& );
163  void help ( void )
164  { showHelp.show_help( "manual/us_convert.html" ); };
165 };
166 #endif