UltraScan III
us_constraints_edit.h
Go to the documentation of this file.
1 #ifndef US_CONSTRAINTS_EDIT_H
3 #define US_CONSTRAINTS_EDIT_H
4 
5 #include <QtGui>
6 
7 #include "us_extern.h"
8 #include "us_dmga_constr.h"
9 #include "us_widgets_dialog.h"
10 #include "us_help.h"
11 #include "us_model.h"
12 #include "us_predict1.h"
13 #include "us_analyte_gui.h"
14 #include "us_buffer.h"
15 
16 #define O_CONSTRAINTS US_dmGA_Constraints
17 #define C_CONSTRAINT US_dmGA_Constraints::Constraint
18 #define C_ATYPE US_dmGA_Constraints::AttribType
19 #define C_ATYPE_VBAR US_dmGA_Constraints::ATYPE_VBAR
20 #define C_ATYPE_MW US_dmGA_Constraints::ATYPE_MW
21 #define C_ATYPE_FF0 US_dmGA_Constraints::ATYPE_FF0
22 #define C_ATYPE_S US_dmGA_Constraints::ATYPE_S
23 #define C_ATYPE_D US_dmGA_Constraints::ATYPE_D
24 #define C_ATYPE_F US_dmGA_Constraints::ATYPE_F
25 #define C_ATYPE_CONC US_dmGA_Constraints::ATYPE_CONC
26 #define C_ATYPE_EXT US_dmGA_Constraints::ATYPE_EXT
27 #define C_ATYPE_KD US_dmGA_Constraints::ATYPE_KD
28 #define C_ATYPE_KOFF US_dmGA_Constraints::ATYPE_KOFF
29 
31 
33 {
34  Q_OBJECT
35 
36  public:
39 
40  signals:
43  void done( void );
44 
47  void use_db( bool DB );
48 
49  private:
50  // Passed parameters
52 
54 
56 
57  QVector< C_CONSTRAINT > attribs;
58  QVector< C_CONSTRAINT > flt_attrs;
59  QVector< C_CONSTRAINT > wrk_attrs;
60 
62  int oldRow;
63  int db_access;
64  int dbg_level;
65  int crow;
66  int arow;
67 
68  bool inUpdate;
69  bool chgStoi;
70 
72 
73  enum { MW, S, D, F, F_F0 } check_type;
74 
77 
78  QIcon check;
79 
80  QPalette gray;
81  QPalette normal;
82 
83  QListWidget* lw_comps;
84  QListWidget* lw_assocs;
85 
86  QList< int > lcompx;
87 
88  QPushButton* pb_accept;
89  QPushButton* pb_load_c0;
90 
91  QLineEdit* le_val_vbar;
92  QLineEdit* le_min_vbar;
93  QLineEdit* le_max_vbar;
94  QLineEdit* le_val_mw;
95  QLineEdit* le_min_mw;
96  QLineEdit* le_max_mw;
97  QLineEdit* le_val_s;
98  QLineEdit* le_min_s;
99  QLineEdit* le_max_s;
100  QLineEdit* le_val_D;
101  QLineEdit* le_min_D;
102  QLineEdit* le_max_D;
103  QLineEdit* le_val_ff0;
104  QLineEdit* le_min_ff0;
105  QLineEdit* le_max_ff0;
106  QLineEdit* le_val_f;
107  QLineEdit* le_min_f;
108  QLineEdit* le_max_f;
109  QLineEdit* le_val_conc;
110  QLineEdit* le_min_conc;
111  QLineEdit* le_max_conc;
112  QLineEdit* le_extinction;
113  QLineEdit* le_wavelength;
114  QLineEdit* le_oligomer;
115  QLineEdit* le_analyteConc;
116  QLineEdit* le_molar;
117  QLineEdit* le_lbl_kd;
118  QLineEdit* le_val_kd;
119  QLineEdit* le_min_kd;
120  QLineEdit* le_max_kd;
121  QLineEdit* le_lbl_koff;
122  QLineEdit* le_val_koff;
123  QLineEdit* le_min_koff;
124  QLineEdit* le_max_koff;
125  QLineEdit* le_sigma;
126  QLineEdit* le_delta;
127  QLineEdit* le_description;
128 
129  QCheckBox* ck_sel_vbar;
130  QCheckBox* ck_sel_mw;
131  QCheckBox* ck_sel_ff0;
132  QCheckBox* ck_sel_s;
133  QCheckBox* ck_sel_D;
134  QCheckBox* ck_sel_f;
135  QCheckBox* ck_sel_conc;
136  QCheckBox* ck_flt_vbar;
137  QCheckBox* ck_flt_mw;
138  QCheckBox* ck_flt_ff0;
139  QCheckBox* ck_flt_s;
140  QCheckBox* ck_flt_D;
141  QCheckBox* ck_flt_f;
142  QCheckBox* ck_flt_conc;
143  QCheckBox* ck_flt_kd;
144  QCheckBox* ck_flt_koff;
145  QCheckBox* ck_log_mw;
146  QCheckBox* ck_log_kd;
147  QCheckBox* ck_log_koff;
148  QCheckBox* ck_co_sed;
149  QCheckBox* ck_isreact;
150  QCheckBox* ck_isprod;
151 
152  private slots:
153  void check_mw ( bool );
154  void check_ff0 ( bool );
155  void check_s ( bool );
156  void check_D ( bool );
157  void check_f ( bool );
158  void float_vbar( bool );
159  void float_mw ( bool );
160  void float_ff0 ( bool );
161  void float_s ( bool );
162  void float_D ( bool );
163  void float_f ( bool );
164  void float_conc( bool );
165  void float_kd ( bool );
166  void float_koff( bool );
167  void logsc_mw ( bool );
168  void logsc_kd ( bool );
169  void logsc_koff( bool );
170 
171  void comps_connect ( bool );
172  void assocs_connect( bool );
173  int count_checks ( void );
174  void check_selects ( void );
175  void acceptProp ( void );
176  void load_c0 ( void );
177  void co_sed ( int );
178  void set_molar ( void );
179  void source_changed( bool );
180 
181  void component_select ( int );
182  void association_select ( int );
183  void save_comp_settings ( int, QVector< C_CONSTRAINT >& );
184  void save_assoc_settings( int, QVector< C_CONSTRAINT >& );
185 
186  void float_par ( bool, QLineEdit*, QLineEdit*, QLineEdit* );
187  void check_value ( const C_CONSTRAINT,
188  QLineEdit*, QLineEdit*, QLineEdit* );
189  double constr_value( const C_ATYPE, QVector< C_CONSTRAINT >& );
190  void help( void ){ showhelp.show_help( "dmga_init_constr.html" ); };
191 };
192 #endif