10 QList< double >& a_udpars )
15 setAttribute ( Qt::WA_DeleteOnClose );
16 setWindowTitle( tr(
"Model Additional Parameters" ) );
18 setMinimumSize( 200, 100 );
21 QGridLayout*
main =
new QGridLayout(
this );
22 main->setContentsMargins( 2, 2, 2, 2 );
23 main->setSpacing ( 2 );
27 tr(
"Please provide additional information:" ) );
35 tr(
"Please provide the Stoichiometry\n"
36 "for the Monomer - N-mer Equilibrium:" ) );
37 QLabel* lb_stoich1 =
us_label( tr(
"N-Mer:" ) );
39 main->addWidget( lb_mbanner, row, 0, 2, 6 );
41 main->addWidget( lb_stoich1, row, 0, 1, 4 );
43 lb_mbanner->adjustSize();
44 QSize wsize = lb_mbanner->frameSize();
45 wwid = wsize.width() / 3 + 8;
46 whgt = wsize.height() / 2;
54 tr(
"Please provide the Stoichiometry\n"
55 "for the Monomer - N-mer - M-mer Equilibrium:" ) );
56 QLabel* lb_stoich1 =
us_label( tr(
"N-Mer:" ) );
58 QLabel* lb_stoich2 =
us_label( tr(
"M-Mer:" ) );
60 main->addWidget( lb_mbanner, row, 0, 2, 6 );
62 main->addWidget( lb_stoich1, row, 0, 1, 4 );
64 main->addWidget( lb_stoich2, row, 0, 1, 4 );
66 lb_mbanner->adjustSize();
67 QSize wsize = lb_mbanner->frameSize();
68 wwid = wsize.width() / 3 + 8;
69 whgt = wsize.height() / 2;
77 QLabel* lb_nmwslot =
us_label( tr(
"Number of MW Slots:" ) );
79 QLabel* lb_llimmwr =
us_label( tr(
"Lower Limit of MW Range:" ) );
81 QLabel* lb_ulimmwr =
us_label( tr(
"Upper Limit of MW Range:" ) );
83 QLayout* lo_cmnvbar =
us_checkbox( tr(
"Use common vbar value" ),
86 main->addWidget( lb_mbanner, row++, 0, 1, 6 );
87 main->addWidget( lb_nmwslot, row, 0, 1, 4 );
89 main->addWidget( lb_llimmwr, row, 0, 1, 4 );
91 main->addWidget( lb_ulimmwr, row, 0, 1, 4 );
93 main->addLayout( lo_cmnvbar, row, 0, 1, 4 );
97 wwid = wsize.width() / 2 + 8;
98 whgt = wsize.height();
108 QHBoxLayout* buttons =
new QHBoxLayout;
111 connect( pb_help, SIGNAL( clicked() ), SLOT(
help() ) );
112 buttons->addWidget( pb_help );
115 connect( pb_cancel, SIGNAL( clicked() ), SLOT(
cancelled() ) );
116 buttons->addWidget( pb_cancel );
119 connect( pb_accept, SIGNAL( clicked() ), SLOT(
selected() ) );
120 buttons->addWidget( pb_accept );
122 main->addLayout( buttons, row++, 0, 1, 6 );
126 QSize wsize = QSize( wwid * 3 + 4, whgt * row + 32 );