275. TablePopup

Routines for Table/Popup interface

275.1. Authors

  • Jiri Srain <jsrain@suse.cz>

275.2. Summary of Module Globals

List of Global Functions

  • CreateTableDescr - Get the map with the table widget

  • DisableTable - Disable whole table

  • EnableTable - Enable whole table (except buttons that should be grayed according to currently selected table row

  • TableHandle - Handle the event that happened on the table

  • TableHandleWrapper - Wrapper for TableHandle using CWM::GetProcessedWidget () for getting widget description map

  • TableInit - Initialize the displayed table

  • TableInitWrapper - Wrapper for TableInit using CWM::GetProcessedWidget () for getting widget description map

  • askForNewOption - Displaye popup for option to edit choosing

  • deleteTableItem - Delete an item from the table Just a wrapper for module-specific function

  • id2key - Get option key from the option id global only because of testsuites

  • key2descr - Get option description map from the key global only because of testsuites

  • singleOptionEditPopup - Display and handle the popup for option

  • tableEntryChanged - Realize if table entry was changed

  • updateButtons - Enable or disable the Delete and up/down buttons

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

List of Global Variables

    275.3. Global Functions

    275.3.1. CreateTableDescr

    Get the map with the table widget

    Function parameters

    • map<string,any> attrib

    • map<string,any> widget_descr

    Return value

    • map<string,any> - table widget

    275.3.2. DisableTable

    Disable whole table

    Function parameters

    • map<string,any> descr

    Return value

    • void

    275.3.3. EnableTable

    Enable whole table (except buttons that should be grayed according to currently selected table row

    Function parameters

    • map<string, any> descr

    Return value

    • void

    275.3.4. TableHandle

    Handle the event that happened on the table

    Function parameters

    • map<string, any> descr

    • string key

    • map event_descr

    Return value

    • symbol - modified event if needed

    275.3.5. TableHandleWrapper

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

    Function parameters

    • string key

    • map event_descr

    Return value

    • symbol - return value for wizard sequencer or nil

    275.3.6. TableInit

    Initialize the displayed table

    Function parameters

    • map<string, any> descr

    • string key

    Return value

    • void

    275.3.7. TableInitWrapper

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

    Function parameters

    • string key

    Return value

    • void

    275.3.8. askForNewOption

    Displaye popup for option to edit choosing

    Function parameters

    • list possible

    • boolean editable

    • map<string,any> descr

    Return value

    • string - option identifies, nil if canceled

    275.3.9. deleteTableItem

    Delete an item from the table Just a wrapper for module-specific function

    Function parameters

    • any opt_id

    • map<string, any> descr

    Return value

    • boolean - true if was really deleted

    275.3.10. id2key

    Get option key from the option id global only because of testsuites

    Function parameters

    • map<string, any> descr

    • any opt_id

    Return value

    • string - option key

    275.3.11. key2descr

    Get option description map from the key global only because of testsuites

    Function parameters

    • map<string, any> descr

    • string opt_key

    Return value

    • map<string, any> - option description map

    275.3.12. singleOptionEditPopup

    Display and handle the popup for option

    Function parameters

    • map<string,any> option

    Return value

    • symbol - `_tp_ok or `_tp_cancel

    275.3.13. tableEntryChanged

    Realize if table entry was changed

    Function parameters

    • any opt_id

    • map<string, any> opt_descr

    Return value

    • boolean - true if was changed

    275.3.14. updateButtons

    Enable or disable the Delete and up/down buttons

    Function parameters

    • map<string,any> descr

    • map<string,any> opt_descr

    Return value

    • void

    275.3.15. updateOptionMap

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

    Function parameters

    • map<string, any> opt_descr

    • map fallbacks

    Return value

    • map<string, any> - updated option description map

    275.4. Global Variables

    275.5. Module Requirements

    275.5.1. Module Imports

    • CWM
    • Label
    • Mode
    • Report

    275.5.2. Module Includes