Common widget manipulation |
modules/DialogTree.ycp |
Routines for handling the dialog with tree on the left side | |
|
|
This module has an unstable interface. |
Imports
Global Functions
Local VariablesLocal Functions |
Currently selected item in the tree
Previously selected item in the tree
Restore the previously selected dialog after clicking another item not causing dialog change due to validation failed
Init function of virtual DialogTree widget
- Parameters:
-
key string widget key
Handle function of virtual DialogTree widget
- Parameters:
-
key string widget key event map event that caused handler call
- Return value:
-
for wizard sequencer or nil
Get the map of the virtal left tree widget
- Parameters:
-
ids a list of widget ids of all tree items
- Return value:
-
tree of the widget
Draw the screen related to the particular tree item
- Parameters:
-
current_screen a map describing the current screen widget_descr a map describing all widgets that may be present in the screen extra_widget a map of the additional widget to be added at the end of the list of widgets extra_widget set_focus
- Return value:
-
a list of preprocessed widgets that appear in this dialog
Draw the dialog with the flat tree (only single level of the tree entries)
- Parameters:
-
ids_order a list of IDs in the same order as they are expected to be in the left menu screens map of all screens (key is screen ID, value is screen description map
Draw the dialog with multi-level tree
Adjust buttons at the bottom of the dialog
- Parameters:
-
buttons a map with keys "abort_button", "back_button" and "next_button" adn values labels of appropriate buttons
Adjust buttons at the bottom of the dialog
- Parameters:
-
buttons a map with keys "abort_button", "back_button" and "next_button" adn values labels of appropriate buttons, other keys with values of other types are possible
Generic function to create dialog and handle it's events. Run the event loop over the dialog with the left tree.
- Parameters:
-
settings
- Return value:
-
wizard sequencer symbol
Run the event loop over the dialog with the left tree. After finished, run UI::CloseDialog
- Parameters:
-
settings
- Return value:
-
wizard sequencer symbol
Display the dialog and run its event loop
- Parameters:
-
settings
- Return value:
-
wizard sequencer symbol