YaST2 Developers Documentation: Bootloader installation and configuration

Bootloader installation and configuration

include/bootloader/routines/widgets.ycp
Common widgets for being used by several bootloaders
  • Jiri Srain

This module has an unstable interface.

Imports

  • BootGRUB
  • BootGRUB
  • Bootloader
  • CWM
  • CWMTab
  • Label
  • Message
  • Mode
  • Package
  • PackageSystem
  • Progress
  • Storage
  • StorageDevices

Includes

  • bootloader/routines/helps.ycp

Local Variables

Local Functions

local GlobalOptionInit (string widget) -> void

Init function of widget

Parameters:
widget string id of the widget
local GlobalOptionStore (string widget, map event) -> void

Store function of a widget

Parameters:
widget string widget key
event map event that caused the operation
local global_handlers -> map<string,any>

Map of default (fallback) handlers for widget events on global widgets

local InstDetailsButtonHandle (string widget, map event) -> symbol

Handle function of a widget

Parameters:
widget string widget key
event map event description of event that occured
Return value:
to return to wizard sequencer, or nil
local LoaderOptionsButtonHandle (string widget, map event) -> symbol

Handle function of a widget

Parameters:
widget string widget key
event map event description of event that occured
Return value:
to return to wizard sequencer, or nil
local RedrawSectionsTable (list<map<string,any> > sects) -> void

Refresh and redraw widget wits sections

Parameters:
sects list of current sections
local SectionsInit (string widget) -> void

Init function of widget

Parameters:
widget string id of the widget
local SectionsHandle (string widget, map event) -> symbol

Handle function of a widget

Parameters:
widget string widget key
event map event description of event that occured
Return value:
to return to wizard sequencer, or nil
local getSectionsWidget () -> map<string,any>

Get map of widget

Return value:
a map of widget
local LoaderTypeComboWidget () -> term

Get the widget for boot laoder selection combo

Return value:
the widget
local LoaderTypeComboInit (string widget) -> void

Init function of widget

Parameters:
widget string id of the widget
local LoaderTypeComboHandle (string 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
local LoaderTypeValidate (string widget, map event) -> boolean

Validate function of a widget

Parameters:
widget string widget key
event map event that caused validation
Return value:
true if validation succeeded
local LoaderTypeStore (string widget, map event) -> void

Store function of a widget

Parameters:
widget string widget key
event map event that caused the operation
local TargetWidget () -> term

Get the target widget to be displayed

Return value:
widget to be displayed
local TargetInit (string widget) -> void

Init function of a widget

Parameters:
widget string widget key
local TargetStore (string widget, map event) -> void

Store function of a widget

Parameters:
widget string widget key
event map event that caused the operation
local TargetValidate (string widget, map event) -> boolean

Validate function of a widget

Parameters:
widget string widget key
event map event that caused validation
Return value:
true if validation succeeded
local manualEditHandle (string 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
local getManualEditWidget () -> map<string,any>

Get map of widget

Return value:
a map of widget
local resetButtonInit (string widget) -> void

Init function of widget

Parameters:
widget any id of the widget
local resetButtonHandle (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
local getAdvancedButtonWidget () -> map<string,any>

Get map of widget

Return value:
a map of widget
local BackButton (string key) -> void

Function for disable back button

Parameters:
key
local DisBackButton () -> map<string,any>

Init function where are added UI hadle functions special hack widget where is handlig disable back button

Return value:
map for start-stop widget
local TabsDescr () -> map

Get the main dialog tabs description

Return value:
a map the description of the tabs
local _common_global_widgets -> map<string,map<string,any> >

Cache for CommonGlobalWidgets function

local CommonGlobalWidgets () -> map<string,map<string,any> >

Get general widgets for global bootloader options

Return value:
a map describing all general widgets for global options