void GameManager::constructPreferencePage (PreferenceGroup& group) { // Add a page to the given group PreferencesPage* page(group.createPage(_("Path"), _("Path Preferences"))); // Add the sliders for the movement and angle speed and connect them to the observer page->appendPathEntry(GlobalGameManager().getKeyValue("name") + " " + std::string(_("Installation Path")), RKEY_ENGINE_PATH, true); }
// PreferenceConstructor implementation, add the preference settings void MapCompiler::constructPreferencePage (PreferenceGroup& group) { PreferencesPage* page(group.createPage(_("Map Compiler"), _("Map Compiler Settings"))); page->appendPathEntry(_("Compiler binary"), RKEY_COMPILER_BINARY, false); page->appendEntry(_("Compile parameters"), RKEY_COMPILE_PARAMETERS); page->appendEntry(_("Error checking parameters"), RKEY_ERROR_CHECK_PARAMETERS); page->appendEntry(_("Error fixing parameters"), RKEY_ERROR_FIX_PARAMETERS); page->appendEntry(_("Material generation parameters"), RKEY_MATERIAL_PARAMETERS); }
void XYWndManager::constructPreferencePage(PreferenceGroup& group) { PreferencesPage* page(group.createPage(_("Orthographic"), _("Orthographic View Settings"))); page->appendCheckBox("", _("View chases mouse cursor during drags"), RKEY_CHASE_MOUSE); page->appendCheckBox("", _("Update views on camera move"), RKEY_CAMERA_XY_UPDATE); page->appendCheckBox("", _("Show Crosshairs"), RKEY_SHOW_CROSSHAIRS); page->appendCheckBox("", _("Show Grid"), RKEY_SHOW_GRID); page->appendCheckBox("", _("Show Size Info"), RKEY_SHOW_SIZE_INFO); page->appendCheckBox("", _("Show Entity Angle Arrow"), RKEY_SHOW_ENTITY_ANGLES); page->appendCheckBox("", _("Show Entity Names"), RKEY_SHOW_ENTITY_NAMES); page->appendCheckBox("", _("Show Blocks"), RKEY_SHOW_BLOCKS); page->appendCheckBox("", _("Show Coordinates"), RKEY_SHOW_COORDINATES); page->appendCheckBox("", _("Show Axes"), RKEY_SHOW_AXES); page->appendCheckBox("", _("Show Window Outline"), RKEY_SHOW_OUTLINE); page->appendCheckBox("", _("Show Workzone"), RKEY_SHOW_WORKZONE); page->appendCheckBox("", _("Always caulk for new brushes"), RKEY_ALWAYS_CAULK_FOR_NEW_BRUSHES); }
void MainFrame::constructPreferencePage (PreferenceGroup& group) { // Add another page for Multi-Monitor stuff PreferencesPage* page(group.createPage(_("Display"), _("Multi Monitor"))); // Initialise the registry, if no key is set if (GlobalRegistry().get(RKEY_MULTIMON_START_MONITOR).empty()) { GlobalRegistry().set(RKEY_MULTIMON_START_MONITOR, "0"); } ComboBoxValueList list; for (int i = 0; i < gtkutil::MultiMonitor::getNumMonitors(); ++i) { GdkRectangle rect = gtkutil::MultiMonitor::getMonitor(i); list.push_back(string::format("Monitor %d (%dx%d)", i, rect.width, rect.height)); } page->appendCombo(_("Start UFORadiant on monitor"), RKEY_MULTIMON_START_MONITOR, list); }
void Brush_constructPage(PreferenceGroup& group) { PreferencesPage page(group.createPage("Brush", "Brush Settings")); Brush_constructPreferences(page); }
void Entity_constructPage(PreferenceGroup& group) { PreferencesPage page(group.createPage("Entities", "Entity Display Preferences")); Entity_constructPreferences(page); }
void Mouse_constructPage(PreferenceGroup& group) { PreferencesPage page(group.createPage("Mouse", "Mouse Preferences")); Mouse_constructPreferences(page); }