
functions
files
intro
|
|
Bootloader installation and configuration
|
include/bootloader/routines/widgets.ycp
|
Common widgets for being used by several bootloaders
|
|
|
Imports
- CWM
- Label
- Mode
- Storage
- StorageDevices
- TablePopup
Includes
- bootloader/routines/options.ycp
- bootloader/routines/popups.ycp
Global Functions
- FixSequence (map ws_data)
- GetWidgetMaps ()
- commonPopupInit (any opt_id, any opt_key)
- commonPopupStore (any opt_id, any opt_key)
- commonTableChanged (any opt_id, any opt_key)
- commonTableEntryDelete (any opt_id, any opt_key)
- commonTableEntrySummary (any opt_id, string opt_key)
- getGlobalSectionWidget ()
- getManualEditWidget ()
- getResetButtonWidget ()
- getSectionsWidget ()
- getSingleSectionWidget ()
- getTableContents (map descr)
- globalSectionHandle (string widget, map event)
- globalSectionInit (string widget)
- globalSectionStore (any widget, map event)
- id2key (map table, any opt_id)
- key2descr (string opt_key)
- manualEditHandle (any key, map event)
- moveTableItem (any opt_id, any opt_key, symbol dir)
- resetButtonInit (any widget)
- sectionsHandle (any widget, map event)
- sectionsInit (any widget)
- sectionsRedrawTable (list<list<map> > sects)
- sectionsStore (any widget, map event)
- singleSectionHandle (any widget, map event)
- singleSectionStore (any widget, map event)
|
|
|
global commonPopupInit (any opt_id, any opt_key) -> void
|
|
Fallback init function of a popup
- Parameters:
opt_id |
any option id |
opt_key |
any option key |
global commonPopupStore (any opt_id, any opt_key) -> void
|
|
Fallback store function of a popup
- Parameters:
opt_id |
any option id |
opt_key |
any option key |
global commonTableChanged (any opt_id, any opt_key) -> boolean
|
|
Fallback init function of a popup
- Parameters:
opt_id |
any option id |
opt_key |
any option key |
- Return value:
global commonTableEntrySummary (any opt_id, string opt_key) -> string
|
|
Fallback summary function of a table entry
- Parameters:
opt_id |
any option id |
opt_key |
any option key |
- Return value:
global commonTableEntryDelete (any opt_id, any opt_key) -> boolean
|
|
Handler for the delete event on the table
- Parameters:
opt_id |
any option id |
opt_key |
any option key |
- Return value:
|
true if item was really deleted |
global getTableContents (map descr) -> list
|
|
Create a list of options for the table
- Parameters:
descr |
map description of the table |
- Return value:
|
of option ids as it should be displayed |
global id2key (map table, any opt_id) -> any
|
|
Transform table entry id to option id
- Parameters:
table |
map table description |
opt_id |
any entry id |
- Return value:
global key2descr (string opt_key) -> map
|
|
Get the popup widget description map
- Parameters:
- Return value:
global sectionsRedrawTable (list<list<map> > sects) -> void
|
|
Refresh and redraw widget wits sections
- Parameters:
sects |
list of current sections |
global sectionsInit (any widget) -> void
|
|
Init function of widget
- Parameters:
widget |
any id of the widget |
global sectionsHandle (any widget, map event) -> symbol
|
|
Handle function of a widget
- Parameters:
widget |
any widget key |
event |
map event description of event that occured |
- Return value:
|
to return to wizard sequencer, or nil |
global sectionsStore (any widget, map event) -> void
|
|
Store function of a widget
- Parameters:
widget |
any widget key |
event |
map event description of event that occured |
global getSectionsWidget () -> map
|
|
Get map of widget
- Return value:
global singleSectionHandle (any widget, map event) -> symbol
|
|
Handle function of a widget
- Parameters:
widget |
any widget key |
event |
map event description of event that occured |
- Return value:
|
to return to wizard sequencer, or nil |
global singleSectionStore (any widget, map event) -> void
|
|
Store function of a widget
- Parameters:
widget |
any widget key |
event |
map event description of event that occured |
global getSingleSectionWidget () -> map
|
|
Get map of widget
- Return value:
global globalSectionInit (string widget) -> void
|
|
Init function of widget
- Parameters:
widget |
any id of the widget |
global globalSectionHandle (string widget, map event) -> symbol
|
|
Handle function of a widget
- Parameters:
widget |
any widget key |
event |
map event description of event that occured |
- Return value:
|
to return to wizard sequencer, or nil |
global globalSectionStore (any widget, map event) -> void
|
|
Store function of a widget
- Parameters:
widget |
any widget key |
event |
map event description of event that occured |
global getGlobalSectionWidget () -> map
|
|
Get map of widget
- Return value:
global moveTableItem (any opt_id, any opt_key, symbol dir) -> any
|
|
Move item of a table up or down
- Parameters:
opt_id |
any option id of selected item |
opt_key |
any option key of selected item |
dir |
symbol direction, `up or `down |
- Return value:
|
new option id after entries have moved, or nil if no option
was moved |
global resetButtonInit (any widget) -> void
|
|
Init function of widget
- Parameters:
widget |
any id of the widget |
global getResetButtonWidget () -> map
|
|
Get map of widget
- Return value:
global manualEditHandle (any key, map event) -> symbol
|
|
Handle function of a widget
- Parameters:
key |
any widget key |
event |
map event description of event that occured |
- Return value:
|
to return to wizard sequencer, or nil |
global getManualEditWidget () -> map
|
|
Get map of widget
- Return value:
global GetWidgetMaps () -> map<string,any>
|
|
Get map of dialogs and widgets
- Return value:
global FixSequence (map ws_data) -> map
|
|
Generic version of FixSequence function
Just leave everything as is
- Parameters:
ws_data |
map default wizard sequencer data |
- Return value:
|
updated wizard sequencer data |
|