diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-03-10 02:31:26 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-03-10 02:31:26 +0000 |
| commit | 8e1ec2aec50999bae30625303f2c96e5b3b7f318 (patch) | |
| tree | 1cdabdde0e2518b71f0ab7247069e971424650bd /pokemodr/PokeModTreeItem.cpp | |
| parent | 0191933210bd20a59527fcf2732a4f3c846fb2a9 (diff) | |
| download | sigen-8e1ec2aec50999bae30625303f2c96e5b3b7f318.tar.gz sigen-8e1ec2aec50999bae30625303f2c96e5b3b7f318.tar.xz sigen-8e1ec2aec50999bae30625303f2c96e5b3b7f318.zip | |
[FIX] ImageDialog -> FileDialog
[FIX] FileDialog will filter out images based on size now
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@94 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/PokeModTreeItem.cpp')
| -rw-r--r-- | pokemodr/PokeModTreeItem.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pokemodr/PokeModTreeItem.cpp b/pokemodr/PokeModTreeItem.cpp index e44e14c6..5a237f70 100644 --- a/pokemodr/PokeModTreeItem.cpp +++ b/pokemodr/PokeModTreeItem.cpp @@ -58,6 +58,7 @@ #include <Store.h> #include <Tile.h> #include <Time.h> +#include <Trainer.h> #include <Type.h> #include "AbilityUI.h" @@ -91,6 +92,7 @@ #include "StoreUI.h" #include "TileUI.h" #include "TimeUI.h" +#include "TrainerUI.h" #include "TypeUI.h" #include "PokeModTreeItem.h" @@ -137,6 +139,7 @@ void PokeModTreeItem::update() new PokeModTreeItem(this, obj, "Stores"); new PokeModTreeItem(this, obj, "Tiles"); new PokeModTreeItem(this, obj, "Times"); + new PokeModTreeItem(this, obj, "Trainers"); new PokeModTreeItem(this, obj, "Types"); } else if (name == "Species") @@ -288,6 +291,11 @@ void PokeModTreeItem::update() for (int i = 0; i < p->getTimeCount(); ++i) new PokeModTreeItem(this, p->getTime(i)); } + else if (text(0) == "Trainers") + { + for (int i = 0; i < p->getTrainerCount(); ++i) + new PokeModTreeItem(this, p->getTrainer(i)); + } else if (text(0) == "Types") { for (int i = 0; i < p->getTypeCount(); ++i) @@ -362,6 +370,7 @@ void PokeModTreeItem::init(QWidget* pnt) else IF_IS_CLASS(Store) else IF_IS_CLASS(Tile) else IF_IS_CLASS(Time) +// else IF_IS_CLASS(Trainer) else IF_IS_CLASS(Type) connect(ui, SIGNAL(changed(bool)), this, SLOT(changed(bool))); connect(ui, SIGNAL(changed(bool)), this, SLOT(updateName())); @@ -450,6 +459,8 @@ void PokeModTreeItem::updateName() text = static_cast<Tile*>(obj)->getName(); else if (name == "Time") text = static_cast<Time*>(obj)->getName(); + else if (name == "Trainer") + text = static_cast<Trainer*>(obj)->getName(); else if (name == "Type") text = static_cast< ::Type* >(obj)->getName(); setText(0, text); @@ -496,6 +507,7 @@ Object* PokeModTreeItem::copy() else IF_IS_CLASS(Store) else IF_IS_CLASS(Tile) else IF_IS_CLASS(Time) + else IF_IS_CLASS(Trainer) else IF_IS_CLASS(Type) #undef IF_IS_CLASS } @@ -540,6 +552,7 @@ Object* PokeModTreeItem::cut() else IF_IS_CLASS(Store) else IF_IS_CLASS(Tile) else IF_IS_CLASS(Time) + else IF_IS_CLASS(Trainer) else IF_IS_CLASS(Type) #undef IF_IS_CLASS } |
