summaryrefslogtreecommitdiffstats
path: root/pokemod/Dialog.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-01-23 04:50:24 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-01-23 04:50:24 +0000
commitef250617e8163c535931be045aa4e9d59163ace7 (patch)
tree5b76323ec66a63c3fca589b088b310c3fdaba2b7 /pokemod/Dialog.cpp
parentefa80ce427e40070e36e5ab86d2f6dbf4ad50648 (diff)
[FIX] Grammer in Changelog
[FIX] Made pokemod classes contain their names for later ease [ADD] PokéModr main window form [FIX] Ini and Exception includes fixed [FIX] BugCatcher bugs fixed [FIX] .pro files fixed [ADD] PokéModr main GUI almost complete git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@40 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Dialog.cpp')
-rw-r--r--pokemod/Dialog.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/pokemod/Dialog.cpp b/pokemod/Dialog.cpp
index 829a53f7..a907fb2b 100644
--- a/pokemod/Dialog.cpp
+++ b/pokemod/Dialog.cpp
@@ -36,19 +36,19 @@ const QStringList Dialog::CommandAbbrStr = QStringList() << "FF" << "SF" << "UF"
const QList<unsigned> Dialog::CommandNumArgs = QList<unsigned>() << 1 << 1 << 1 << 1 << 3 << 2 << 2 << 1 << 4 << 4 << 4 << 1 << 5 << 3 << 7 << 4 << 1 << 4 << 1 << 4 << 6 << 3 << 6 << 5 << 5 << 4 << 4 << 5 << 6 << 1 << 2 << 1 << 2 << 1 << 2 << 1 << 3 << 1 << 1 << 3 << 0 << 0 << 0 << 0 << 0 << 0;
Dialog::Dialog(const Pokemod& par, const unsigned _id) :
- Object(par, _id),
+ Object("Dialog", par, _id),
dialog("")
{
}
Dialog::Dialog(const Pokemod& par, const Dialog& d, const unsigned _id) :
- Object(par, _id)
+ Object("Dialog", par, _id)
{
*this = d;
}
Dialog::Dialog(const Pokemod& par, const QString& fname, const unsigned _id) :
- Object(par, _id)
+ Object("Dialog", par, _id)
{
load(fname, _id);
}
@@ -668,14 +668,14 @@ void Dialog::load(const QString& fname, const unsigned _id) throw(Exception)
ini.getValue("id", id);
else
id = _id;
- ini.getValue("dialog", dialog);
+ ini.getValue(className, dialog);
}
void Dialog::save() const throw(Exception)
{
Ini ini;
ini.addField("id", id);
- ini.addField("dialog", dialog);
+ ini.addField(className, dialog);
ini.save(QString("%1/dialog/%2.pini").arg(pokemod.getPath()).arg(id));
}
@@ -692,7 +692,7 @@ QString Dialog::getDialog() const
void Dialog::insertDialogCommand(const QString& cmd, const long pos) throw(BoundsException)
{
if (dialog.length() < pos)
- throw(BoundsException("Dialog" , "command"));
+ throw(BoundsException(className , "command"));
dialog.insert(pos, cmd);
}