void AutoMapSaver::constructPreferences() { // Add a page to the given group PreferencesPagePtr page = GlobalPreferenceSystem().getPage(_("Settings/Autosave")); // Add the checkboxes and connect them with the registry key and the according observer page->appendCheckBox("", _("Enable Autosave"), RKEY_AUTOSAVE_ENABLED); page->appendSlider(_("Autosave Interval (in minutes)"), RKEY_AUTOSAVE_INTERVAL, TRUE, 5, 1, 61, 1, 1, 1); page->appendCheckBox("", _("Save Snapshots"), RKEY_AUTOSAVE_SNAPSHOTS_ENABLED); page->appendEntry(_("Snapshot folder (relative to map folder)"), RKEY_AUTOSAVE_SNAPSHOTS_FOLDER); page->appendEntry(_("Max Snapshot Folder size (MB)"), RKEY_AUTOSAVE_MAX_SNAPSHOT_FOLDER_SIZE); }
void MediaBrowser::registerCommandsAndPreferences() { // Add a page to the given group PreferencesPagePtr page = GlobalPreferenceSystem().getPage(_("Settings/Media Browser")); page->appendCheckBox("", _("Load media tree at startup"), RKEY_MEDIA_BROWSER_PRELOAD); GlobalCommandSystem().addCommand("ToggleMediaBrowser", toggle); GlobalEventManager().addCommand("ToggleMediaBrowser", "ToggleMediaBrowser"); }
void BrushModuleClass::constructPreferences() { // Add a page to the given group PreferencesPagePtr page = GlobalPreferenceSystem().getPage(_("Settings/Primitives")); // Add the default texture scale preference and connect it to the according registryKey // Note: this should be moved somewhere else, I think page->appendEntry(_("Default texture scale"), "user/ui/textures/defaultTextureScale"); // The checkbox to enable/disable the texture lock option page->appendCheckBox("", _("Enable Texture Lock (for Brushes)"), "user/ui/brush/textureLock"); }
void Clipper::constructPreferences() { PreferencesPagePtr page = GlobalPreferenceSystem().getPage(_("Settings/Clipper")); page->appendCheckBox("", _("Clipper tool uses caulk texture"), RKEY_CLIPPER_USE_CAULK); page->appendEntry(_("Caulk shader name"), RKEY_CLIPPER_CAULK_SHADER); }