diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-17 20:39:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-17 20:41:27 +0300 |
commit | 5a9a9d113f88ab4e3f9e570397a744760d4520c1 (patch) | |
tree | 68d5b87dbb37f556ad74b23d09d073c41a73c6c5 /src/gui/quitdialog.h | |
parent | 098901c3c49ddaed12ecdcf1739a5f680b457dfe (diff) | |
download | plus-5a9a9d113f88ab4e3f9e570397a744760d4520c1.tar.gz plus-5a9a9d113f88ab4e3f9e570397a744760d4520c1.tar.bz2 plus-5a9a9d113f88ab4e3f9e570397a744760d4520c1.tar.xz plus-5a9a9d113f88ab4e3f9e570397a744760d4520c1.zip |
Extend radio button theming.
New options:
padding - padding from all sides except left
imagePadding - padding from left before image
imageSize - image size for computation width
spacing - space between image and text
width = imagePadding + imageSize + spacing + text width + padding
height = padding + text height + padding
Diffstat (limited to 'src/gui/quitdialog.h')
-rw-r--r-- | src/gui/quitdialog.h | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/gui/quitdialog.h b/src/gui/quitdialog.h index a47808d04..e6dcb20e9 100644 --- a/src/gui/quitdialog.h +++ b/src/gui/quitdialog.h @@ -31,11 +31,7 @@ #include <vector> class Button; - -namespace gcn -{ - class RadioButton; -} +class RadioButton; /** * The quit dialog. @@ -69,13 +65,13 @@ class QuitDialog final : public Window, public gcn::ActionListener, private: void placeOption(ContainerPlacer &placer, - gcn::RadioButton *const option); - std::vector<gcn::RadioButton*> mOptions; + RadioButton *const option); + std::vector<RadioButton*> mOptions; - gcn::RadioButton *mLogoutQuit; - gcn::RadioButton *mForceQuit; - gcn::RadioButton *mSwitchAccountServer; - gcn::RadioButton *mSwitchCharacter; + RadioButton *mLogoutQuit; + RadioButton *mForceQuit; + RadioButton *mSwitchAccountServer; + RadioButton *mSwitchCharacter; Button *mOkButton; Button *mCancelButton; |