diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-10-20 09:01:12 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-10-20 09:01:12 +0000 |
commit | 5acb9213cc2ee949a252a5c08a9a9a13542b94d5 (patch) | |
tree | 40d29fd38eeb692ec948c69f15f5ca27067fa7fb /src/gui/connection.cpp | |
parent | 2415d3b14cdec975a28ccef46d5234f70b06d3b0 (diff) | |
download | mana-client-5acb9213cc2ee949a252a5c08a9a9a13542b94d5.tar.gz mana-client-5acb9213cc2ee949a252a5c08a9a9a13542b94d5.tar.bz2 mana-client-5acb9213cc2ee949a252a5c08a9a9a13542b94d5.tar.xz mana-client-5acb9213cc2ee949a252a5c08a9a9a13542b94d5.zip |
Various cleanups and refactorisations.
Diffstat (limited to 'src/gui/connection.cpp')
-rw-r--r-- | src/gui/connection.cpp | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/src/gui/connection.cpp b/src/gui/connection.cpp index 012bf444..3cff4abd 100644 --- a/src/gui/connection.cpp +++ b/src/gui/connection.cpp @@ -41,18 +41,23 @@ ConnectionDialog::ConnectionDialog(): Window("Info"), mProgress(0), mStatus(NET_CONNECTING) { setContentSize(200, 100); - mCancelButton = new Button("Cancel"); - mCancelButton->setPosition(5, 100 - 5 - mCancelButton->getHeight()); - mCancelButton->setEventId("cancel"); - mCancelButton->addActionListener(this); - mProgressBar = new ProgressBar(0.0, 5, mCancelButton->getY() - 25, + + Button *cancelButton; + cancelButton = new Button("Cancel"); + cancelButton->setPosition(5, 100 - 5 - cancelButton->getHeight()); + cancelButton->setEventId("cancel"); + cancelButton->addActionListener(this); + + mProgressBar = new ProgressBar(0.0, 5, cancelButton->getY() - 25, 200 - 10, 20, 128, 128, 128); - mLabel = new gcn::Label("Connecting..."); - mLabel->setPosition(5, mProgressBar->getY() - 25); + gcn::Label *label; + label = new gcn::Label("Connecting..."); + label->setPosition(5, mProgressBar->getY() - 25); - add(mLabel); - add(mCancelButton); + add(label); + add(cancelButton); add(mProgressBar); + setLocationRelativeTo(getParent()); const char *host = iptostring(map_address); |