MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / OptionsView

Method OptionsView

source/ui/controls/optionsView.cpp:23–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21#include "../../../lib/imgui/addon/imguitinyfiledialogs.h"
22
23OptionsView::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
50void OptionsView::createThemeTab() {
51 std::shared_ptr<ImGuiLayout> model = std::make_shared<ImGuiLayout>();

Callers

nothing calls this directly

Calls 4

runWineOptionsMethod · 0.95
BFunction · 0.85
c_getTranslationFunction · 0.85
lengthMethod · 0.45

Tested by

no test coverage detected