summaryrefslogtreecommitdiff
path: root/src/gui/register.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-01-18 17:39:16 +0100
committerIra Rice <irarice@gmail.com>2009-01-18 14:17:43 -0700
commit845934e41d27e143ac3555da51a3a09664516405 (patch)
treefa1f4a39639f6d19ef7687f542ab2b5190537f7a /src/gui/register.h
parent4e481047718a4728549ae65128e42912b747c86d (diff)
downloadmana-845934e41d27e143ac3555da51a3a09664516405.tar.gz
mana-845934e41d27e143ac3555da51a3a09664516405.tar.bz2
mana-845934e41d27e143ac3555da51a3a09664516405.tar.xz
mana-845934e41d27e143ac3555da51a3a09664516405.zip
Used dynamic layout for registration window
The dialog looks nicer now and the layout problems when the dialog is translated have been fixed. Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
Diffstat (limited to 'src/gui/register.h')
-rw-r--r--src/gui/register.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/gui/register.h b/src/gui/register.h
index 4c1d9f88..480a7c03 100644
--- a/src/gui/register.h
+++ b/src/gui/register.h
@@ -33,19 +33,7 @@
class LoginData;
class OkDialog;
-
-/**
- * Listener used while dealing with wrong data. It is used to direct the focus
- * to the field which contained wrong data when the Ok button was pressed on
- * the error notice.
- */
-class WrongDataNoticeListener : public gcn::ActionListener {
- public:
- void setTarget(gcn::TextField *textField);
- void action(const gcn::ActionEvent &event);
- private:
- gcn::TextField *mTarget;
-};
+class WrongDataNoticeListener;
/**
* The registration dialog.
@@ -84,7 +72,7 @@ class RegisterDialog : public Window, public gcn::ActionListener,
* Returns whether submit can be enabled. This is true in the register
* state, when all necessary fields have some text.
*/
- bool canSubmit();
+ bool canSubmit() const;
/**
* Function to decide whether string is an unsigned short or not