summaryrefslogtreecommitdiff
path: root/src/gui/login.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-04 15:09:14 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-04 15:09:14 +0000
commitae4e9076051a736e2bbbce91e7fd58cb27448f24 (patch)
tree13dc16f764fff92b5f47fd75ce135493fa6374dd /src/gui/login.cpp
parentdd2d81690185e789d435d5b1839c04bd8e77dea4 (diff)
downloadmana-ae4e9076051a736e2bbbce91e7fd58cb27448f24.tar.gz
mana-ae4e9076051a736e2bbbce91e7fd58cb27448f24.tar.bz2
mana-ae4e9076051a736e2bbbce91e7fd58cb27448f24.tar.xz
mana-ae4e9076051a736e2bbbce91e7fd58cb27448f24.zip
Removed large parts of old GUI code and improved layout of a few dialogs.
Diffstat (limited to 'src/gui/login.cpp')
-rw-r--r--src/gui/login.cpp19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/gui/login.cpp b/src/gui/login.cpp
index bf294c32..52325105 100644
--- a/src/gui/login.cpp
+++ b/src/gui/login.cpp
@@ -40,17 +40,22 @@ LoginDialog::LoginDialog(gcn::Container *parent):
okButton = new Button("OK");
cancelButton = new Button("Cancel");
- setSize(200, 80);
- userLabel->setPosition(4, 11);
- passLabel->setPosition(4, 31);
- userField->setPosition(60, 10);
- passField->setPosition(60, 30);
+ setSize(200, 75);
+
+ userLabel->setPosition(5, 5);
+ passLabel->setPosition(5, 14 + userLabel->getHeight());
+ userField->setPosition(65, 5);
+ passField->setPosition(65, 14 + userLabel->getHeight());
userField->setWidth(130);
passField->setWidth(130);
keepCheck->setPosition(4, 52);
keepCheck->setMarked(config.getValue("remember", 0));
- okButton->setPosition(120, 52);
- cancelButton->setPosition(146, 52);
+ cancelButton->setPosition(
+ 200 - cancelButton->getWidth() - 5,
+ 75 - cancelButton->getHeight() - 5);
+ okButton->setPosition(
+ cancelButton->getX() - okButton->getWidth() - 5,
+ 75 - okButton->getHeight() - 5);
userField->setEventId("ok");
passField->setEventId("ok");