5 double meniscus,
double loading, QWidget*
p, Qt::WindowFlags f )
9 setAttribute ( Qt::WA_DeleteOnClose );
11 QGridLayout*
main =
new QGridLayout(
this );
12 main->setContentsMargins ( 2, 2, 2, 2 );
13 main->setSpacing( 2 );
15 setWindowTitle( tr(
"Select Finite Element Simulation"
18 QLabel* lb_info =
us_banner( tr(
"Please select the Cropping Range\n"
19 "for the Data to be saved" ) );
21 QLabel* lb_conc =
us_label ( tr(
"Maximum Concentration:" ) );
24 s.sprintf(
"%4.2f", loading );
26 QLabel* lb_loading =
us_label( tr(
"( Loading concentration: " )
27 + QString().sprintf(
"%4.2f" , loading ) +
" )" );
32 QLabel* lb_rad =
us_label( tr(
"Maximum Radius:" ) );
37 QBoxLayout* buttons =
new QHBoxLayout();
42 connect( pb_help, SIGNAL( clicked() ), SLOT(
help() ) );
43 connect( pb_cancel, SIGNAL( clicked() ), SLOT( reject() ) );
44 connect( pb_accept, SIGNAL( clicked() ), SLOT(
ok() ) );
46 buttons->addWidget( pb_help );
47 buttons->addWidget( pb_cancel );
48 buttons->addWidget( pb_accept );
52 te_guide->setTextColor( Qt::blue );
53 te_guide->setText(
"<div style='color:blue'>" +
54 tr(
"To accept the data as computed, with no"
55 " limits on amplitude or radius range,"
56 " click on the <b>Cancel</b> button.<br/><br/>"
57 "To impose amplitude or radius limits on"
58 " exported data, set the maximum concentration"
59 " value and/or maximum radius and then click"
60 " on the <b>OK</b> button.<br/><br/>"
61 "( The current maximum OD is %1 )." ).arg(
conc )
65 main->addWidget( lb_info, row++, 0, 1, 2 );
66 main->addWidget( lb_loading, row++, 0, 1, 2 );
67 main->addWidget( lb_conc, row, 0, 1, 1 );
68 main->addWidget(
ct_conc, row++, 1, 1, 1 );
69 main->addWidget( lb_rad, row, 0, 1, 1 );
70 main->addWidget(
ct_rad, row++, 1, 1, 1 );
71 main->addLayout( buttons, row++, 0, 1, 2 );
72 main->addWidget( te_guide, row++, 0, 5, 2 );
75 qDebug() <<
"(1) size" << size();
78 int whgt = rowht * ( row + 7 );
79 qDebug() <<
"(2) size" << QSize( wwid, whgt );
81 qDebug() <<
"(3) size" << size();