YaST2 Developers Documentation: TabWidget dialogs backend



functions
files
intro

TabWidget dialogs backend

modules/TabWidget.ycp
Routines for tabbed interface

Imports

  • CWM
  • Label
  • Mode
  • Report
  • Wizard

Global Functions

Local Functions

global updateOptionMap (map<string, any> opt_descr, map fallbacks) -> map<string, any>

Update the option description map in order to contain handlers of all needed functions global only because of testsuites

Parameters:
opt_descr map option description map
fallbacks map of fallback handlers
Return value:
updated option description map

local WidgetRedraw (map<string, any> descr) -> void

Redraw completely the widget

Parameters:
descr map description map of the whole widget

global Init (map<string, any> descr, any key) -> void

Initialize the displayed table

Parameters:
descr map description map of the whole table
key tab widget key

global Handle (map<string, any> descr, any key, map event_descr) -> symbol

Handle the event that happened on the widget

Parameters:
descr map description of the widget
key tab widget key
event_descr map event to handle
Return value:
modified event if needed

global InitWrapper (string key) -> void

Wrapper for Init using CWM::GetProcessedWidget () for getting widget description map

Parameters:
key any widget key

global HandleWrapper (string key, map event_descr) -> symbol

Wrapper for Handle using CWM::GetProcessedWidget () for getting widget description map

Parameters:
key any widget key
event_descr map event description map
Return value:
return value for wizard sequencer or nil

global CreateTabWidgetDescr (map attrib, map widget_descr) -> map

Get the map with the table widget

Parameters:
attrib map table attributes
widget_descr map widget description map of the table, will be unioned with the generated map
Return value:
table widget

YaST2 Developers Documentation