48 QVBoxLayout *main_layout =
new QVBoxLayout(
this);
49 QGridLayout *mpr_layout =
new QGridLayout();
51 QPushButton *add_button;
52 QPushButton *delete_button;
53 QPushButton *reqs_button;
63 mpr_layout->setSizeConstraint(QLayout::SetMaximumSize);
65 label =
new QLabel(QString::fromUtf8(
R__(
"Rule Name")));
66 label->setParent(
this);
67 rname =
new QLineEdit(
this);
70 mpr_layout->addWidget(label, 0, 0);
71 mpr_layout->addWidget(
rname, 0, 2);
73 label =
new QLabel(QString::fromUtf8(
R__(
"Name")));
74 label->setParent(
this);
77 name =
new QLineEdit(
this);
80 mpr_layout->addWidget(label, 1, 0);
82 mpr_layout->addWidget(
name, 1, 2);
84 reqs_button =
new QPushButton(QString::fromUtf8(
R__(
"Requirements")),
this);
85 connect(reqs_button, SIGNAL(pressed()),
this, SLOT(
edit_reqs()));
86 mpr_layout->addWidget(reqs_button, 2, 2);
88 add_button =
new QPushButton(QString::fromUtf8(
R__(
"Add Multiplier")),
this);
89 connect(add_button, SIGNAL(pressed()),
this, SLOT(
add_now()));
90 mpr_layout->addWidget(add_button, 4, 0);
93 delete_button =
new QPushButton(QString::fromUtf8(
R__(
"Remove this Multiplier")),
this);
94 connect(delete_button, SIGNAL(pressed()),
this, SLOT(
delete_now()));
95 mpr_layout->addWidget(delete_button, 4, 2);
101 main_layout->addLayout(mpr_layout);
103 setLayout(main_layout);