Add setting entry
This commit is contained in:
		
							parent
							
								
									d9aada2900
								
							
						
					
					
						commit
						1a2036d4b6
					
				@ -39,9 +39,9 @@
 | 
				
			|||||||
          <property name="geometry">
 | 
					          <property name="geometry">
 | 
				
			||||||
           <rect>
 | 
					           <rect>
 | 
				
			||||||
            <x>0</x>
 | 
					            <x>0</x>
 | 
				
			||||||
            <y>-511</y>
 | 
					            <y>-555</y>
 | 
				
			||||||
            <width>394</width>
 | 
					            <width>394</width>
 | 
				
			||||||
            <height>850</height>
 | 
					            <height>872</height>
 | 
				
			||||||
           </rect>
 | 
					           </rect>
 | 
				
			||||||
          </property>
 | 
					          </property>
 | 
				
			||||||
          <layout class="QFormLayout" name="formLayout">
 | 
					          <layout class="QFormLayout" name="formLayout">
 | 
				
			||||||
@ -573,6 +573,23 @@
 | 
				
			|||||||
             </property>
 | 
					             </property>
 | 
				
			||||||
            </widget>
 | 
					            </widget>
 | 
				
			||||||
           </item>
 | 
					           </item>
 | 
				
			||||||
 | 
					           <item row="34" column="1">
 | 
				
			||||||
 | 
					            <widget class="QCheckBox" name="restoreposition_cb">
 | 
				
			||||||
 | 
					             <property name="text">
 | 
				
			||||||
 | 
					              <string/>
 | 
				
			||||||
 | 
					             </property>
 | 
				
			||||||
 | 
					            </widget>
 | 
				
			||||||
 | 
					           </item>
 | 
				
			||||||
 | 
					           <item row="34" column="0">
 | 
				
			||||||
 | 
					            <widget class="QLabel" name="restoreposition_lbl">
 | 
				
			||||||
 | 
					             <property name="toolTip">
 | 
				
			||||||
 | 
					              <string>If ticked, some windows restore their last known position where they were closed.</string>
 | 
				
			||||||
 | 
					             </property>
 | 
				
			||||||
 | 
					             <property name="text">
 | 
				
			||||||
 | 
					              <string>Restore Window Position</string>
 | 
				
			||||||
 | 
					             </property>
 | 
				
			||||||
 | 
					            </widget>
 | 
				
			||||||
 | 
					           </item>
 | 
				
			||||||
          </layout>
 | 
					          </layout>
 | 
				
			||||||
         </widget>
 | 
					         </widget>
 | 
				
			||||||
        </widget>
 | 
					        </widget>
 | 
				
			||||||
 | 
				
			|||||||
@ -359,6 +359,7 @@ void AOOptionsDialog::setupUI()
 | 
				
			|||||||
  FROM_UI(QCheckBox, sfx_on_idle_cb);
 | 
					  FROM_UI(QCheckBox, sfx_on_idle_cb);
 | 
				
			||||||
  FROM_UI(QCheckBox, evidence_double_click_cb);
 | 
					  FROM_UI(QCheckBox, evidence_double_click_cb);
 | 
				
			||||||
  FROM_UI(QCheckBox, slides_cb);
 | 
					  FROM_UI(QCheckBox, slides_cb);
 | 
				
			||||||
 | 
					  FROM_UI(QCheckBox, restoreposition_cb);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  registerOption<QSpinBox, int>("theme_scaling_factor_sb", &Options::themeScalingFactor, &Options::setThemeScalingFactor);
 | 
					  registerOption<QSpinBox, int>("theme_scaling_factor_sb", &Options::themeScalingFactor, &Options::setThemeScalingFactor);
 | 
				
			||||||
  registerOption<QCheckBox, bool>("animated_theme_cb", &Options::animatedThemeEnabled, &Options::setAnimatedThemeEnabled);
 | 
					  registerOption<QCheckBox, bool>("animated_theme_cb", &Options::animatedThemeEnabled, &Options::setAnimatedThemeEnabled);
 | 
				
			||||||
@ -402,6 +403,7 @@ void AOOptionsDialog::setupUI()
 | 
				
			|||||||
  registerOption<QCheckBox, bool>("sfx_on_idle_cb", &Options::playSelectedSFXOnIdle, &Options::setPlaySelectedSFXOnIdle);
 | 
					  registerOption<QCheckBox, bool>("sfx_on_idle_cb", &Options::playSelectedSFXOnIdle, &Options::setPlaySelectedSFXOnIdle);
 | 
				
			||||||
  registerOption<QCheckBox, bool>("evidence_double_click_cb", &Options::evidenceDoubleClickEdit, &Options::setEvidenceDoubleClickEdit);
 | 
					  registerOption<QCheckBox, bool>("evidence_double_click_cb", &Options::evidenceDoubleClickEdit, &Options::setEvidenceDoubleClickEdit);
 | 
				
			||||||
  registerOption<QCheckBox, bool>("slides_cb", &Options::slidesEnabled, &Options::setSlidesEnabled);
 | 
					  registerOption<QCheckBox, bool>("slides_cb", &Options::slidesEnabled, &Options::setSlidesEnabled);
 | 
				
			||||||
 | 
					  registerOption<QCheckBox, bool>("restoreposition_cb", &Options::restoreWindowPositionEnabled, &Options::setRestoreWindowPositionEnabled);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Callwords tab. This could just be a QLineEdit, but no, we decided to allow
 | 
					  // Callwords tab. This could just be a QLineEdit, but no, we decided to allow
 | 
				
			||||||
  // people to put a billion entries in.
 | 
					  // people to put a billion entries in.
 | 
				
			||||||
 | 
				
			|||||||
@ -48,6 +48,7 @@ private:
 | 
				
			|||||||
  QPushButton *ui_theme_folder_button;
 | 
					  QPushButton *ui_theme_folder_button;
 | 
				
			||||||
  QCheckBox *ui_evidence_double_click_cb;
 | 
					  QCheckBox *ui_evidence_double_click_cb;
 | 
				
			||||||
  QCheckBox *ui_slides_cb;
 | 
					  QCheckBox *ui_slides_cb;
 | 
				
			||||||
 | 
					  QCheckBox *ui_restoreposition_cb;
 | 
				
			||||||
  QCheckBox *ui_animated_theme_cb;
 | 
					  QCheckBox *ui_animated_theme_cb;
 | 
				
			||||||
  QSpinBox *ui_stay_time_spinbox;
 | 
					  QSpinBox *ui_stay_time_spinbox;
 | 
				
			||||||
  QCheckBox *ui_instant_objection_cb;
 | 
					  QCheckBox *ui_instant_objection_cb;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user