diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-07-25 22:27:32 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-07-25 22:27:41 +0200 |
commit | 8331284990b8d998a7e323e6fcf3c25f2f7d60d8 (patch) | |
tree | 168cf7bdc4cc4e8d93c8072ded3c4a1246c12e64 /src/gui/setup_joystick.cpp | |
parent | f0d0f33c8fa4910040204ea3023cd08b4660f56f (diff) | |
download | mana-8331284990b8d998a7e323e6fcf3c25f2f7d60d8.tar.gz mana-8331284990b8d998a7e323e6fcf3c25f2f7d60d8.tar.bz2 mana-8331284990b8d998a7e323e6fcf3c25f2f7d60d8.tar.xz mana-8331284990b8d998a7e323e6fcf3c25f2f7d60d8.zip |
Reduced the height of the Setup window
Also removed all the hardcoded sizes of the various setup tabs. Instead,
support for dynamically adjusting layout was added to the Container
class.
Various other places were also adapted to use the new layout support in
Container.
Diffstat (limited to 'src/gui/setup_joystick.cpp')
-rw-r--r-- | src/gui/setup_joystick.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/gui/setup_joystick.cpp b/src/gui/setup_joystick.cpp index b3bdc226..1109f06e 100644 --- a/src/gui/setup_joystick.cpp +++ b/src/gui/setup_joystick.cpp @@ -27,7 +27,6 @@ #include "gui/widgets/button.h" #include "gui/widgets/checkbox.h" #include "gui/widgets/label.h" -#include "gui/widgets/layouthelper.h" #include "utils/gettext.h" @@ -46,16 +45,9 @@ Setup_Joystick::Setup_Joystick(): mJoystickCheckBox->addActionListener(this); // Do the layout - LayoutHelper h(this); - ContainerPlacer place = h.getPlacer(0, 0); - - place(0, 0, mJoystickCheckBox); - place(0, 1, mCalibrateLabel); - place.getCell().matchColWidth(0, 0); - place = h.getPlacer(0, 1); - place(0, 0, mCalibrateButton); - - setDimension(gcn::Rectangle(0, 0, 370, 75)); + place(0, 0, mJoystickCheckBox, 2); + place(0, 1, mCalibrateLabel, 2); + place(0, 2, mCalibrateButton); } void Setup_Joystick::action(const gcn::ActionEvent &event) |