summaryrefslogtreecommitdiff
path: root/src/gui/login.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-08-27 14:43:31 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-08-27 14:43:31 +0000
commit97cdacdaf3cfa0970597483d41838906125886bc (patch)
treec4e10a46db95f3d57dc45849ce68b917d37b2854 /src/gui/login.cpp
parent71bded93f43a02b167ec2a9a46b90a5fcc842180 (diff)
downloadmana-97cdacdaf3cfa0970597483d41838906125886bc.tar.gz
mana-97cdacdaf3cfa0970597483d41838906125886bc.tar.bz2
mana-97cdacdaf3cfa0970597483d41838906125886bc.tar.xz
mana-97cdacdaf3cfa0970597483d41838906125886bc.zip
Got rid of server input field since connecting to the account server now
happens before the login and register dialogs.
Diffstat (limited to 'src/gui/login.cpp')
-rw-r--r--src/gui/login.cpp25
1 files changed, 7 insertions, 18 deletions
diff --git a/src/gui/login.cpp b/src/gui/login.cpp
index cb16dcb4..1d9b6e1e 100644
--- a/src/gui/login.cpp
+++ b/src/gui/login.cpp
@@ -59,53 +59,43 @@ LoginDialog::LoginDialog(LoginData *loginData):
{
gcn::Label *userLabel = new gcn::Label("Name:");
gcn::Label *passLabel = new gcn::Label("Password:");
- gcn::Label *serverLabel = new gcn::Label("Server:");
mUserField = new TextField(mLoginData->username);
mPassField = new PasswordField(mLoginData->password);
- mServerField = new TextField(mLoginData->hostname);
mKeepCheck = new CheckBox("Keep", mLoginData->remember);
mOkButton = new Button("OK", "ok", this);
mCancelButton = new Button("Cancel", "cancel", this);
mRegisterButton = new Button("Register", "register", this);
- setContentSize(200, 100);
+ setContentSize(200, 91);
userLabel->setPosition(5, 5);
passLabel->setPosition(5, 14 + userLabel->getHeight());
- serverLabel->setPosition(
- 5, 23 + userLabel->getHeight() + passLabel->getHeight());
mUserField->setPosition(65, 5);
mPassField->setPosition(65, 14 + userLabel->getHeight());
- mServerField->setPosition(
- 65, 23 + userLabel->getHeight() + passLabel->getHeight());
mUserField->setWidth(130);
mPassField->setWidth(130);
- mServerField->setWidth(130);
- mKeepCheck->setPosition(4, 77);
+ mKeepCheck->setPosition(4, 68);
mCancelButton->setPosition(
200 - mCancelButton->getWidth() - 5,
- 100 - mCancelButton->getHeight() - 5);
+ 91 - mCancelButton->getHeight() - 5);
mOkButton->setPosition(
mCancelButton->getX() - mOkButton->getWidth() - 5,
- 100 - mOkButton->getHeight() - 5);
- mRegisterButton->setPosition(mKeepCheck->getX() + mKeepCheck->getWidth() + 10,
- 100 - mRegisterButton->getHeight() - 5);
+ 91 - mOkButton->getHeight() - 5);
+ mRegisterButton->setPosition(
+ mKeepCheck->getX() + mKeepCheck->getWidth() + 10,
+ 91 - mRegisterButton->getHeight() - 5);
mUserField->setEventId("ok");
mPassField->setEventId("ok");
- mServerField->setEventId("ok");
mUserField->addActionListener(this);
mPassField->addActionListener(this);
- mServerField->addActionListener(this);
mKeepCheck->addActionListener(this);
add(userLabel);
add(passLabel);
- add(serverLabel);
add(mUserField);
add(mPassField);
- add(mServerField);
add(mKeepCheck);
add(mOkButton);
add(mCancelButton);
@@ -141,7 +131,6 @@ LoginDialog::action(const std::string &eventId, gcn::Widget *widget)
}
else
{
- mLoginData->hostname = mServerField->getText();
mLoginData->username = mUserField->getText();
mLoginData->password = mPassField->getText();
mLoginData->remember = mKeepCheck->isMarked();