| 21 | #include "../../../lib/imgui/addon/imguitinyfiledialogs.h" |
| 22 | |
| 23 | OptionsView::OptionsView(BString tab) : BaseView(B("OptionsView")) { |
| 24 | if (tab.length()) { |
| 25 | if (tab == "Wine") { |
| 26 | this->tabIndex = 2; |
| 27 | } if (tab == "Display") { |
| 28 | this->tabIndex = 1; |
| 29 | } |
| 30 | |
| 31 | } |
| 32 | this->wineTitle = c_getTranslation(Msg::OPTIONSVIEW_TITLE_FILESYSTEM); |
| 33 | |
| 34 | createGeneralTab(); |
| 35 | createThemeTab(); |
| 36 | |
| 37 | BString name; |
| 38 | if (GlobalSettings::hasIconsFont()) { |
| 39 | name += OPTION_WINE_ICON; |
| 40 | name += " "; |
| 41 | } |
| 42 | name += this->wineTitle; |
| 43 | addTab(name, name, NULL, [this](bool buttonPressed, BaseViewTab& tab) { |
| 44 | this->runWineOptions(); |
| 45 | }); |
| 46 | |
| 47 | loadFileSystemVersions(); |
| 48 | } |
| 49 | |
| 50 | void OptionsView::createThemeTab() { |
| 51 | std::shared_ptr<ImGuiLayout> model = std::make_shared<ImGuiLayout>(); |
nothing calls this directly
no test coverage detected