Example #1
0
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 Doom3PatchCreator::initialiseModule(const ApplicationContext& ctx)
{
	rMessage() << getName() << "::initialiseModule called." << std::endl;

	registerPatchCommands();

	// Construct and Register the patch-related preferences
	PreferencesPagePtr page = GlobalPreferenceSystem().getPage(_("Settings/Patch"));
	page->appendEntry(_("Patch Subdivide Threshold"), RKEY_PATCH_SUBDIVIDE_THRESHOLD);
}
Example #3
0
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");
}
Example #4
0
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);
}
Example #5
0
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);
}
Example #6
0
 // Gets called by the PreferenceSystem as request to create the according settings page
 void constructPreferences() {
     PreferencesPagePtr page = GlobalPreferenceSystem().getPage(_("Settings/Undo System"));
     page->appendSpinner(_("Undo Queue Size"), RKEY_UNDO_QUEUE_SIZE, 0, 1024, 1);
 }