48 QVBoxLayout *main_layout =
new QVBoxLayout(
this);
49 QGridLayout *good_layout =
new QGridLayout();
51 QPushButton *effects_button;
52 QPushButton *add_button;
53 QPushButton *delete_button;
54 QPushButton *reqs_button;
64 good_layout->setSizeConstraint(QLayout::SetMaximumSize);
66 label =
new QLabel(QString::fromUtf8(
R__(
"Rule Name")));
67 label->setParent(
this);
68 rname =
new QLineEdit(
this);
71 good_layout->addWidget(label, 0, 0);
72 good_layout->addWidget(
rname, 0, 2);
74 label =
new QLabel(QString::fromUtf8(
R__(
"Name")));
75 label->setParent(
this);
78 name =
new QLineEdit(
this);
81 good_layout->addWidget(label, 1, 0);
83 good_layout->addWidget(
name, 1, 2);
85 reqs_button =
new QPushButton(QString::fromUtf8(
R__(
"Requirements")),
this);
86 connect(reqs_button, SIGNAL(pressed()),
this, SLOT(
edit_reqs()));
87 good_layout->addWidget(reqs_button, 2, 2);
89 effects_button =
new QPushButton(QString::fromUtf8(
R__(
"Effects")),
this);
90 connect(effects_button, SIGNAL(pressed()),
this, SLOT(
edit_effects()));
91 good_layout->addWidget(effects_button, 3, 2);
93 add_button =
new QPushButton(QString::fromUtf8(
R__(
"Add Good")),
this);
94 connect(add_button, SIGNAL(pressed()),
this, SLOT(
add_now()));
95 good_layout->addWidget(add_button, 4, 0);
98 delete_button =
new QPushButton(QString::fromUtf8(
R__(
"Remove this Good")),
this);
99 connect(delete_button, SIGNAL(pressed()),
this, SLOT(
delete_now()));
100 good_layout->addWidget(delete_button, 4, 2);
106 main_layout->addLayout(good_layout);
108 setLayout(main_layout);