summaryrefslogtreecommitdiffstats
path: root/pokemodr/PokeModrUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemodr/PokeModrUI.cpp')
-rw-r--r--pokemodr/PokeModrUI.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/pokemodr/PokeModrUI.cpp b/pokemodr/PokeModrUI.cpp
index 9af87b61..6f539844 100644
--- a/pokemodr/PokeModrUI.cpp
+++ b/pokemodr/PokeModrUI.cpp
@@ -28,8 +28,8 @@
#include "../general/Exception.h"
#include "PokeModrUI.h"
-#include <iostream>
#include "../pokemod/Pokemod.h"
+#include "NatureUI.h"
#include "ItemTypeUI.h"
#include "RulesUI.h"
#include "TimeUI.h"
@@ -53,8 +53,12 @@ PokeModrUI::PokeModrUI(KConfigGroup cfg, KConfigGroup history, QWidget* parent)
try
{
Pokemod foo;
- foo.newItemType();
- formPanel->setViewport(new ItemTypeUI(&foo.getItemType(0), formPanel));
+ foo.newNature();
+ NatureUI* n = new NatureUI(&foo.getNature(0), formPanel);
+ formPanel->setViewport(n);
+// foo.newItemType();
+// ItemTypeUI* it = new ItemTypeUI(&foo.getItemType(0), formPanel);
+// formPanel->setViewport(it);
// foo.newTime();
// formPanel->setViewport(new TimeUI(&foo.getTime(0), formPanel));
// formPanel->setViewport(new RulesUI(&foo.getRules(), formPanel));