9 #include <qwt_legend.h>
18 setObjectName(
"US_PlotControlFem" );
19 setAttribute( Qt::WA_DeleteOnClose,
true );
24 setWindowTitle( tr(
"3-D Plotting Controls" ) );
36 QLabel* lb_dimens =
us_label( tr(
"Dimension:" ) );
37 QLabel* lb_molwt =
us_label( tr(
"Molecular Weight:" ) );
38 QLabel* lb_sedcoeff =
us_label( tr(
"Sedimentation Coefficient:" ) );
39 QLabel* lb_diffcoeff =
us_label( tr(
"Diffusion Coefficient:" ) );
40 QLabel* lb_friccoeff =
us_label( tr(
"Frictional Coefficient:" ) );
41 QLabel* lb_fricratio =
us_label( tr(
"Frictional Ratio:" ) );
42 QLabel* lb_vbar =
us_label( tr(
"Vbar at 20" ) +
DEGC +
":" );
43 QLabel* lb_zscalefac =
us_label( tr(
"Z-Scaling Factor:" ) );
44 QLabel* lb_gridreso =
us_label( tr(
"Grid Resolution:" ) );
45 QLabel* lb_peaksmoo =
us_label( tr(
"Peak Smoothing:" ) );
46 QLabel* lb_peakwidth =
us_label( tr(
"Peak Width:" ) );
47 QLabel* lb_dimen1 =
us_label( tr(
"1 (x)" ) );
48 QLabel* lb_dimen2 =
us_label( tr(
"2 (y)" ) );
49 QLabel* lb_rxscale =
us_label( tr(
"Relative X Scale:" ) );
50 QLabel* lb_ryscale =
us_label( tr(
"Relative Y Scale:" ) );
69 QLayout* lo_xmwt =
us_checkbox( tr(
"x=mw" ), ck_xmwt,
false );
70 QLayout* lo_ymwt =
us_checkbox( tr(
"y=mw" ), ck_ymwt,
false );
71 QLayout* lo_xsed =
us_checkbox( tr(
"x=s" ), ck_xsed,
true );
72 QLayout* lo_ysed =
us_checkbox( tr(
"y=s" ), ck_ysed,
false );
73 QLayout* lo_xdif =
us_checkbox( tr(
"x=D" ), ck_xdif,
false );
74 QLayout* lo_ydif =
us_checkbox( tr(
"y=D" ), ck_ydif,
false );
75 QLayout* lo_xfco =
us_checkbox( tr(
"x=f" ), ck_xfco,
false );
76 QLayout* lo_yfco =
us_checkbox( tr(
"y=f" ), ck_yfco,
false );
77 QLayout* lo_xfra =
us_checkbox( tr(
"x=f/f0" ), ck_xfra,
false );
78 QLayout* lo_yfra =
us_checkbox( tr(
"y=f/f0" ), ck_yfra,
true );
79 QLayout* lo_xvba =
us_checkbox( tr(
"x=vb" ), ck_xvba,
false );
80 QLayout* lo_yvba =
us_checkbox( tr(
"y=vb" ), ck_yvba,
false );
82 QwtCounter* ct_zscalefac =
us_counter( 3, 0.1, 10, 0.01 );
83 QwtCounter* ct_gridreso =
us_counter( 3, 50, 300, 10 );
84 QwtCounter* ct_peaksmoo =
us_counter( 3, 1, 200, 1 );
85 QwtCounter* ct_peakwidth =
us_counter( 3, 0.01, 10.0, 0.01 );
128 ck_ysed->setEnabled(
false );
129 ck_xfra->setEnabled(
false );
153 ct_zscalefac->setValue(
zscale );
154 ct_gridreso ->setValue(
gridres );
156 ct_peakwidth->setValue(
pkwidth );
159 ct_zscalefac->setStep( 0.01 );
160 ct_gridreso ->setStep( 10 );
161 ct_peaksmoo ->setStep( 1 );
162 ct_peakwidth->setStep( 0.01 );
166 connect( ck_xmwt, SIGNAL( toggled(
bool ) ),
168 connect( ck_ymwt, SIGNAL( toggled(
bool ) ),
170 connect( ck_xsed, SIGNAL( toggled(
bool ) ),
172 connect( ck_ysed, SIGNAL( toggled(
bool ) ),
174 connect( ck_xdif, SIGNAL( toggled(
bool ) ),
176 connect( ck_ydif, SIGNAL( toggled(
bool ) ),
178 connect( ck_xfco, SIGNAL( toggled(
bool ) ),
180 connect( ck_yfco, SIGNAL( toggled(
bool ) ),
182 connect( ck_xfra, SIGNAL( toggled(
bool ) ),
184 connect( ck_yfra, SIGNAL( toggled(
bool ) ),
186 connect( ck_xvba, SIGNAL( toggled(
bool ) ),
188 connect( ck_yvba, SIGNAL( toggled(
bool ) ),
191 connect( ct_zscalefac, SIGNAL( valueChanged(
double ) ),
193 connect( ct_gridreso , SIGNAL( valueChanged(
double ) ),
195 connect( ct_peaksmoo , SIGNAL( valueChanged(
double ) ),
197 connect( ct_peakwidth, SIGNAL( valueChanged(
double ) ),
200 connect( pb_plot3d, SIGNAL( clicked() ),
202 connect( pb_help, SIGNAL( clicked() ),
203 this, SLOT(
help() ) );
204 connect( pb_close, SIGNAL( clicked() ),
209 lb_sedcoeff ->adjustSize();
210 ct_zscalefac->setMinimumWidth( lb_sedcoeff->width() );
216 ck_xfra->setEnabled(
false );
217 ck_yfra->setEnabled(
false );
218 ck_xfra->setChecked(
false );
219 ck_yfra->setChecked(
false );
220 ck_yvba->setChecked(
true );
225 ck_xvba->setEnabled(
false );
226 ck_yvba->setEnabled(
false );
227 ck_xvba->setChecked(
false );
228 ck_yvba->setChecked(
false );
230 ck_yfco->setChecked(
true );
232 ck_yfra->setChecked(
true );
251 QGLWidget* widgP = (QGLWidget*)0;
337 for (
int ii = 0; ii < 6; ii++ )
341 xCheck[ ii ]->setChecked(
false );
342 yCheck[ ii ]->setEnabled(
true );
347 yCheck[ ii ]->setEnabled(
false );
354 for (
int ii = 0; ii < 6; ii++ )
358 yCheck[ ii ]->setChecked(
false );
359 xCheck[ ii ]->setEnabled(
true );
364 xCheck[ ii ]->setEnabled(
false );
371 xCheck[ 4 ]->setEnabled(
false );
372 yCheck[ 4 ]->setEnabled(
false );
373 xCheck[ 4 ]->setChecked(
false );
374 yCheck[ 4 ]->setChecked(
false );
379 xCheck[ 5 ]->setEnabled(
false );
380 yCheck[ 5 ]->setEnabled(
false );
381 xCheck[ 5 ]->setChecked(
false );
382 yCheck[ 5 ]->setChecked(
false );
422 plot3d_w->setTypes ( typex, typey, typez );
442 for (
int ii = 0; ii < xycheck.size(); ii++ )
444 if ( xycheck[ ii ]->isChecked() )