From ef250617e8163c535931be045aa4e9d59163ace7 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 23 Jan 2008 04:50:24 +0000 Subject: [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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@40 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemod/Dialog.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'pokemod/Dialog.cpp') 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 Dialog::CommandNumArgs = QList() << 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); } -- cgit