diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-13 21:54:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-13 21:54:39 +0300 |
commit | 86b19d64c2692665aba33e44ee5db6cbf36b6342 (patch) | |
tree | 93d91c84258f9b76ab29ab51119bbc0044d729a4 /src/gui/widgets/setupitem.h | |
parent | a45303dc06c74735389607e5b281bb69543547ed (diff) | |
download | mv-86b19d64c2692665aba33e44ee5db6cbf36b6342.tar.gz mv-86b19d64c2692665aba33e44ee5db6cbf36b6342.tar.bz2 mv-86b19d64c2692665aba33e44ee5db6cbf36b6342.tar.xz mv-86b19d64c2692665aba33e44ee5db6cbf36b6342.zip |
Add option to select any existing SDL renderer drivers for SDL2 default mode.
Diffstat (limited to 'src/gui/widgets/setupitem.h')
-rw-r--r-- | src/gui/widgets/setupitem.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/gui/widgets/setupitem.h b/src/gui/widgets/setupitem.h index a60c970c9..eec63a4bc 100644 --- a/src/gui/widgets/setupitem.h +++ b/src/gui/widgets/setupitem.h @@ -340,6 +340,50 @@ class SetupItemDropDown final : public SetupItem void toWidget() override final; + int selectionByValue(); + + protected: + HorizontContainer *mHorizont; + Label *mLabel; + ListModel *mModel; + DropDown *mDropDown; + int mWidth; +}; + +class SetupItemDropDownStr final : public SetupItem +{ + public: + SetupItemDropDownStr(const std::string &restrict text, + const std::string &restrict description, + const std::string &restrict keyName, + SetupTabScroll *restrict const parent, + const std::string &restrict eventName, + ListModel *restrict const model, + const int width, + const MainConfig mainConfig = MainConfig_true); + + SetupItemDropDownStr(const std::string &restrict text, + const std::string &restrict description, + const std::string &restrict keyName, + SetupTabScroll *restrict const parent, + const std::string &restrict eventName, + ListModel *restrict const model, + const int width, + const std::string &restrict def, + const MainConfig mainConfig = MainConfig_true); + + A_DELETE_COPY(SetupItemDropDownStr) + + ~SetupItemDropDownStr(); + + void createControls(); + + void fromWidget() override final; + + void toWidget() override final; + + int selectionByValue(); + protected: HorizontContainer *mHorizont; Label *mLabel; |