Unknown YCP Module |
This module has an unstable interface. |
Global Functions |
Info:
File: modules/UIHelper.ycp
Package: yast2
Summary: Set of helper modules for UI formatting
Authors: Stanislav Visnovsky
global
EditTable (term table_header, list table_contents, term above_table, term below_table, term below_buttons, term buttons)
->
term
Create an edit table with basic buttons.
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.