9 #include <qwt_legend.h>
17 setObjectName(
"US_PlotControl2D" );
18 setAttribute( Qt::WA_DeleteOnClose,
true );
23 setWindowTitle( tr(
"3-D Plotting Controls" ) );
35 QLabel* lb_dimens =
us_label( tr(
"Dimension:" ) );
36 QLabel* lb_molwt =
us_label( tr(
"Molecular Weight:" ) );
37 QLabel* lb_sedcoeff =
us_label( tr(
"Sedimentation Coefficient:" ) );
38 QLabel* lb_diffcoeff =
us_label( tr(
"Diffusion Coefficient:" ) );
39 QLabel* lb_friccoeff =
us_label( tr(
"Frictional Coefficient:" ) );
40 QLabel* lb_fricratio =
us_label( tr(
"Frictional Ratio:" ) );
41 QLabel* lb_vbar =
us_label( tr(
"Vbar at 20" ) +
DEGC +
":" );
42 QLabel* lb_zscalefac =
us_label( tr(
"Z-Scaling Factor:" ) );
43 QLabel* lb_gridreso =
us_label( tr(
"Grid Resolution:" ) );
44 QLabel* lb_peaksmoo =
us_label( tr(
"Peak Smoothing:" ) );
45 QLabel* lb_peakwidth =
us_label( tr(
"Peak Width:" ) );
46 QLabel* lb_dimen1 =
us_label( tr(
"1 (x)" ) );
47 QLabel* lb_dimen2 =
us_label( tr(
"2 (y)" ) );
48 QLabel* lb_rxscale =
us_label( tr(
"Relative X Scale:" ) );
49 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 );
151 ct_zscalefac->setValue(
zscale );
152 ct_gridreso ->setValue(
gridres );
154 ct_peakwidth->setValue(
pkwidth );
157 ct_zscalefac->setStep ( 0.01 );
158 ct_gridreso ->setStep ( 10 );
159 ct_peaksmoo ->setStep ( 1 );
160 ct_peakwidth->setStep ( 0.01 );
164 connect( ck_xmwt, SIGNAL( toggled(
bool ) ),
166 connect( ck_ymwt, SIGNAL( toggled(
bool ) ),
168 connect( ck_xsed, SIGNAL( toggled(
bool ) ),
170 connect( ck_ysed, SIGNAL( toggled(
bool ) ),
172 connect( ck_xdif, SIGNAL( toggled(
bool ) ),
174 connect( ck_ydif, SIGNAL( toggled(
bool ) ),
176 connect( ck_xfco, SIGNAL( toggled(
bool ) ),
178 connect( ck_yfco, SIGNAL( toggled(
bool ) ),
180 connect( ck_xfra, SIGNAL( toggled(
bool ) ),
182 connect( ck_yfra, SIGNAL( toggled(
bool ) ),
184 connect( ck_xvba, SIGNAL( toggled(
bool ) ),
186 connect( ck_yvba, SIGNAL( toggled(
bool ) ),
189 connect( ct_zscalefac, SIGNAL( valueChanged(
double ) ),
191 connect( ct_gridreso , SIGNAL( valueChanged(
double ) ),
193 connect( ct_peaksmoo , SIGNAL( valueChanged(
double ) ),
195 connect( ct_peakwidth, SIGNAL( valueChanged(
double ) ),
198 connect( pb_plot3d, SIGNAL( clicked() ),
200 connect( pb_help, SIGNAL( clicked() ),
201 this, SLOT(
help() ) );
202 connect( pb_close, SIGNAL( clicked() ),
207 lb_sedcoeff ->adjustSize();
208 ct_zscalefac->setMinimumWidth( lb_sedcoeff->width() );
215 ck_xfra->setEnabled(
false );
216 ck_yfra->setEnabled(
false );
217 ck_xfra->setChecked(
false );
218 ck_yfra->setChecked(
false );
219 ck_yvba->setChecked(
true );
223 ck_xvba->setEnabled(
false );
224 ck_yvba->setEnabled(
false );
225 ck_xvba->setChecked(
false );
226 ck_yvba->setChecked(
false );
228 ck_yfco->setChecked(
true );
230 ck_yfra->setChecked(
true );
235 qDebug() <<
"PlCtl: ck_yfra " << ck_yfra->text();
308 for (
int ii = 0; ii < 6; ii++ )
312 xCheck[ ii ]->setChecked(
false );
313 yCheck[ ii ]->setEnabled(
true );
318 yCheck[ ii ]->setEnabled(
false );
325 for (
int ii = 0; ii < 6; ii++ )
329 yCheck[ ii ]->setChecked(
false );
330 xCheck[ ii ]->setEnabled(
true );
335 xCheck[ ii ]->setEnabled(
false );
341 xCheck[ 4 ]->setEnabled(
false );
342 yCheck[ 4 ]->setEnabled(
false );
343 xCheck[ 4 ]->setChecked(
false );
344 yCheck[ 4 ]->setChecked(
false );
348 xCheck[ 5 ]->setEnabled(
false );
349 yCheck[ 5 ]->setEnabled(
false );
350 xCheck[ 5 ]->setChecked(
false );
351 yCheck[ 5 ]->setChecked(
false );
393 plot3d_w->setTypes ( typex, typey, typez );
410 for (
int ii = 0; ii < xycheck.size(); ii++ )
412 if ( xycheck[ ii ]->isChecked() )