From 822a523b5e8d25ca03071549248f1178b397d22b Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sat, 23 Jul 2005 17:25:54 +0000 Subject: New login wallpaper by Momotaro and shortened update window a bit to not overlap the logo. --- src/gui/progressbar.cpp | 7 +++++-- src/gui/updatewindow.cpp | 14 ++++++++------ 2 files changed, 13 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/gui/progressbar.cpp b/src/gui/progressbar.cpp index a12c6510..e9e3f1b9 100644 --- a/src/gui/progressbar.cpp +++ b/src/gui/progressbar.cpp @@ -28,8 +28,11 @@ ImageRect ProgressBar::mBorder; int ProgressBar::mInstances = 0; -ProgressBar::ProgressBar(float progress, int x, int y, unsigned int width, unsigned int height, - unsigned char red, unsigned char green, unsigned char blue): +ProgressBar::ProgressBar(float progress, int x, int y, + unsigned int width, unsigned int height, + unsigned char red, + unsigned char green, + unsigned char blue): gcn::Widget(), red(red), green(green), blue(blue), redToGo(red), greenToGo(green), blueToGo(blue) diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp index d29474fe..ebe9013f 100644 --- a/src/gui/updatewindow.cpp +++ b/src/gui/updatewindow.cpp @@ -50,17 +50,12 @@ UpdaterWindow::UpdaterWindow(): mCurlError = new char[CURL_ERROR_SIZE]; mCurlError[0] = 0; - int h = 300; + int h = 240; int w = 320; setContentSize(w, h); mBrowserBox = new BrowserBox(); mBrowserBox->setOpaque(false); - mScrollArea = new ScrollArea(mBrowserBox); - mScrollArea->setDimension(gcn::Rectangle(5, 5, 310, 190)); - mLabel = new gcn::Label("Connecting..."); - mLabel->setPosition(5,205); - mProgressBar = new ProgressBar(0.0, 5, 225, w - 10, 40, 37, 70, 23); mCancelButton = new Button("Cancel"); mCancelButton->setPosition(5, h - 5 - mCancelButton->getHeight()); mCancelButton->setEventId("cancel"); @@ -72,6 +67,13 @@ UpdaterWindow::UpdaterWindow(): mPlayButton->setEventId("play"); mPlayButton->setEnabled(false); mPlayButton->addActionListener(this); + mProgressBar = new ProgressBar(0.0, 5, mCancelButton->getY() - 20 - 5, + w - 10, 20, 37, 70, 23); + mLabel = new gcn::Label("Connecting..."); + mLabel->setPosition(5, mProgressBar->getY() - mLabel->getHeight() - 5); + mScrollArea = new ScrollArea(mBrowserBox); + mScrollArea->setDimension(gcn::Rectangle(5, 5, 310, + mLabel->getY() - 12)); add(mScrollArea); add(mLabel); -- cgit v1.2.3-70-g09d2