summaryrefslogtreecommitdiffstats
path: root/pokemodr/PokeModrUI.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-04-24 20:21:59 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-04-24 20:21:59 +0000
commit446fcd9248d4cef74e905c485ef767a94a8463ec (patch)
tree66fa3e7a0536303395bd5b88abb6e1b2cacc8383 /pokemodr/PokeModrUI.cpp
parentd7b6b0627a7d5e0875a263bf9501506a3d8da450 (diff)
[ADD] More model classes
[FIX] Minor things within the models git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@106 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/PokeModrUI.cpp')
-rw-r--r--pokemodr/PokeModrUI.cpp25
1 files changed, 14 insertions, 11 deletions
diff --git a/pokemodr/PokeModrUI.cpp b/pokemodr/PokeModrUI.cpp
index d98729ce..9be12b3a 100644
--- a/pokemodr/PokeModrUI.cpp
+++ b/pokemodr/PokeModrUI.cpp
@@ -29,6 +29,7 @@
#include <kurl.h>
// Qt includes
+#include <QCloseEvent>
#include <QMutableListIterator>
#include <QString>
@@ -40,7 +41,7 @@
#include <Pokemod.h>
// PokeModr includes
-#include "PokeModTreeItem.h"
+#include "PokemodTreeModel.h"
// Header include
#include "PokeModrUI.h"
@@ -142,8 +143,9 @@ void PokeModrUI::openPokeMod(const KUrl& path)
void PokeModrUI::savePokeMod()
{
- if (formPanel->widget())
- static_cast<ObjectUI*>(formPanel->widget())->original()->pokemod()->save();
+ // TODO: save pokemod
+// if (formPanel->widget())
+// static_cast<ObjectUI*>(formPanel->widget())->original()->pokemod()->save();
}
void PokeModrUI::closePokeMod()
@@ -184,10 +186,11 @@ void PokeModrUI::closeEvent(QCloseEvent* event)
void PokeModrUI::setChangedTitle(const bool c)
{
- if (formPanel->widget())
- setWindowTitle(QString::fromUtf8("%1%2 - PokéModr").arg(static_cast<ObjectUI*>(formPanel->widget())->original()->pokemod()->title()).arg(c ? "*" : ""));
- else
- setWindowTitle(QString::fromUtf8("PokéModr"));
+ // TODO: set the title
+// if (formPanel->widget())
+// setWindowTitle(QString::fromUtf8("%1%2 - PokéModr").arg(static_cast<ObjectUI*>(formPanel->widget())->original()->pokemod()->title()).arg(c ? "*" : ""));
+// else
+// setWindowTitle(QString::fromUtf8("PokéModr"));
}
void PokeModrUI::on_actionNew_triggered()
@@ -228,10 +231,10 @@ void PokeModrUI::on_actionSaveAs_triggered()
void PokeModrUI::on_actionQuit_triggered()
{
- while (m_pokemods.size())
- closePokeMod();
- if (m_clipboard)
- delete m_clipboard;
+// while (m_pokemods.size())
+// closePokeMod();
+// if (m_clipboard)
+// delete m_clipboard;
close();
}