YaST2 Developers Documentation: Bootloader installation and configuration



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

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:
true if item was changed

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:
summary to the table

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:
option key

global key2descr (string opt_key) -> map

Get the popup widget description map

Parameters:
opt_key any option key
Return value:
popup description map

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:
of widget

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:
of widget

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:
of widget

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:
of widget

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:
of widget

global GetWidgetMaps () -> map<string,any>

Get map of dialogs and widgets

Return value:
of dialogs and widgets

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

YaST2 Developers Documentation