QTfrontend/gameuiconfig.cpp
changeset 2747 7889a3a9724f
parent 2631 163b0128bd21
child 2773 e94f240a8a41
equal deleted inserted replaced
2746:55593f8a490b 2747:7889a3a9724f
    37 	connect(Form->ui.pageOptions->CBEnableMusic, SIGNAL(toggled(bool)), Form, SLOT(Music(bool)));
    37 	connect(Form->ui.pageOptions->CBEnableMusic, SIGNAL(toggled(bool)), Form, SLOT(Music(bool)));
    38 
    38 
    39 	//Form->resize(value("window/width", 640).toUInt(), value("window/height", 450).toUInt());
    39 	//Form->resize(value("window/width", 640).toUInt(), value("window/height", 450).toUInt());
    40 	resizeToConfigValues();
    40 	resizeToConfigValues();
    41 
    41 
       
    42 	Form->ui.pageOptions->WeaponTooltip->setChecked(value("misc/WeaponTooltip", true).toBool());
       
    43 
    42 	int t = Form->ui.pageOptions->CBResolution->findText(value("video/resolution").toString());
    44 	int t = Form->ui.pageOptions->CBResolution->findText(value("video/resolution").toString());
    43 	Form->ui.pageOptions->CBResolution->setCurrentIndex((t < 0) ? 0 : t);
    45 	Form->ui.pageOptions->CBResolution->setCurrentIndex((t < 0) ? 0 : t);
    44 	Form->ui.pageOptions->CBFullscreen->setChecked(value("video/fullscreen", false).toBool());
    46 	Form->ui.pageOptions->CBFullscreen->setChecked(value("video/fullscreen", false).toBool());
    45 	bool ffscr=value("video/frontendfullscreen", false).toBool();
    47 	bool ffscr=value("video/frontendfullscreen", false).toBool();
    46 	Form->ui.pageOptions->CBFrontendFullscreen->setChecked(ffscr);
    48 	Form->ui.pageOptions->CBFrontendFullscreen->setChecked(ffscr);
   108 	setValue("video/fullscreen", vid_Fullscreen());
   110 	setValue("video/fullscreen", vid_Fullscreen());
   109 
   111 
   110 	setValue("video/reducequality", isReducedQuality());
   112 	setValue("video/reducequality", isReducedQuality());
   111 
   113 
   112 	setValue("video/frontendeffects", isFrontendEffects());
   114 	setValue("video/frontendeffects", isFrontendEffects());
       
   115 
       
   116 	setValue("misc/WeaponTooltip", isWeaponTooltip());
   113 
   117 
   114 	bool ffscr = isFrontendFullscreen();
   118 	bool ffscr = isFrontendFullscreen();
   115 	setValue("video/frontendfullscreen", ffscr);
   119 	setValue("video/frontendfullscreen", ffscr);
   116 	emit frontendFullscreen(ffscr);
   120 	emit frontendFullscreen(ffscr);
   117 	if (!ffscr) {
   121 	if (!ffscr) {
   169 bool GameUIConfig::isFrontendEffects() const
   173 bool GameUIConfig::isFrontendEffects() const
   170 {
   174 {
   171   return Form->ui.pageOptions->CBFrontendEffects->isChecked();
   175   return Form->ui.pageOptions->CBFrontendEffects->isChecked();
   172 }
   176 }
   173 
   177 
       
   178 bool GameUIConfig::isWeaponTooltip() const
       
   179 {
       
   180   return Form->ui.pageOptions->WeaponTooltip->isChecked();
       
   181 }
       
   182 
   174 bool GameUIConfig::isFrontendFullscreen() const
   183 bool GameUIConfig::isFrontendFullscreen() const
   175 {
   184 {
   176   return Form->ui.pageOptions->CBFrontendFullscreen->isChecked();
   185   return Form->ui.pageOptions->CBFrontendFullscreen->isChecked();
   177 }
   186 }
   178 
   187