UltraScan III
us_predict1.h
Go to the documentation of this file.
1 #ifndef US_PREDICT1_H
2 #define US_PREDICT1_H
3 
4 #include <QtGui>
5 
6 #include "us_extern.h"
7 #include "us_widgets_dialog.h"
8 #include "us_plot.h"
9 #include "us_math2.h"
10 #include "us_help.h"
11 #include "us_buffer.h"
12 #include "us_analyte_gui.h"
13 #include "us_analyte.h"
14 #include "us_hydrosim.h"
15 #include "us_solution.h"
16 
17 
21 
23 {
24  Q_OBJECT
25 
26  public:
36  bool = false );
37 
38  signals:
42  void changed( US_Analyte );
43 
45  void changed( void );
46 
48  void done ( void );
49 
52  void use_db( bool DB );
53 
54  private:
57  int access;
59  bool signal;
60 
62 
65 
66  static const int ARRAYSIZE = 999;
67 
68  double oblate [ ARRAYSIZE ];
69  double rod [ ARRAYSIZE ];
70  double prolate[ ARRAYSIZE ];
71  double ratio_x[ ARRAYSIZE ];
72 
73  double vline_x[ 2 ];
74  double vline_y[ 2 ];
75 
76  double temperature;
77  double mw;
78  double ratio;
79 
80  QLineEdit* le_mw;
81  QLineEdit* le_density;
82  QLineEdit* le_viscosity;
83  QLineEdit* le_vbar;
84  QLineEdit* le_axial;
85 
86  QLabel* lb_info;
87  QLabel* lb_sphere [ 8 ];
88  QLabel* lb_prolate[ 8 ];
89  QLabel* lb_oblate [ 8 ];
90  QLabel* lb_rod [ 8 ];
91 
93  QwtPlot* plot;
94  QwtPlotPicker* pick;
95 
96  QwtPlotCurve* prolate_curve;
97  QwtPlotCurve* oblate_curve;
98  QwtPlotCurve* rod_curve;
99  QwtPlotCurve* vline_curve;
100 
102 
103  void update ( void );
104 
105  private slots:
106  void new_value ( const QwtDoublePoint& );
107  void mouseU ( const QwtDoublePoint& );
108  void update_ratio ( void );
109  void update_mw ( const QString& );
110  void degC ( const QString& );
111  void density ( const QString& );
112  void viscosity ( const QString& );
113  void vbar ( const QString& );
114  void get_buffer ( void );
115  void get_peptide ( void );
116  void complete ( void );
117  void debug ( void );
118  void source_changed ( bool );
119  void get_solution ( void );
120 
121  void update_buffer ( const US_Buffer );
122  void update_vbar ( const US_Analyte );
123  void update_solution( const US_Solution );
124  void choose ( int );
125 
126  void help ( void )
127  { showHelp.show_help( "manual/predict1.html" ); };
128 };
129 #endif