hyperspyui.widgets.settingsdialog module

Created on Sun Mar 01 18:26:38 2015

@author: Vidar Tonaas Fauske

class hyperspyui.widgets.settingsdialog.SettingsDialog(main_window, parent=None)

Bases: hyperspyui.widgets.extendedqwidgets.ExToolWindow

_add_groups(settings)

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_settings_widgets(settings)

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.

_on_accept()

Callback when dialog is closed by OK-button.

_on_click(button)

Route button clicks to appropriate handler.

_on_reset()

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.

apply_changes()

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_controls()

Create UI controls.

settings_changed
hyperspyui.widgets.settingsdialog.tr(text)