summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-02-25 21:14:18 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-02-25 21:14:18 +0000
commita5d7ffcbdfaf597081968f1b7764007e668d9b0c (patch)
treefe64ea637ac50315b1f5c6f4b2a55c10d07b60c6
parent7737b5109b85f1ae0ad423577a7d940344a7155e (diff)
downloadsigen-a5d7ffcbdfaf597081968f1b7764007e668d9b0c.tar.gz
sigen-a5d7ffcbdfaf597081968f1b7764007e668d9b0c.tar.xz
sigen-a5d7ffcbdfaf597081968f1b7764007e668d9b0c.zip
[FIX] Sizers fixed in KTabWidgets
[FIX] Apply/Discard buttons fixed [FIX] Window title now fixed git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@85 6ecfd1a5-f3ed-3746-8530-beee90d26b22
-rw-r--r--Changelog9
-rw-r--r--pokemodr/AbilityUI.cpp3
-rw-r--r--pokemodr/AuthorUI.cpp3
-rw-r--r--pokemodr/BadgeUI.cpp3
-rw-r--r--pokemodr/CoinListObjectUI.cpp3
-rw-r--r--pokemodr/CoinListUI.cpp3
-rw-r--r--pokemodr/EggGroupUI.cpp3
-rw-r--r--pokemodr/ItemTypeUI.cpp3
-rw-r--r--pokemodr/ItemUI.cpp3
-rw-r--r--pokemodr/MapTrainerTeamMemberUI.cpp3
-rw-r--r--pokemodr/MapUI.cpp3
-rw-r--r--pokemodr/MapWarpUI.cpp3
-rw-r--r--pokemodr/MapWildListEncounterUI.cpp3
-rw-r--r--pokemodr/MapWildListUI.cpp3
-rw-r--r--pokemodr/MoveUI.cpp3
-rw-r--r--pokemodr/NatureUI.cpp3
-rw-r--r--pokemodr/PokeModrUI.cpp2
-rw-r--r--pokemodr/PokemodUI.cpp3
-rw-r--r--pokemodr/RulesUI.cpp3
-rw-r--r--pokemodr/SpeciesAbilityUI.cpp3
-rw-r--r--pokemodr/SpeciesEvolutionUI.cpp3
-rw-r--r--pokemodr/SpeciesItemUI.cpp3
-rw-r--r--pokemodr/SpeciesMoveUI.cpp3
-rw-r--r--pokemodr/SpeciesUI.cpp4
-rw-r--r--pokemodr/StoreUI.cpp3
-rw-r--r--pokemodr/TileUI.cpp3
-rw-r--r--pokemodr/TimeUI.cpp3
-rw-r--r--pokemodr/TypeUI.cpp3
-rw-r--r--pokemodr/gui/pokemod.ui18
-rw-r--r--pokemodr/gui/rules.ui18
-rw-r--r--pokemodr/gui/species.ui30
31 files changed, 129 insertions, 27 deletions
diff --git a/Changelog b/Changelog
index 31665f86..a1790458 100644
--- a/Changelog
+++ b/Changelog
@@ -1,4 +1,13 @@
-----------------
+Rev: 85
+Date: 25 February 2008
+User: MathStuf
+-----------------
+[FIX] Sizers fixed in KTabWidgets
+[FIX] Apply/Discard buttons fixed
+[FIX] Window title now fixed
+
+-----------------
Rev: 84
Date: 25 February 2008
User: MathStuf
diff --git a/pokemodr/AbilityUI.cpp b/pokemodr/AbilityUI.cpp
index 593e765e..0ecdc419 100644
--- a/pokemodr/AbilityUI.cpp
+++ b/pokemodr/AbilityUI.cpp
@@ -32,7 +32,8 @@ AbilityUI::AbilityUI(Ability* a, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(ability, ability_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
+ emit(changed(false));
setGui();
}
diff --git a/pokemodr/AuthorUI.cpp b/pokemodr/AuthorUI.cpp
index 3c53536e..62cf2601 100644
--- a/pokemodr/AuthorUI.cpp
+++ b/pokemodr/AuthorUI.cpp
@@ -34,7 +34,8 @@ AuthorUI::AuthorUI(Author* a, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(author, author_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
+ emit(changed(false));
setGui();
}
diff --git a/pokemodr/BadgeUI.cpp b/pokemodr/BadgeUI.cpp
index b53d4f49..d62bec26 100644
--- a/pokemodr/BadgeUI.cpp
+++ b/pokemodr/BadgeUI.cpp
@@ -40,10 +40,11 @@ BadgeUI::BadgeUI(Badge* b, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(badge, badge_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
varHMs->addItems(Pokemod::HMStr);
const bool isSplit = badge->getPokemod()->getRules()->getSpecialSplit();
varStat->addItems((isSplit ? Pokemod::StatGSCStr : Pokemod::StatRBYStr).mid(0, isSplit ? Pokemod::ST_End_GSC : Pokemod::ST_End_RBY));
+ emit(changed(false));
setGui();
}
diff --git a/pokemodr/CoinListObjectUI.cpp b/pokemodr/CoinListObjectUI.cpp
index 7c940c27..7110fcc4 100644
--- a/pokemodr/CoinListObjectUI.cpp
+++ b/pokemodr/CoinListObjectUI.cpp
@@ -42,8 +42,9 @@ CoinListObjectUI::CoinListObjectUI(CoinListObject* c, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(coinListObject, coinListObject_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
varType->addItems(CoinListObject::TypeStr);
+ emit(changed(false));
setGui();
}
diff --git a/pokemodr/CoinListUI.cpp b/pokemodr/CoinListUI.cpp
index 7de83bdc..33f01a01 100644
--- a/pokemodr/CoinListUI.cpp
+++ b/pokemodr/CoinListUI.cpp
@@ -40,7 +40,7 @@ CoinListUI::CoinListUI(CoinList* c, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(coinList, coinList_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
for (int i = 0; i < coinList->getPokemod()->getItemCount(); ++i)
{
const Item* it = coinList->getPokemod()->getItem(i);
@@ -54,6 +54,7 @@ CoinListUI::CoinListUI(CoinList* c, QWidget* parent) :
}
}
}
+ emit(changed(false));
setGui();
}
diff --git a/pokemodr/EggGroupUI.cpp b/pokemodr/EggGroupUI.cpp
index 382f78f9..6da7b53c 100644
--- a/pokemodr/EggGroupUI.cpp
+++ b/pokemodr/EggGroupUI.cpp
@@ -32,7 +32,8 @@ EggGroupUI::EggGroupUI(EggGroup* e, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(eggGroup, eggGroup_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
+ emit(changed(false));
setGui();
}
diff --git a/pokemodr/ItemTypeUI.cpp b/pokemodr/ItemTypeUI.cpp
index df697e36..b3332897 100644
--- a/pokemodr/ItemTypeUI.cpp
+++ b/pokemodr/ItemTypeUI.cpp
@@ -35,7 +35,8 @@ ItemTypeUI::ItemTypeUI(ItemType* i, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(itemType, itemType_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
+ emit(changed(false));
setGui();
}
diff --git a/pokemodr/ItemUI.cpp b/pokemodr/ItemUI.cpp
index 0411322d..5f4b4e1d 100644
--- a/pokemodr/ItemUI.cpp
+++ b/pokemodr/ItemUI.cpp
@@ -38,7 +38,7 @@ ItemUI::ItemUI(Item* i, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(item, item_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
for (int i = 0; i < item->getPokemod()->getItemTypeCount(); ++i)
{
const ItemType* it = item->getPokemod()->getItemType(i);
@@ -46,6 +46,7 @@ ItemUI::ItemUI(Item* i, QWidget* parent) :
varType->setItemData(i, it->getId());
}
varPrice->setMaximum(item->getPokemod()->getRules()->getMaxMoney());
+ emit(changed(false));
setGui();
}
diff --git a/pokemodr/MapTrainerTeamMemberUI.cpp b/pokemodr/MapTrainerTeamMemberUI.cpp
index bcb8810d..280b7449 100644
--- a/pokemodr/MapTrainerTeamMemberUI.cpp
+++ b/pokemodr/MapTrainerTeamMemberUI.cpp
@@ -41,7 +41,7 @@ MapTrainerTeamMemberUI::MapTrainerTeamMemberUI(MapTrainerTeamMember* t, QWidget*
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(mapTrainerTeamMember, mapTrainerTeamMember_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
for (int i = 0; i < mapTrainerTeamMember->getPokemod()->getSpeciesCount(); ++i)
{
const Species* s = mapTrainerTeamMember->getPokemod()->getSpecies(i);
@@ -71,6 +71,7 @@ MapTrainerTeamMemberUI::MapTrainerTeamMemberUI(MapTrainerTeamMember* t, QWidget*
}
else
boxItems->setEnabled(false);
+ emit(changed(false));
setGui();
}
diff --git a/pokemodr/MapUI.cpp b/pokemodr/MapUI.cpp
index f4f4b175..ecac2b10 100644
--- a/pokemodr/MapUI.cpp
+++ b/pokemodr/MapUI.cpp
@@ -42,7 +42,7 @@ MapUI::MapUI(Map* m, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(map, map_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
for (int i = 0; i < map->getWarpCount(); ++i)
{
const MapWarp* w = map->getWarp(i);
@@ -56,6 +56,7 @@ MapUI::MapUI(Map* m, QWidget* parent) :
varTilemap->verticalHeader()->setDefaultSectionSize(64);
varTilemap->setModel(model);
varTilemap->setItemDelegate(delegate);
+ emit(changed(false));
setGui();
}
diff --git a/pokemodr/MapWarpUI.cpp b/pokemodr/MapWarpUI.cpp
index ae915ca1..2d41a86b 100644
--- a/pokemodr/MapWarpUI.cpp
+++ b/pokemodr/MapWarpUI.cpp
@@ -40,7 +40,7 @@ MapWarpUI::MapWarpUI(MapWarp* w, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(mapWarp, mapWarp_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
varActivation->addItems(Pokemod::DirectionStr.mid(0, Pokemod::D_End));
varType->addItems(MapWarp::TypeStr);
for (int i = 0; i < mapWarp->getPokemod()->getMapCount(); ++i)
@@ -55,6 +55,7 @@ MapWarpUI::MapWarpUI(MapWarp* w, QWidget* parent) :
varDialog->addItem(d->getDialog().mid(0, 25));
varDialog->setItemData(i, d->getId());
}
+ emit(changed(false));
setGui();
}
diff --git a/pokemodr/MapWildListEncounterUI.cpp b/pokemodr/MapWildListEncounterUI.cpp
index e4fde4a0..8a286dcb 100644
--- a/pokemodr/MapWildListEncounterUI.cpp
+++ b/pokemodr/MapWildListEncounterUI.cpp
@@ -38,7 +38,7 @@ MapWildListEncounterUI::MapWildListEncounterUI(MapWildListEncounter* w, QWidget*
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(mapWildListEncounter, mapWildListEncounter_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
for (int i = 0; i < mapWildListEncounter->getPokemod()->getSpeciesCount(); ++i)
{
const Species* s = mapWildListEncounter->getPokemod()->getSpecies(i);
@@ -46,6 +46,7 @@ MapWildListEncounterUI::MapWildListEncounterUI(MapWildListEncounter* w, QWidget*
varSpecies->setItemData(i, s->getId());
}
varLevel->setMaximum(mapWildListEncounter->getPokemod()->getRules()->getMaxLevel());
+ emit(changed(false));
setGui();
}
diff --git a/pokemodr/MapWildListUI.cpp b/pokemodr/MapWildListUI.cpp
index 8b5d8d32..988d1267 100644
--- a/pokemodr/MapWildListUI.cpp
+++ b/pokemodr/MapWildListUI.cpp
@@ -43,7 +43,7 @@ MapWildListUI::MapWildListUI(MapWildList* w, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(mapWildList, mapWildList_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
varControl->addItems(MapWildList::ControlStr);
for (int i = 0; i < mapWildList->getPokemod()->getItemCount(); ++i)
{
@@ -69,6 +69,7 @@ MapWildListUI::MapWildListUI(MapWildList* w, QWidget* parent) :
QListWidgetItem* lwi = new QListWidgetItem(t->getName(), varTimes);
lwi->setData(Qt::UserRole, t->getId());
}
+ emit(changed(false));
setGui();
}
diff --git a/pokemodr/MoveUI.cpp b/pokemodr/MoveUI.cpp
index f4f052d2..1b8dae58 100644
--- a/pokemodr/MoveUI.cpp
+++ b/pokemodr/MoveUI.cpp
@@ -38,7 +38,7 @@ MoveUI::MoveUI(Move* m, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(move, move_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
for (int i = 0; i < move->getPokemod()->getTypeCount(); ++i)
{
const Type* t = move->getPokemod()->getType(i);
@@ -48,6 +48,7 @@ MoveUI::MoveUI(Move* m, QWidget* parent) :
varTarget->addItems(Move::TargetStr);
varTargetChoice->addItems(Move::ChoiceStr);
varNumTargets->setMaximum(move->getPokemod()->getRules()->getMaxFight());
+ emit(changed(false));
setGui();
}
diff --git a/pokemodr/NatureUI.cpp b/pokemodr/NatureUI.cpp
index d1dc4f78..a84afa97 100644
--- a/pokemodr/NatureUI.cpp
+++ b/pokemodr/NatureUI.cpp
@@ -38,9 +38,10 @@ NatureUI::NatureUI(Nature* n, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(nature, nature_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
const bool isSplit = nature->getPokemod()->getRules()->getSpecialSplit();
varStat->addItems((isSplit ? Pokemod::StatRBYStr : Pokemod::StatGSCStr).mid(0, isSplit ? Pokemod::ST_End_RBY : Pokemod::ST_End_GSC));
+ emit(changed(false));
setGui();
}
diff --git a/pokemodr/PokeModrUI.cpp b/pokemodr/PokeModrUI.cpp
index a23f6072..b24fe75b 100644
--- a/pokemodr/PokeModrUI.cpp
+++ b/pokemodr/PokeModrUI.cpp
@@ -295,7 +295,7 @@ void PokeModrUI::closeEvent(QCloseEvent* event)
void PokeModrUI::setChangedTitle(const bool c)
{
if (formPanel->widget())
- setWindowTitle(QString("%1%2 - PokéModr").arg(static_cast<ObjectUI*>(formPanel->widget())->getOriginal()->getPokemod()->getTitle()).arg(c ? "" : "*"));
+ setWindowTitle(QString("%1%2 - PokéModr").arg(static_cast<ObjectUI*>(formPanel->widget())->getOriginal()->getPokemod()->getTitle()).arg(c ? "*" : ""));
else
setWindowTitle("PokéModr");
}
diff --git a/pokemodr/PokemodUI.cpp b/pokemodr/PokemodUI.cpp
index 35e78162..c5a93474 100644
--- a/pokemodr/PokemodUI.cpp
+++ b/pokemodr/PokemodUI.cpp
@@ -45,7 +45,7 @@ PokemodUI::PokemodUI(Pokemod* p, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(pokemod, pokemod_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
for (int i = 0; i < pokemod->getPokemod()->getMapCount(); ++i)
{
const Map* m = pokemod->getPokemod()->getMap(i);
@@ -64,6 +64,7 @@ PokemodUI::PokemodUI(Pokemod* p, QWidget* parent) :
}
varTypechart->setVerticalHeaderLabels(types);
varTypechart->setHorizontalHeaderLabels(types);
+ emit(changed(false));
setGui();
}
diff --git a/pokemodr/RulesUI.cpp b/pokemodr/RulesUI.cpp
index 621cdd1f..28250028 100644
--- a/pokemodr/RulesUI.cpp
+++ b/pokemodr/RulesUI.cpp
@@ -35,7 +35,8 @@ RulesUI::RulesUI(Rules* r, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(rules, rules_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
+ emit(changed(false));
setGui();
}
diff --git a/pokemodr/SpeciesAbilityUI.cpp b/pokemodr/SpeciesAbilityUI.cpp
index 930185eb..6149403e 100644
--- a/pokemodr/SpeciesAbilityUI.cpp
+++ b/pokemodr/SpeciesAbilityUI.cpp
@@ -40,13 +40,14 @@ SpeciesAbilityUI::SpeciesAbilityUI(SpeciesAbility* s, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(speciesAbility, speciesAbility_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
for (int i = 0; i < speciesAbility->getPokemod()->getAbilityCount(); ++i)
{
const Ability* a = speciesAbility->getPokemod()->getAbility(i);
varAbility->addItem(a->getName());
varAbility->setItemData(i, a->getId());
}
+ emit(changed(false));
setGui();
}
diff --git a/pokemodr/SpeciesEvolutionUI.cpp b/pokemodr/SpeciesEvolutionUI.cpp
index 3b945164..4b5a1c33 100644
--- a/pokemodr/SpeciesEvolutionUI.cpp
+++ b/pokemodr/SpeciesEvolutionUI.cpp
@@ -43,7 +43,7 @@ SpeciesEvolutionUI::SpeciesEvolutionUI(SpeciesEvolution* s, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(speciesEvolution, speciesEvolution_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
for (int i = 0; i < speciesEvolution->getPokemod()->getSpeciesCount(); ++i)
{
const Species* s = speciesEvolution->getPokemod()->getSpecies(i);
@@ -51,6 +51,7 @@ SpeciesEvolutionUI::SpeciesEvolutionUI(SpeciesEvolution* s, QWidget* parent) :
varSpecies->setItemData(i, s->getId());
}
varStyle->addItems(SpeciesEvolution::StyleStr);
+ emit(changed(false));
setGui();
}
diff --git a/pokemodr/SpeciesItemUI.cpp b/pokemodr/SpeciesItemUI.cpp
index 160eabb9..eef3c6a9 100644
--- a/pokemodr/SpeciesItemUI.cpp
+++ b/pokemodr/SpeciesItemUI.cpp
@@ -40,13 +40,14 @@ SpeciesItemUI::SpeciesItemUI(SpeciesItem* s, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(speciesItem, speciesItem_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
for (int i = 0; i < speciesItem->getPokemod()->getItemCount(); ++i)
{
const Item* it = speciesItem->getPokemod()->getItem(i);
varItem->addItem(it->getName());
varItem->setItemData(i, it->getId());
}
+ emit(changed(false));
setGui();
}
diff --git a/pokemodr/SpeciesMoveUI.cpp b/pokemodr/SpeciesMoveUI.cpp
index 3645efc7..29812c0e 100644
--- a/pokemodr/SpeciesMoveUI.cpp
+++ b/pokemodr/SpeciesMoveUI.cpp
@@ -40,7 +40,7 @@ SpeciesMoveUI::SpeciesMoveUI(SpeciesMove* s, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(speciesMove, speciesMove_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
for (int i = 0; i < speciesMove->getPokemod()->getMoveCount(); ++i)
{
const Move* m = speciesMove->getPokemod()->getMove(i);
@@ -49,6 +49,7 @@ SpeciesMoveUI::SpeciesMoveUI(SpeciesMove* s, QWidget* parent) :
}
varLevel->setMaximum(speciesMove->getPokemod()->getRules()->getMaxLevel());
varWildLevel->setMaximum(speciesMove->getPokemod()->getRules()->getMaxLevel());
+ emit(changed(false));
setGui();
}
diff --git a/pokemodr/SpeciesUI.cpp b/pokemodr/SpeciesUI.cpp
index 158f896b..7ea1b0fc 100644
--- a/pokemodr/SpeciesUI.cpp
+++ b/pokemodr/SpeciesUI.cpp
@@ -43,7 +43,7 @@ SpeciesUI::SpeciesUI(Species* s, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(species, species_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
const bool isSplit = species->getPokemod()->getRules()->getSpecialSplit();
varBaseStat->addItems((isSplit ? Pokemod::StatGSCStr : Pokemod::StatRBYStr).mid(0, isSplit ? Pokemod::ST_End_GSC : Pokemod::ST_End_RBY));
if (species->getPokemod()->getRules()->getEffortValuesAllowed())
@@ -89,6 +89,8 @@ SpeciesUI::SpeciesUI(Species* s, QWidget* parent) :
QListWidgetItem* lwi = new QListWidgetItem(t->getName(), varTypes);
lwi->setData(Qt::UserRole, t->getId());
}
+ emit(changed(false));
+ setGui();
}
// KToolbar SpeciesUI::getToolbar(QWidget* parent)
diff --git a/pokemodr/StoreUI.cpp b/pokemodr/StoreUI.cpp
index 7259058c..4d86d7c1 100644
--- a/pokemodr/StoreUI.cpp
+++ b/pokemodr/StoreUI.cpp
@@ -41,13 +41,14 @@ StoreUI::StoreUI(Store* s, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(store, store_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
for (int i = 0; i < store->getPokemod()->getItemCount(); ++i)
{
const Item* it = store->getPokemod()->getItem(i);
QListWidgetItem* lwi = new QListWidgetItem(it->getName(), varItems);
lwi->setData(Qt::UserRole, it->getId());
}
+ emit(changed(false));
setGui();
}
diff --git a/pokemodr/TileUI.cpp b/pokemodr/TileUI.cpp
index 15dcead4..e8d0a4e4 100644
--- a/pokemodr/TileUI.cpp
+++ b/pokemodr/TileUI.cpp
@@ -42,7 +42,7 @@ TileUI::TileUI(Tile* t, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(tile, tile_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
varAccessibility->addItems(Pokemod::DirectionStr.mid(0, Pokemod::D_End));
varHMType->addItems(Pokemod::HMStr);
for (int i = 0; i < tile->getPokemod()->getTileCount(); ++i)
@@ -56,6 +56,7 @@ TileUI::TileUI(Tile* t, QWidget* parent) :
}
varForce->addItems(Tile::ForceStr);
varDirection->addItems(Pokemod::DirectionStr.mid(0, Pokemod::D_End));
+ emit(changed(false));
setGui();
}
diff --git a/pokemodr/TimeUI.cpp b/pokemodr/TimeUI.cpp
index 38cf7803..d0ec6b66 100644
--- a/pokemodr/TimeUI.cpp
+++ b/pokemodr/TimeUI.cpp
@@ -35,7 +35,8 @@ TimeUI::TimeUI(Time* t, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(time, time_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
+ emit(changed(false));
setGui();
}
diff --git a/pokemodr/TypeUI.cpp b/pokemodr/TypeUI.cpp
index fee8860b..43c6ef3e 100644
--- a/pokemodr/TypeUI.cpp
+++ b/pokemodr/TypeUI.cpp
@@ -36,7 +36,8 @@ TypeUI::TypeUI(Type* t, QWidget* parent) :
setupUi(this);
QMetaObject::connectSlotsByName(this);
setObjects(type, type_mod);
- connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setDisabled(bool)));
+ connect(this, SIGNAL(changed(bool)), boxButtons, SLOT(setEnabled(bool)));
+ emit(changed(false));
setGui();
}
diff --git a/pokemodr/gui/pokemod.ui b/pokemodr/gui/pokemod.ui
index 950c9e7f..6942e581 100644
--- a/pokemodr/gui/pokemod.ui
+++ b/pokemodr/gui/pokemod.ui
@@ -176,6 +176,12 @@
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
+ <property name="sizeHint" >
+ <size>
+ <width>20</width>
+ <height>40</height>
+ </size>
+ </property>
</spacer>
</item>
</layout>
@@ -388,6 +394,12 @@
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
+ <property name="sizeHint" >
+ <size>
+ <width>20</width>
+ <height>40</height>
+ </size>
+ </property>
</spacer>
</item>
</layout>
@@ -428,6 +440,12 @@
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
+ <property name="sizeHint" >
+ <size>
+ <width>20</width>
+ <height>40</height>
+ </size>
+ </property>
</spacer>
</item>
</layout>
diff --git a/pokemodr/gui/rules.ui b/pokemodr/gui/rules.ui
index f82e9014..fbc6dacf 100644
--- a/pokemodr/gui/rules.ui
+++ b/pokemodr/gui/rules.ui
@@ -130,6 +130,12 @@
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
+ <property name="sizeHint" >
+ <size>
+ <width>20</width>
+ <height>40</height>
+ </size>
+ </property>
</spacer>
</item>
</layout>
@@ -284,6 +290,12 @@
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
+ <property name="sizeHint" >
+ <size>
+ <width>20</width>
+ <height>40</height>
+ </size>
+ </property>
</spacer>
</item>
</layout>
@@ -473,6 +485,12 @@
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
+ <property name="sizeHint" >
+ <size>
+ <width>20</width>
+ <height>40</height>
+ </size>
+ </property>
</spacer>
</item>
</layout>
diff --git a/pokemodr/gui/species.ui b/pokemodr/gui/species.ui
index 2404fd55..76b070e6 100644
--- a/pokemodr/gui/species.ui
+++ b/pokemodr/gui/species.ui
@@ -175,6 +175,12 @@
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
+ <property name="sizeHint" >
+ <size>
+ <width>20</width>
+ <height>40</height>
+ </size>
+ </property>
</spacer>
</item>
</layout>
@@ -298,6 +304,12 @@
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
+ <property name="sizeHint" >
+ <size>
+ <width>20</width>
+ <height>40</height>
+ </size>
+ </property>
</spacer>
</item>
</layout>
@@ -388,6 +400,12 @@
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
+ <property name="sizeHint" >
+ <size>
+ <width>20</width>
+ <height>40</height>
+ </size>
+ </property>
</spacer>
</item>
</layout>
@@ -511,6 +529,12 @@
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
+ <property name="sizeHint" >
+ <size>
+ <width>20</width>
+ <height>40</height>
+ </size>
+ </property>
</spacer>
</item>
</layout>
@@ -658,6 +682,12 @@
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
+ <property name="sizeHint" >
+ <size>
+ <width>20</width>
+ <height>40</height>
+ </size>
+ </property>
</spacer>
</item>
</layout>