diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-07 20:19:10 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-07 20:19:10 +0200 |
commit | 7b559dcf64e5814cf4cde7e7db52c2e9f6a7357a (patch) | |
tree | 2499b2198dc1efae9d7f15e021c0574a95a0c95a /src/gui/quitdialog.cpp | |
parent | ef1975a3eb4e1986601ad154bf184e0de332870c (diff) | |
download | mana-7b559dcf64e5814cf4cde7e7db52c2e9f6a7357a.tar.gz mana-7b559dcf64e5814cf4cde7e7db52c2e9f6a7357a.tar.bz2 mana-7b559dcf64e5814cf4cde7e7db52c2e9f6a7357a.tar.xz mana-7b559dcf64e5814cf4cde7e7db52c2e9f6a7357a.zip |
Used custom widgets where appropriate and some cleanup
Replaced many gcn::Label with Label, gcn::Slider with Slider in
character creation dialog. Also cleaned up includes.
Diffstat (limited to 'src/gui/quitdialog.cpp')
-rw-r--r-- | src/gui/quitdialog.cpp | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/gui/quitdialog.cpp b/src/gui/quitdialog.cpp index 83794ffe..193f0e27 100644 --- a/src/gui/quitdialog.cpp +++ b/src/gui/quitdialog.cpp @@ -19,18 +19,14 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "quitdialog.h" -#include <iostream> -#include <string> +#include "gui/quitdialog.h" -#include <guichan/widgets/label.hpp> +#include "main.h" -#include "../main.h" +#include "gui/button.h" +#include "gui/radiobutton.h" -#include "button.h" -#include "radiobutton.h" - -#include "../utils/gettext.h" +#include "utils/gettext.h" QuitDialog::QuitDialog(bool* quitGame, QuitDialog** pointerToMe): Window(_("Quit"), true, NULL), mQuitGame(quitGame), mMyPointer(pointerToMe) @@ -85,7 +81,6 @@ QuitDialog::QuitDialog(bool* quitGame, QuitDialog** pointerToMe): setVisible(true); mOkButton->requestFocus(); - } QuitDialog::~QuitDialog() @@ -98,8 +93,7 @@ QuitDialog::~QuitDialog() delete mSwitchCharacter; } -void -QuitDialog::action(const gcn::ActionEvent &event) +void QuitDialog::action(const gcn::ActionEvent &event) { if (event.getId() == "ok") { |