UltraScan III
us_properties.h
Go to the documentation of this file.
1 #ifndef US_PROPERTIES_H
3 #define US_PROPERTIES_H
4 
5 #include <QtGui>
6 
7 #include "us_widgets_dialog.h"
8 #include "us_widgets.h"
9 #include "us_model.h"
10 #include "us_predict1.h"
11 #include "us_analyte_gui.h"
12 #include "us_buffer.h"
13 #include "us_model_gui.h"
14 #include "us_help.h"
15 #include "us_extern.h"
16 
18 
20 {
21  Q_OBJECT
22 
23  public:
30  signals:
33  void valueChanged( US_Hydrosim hydro );
34 
37  void done( void );
38 
41  void use_db( bool DB );
42 
43  private:
44  // Passed parameters
46 
48 
50  int oldRow;
51 
52  int db_access;
53  bool inUpdate;
54  bool chgStoi;
55 
57 
58  enum { MW, S, D, F, F_F0 } check_type;
59 
62 
63  QIcon check;
64 
65  QPalette gray;
66  QPalette normal;
67 
68  QListWidget* lw_components;
69  QPushButton* pb_load_c0;
70  QComboBox* cb_shape;
71 
72  QLineEdit* le_vbar;
73  QLineEdit* le_mw;
74  QLineEdit* le_s;
75  QLineEdit* le_D;
76  QLineEdit* le_f;
77  QLineEdit* le_f_f0;
78  QLineEdit* le_extinction;
79  QLineEdit* le_wavelength;
80  QLineEdit* le_sigConc;
81  QLineEdit* le_molConc;
82  QLineEdit* le_sigma;
83  QLineEdit* le_delta;
84  QLineEdit* le_guid;
85  QLineEdit* le_description;
86 
87  QCheckBox* ck_isProd;
88  QCheckBox* ck_sigConc;
89  QCheckBox* ck_molConc;
90  QCheckBox* ck_mw;
91  QCheckBox* ck_s;
92  QCheckBox* ck_D;
93  QCheckBox* ck_f;
94  QCheckBox* ck_f_f0;
95  QCheckBox* ck_co_sed;
96 
97  QwtCounter* ct_oligomer;
98 
99  void setInvalid ( void );
100  int countChecks ( void );
101  void update_lw ( void );
102  void enable ( QLineEdit*, bool, const QPalette& );
103  void clear_guid ( void );
104  void clear_entries ( void );
105  void save_changes ( int );
106  void checkbox ( void );
107  bool keep_standard ( void );
108 
109  private slots:
110  void newAnalyte ( void );
111  void update ( int );
112  void update_analyte( US_Analyte );
113  void calculate ( void );
114  void calculate ( bool ) { calculate(); };
115  void acceptProp ( void );
116  void simulate ( void );
117  void new_hydro ( US_Analyte );
118  void select_shape ( int );
119  void load_c0 ( void );
120  void co_sed ( int );
121  void set_molar ( void );
122  void set_oligomer ( double );
123  void source_changed( bool );
124  void check_molar ( bool );
125  void check_signal ( bool );
126 
127  void del_component ( void );
128  void edit_component( void );
129  void edit_vbar ( void );
130  void edit_analyte ( void );
131  void help ( void )
132  { showhelp.show_help( "components.html" ); };
133 };
134 #endif