291. WizardHW

Routines for generic hardware summary dialog

291.1. Authors

  • Jiri Srain <jsrain@suse.cz>

291.2. Summary of Module Globals

List of Global Functions

  • CreateHWDialog - Create the Hardware Wizard dialog Draw the dialog

  • CreateRichTextDescription - Create rich text description of a device. It can be used for WizardHW::SetContents function for formatting richtext device descriptions

  • CreateWidget - Create CWM widtet for the hardware settings NOTE: The Init and Handle callbacks must be defined

  • RunHWDialog - Draw the dialog, handle all its events via callbacks

  • SelectedItem - Return the id of the currently selected item in the table

  • SetContents - Set the information about hardware

  • SetRichDescription - Set the rich text description.

  • SetSelectedItem - Set which item is to be selected

  • UnconfiguredDevice - Get propertly list of an unconfigured device. Should be used together with device name in CreateRichTextDescription() function.

  • UserInput - Wait for event from the event

  • WaitForEvent - Wait for event from the event

List of Global Variables

    291.3. Global Functions

    291.3.1. CreateHWDialog

    Create the Hardware Wizard dialog Draw the dialog

    Function parameters

    • string title

    • string help

    • list<string> headers

    • list<list> actions

    Return value

    • void

    291.3.2. CreateRichTextDescription

    Create rich text description of a device. It can be used for WizardHW::SetContents function for formatting richtext device descriptions

    Function parameters

    • string title

    • list<string> properties

    Return value

    • string - rich text string

    291.3.3. CreateWidget

    Create CWM widtet for the hardware settings NOTE: The Init and Handle callbacks must be defined

    Function parameters

    • list<string> headers

    • list<list> actions

    Return value

    • map<string,any> - a map a widget for CWM

    291.3.4. RunHWDialog

    Draw the dialog, handle all its events via callbacks

    Function parameters

    • map settings

    Return value

    • symbol - for wizard sequencer

    291.3.5. SelectedItem

    Return the id of the currently selected item in the table

    Return value

    • string - id of the selected item

    291.3.6. SetContents

    Set the information about hardware

    Function parameters

    • list<map<string,any> > items

    Return value

    • void

    291.3.7. SetRichDescription

    Set the rich text description.

    Function parameters

    • string descr

    Return value

    • void

    291.3.8. SetSelectedItem

    Set which item is to be selected

    Function parameters

    • string selected

    Return value

    • void

    291.3.9. UnconfiguredDevice

    Get propertly list of an unconfigured device. Should be used together with device name in CreateRichTextDescription() function.

    Return value

    • list<string> - a list of strings

    291.3.10. UserInput

    Wait for event from the event

    Return value

    • map<string,any> - a map with keys: "event" : any = event as returned from UI::UserInoput () "selected" : string = ID of the selected item in the list box

    291.3.11. WaitForEvent

    Wait for event from the event

    Return value

    • map<string,any> - a map with keys: "event" : map = event as returned from UI::WaitForEvent (), "selected" : string = ID of the selected item in the list box

    291.4. Global Variables

    291.5. Module Requirements

    291.5.1. Module Imports

    • CWM
    • Label
    • Popup
    • Report
    • Wizard

    291.5.2. Module Includes