diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-01-18 23:29:48 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-01-18 23:33:30 +0100 |
commit | 9e29e1fd328304c2852c456e38fcb5da6421be96 (patch) | |
tree | 42bcfa14290fbf9c8f01d8f48254f1c229c5f03e /src/gui/setup_video.h | |
parent | a10cebb21bdd211716628039b406362f2168c852 (diff) | |
download | mana-9e29e1fd328304c2852c456e38fcb5da6421be96.tar.gz mana-9e29e1fd328304c2852c456e38fcb5da6421be96.tar.bz2 mana-9e29e1fd328304c2852c456e38fcb5da6421be96.tar.xz mana-9e29e1fd328304c2852c456e38fcb5da6421be96.zip |
Fixed layout of video setup page when translated
Introduced a LayoutHelper class which can be used for any non-Window
container where you want to use a layout to place child widgets.
Diffstat (limited to 'src/gui/setup_video.h')
-rw-r--r-- | src/gui/setup_video.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/gui/setup_video.h b/src/gui/setup_video.h index 355a321e..2a7bd04c 100644 --- a/src/gui/setup_video.h +++ b/src/gui/setup_video.h @@ -42,10 +42,14 @@ class Setup_Video : public SetupTab, public gcn::ActionListener, void action(const gcn::ActionEvent &event); /** Called when key is pressed */ - void - keyPressed(gcn::KeyEvent &event); + void keyPressed(gcn::KeyEvent &event); private: + void updateSliders(bool originalValues); + + int updateSlider(gcn::Slider *slider, gcn::TextField *field, + const std::string &configName); + bool mFullScreenEnabled; bool mOpenGLEnabled; bool mCustomCursorEnabled; @@ -79,13 +83,6 @@ class Setup_Video : public SetupTab, public gcn::ActionListener, int mParticleDetail; gcn::Slider *mParticleDetailSlider; gcn::Label *mParticleDetailField; - - void - updateSliders(bool originalValues); - - int - updateSlider(gcn::Slider *slider, gcn::TextField *field, - const std::string &configName); }; #endif |