diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-11 23:11:41 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-11 23:11:41 +0000 |
commit | 3e83b793116c9a196ad0026b31094dd28389eddf (patch) | |
tree | 617c3978b1cb66028a147ceb1084249de7f72a87 | |
parent | 8e9df978f664ee4b415ab672e9eba5037d62af5e (diff) | |
download | mana-client-3e83b793116c9a196ad0026b31094dd28389eddf.tar.gz mana-client-3e83b793116c9a196ad0026b31094dd28389eddf.tar.bz2 mana-client-3e83b793116c9a196ad0026b31094dd28389eddf.tar.xz mana-client-3e83b793116c9a196ad0026b31094dd28389eddf.zip |
Improve layout of login dialog slightly and allow login by pressing enter with
server field focused.
-rw-r--r-- | src/gui/login.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/gui/login.cpp b/src/gui/login.cpp index 6a8c1590..d69865f8 100644 --- a/src/gui/login.cpp +++ b/src/gui/login.cpp @@ -51,23 +51,25 @@ LoginDialog::LoginDialog(): userLabel->setPosition(5, 5); passLabel->setPosition(5, 14 + userLabel->getHeight()); + serverLabel->setPosition( + 5, 23 + userLabel->getHeight() + passLabel->getHeight()); userField->setPosition(65, 5); passField->setPosition(65, 14 + userLabel->getHeight()); + serverField->setPosition( + 65, 23 + userLabel->getHeight() + passLabel->getHeight()); userField->setWidth(130); passField->setWidth(130); serverField->setWidth(130); - serverLabel->setPosition(5,19 + userLabel->getHeight() + passField->getHeight()); - serverField->setPosition(65,19 + userField->getHeight() + passField->getHeight()); - keepCheck->setPosition(4, 74); + keepCheck->setPosition(4, 77); keepCheck->setMarked(config.getValue("remember", 0)); cancelButton->setPosition( 200 - cancelButton->getWidth() - 5, - 97 - cancelButton->getHeight() - 5); + 100 - cancelButton->getHeight() - 5); okButton->setPosition( cancelButton->getX() - okButton->getWidth() - 5, - 97 - okButton->getHeight() - 5); + 100 - okButton->getHeight() - 5); registerButton->setPosition(keepCheck->getX() + keepCheck->getWidth() + 10, - 97 - registerButton->getHeight() - 5); + 100 - registerButton->getHeight() - 5); userField->setEventId("ok"); passField->setEventId("ok"); @@ -78,6 +80,7 @@ LoginDialog::LoginDialog(): userField->addActionListener(this); passField->addActionListener(this); + serverField->addActionListener(this); keepCheck->addActionListener(this); okButton->addActionListener(this); cancelButton->addActionListener(this); |