QTfrontend/gameuiconfig.cpp
changeset 14677 93429d8f6b3f
parent 14670 56831f466d1d
child 14740 7b2bd37d7503
equal deleted inserted replaced
14676:9377ee00f1f1 14677:93429d8f6b3f
   103     Form->ui.pageOptions->CBFullscreen->setChecked(value("video/fullscreen", false).toBool());
   103     Form->ui.pageOptions->CBFullscreen->setChecked(value("video/fullscreen", false).toBool());
   104     bool ffscr=value("frontend/fullscreen", false).toBool();
   104     bool ffscr=value("frontend/fullscreen", false).toBool();
   105     Form->ui.pageOptions->CBFrontendFullscreen->setChecked(ffscr);
   105     Form->ui.pageOptions->CBFrontendFullscreen->setChecked(ffscr);
   106 
   106 
   107     Form->ui.pageOptions->SLQuality->setValue(value("video/quality", 5).toUInt());
   107     Form->ui.pageOptions->SLQuality->setValue(value("video/quality", 5).toUInt());
       
   108     Form->ui.pageOptions->SLZoom->setValue(value("video/zoom", 100).toUInt());
   108     Form->ui.pageOptions->CBStereoMode->setCurrentIndex(value("video/stereo", 0).toUInt());
   109     Form->ui.pageOptions->CBStereoMode->setCurrentIndex(value("video/stereo", 0).toUInt());
   109     Form->ui.pageOptions->CBFrontendEffects->setChecked(value("frontend/effects", true).toBool());
   110     Form->ui.pageOptions->CBFrontendEffects->setChecked(value("frontend/effects", true).toBool());
   110     Form->ui.pageOptions->CBSound->setChecked(value("audio/sound", true).toBool());
   111     Form->ui.pageOptions->CBSound->setChecked(value("audio/sound", true).toBool());
   111     Form->ui.pageOptions->CBFrontendSound->setChecked(value("frontend/sound", true).toBool());
   112     Form->ui.pageOptions->CBFrontendSound->setChecked(value("frontend/sound", true).toBool());
   112     Form->ui.pageOptions->CBMusic->setChecked(value("audio/music", true).toBool());
   113     Form->ui.pageOptions->CBMusic->setChecked(value("audio/music", true).toBool());
   243     setValue("video/windowedWidth", Form->ui.pageOptions->windowWidthEdit->value());
   244     setValue("video/windowedWidth", Form->ui.pageOptions->windowWidthEdit->value());
   244     setValue("video/windowedHeight", Form->ui.pageOptions->windowHeightEdit->value());
   245     setValue("video/windowedHeight", Form->ui.pageOptions->windowHeightEdit->value());
   245     setValue("video/fullscreen", vid_Fullscreen());
   246     setValue("video/fullscreen", vid_Fullscreen());
   246 
   247 
   247     setValue("video/quality", Form->ui.pageOptions->SLQuality->value());
   248     setValue("video/quality", Form->ui.pageOptions->SLQuality->value());
       
   249     setValue("video/zoom", Form->ui.pageOptions->SLZoom->value());
   248     setValue("video/stereo", stereoMode());
   250     setValue("video/stereo", stereoMode());
   249 
   251 
   250     setValue("frontend/effects", isFrontendEffects());
   252     setValue("frontend/effects", isFrontendEffects());
   251 
   253 
   252     setValue("misc/weaponTooltips", Form->ui.pageOptions->WeaponTooltip->isChecked());
   254     setValue("misc/weaponTooltips", Form->ui.pageOptions->WeaponTooltip->isChecked());
   439 bool GameUIConfig::isFrontendFullscreen() const
   441 bool GameUIConfig::isFrontendFullscreen() const
   440 {
   442 {
   441     return Form->ui.pageOptions->CBFrontendFullscreen->isChecked();
   443     return Form->ui.pageOptions->CBFrontendFullscreen->isChecked();
   442 }
   444 }
   443 
   445 
       
   446 quint16 GameUIConfig::zoom()
       
   447 {
       
   448     return Form->ui.pageOptions->SLZoom->value();
       
   449 }
       
   450 
   444 bool GameUIConfig::isHolidaySillinessEnabled() const
   451 bool GameUIConfig::isHolidaySillinessEnabled() const
   445 {
   452 {
   446     return value("misc/holidaySilliness", true).toBool();
   453     return value("misc/holidaySilliness", true).toBool();
   447 }
   454 }
   448 
   455