48 QVBoxLayout *main_layout =
new QVBoxLayout(
this);
49 QGridLayout *gov_layout =
new QGridLayout();
62 gov_layout->setSizeConstraint(QLayout::SetMaximumSize);
64 label =
new QLabel(QString::fromUtf8(
R__(
"Rule Name")));
65 label->setParent(
this);
66 rname =
new QLineEdit(
this);
69 gov_layout->addWidget(label, row, 0);
70 gov_layout->addWidget(
rname, row++, 2);
72 label =
new QLabel(QString::fromUtf8(
R__(
"Name")));
73 label->setParent(
this);
76 name =
new QLineEdit(
this);
79 gov_layout->addWidget(label, row, 0);
81 gov_layout->addWidget(
name, row++, 2);
83 button =
new QPushButton(QString::fromUtf8(
R__(
"Edit Values")),
this);
84 connect(button, SIGNAL(pressed()),
this, SLOT(
edit_now()));
85 gov_layout->addWidget(button, row++, 2);
87 button =
new QPushButton(QString::fromUtf8(
R__(
"Requirements")),
this);
88 connect(button, SIGNAL(pressed()),
this, SLOT(
edit_reqs()));
89 gov_layout->addWidget(button, row++, 2);
91 button =
new QPushButton(QString::fromUtf8(
R__(
"Effects")),
this);
92 connect(button, SIGNAL(pressed()),
this, SLOT(
edit_effects()));
93 gov_layout->addWidget(button, row++, 2);
95 button =
new QPushButton(QString::fromUtf8(
R__(
"Add Government")),
this);
96 connect(button, SIGNAL(pressed()),
this, SLOT(
add_now()));
97 gov_layout->addWidget(button, row, 0);
100 button =
new QPushButton(QString::fromUtf8(
R__(
"Remove this Government")),
this);
101 connect(button, SIGNAL(pressed()),
this, SLOT(
delete_now()));
102 gov_layout->addWidget(button, row++, 2);
108 main_layout->addLayout(gov_layout);
110 setLayout(main_layout);