From 1c4a0f2157d3a27a72e72c47898872c013fc8dc3 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 8 Apr 2021 15:35:32 +0300 Subject: [PATCH 49/50] Ruledit: Consistently place "Edit Values" button in different tabs Also name it "Edit Values" also in tab_unit. It's now always placed after the ruleset item name fields, before any of requirement or effect buttons. See osdn #41944 Signed-off-by: Marko Lindqvist --- tools/ruledit/tab_building.cpp | 12 ++++++------ tools/ruledit/tab_unit.cpp | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/ruledit/tab_building.cpp b/tools/ruledit/tab_building.cpp index cdaf432c8c..2343051030 100644 --- a/tools/ruledit/tab_building.cpp +++ b/tools/ruledit/tab_building.cpp @@ -83,17 +83,17 @@ tab_building::tab_building(ruledit_gui *ui_in) : QWidget() bldg_layout->addWidget(same_name, 1, 1); bldg_layout->addWidget(name, 1, 2); + edit_button = new QPushButton(QString::fromUtf8(R__("Edit Values")), this); + connect(edit_button, SIGNAL(pressed()), this, SLOT(edit_now())); + bldg_layout->addWidget(edit_button, 2, 2); + reqs_button = new QPushButton(QString::fromUtf8(R__("Requirements")), this); connect(reqs_button, SIGNAL(pressed()), this, SLOT(edit_reqs())); - bldg_layout->addWidget(reqs_button, 2, 2); + bldg_layout->addWidget(reqs_button, 3, 2); effects_button = new QPushButton(QString::fromUtf8(R__("Effects")), this); connect(effects_button, SIGNAL(pressed()), this, SLOT(edit_effects())); - bldg_layout->addWidget(effects_button, 3, 2); - - edit_button = new QPushButton(QString::fromUtf8(R__("Edit Values")), this); - connect(edit_button, SIGNAL(pressed()), this, SLOT(edit_now())); - bldg_layout->addWidget(edit_button, 4, 2); + bldg_layout->addWidget(effects_button, 4, 2); add_button = new QPushButton(QString::fromUtf8(R__("Add Building")), this); connect(add_button, SIGNAL(pressed()), this, SLOT(add_now2())); diff --git a/tools/ruledit/tab_unit.cpp b/tools/ruledit/tab_unit.cpp index 79df8533f3..b4da5d3e41 100644 --- a/tools/ruledit/tab_unit.cpp +++ b/tools/ruledit/tab_unit.cpp @@ -82,7 +82,7 @@ tab_unit::tab_unit(ruledit_gui *ui_in) : QWidget() unit_layout->addWidget(same_name, 1, 1); unit_layout->addWidget(name, 1, 2); - edit_button = new QPushButton(QString::fromUtf8(R__("Edit Unit")), this); + edit_button = new QPushButton(QString::fromUtf8(R__("Edit Values")), this); connect(edit_button, SIGNAL(pressed()), this, SLOT(edit_now())); unit_layout->addWidget(edit_button, 2, 2); -- 2.30.2