summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-01-20 20:38:54 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-01-20 21:26:38 +0100
commit3faaa19f08ff31cbd71fc62e3699a8b7d69ae5f0 (patch)
treea1f70084abd7535847fdd0c1008b68467043f917 /src/gui
parentd0954c2d702d7791a6ee1a5d2a82145b089ab523 (diff)
downloadmana-3faaa19f08ff31cbd71fc62e3699a8b7d69ae5f0.tar.gz
mana-3faaa19f08ff31cbd71fc62e3699a8b7d69ae5f0.tar.bz2
mana-3faaa19f08ff31cbd71fc62e3699a8b7d69ae5f0.tar.xz
mana-3faaa19f08ff31cbd71fc62e3699a8b7d69ae5f0.zip
Made the update window bigger and resizable
Also made it remember its size and position. Reviewed-by: Erik Schilling
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/updaterwindow.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gui/updaterwindow.cpp b/src/gui/updaterwindow.cpp
index c4684869..fe902644 100644
--- a/src/gui/updaterwindow.cpp
+++ b/src/gui/updaterwindow.cpp
@@ -138,6 +138,12 @@ UpdaterWindow::UpdaterWindow(const std::string &updateHost,
mUpdateIndex(0),
mLoadUpdates(applyUpdates)
{
+ setWindowName("UpdaterWindow");
+ setResizable(true);
+ setDefaultSize(450, 400, ImageRect::CENTER);
+ setMinWidth(320);
+ setMinHeight(240);
+
mBrowserBox = new BrowserBox;
mScrollArea = new ScrollArea(mBrowserBox);
mLabel = new Label(_("Connecting..."));
@@ -149,23 +155,18 @@ UpdaterWindow::UpdaterWindow(const std::string &updateHost,
mBrowserBox->setOpaque(false);
mPlayButton->setEnabled(false);
- ContainerPlacer place;
- place = getPlacer(0, 0);
-
place(0, 0, mScrollArea, 5, 3).setPadding(3);
place(0, 3, mLabel, 5);
place(0, 4, mProgressBar, 5);
place(3, 5, mCancelButton);
place(4, 5, mPlayButton);
- reflowLayout(320, 240);
-
Layout &layout = getLayout();
layout.setRowHeight(0, Layout::AUTO_SET);
addKeyListener(this);
- center();
+ loadWindowState();
setVisible(true);
mCancelButton->requestFocus();