yast2 |
modules/Wizard_hw.ycp |
Wizard dialogs for hardware configuration | |
|
|
This module has an unstable interface. |
global
DetectedContent (string frame_label, list detected, boolean has_restart, string already_conf)
->
term
Create the content of the screen with the detected devices.
It is used in the SetWizardContent() or SetWizardContentButtons() functions.
- Parameters:
-
frame_label The frame around the detected devices detected A list of the detected devices for the SelectionBox. Must contain "Other (not detected)" as the last item. has_restart A button for restarting the detection. already_conf A content of the RichText. Describes the already configured devices.
- Return value:
-
Content for the SetWizardContent[Buttons]()
global
ConfiguredContent (term table_header, list table_contents, term above_table, term below_table, term below_buttons, term buttons)
->
term
Create the contents of screen with configured items.
It contains table and buttons Add, Edit, Delete. User may specify table header and content, content that will be placed above table, between table and buttons, below buttons and rights from buttons (usually another button).
- Parameters:
-
table_header Table header as defined in UI. table_contents Table items. above_table Content to place above table. There is no need to place caption here, because the dialog has its caption. Set it to nil if you do not want to place anything here. below_table Contents to place between table and buttons. Set it to nil if you do not want to place anything here. below_buttons Content to place below bottons. Set it to nil if you do not want to place anything here. buttons Content to place rights from buttons. Usually an additional button, e.g. Set as default. Set it to nil if you do not want to place anything here.
- Return value:
-
Content for the SetWizardContent[Buttons]() UI elements ids: Table `table Button add `add_button Button edit `edit_button Button delete `delete_button
global
SpacingAround (term content, float left, float right, float top, float bottom)
->
term
Encloses the content into VBoxes and HBoxes with the appropriate spacings around it.
- Parameters:
-
content The term we are adding spacing to. left Spacing on the left. right Spacing on the right. top Spacing on the top. bottom Spacing on the bottom.
- Return value:
-
Content with spacings around it.
global
SizeAtLeast (term content, float xsize, float ysize)
->
term
Encloses the content into VBoxes and HBoxes
- Parameters:
-
content Content of the dialog xsize Minimal size of content in the X direction ysize Minimal size of content in the Y direction
- Return value:
-
Contents sized at least xsize x ysize.