summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-02-07 22:33:49 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-02-08 21:56:10 +0100
commitd803d02cd4d1dc94f549168e25f2c08903913612 (patch)
tree5d798e70258ce852e1dd638536b165e1d2327a14
parent9e7c94d53a21148fbd5041d541a22c27c8d702dc (diff)
downloadmana-d803d02cd4d1dc94f549168e25f2c08903913612.tar.gz
mana-d803d02cd4d1dc94f549168e25f2c08903913612.tar.bz2
mana-d803d02cd4d1dc94f549168e25f2c08903913612.tar.xz
mana-d803d02cd4d1dc94f549168e25f2c08903913612.zip
Reorganized Video settings so that labels have more space
I think it also looks a bit more organized overall. Reviewed-by: Erik Schilling
-rw-r--r--src/gui/setup_video.cpp43
1 files changed, 22 insertions, 21 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp
index cd78f307..f2f19af5 100644
--- a/src/gui/setup_video.cpp
+++ b/src/gui/setup_video.cpp
@@ -187,6 +187,7 @@ Setup_Video::Setup_Video():
ScrollArea *scrollArea = new ScrollArea(mModeList);
scrollArea->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER);
+ scrollArea->setSize(100, 200);
overlayDetailLabel = new Label(_("Ambient FX:"));
particleDetailLabel = new Label(_("Particle detail:"));
@@ -249,35 +250,35 @@ Setup_Video::Setup_Video():
// Do the layout
LayoutHelper h(this);
- ContainerPlacer place = h.getPlacer(0, 0);
-
- place(0, 0, scrollArea, 2, 6).setPadding(2);
- place(2, 0, mFsCheckBox, 2);
- place(4, 0, mOpenGLCheckBox, 2);
-
- place(2, 1, space, 4, 1);
+ ContainerPlacer place = h.getPlacer(0, 0);
+ place.getCell().setHAlign(LayoutCell::FILL);
- place(2, 2, mCustomCursorCheckBox, 2);
- place(4, 2, mParticleEffectsCheckBox, 2);
+ place(0, 0, scrollArea, 1, 4).setPadding(2).setHAlign(LayoutCell::FILL);
+ place(1, 0, space, 1, 4);
+ place(2, 0, mFsCheckBox);
+ place(2, 1, mOpenGLCheckBox);
+ place(2, 2, mCustomCursorCheckBox);
- place(2, 3, space, 4, 1);
+ place = h.getPlacer(0, 1);
+ place.getCell().setHAlign(LayoutCell::FILL);
- place(2, 4, mDisableSDLTransparencyCheckBox, 4);
+ place(0, 0, space, 3);
+ place(0, 1, mDisableSDLTransparencyCheckBox, 4);
- place(2, 5, space, 4, 1);
+ place(0, 2, mFpsCheckBox);
+ place(1, 2, mFpsSlider, 2);
+ place(3, 2, mFpsLabel);
- place(0, 6, mFpsSlider, 2);
- place(2, 6, mFpsCheckBox).setPadding(3);
- place(3, 6, mFpsLabel).setPadding(1);
+ place(0, 3, mParticleEffectsCheckBox, 4);
- place(0, 7, mOverlayDetailSlider, 2);
- place(2, 7, overlayDetailLabel);
- place(3, 7, mOverlayDetailField).setPadding(2);
+ place(0, 4, particleDetailLabel);
+ place(1, 4, mParticleDetailSlider, 2);
+ place(3, 4, mParticleDetailField);
- place(0, 8, mParticleDetailSlider, 2);
- place(2, 8, particleDetailLabel);
- place(3, 8, mParticleDetailField).setPadding(2);
+ place(0, 5, overlayDetailLabel);
+ place(1, 5, mOverlayDetailSlider, 2);
+ place(3, 5, mOverlayDetailField);
setDimension(gcn::Rectangle(0, 0, 370, 300));
}