summaryrefslogtreecommitdiff
path: root/src/gui/updatewindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/updatewindow.cpp')
-rw-r--r--src/gui/updatewindow.cpp28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp
index 51be2f2d..9db09f27 100644
--- a/src/gui/updatewindow.cpp
+++ b/src/gui/updatewindow.cpp
@@ -51,26 +51,28 @@ UpdaterWindow::UpdaterWindow():
{
mCurlError[0] = 0;
- int h = 240;
- int w = 320;
+ const int h = 240;
+ const int w = 320;
setContentSize(w, h);
mBrowserBox = new BrowserBox();
- mBrowserBox->setOpaque(false);
+ mScrollArea = new ScrollArea(mBrowserBox);
+ mLabel = new gcn::Label("Connecting...");
+ mProgressBar = new ProgressBar(0.0, w - 10, 20, 37, 70, 200);
mCancelButton = new Button("Cancel", "cancel", this);
- mCancelButton->setPosition(5, h - 5 - mCancelButton->getHeight());
mPlayButton = new Button("Play", "play", this);
- mPlayButton->setPosition(mCancelButton->getX() +
- mCancelButton->getWidth() + 5,
- h - 5 - mPlayButton->getHeight());
+
+ mBrowserBox->setOpaque(false);
mPlayButton->setEnabled(false);
- mProgressBar = new ProgressBar(0.0, 5, mCancelButton->getY() - 20 - 5,
- w - 10, 20, 37, 70, 200);
- mLabel = new gcn::Label("Connecting...");
+
+ mCancelButton->setPosition(5, h - 5 - mCancelButton->getHeight());
+ mPlayButton->setPosition(
+ mCancelButton->getX() + mCancelButton->getWidth() + 5,
+ h - 5 - mPlayButton->getHeight());
+ mProgressBar->setPosition(5, mCancelButton->getY() - 20 - 5);
mLabel->setPosition(5, mProgressBar->getY() - mLabel->getHeight() - 5);
- mScrollArea = new ScrollArea(mBrowserBox);
- mScrollArea->setDimension(gcn::Rectangle(5, 5, 310,
- mLabel->getY() - 12));
+
+ mScrollArea->setDimension(gcn::Rectangle(5, 5, 310, mLabel->getY() - 12));
add(mScrollArea);
add(mLabel);