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/changepassworddialog.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/changepassworddialog.cpp')
-rw-r--r-- | src/gui/changepassworddialog.cpp | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/src/gui/changepassworddialog.cpp b/src/gui/changepassworddialog.cpp index 4bc97326..7af1371b 100644 --- a/src/gui/changepassworddialog.cpp +++ b/src/gui/changepassworddialog.cpp @@ -21,34 +21,33 @@ #include "changepassworddialog.h" -#include <string> -#include <sstream> - -#include <guichan/widgets/label.hpp> +#include "main.h" +#include "log.h" +#include "logindata.h" -#include "../main.h" -#include "../log.h" -#include "../logindata.h" +#include "gui/button.h" +#include "gui/register.h" +#include "gui/passwordfield.h" +#include "gui/textfield.h" +#include "gui/ok_dialog.h" +#include "gui/label.h" -#include "button.h" -#include "register.h" -#include "passwordfield.h" -#include "textfield.h" -#include "ok_dialog.h" +#include "utils/gettext.h" +#include "utils/strprintf.h" -#include "../utils/gettext.h" -#include "../utils/strprintf.h" +#include <string> +#include <sstream> ChangePasswordDialog::ChangePasswordDialog(Window *parent, LoginData *loginData): Window(_("Change Password"), true, parent), mWrongDataNoticeListener(new WrongDataNoticeListener), mLoginData(loginData) { - gcn::Label *accountLabel = new gcn::Label(strprintf(_("Account: %s"), - mLoginData->username.c_str())); - gcn::Label *oldPassLabel = new gcn::Label(_("Password:")); + gcn::Label *accountLabel = new Label(strprintf(_("Account: %s"), + mLoginData->username.c_str())); + gcn::Label *oldPassLabel = new Label(_("Password:")); mOldPassField = new PasswordField; - gcn::Label *newPassLabel = new gcn::Label(_("Type New Password twice:")); + gcn::Label *newPassLabel = new Label(_("Type New Password twice:")); mFirstPassField = new PasswordField; mSecondPassField = new PasswordField; mChangePassButton = new Button(_("Change Password"), "change_password", this); |