Created on Sun Mar 01 18:26:38 2015
@author: Vidar Tonaas Fauske
- class hyperspyui.widgets.settingsdialog.SettingsDialog(main_window, parent=None)
Add all child groups in settings as a separate tab, with editor widgets to change the values of each setting within those groups.
Treats the groups ‘PluginManager’ and ‘plugins’ specially: The former is ignored in its entirety, the latter is called recursively so that each plugin gets its own tab.
Create a widget for a settings instance, containing label/editor pairs for each setting in the current level of the passed QSettings instance. The key of the setting is used as the label, but it’s capitalized and underscores are replaced by spaces.
Callback when dialog is closed by OK-button.
Route button clicks to appropriate handler.
Callback for reset button. Prompts user for confirmation, then proceeds to reset settings to default values if confirmed, before updating controls and applying any changes (emits change signal if any changes).
- _on_setting_changed(key, widget, *pysideargs)
Callback when the value of a settings editor widget has changed.
- property apply_btn
The apply button.
Applies changes performed since dialog creation or last apply, whichever is most recent. Fires settings_changed Signal as long as there has been any changes.
Create UI controls.