diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-09 12:24:36 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-09 12:24:36 +0000 |
commit | 76185faa619fd06576f2e67e1f2d5f1fb659e340 (patch) | |
tree | 48a7bdff1cbee3f0485a84991c9beac6bd9929a6 /src/gui/updatewindow.cpp | |
parent | e5f795ad9952b8bba6993ee3e324b22a0f104816 (diff) | |
download | mana-client-76185faa619fd06576f2e67e1f2d5f1fb659e340.tar.gz mana-client-76185faa619fd06576f2e67e1f2d5f1fb659e340.tar.bz2 mana-client-76185faa619fd06576f2e67e1f2d5f1fb659e340.tar.xz mana-client-76185faa619fd06576f2e67e1f2d5f1fb659e340.zip |
Removed coordinate arguments from ProgressBar ctor.
Diffstat (limited to 'src/gui/updatewindow.cpp')
-rw-r--r-- | src/gui/updatewindow.cpp | 28 |
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); |