void OptionsGameplayMenu::displayConfig() { updateDifficulty(_difficulty); setCheckBoxState("CB_LEVELUP", _autoLevelUp); setCheckBoxState("CB_INVERTCAM", _mouseMove); setCheckBoxState("CB_AUTOSAVE", _autoSave); setCheckBoxState("CB_REVERSE", _reverseMinigameY); setCheckBoxState("CB_DISABLEMOVE", _combatMovement); }
void OptionsGameplayMenu::show() { GUI::show(); _difficulty = CLIP(ConfigMan.getInt("difficultylevel", 1), 0, 2); updateDifficulty(_difficulty); _autoLevelUp = ConfigMan.getBool("autolevelup", false); setCheckBoxState("CB_LEVELUP", _autoLevelUp); _mouseMove = ConfigMan.getBool("mousemove", false); setCheckBoxState("CB_INVERTCAM", _mouseMove); _autoSave = ConfigMan.getBool("autosave", true); setCheckBoxState("CB_AUTOSAVE", _autoSave); _reverseMinigameY = ConfigMan.getBool("reverseminigameyaxis", false); setCheckBoxState("CB_REVERSE", _reverseMinigameY); _combatMovement = ConfigMan.getBool("combatmovement", true); setCheckBoxState("CB_DISABLEMOVE", _combatMovement); }
void OptionsGraphicsAdvancedMenu::show() { GUI::show(); _textureQuality = CLIP(ConfigMan.getInt("texturequality", 0), 0, 2); updateTextureQuality(_textureQuality); _antiAliasing = CLIP(ConfigMan.getInt("antialiasing", 0), 0, 3); updateAntiAliasing(_antiAliasing); _anisotropy = CLIP(ConfigMan.getInt("anisotropy", 0), 0, 4); updateAnisotropy(_anisotropy); _frameBufferEffects = ConfigMan.getBool("framebuffereffects", true); setCheckBoxState("CB_FRAMEBUFF", _frameBufferEffects); _softShadows = ConfigMan.getBool("softshadows", true); setCheckBoxState("CB_SOFTSHADOWS", _softShadows); _vsync = ConfigMan.getBool("vsync", false); setCheckBoxState("CB_VSYNC", _vsync); }
QgsMessageViewer::QgsMessageViewer( QWidget *parent, Qt::WFlags fl ) : QDialog( parent, fl ) { setupUi( this ); setAttribute( Qt::WA_DeleteOnClose ); // Default state for the checkbox setCheckBoxVisible( false ); setCheckBoxState( Qt::Unchecked ); mCheckBoxQSettingsLabel = ""; }
QgsMessageViewer::QgsMessageViewer( QWidget *parent, Qt::WindowFlags fl, bool deleteOnClose ) : QDialog( parent, fl ) { setupUi( this ); if ( deleteOnClose ) { setAttribute( Qt::WA_DeleteOnClose ); } // Default state for the checkbox setCheckBoxVisible( false ); setCheckBoxState( Qt::Unchecked ); mCheckBoxQgsSettingsLabel = QLatin1String( "" ); QgsSettings settings; restoreGeometry( settings.value( QStringLiteral( "Windows/MessageViewer/geometry" ) ).toByteArray() ); }
int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: messageSignal((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break; case 1: checkPage((*reinterpret_cast< bool(*)>(_a[1]))); break; case 2: checkPage(); break; case 3: cancelcheckPage(); break; case 4: httpRequestFinished((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break; case 5: httpResponseHeaderReceived((*reinterpret_cast< const QHttpResponseHeader(*)>(_a[1]))); break; case 6: httpDataReadProgress((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break; case 7: messageSlot((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break; case 8: setRandomNumbers(); break; case 9: clickAdd((*reinterpret_cast< const bool(*)>(_a[1]))); break; case 10: clickAdd(); break; case 11: clickDelete(); break; case 12: setCheckBoxState((*reinterpret_cast< const bool(*)>(_a[1]))); break; case 13: showOrHideDrawingFormMenuAction((*reinterpret_cast< bool(*)>(_a[1]))); break; case 14: showOrHideDrawingFormMenuAction(); break; case 15: showOrHideFormMenuAction((*reinterpret_cast< bool(*)>(_a[1]))); break; case 16: showOrHideFormMenuAction(); break; case 17: startNewTimer(); break; case 18: changeColorAndValue(); break; case 19: showAbout(); break; case 20: showAboutAction(); break; case 21: readConfiguration(); break; case 22: writeConfiguration(); break; default: ; } _id -= 23; } return _id; }
void OptionsGameplayMenu::callbackActive(Widget &widget) { if (widget.getTag() == "BTN_DIFFRIGHT") { _difficulty++; if (_difficulty > 2) { _difficulty = 2; } updateDifficulty(_difficulty); return; } if (widget.getTag() == "BTN_DIFFLEFT") { _difficulty--; if (_difficulty < 0) { _difficulty = 0; } updateDifficulty(_difficulty); return; } if (widget.getTag() == "BTN_MOUSE") { adoptChanges(); sub(*_mousesettings); return; } if (widget.getTag() == "BTN_KEYMAP") { adoptChanges(); sub(*_keyboardconfiguration); return; } if (widget.getTag() == "BTN_DEFAULT") { _difficulty = 1; updateDifficulty(_difficulty); _autoLevelUp = false; setCheckBoxState("CB_LEVELUP", _autoLevelUp); _mouseMove = false; setCheckBoxState("CB_INVERTCAM", _mouseMove); _autoSave = true; setCheckBoxState("CB_AUTOSAVE", _autoSave); _reverseMinigameY = false; setCheckBoxState("CB_REVERSE", _reverseMinigameY); _combatMovement = true; setCheckBoxState("CB_DISABLEMOVE", _combatMovement); } if (widget.getTag() == "BTN_BACK") { _returnCode = 1; return; } if (widget.getTag() == "CB_LEVELUP") { _autoLevelUp = getCheckBoxState("CB_LEVELUP"); return; } if (widget.getTag() == "CB_INVERTCAM") { _mouseMove = getCheckBoxState("CB_INVERTCAM"); return; } if (widget.getTag() == "CB_AUTOSAVE") { _autoSave = getCheckBoxState("CB_AUTOSAVE"); return; } if (widget.getTag() == "CB_REVERSE") { _reverseMinigameY = getCheckBoxState("CB_REVERSE"); return; } if (widget.getTag() == "CB_DISABLEMOVE") { _combatMovement = getCheckBoxState("CB_DISABLEMOVE"); return; } }
void OptionsGraphicsAdvancedMenu::callbackActive(Widget &widget) { if (widget.getTag() == "BTN_TEXQUALRIGHT") { _textureQuality++; if (_textureQuality > 2) { _textureQuality = 2; } updateTextureQuality(_textureQuality); return; } if (widget.getTag() == "BTN_TEXQUALLEFT") { _textureQuality--; if (_textureQuality < 0) { _textureQuality = 0; } updateTextureQuality(_textureQuality); return; } if (widget.getTag() == "BTN_ANTIALIASRIGHT") { _antiAliasing++; if (_antiAliasing > 3) { _antiAliasing = 3; } updateAntiAliasing(_antiAliasing); return; } if (widget.getTag() == "BTN_ANTIALIASLEFT") { _antiAliasing--; if (_antiAliasing < 0) { _antiAliasing = 0; } updateAntiAliasing(_antiAliasing); return; } if (widget.getTag() == "BTN_ANISOTROPYRIGHT") { _anisotropy++; if (_anisotropy > 4) { _anisotropy = 4; } updateAnisotropy(_anisotropy); return; } if (widget.getTag() == "BTN_ANISOTROPYLEFT") { _anisotropy--; if (_anisotropy < 0) { _anisotropy = 0; } updateAnisotropy(_anisotropy); return; } if (widget.getTag() == "BTN_DEFAULT") { _textureQuality = 0; updateTextureQuality(_textureQuality); _antiAliasing = 0; updateAntiAliasing(_antiAliasing); _anisotropy = 0; updateAnisotropy(_anisotropy); _frameBufferEffects = true; setCheckBoxState("CB_FRAMEBUFF", _frameBufferEffects); _softShadows = true; setCheckBoxState("CB_SOFTSHADOWS", _softShadows); _vsync = false; setCheckBoxState("CB_VSYNC", _vsync); } if (widget.getTag() == "BTN_CANCEL") { _returnCode = 1; return; } if (widget.getTag() == "BTN_BACK") { adoptChanges(); _returnCode = 1; return; } if (widget.getTag() == "CB_FRAMEBUFF") { _frameBufferEffects = getCheckBoxState("CB_FRAMEBUFF"); return; } if (widget.getTag() == "CB_SOFTSHADOWS") { _softShadows = getCheckBoxState("CB_SOFTSHADOWS"); return; } if (widget.getTag() == "CB_VSYNC") { _vsync = getCheckBoxState("CB_VSYNC"); return; } }
void OptionsGraphicsMenu::displayConfig() { setCheckBoxState("CB_SHADOWS", _shadows); setCheckBoxState("CB_GRASS", _grass); }