Table/Popup dialogs backend |
modules/TablePopup.ycp |
Routines for Table/Popup interface | |
|
|
This module has an unstable interface. |
Item, that is the last selected Used to decide if selected item should be moved up or down if separator clicked Loss of contents is no problem
Get list of IDs of entries of the table
- Parameters:
-
descr map table description map
- Return value:
-
of IDs of the table
Validate table options specifyign attributesA
- Parameters:
-
attr a map of table attributes
- Return value:
-
true if validation succeeded
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 popup boolean true if is option of a popup
- Return value:
-
true if validation succeeded
Validate the table description
- Parameters:
-
key descr a map containing the table description
- Return value:
-
true if validation succeeded
Get option key from the option id global only because of testsuites
- Parameters:
-
descr map description of the table opt_id any id of the option
- Return value:
-
option key
Get option description map from the key global only because of testsuites
- Parameters:
-
descr map description of the table opt_key string option key
- Return value:
-
option description map
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
Get the left column of the table
- Parameters:
-
opt_id any option id opt_descr map option description map
- Return value:
-
text to the table
Get value to the table entry
- Parameters:
-
opt_id any option id opt_descr map option description map
- Return value:
-
text to the table
Realize if table entry was changed
- Parameters:
-
opt_id any option id opt_descr map option description map
- Return value:
-
true if was changed
Delete an item from the table Just a wrapper for module-specific function
- Parameters:
-
opt_id any option id descr map table description map
- Return value:
-
true if was really deleted
Enable or disable the Delete and up/down buttons
- Parameters:
-
descr map table description map opt_descr map selected option description map
Move table item up or down Just a wrapper for module-specific function
- Parameters:
-
opt_id any option id descr map table description map dir symbol `up or `down (according to the button user pressed)
- Return value:
-
new id of selected option, nil if wasn't reordered
Redraw completely the table
- Parameters:
-
descr map description map of the whole table update_buttons boolean true if buttons status (enabled/disabled) should be updated according to currently selected item
Displaye popup for option to edit choosing
- Parameters:
-
possible a list of strings or items of all possible options to provide editable boolean true means that it is possible to add non-listed options descr a map table description map
- Return value:
-
option identifies, nil if canceled
Display and handle the popup for option
- Parameters:
-
option map one option description map that is modified in order to contain the option name and more percise option identification
- Return value:
-
`_tp_ok or `_tp_cancel
Disable whole table
- Parameters:
-
descr map table widget description map
Enable whole table (except buttons that should be grayed according to currently selected table row
- Parameters:
-
descr map table widget description map
Initialize the displayed table
- Parameters:
-
descr map description map of the whole table key table widget key
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
Wrapper for TableInit using CWM::GetProcessedWidget () for getting widget description map
- Parameters:
-
key any widget key
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
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