tik_manager4.ui.layouts.settings_layout
Settings Layout for auto-creating setting menus directly from Settings object.
- Supported types:
boolean => QCheckBox
string => QLineEdit
spinnerInt => QSpinBox
spinnerFloat => QDoubleSpinBox
combo => QComboBox
Classes
Visualizes and edits Setting objects in a vertical layout |
Functions
|
Converts the ui definition to settings data. |
|
Converts the settings data to ui definition. |
|
Guess the type of the data to be used as ui definition. |
|
Module Contents
- class SettingsLayout(ui_definition, settings_data=None, *args, **kwargs)
Bases:
tik_manager4.ui.Qt.QtWidgets.QFormLayoutVisualizes and edits Setting objects in a vertical layout
- clear(keep_settings=False)
Clear the layout
- find(object_name)
Find the widget by given object name inside the widget list
- initialize(ui_definition, data)
- populate()
Create the widgets.
- signal_connections(widget_list)
Create the enable/disable logic between widgets. This needs to be done after population.
- validate_settings_data()
Make sure all the keys are already present in settings data and all value keys are unique.
- modified
- widget_dict
- convert_to_settings_data(ui_definition)
Converts the ui definition to settings data.
- Args:
ui_definition (dict): UI definition data
- convert_to_ui_definition(settings_data)
Converts the settings data to ui definition.
- Args:
settings_data (Settings or dict): Settings object or dictionary data
- guess_data_type(data, enums=None)
Guess the type of the data to be used as ui definition.
- main()