Table dialogs backend |
modules/CWMTable.ycp |
Routines for Unified Table widget | |
|
|
This module has an unstable interface. |
Imports
Global Functions
Local Functions |
local
ValidateTableAttr (map<string,any> attr)
->
boolean
Validate table options specifyign attributesA
- Parameters:
-
attr a map of table attributes
- Return value:
-
true if validation succeeded
local
ValidateValueType (string key, any value, string widget)
->
boolean
Validate type of entry of the option description map Also checks option description maps if present
- Parameters:
-
key string key of the map entry value any value of the map entry widget any name of the widget/option
- Return value:
-
true if validation succeeded
local
ValidateTableDescr (string key, map<string,any> descr)
->
boolean
Validate the table description
- Parameters:
-
key descr a map containing the table description
- Return value:
-
true if validation succeeded
local
updateButtons (map<string,any> descr)
->
void
Enable or disable the Delete and up/down buttons
- Parameters:
-
descr map table description map
global
TableInit (map<string, any> descr, string key)
->
void
Initialize the displayed table
- Parameters:
-
descr map description map of the whole table key table widget key
local
TableHandle (map<string, any> descr, string key, map event_descr)
->
symbol
Handle the event that happened on the table
- Parameters:
-
descr map description of the table key table widget key event_descr map event to handle
- Return value:
-
modified event if needed
global
DisableTable (map<string,any> descr)
->
void
Disable whole table
- Parameters:
-
descr map table widget description map
global
EnableTable (map<string, any> descr)
->
void
Enable whole table (except buttons that should be grayed according to currently selected table row
- Parameters:
-
descr map table widget description map
global
TableInitWrapper (string key)
->
void
Wrapper for TableInit using CWM::GetProcessedWidget () for getting widget description map
- Parameters:
-
key any widget key
global
TableHandleWrapper (string key, map event_descr)
->
symbol
Wrapper for TableHandle 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
CreateTableDescr (map<string,any> attrib, map<string,any> widget_descr)
->
map<string,any>
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