MCPcopy Create free account
hub / github.com/MyGUI/mygui / saveSettings

Method saveSettings

Tools/LayoutEditor/SettingsGeneralControl.cpp:48–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 }
47
48 void SettingsGeneralControl::saveSettings()
49 {
50 SettingsManager::getInstance().setValue("Settings/GridStep", mGridStep);
51 SettingsManager::getInstance().setValue("Settings/LoadLastProject", mLoadLastProject->getStateSelected());
52 SettingsManager::getInstance().setValue("Settings/InterfaceLanguage", getLanguageValue());
53
54 MyGUI::IntSize workspaceSize = MyGUI::utility::parseValue<MyGUI::IntSize>(mWorkspaceSize->getCaption());
55 workspaceSize.set((std::max)(64, workspaceSize.width), (std::max)(64, workspaceSize.height));
56 SettingsManager::getInstance().setValue("Settings/WorkspaceTextureSize", workspaceSize.print());
57 }
58
59 void SettingsGeneralControl::notifyNewGridStep(MyGUI::Widget* _sender, MyGUI::Widget* _new)
60 {

Callers

nothing calls this directly

Calls 4

getStateSelectedMethod · 0.80
setValueMethod · 0.45
setMethod · 0.45
printMethod · 0.45

Tested by

no test coverage detected