QTfrontend/gameuiconfig.cpp
branchexperimental3D
changeset 3696 6009d8378422
parent 3694 3e9c0634065c
child 4004 b1c2c2f6fc5e
equal deleted inserted replaced
3694:3e9c0634065c 3696:6009d8378422
    46     Form->ui.pageOptions->CBFullscreen->setChecked(value("video/fullscreen", false).toBool());
    46     Form->ui.pageOptions->CBFullscreen->setChecked(value("video/fullscreen", false).toBool());
    47     bool ffscr=value("frontend/fullscreen", false).toBool();
    47     bool ffscr=value("frontend/fullscreen", false).toBool();
    48     Form->ui.pageOptions->CBFrontendFullscreen->setChecked(ffscr);
    48     Form->ui.pageOptions->CBFrontendFullscreen->setChecked(ffscr);
    49 
    49 
    50     Form->ui.pageOptions->SLQuality->setValue(value("video/quality", 5).toUInt());
    50     Form->ui.pageOptions->SLQuality->setValue(value("video/quality", 5).toUInt());
    51     Form->ui.pageOptions->CBEnableStereo->setChecked(value("video/anaglyph", false).toBool());
    51     Form->ui.pageOptions->CBStereoMode->setCurrentIndex(value("video/stereo", 0).toUInt());
    52     Form->ui.pageOptions->CBFrontendEffects->setChecked(frontendEffects);
    52     Form->ui.pageOptions->CBFrontendEffects->setChecked(frontendEffects);
    53     Form->ui.pageOptions->CBEnableSound->setChecked(value("audio/sound", true).toBool());
    53     Form->ui.pageOptions->CBEnableSound->setChecked(value("audio/sound", true).toBool());
    54     Form->ui.pageOptions->CBEnableFrontendSound->setChecked(value("frontend/sound", true).toBool());
    54     Form->ui.pageOptions->CBEnableFrontendSound->setChecked(value("frontend/sound", true).toBool());
    55     Form->ui.pageOptions->CBEnableMusic->setChecked(value("audio/music", true).toBool());
    55     Form->ui.pageOptions->CBEnableMusic->setChecked(value("audio/music", true).toBool());
    56     Form->ui.pageOptions->CBEnableFrontendMusic->setChecked(value("frontend/music", true).toBool());
    56     Form->ui.pageOptions->CBEnableFrontendMusic->setChecked(value("frontend/music", true).toBool());
   112 {
   112 {
   113     setValue("video/resolution", Form->ui.pageOptions->CBResolution->currentText());
   113     setValue("video/resolution", Form->ui.pageOptions->CBResolution->currentText());
   114     setValue("video/fullscreen", vid_Fullscreen());
   114     setValue("video/fullscreen", vid_Fullscreen());
   115 
   115 
   116     setValue("video/quality", Form->ui.pageOptions->SLQuality->value());
   116     setValue("video/quality", Form->ui.pageOptions->SLQuality->value());
   117     setValue("video/anaglyph", isStereoEnabled());
   117     setValue("video/stereo", stereoMode());
   118 
   118 
   119     setValue("frontend/effects", isFrontendEffects());
   119     setValue("frontend/effects", isFrontendEffects());
   120 
   120 
   121     setValue("misc/weaponTooltips", Form->ui.pageOptions->WeaponTooltip->isChecked());
   121     setValue("misc/weaponTooltips", Form->ui.pageOptions->WeaponTooltip->isChecked());
   122 
   122 
   261 bool GameUIConfig::isAltDamageEnabled()
   261 bool GameUIConfig::isAltDamageEnabled()
   262 {
   262 {
   263     return Form->ui.pageOptions->CBAltDamage->isChecked();
   263     return Form->ui.pageOptions->CBAltDamage->isChecked();
   264 }
   264 }
   265 
   265 
   266 bool GameUIConfig::isStereoEnabled() const
   266 quint32 GameUIConfig::stereoMode() const
   267 {
   267 {
   268     return Form->ui.pageOptions->CBEnableStereo->isChecked();
   268     return Form->ui.pageOptions->CBStereoMode->currentIndex();
   269 }
   269 }
   270 
   270 
   271 bool GameUIConfig::appendDateTimeToRecordName()
   271 bool GameUIConfig::appendDateTimeToRecordName()
   272 {
   272 {
   273     return Form->ui.pageOptions->CBNameWithDate->isChecked();
   273     return Form->ui.pageOptions->CBNameWithDate->isChecked();