
functions
files
intro
|
|
Popups for the YaST2 system repair tool.
|
OSRPopup.ycp
|
|
|
|
Imports
- Label
- OSRCommon
- OSRMode
- Popup
Global Functions
- ChangeFieldDialog (string org_value, string description)
- MultiSelectionBox (string headline, string message_top, string message_bottom, string help_text, string box_headline, list<list> item_list, list<list> special_buttons_list)
- OpenMainRepairDialog (string headline, string error_text, term r_options)
- OpenSuggestDialog (string headline, string message, string help_text, term body, integer hweight)
- RadioButtonGroup (string headline, string message, list<string> item_list, string default, boolean strict)
- RadioButtonGroupText (string headline, string message, list<list> item_list, string default, string cancel, boolean strict)
- Repair (string headline, string message, string help_text)
- build_label_description (string label, string description)
Local Functions
|
|
|
local repair_layout_internal (term center_box, term button_box) -> term
|
|
Sublayout for other layouts.
- Parameters:
local repair_layout (string headline, string help_text, term special_contents) -> term
|
|
Layout for some following dialog.
- Parameters:
headline |
|
help_text |
|
special_contents |
|
local radio_button_popup_layout (string headline, term rb_group, boolean strict) -> term
|
|
Layout for some following dialogs.
- Parameters:
global OpenMainRepairDialog (string headline, string error_text, term r_options) -> boolean
|
|
Open a dialog with the term r_options in the center.
- Parameters:
headline |
|
error_text |
|
r_options |
|
global OpenSuggestDialog (string headline, string message, string help_text, term body, integer hweight) -> boolean
|
|
Open the base dialog to suggest modify.
- Parameters:
headline |
|
message |
|
help_text |
|
body |
|
hweight |
|
global ChangeFieldDialog (string org_value, string description) -> string
|
|
Dialog to change one field in the fstab.
- Parameters:
global Repair (string headline, string message, string help_text) -> boolean
|
|
This method opens a new popup window that displays the error message.
It provides a repair button, a skip button and a help button.
- Parameters:
headline |
|
message |
|
help_text |
|
- Return value:
|
True if the repair button was pressed by the user. |
- Example:
-
boolean repair_question = OSRPopup::Repair( "Error detected", error_message, help_text); |
global RadioButtonGroup (string headline, string message, list<string> item_list, string default, boolean strict) -> string
|
|
This method opens a popup window that offers the specified items to the
user. The items can be selected in a RadioButtonGroup. A default item has to
be specified. It is marked as selected from start. If the default is "", the
first item in the list is marked as selected.
It provides an OK button and a Cancel button. If OK is pressed the selected
item is returned as a string, if cancel is pressed, the specified default is
returned.
- Parameters:
headline |
|
message |
|
item_list |
|
default |
|
strict |
|
- Return value:
|
The selected item, the default if cancel is pressed. |
- Example:
-
string result = OSRPopup::RadioButtonGroup("Test", "This is just a test.", ["a", "b", "c"], "b", true); |
global RadioButtonGroupText (string headline, string message, list<list> item_list, string default, string cancel, boolean strict) -> string
|
|
This method opens a popup window that offers the specified items to the
user. The items can be selected in a RadioButtonGroup. A default item has to
be specified. It is marked as selected from start. If the default is "", the
first item in the list is marked as selected.
It provides an OK button and a Cancel button. If OK is pressed the selected
item is returned as a string, if cancel is pressed, the specified cancel-value
is returned.
- Parameters:
headline |
|
message |
|
item_list |
|
default |
|
cancel |
|
strict |
|
- Return value:
|
The selected item, the default if cancel is pressed. |
- Example:
-
string result = OSRPopup::RadioButtonGroupText("Test",
"This is a test.",
[["a" , "First choice"], ["b", "Second choice"]],
"b",
"cancel",
true); |
global MultiSelectionBox (string headline, string message_top, string message_bottom, string help_text, string box_headline, list<list> item_list, list<list> special_buttons_list) -> list<string>
|
|
A dialog with to messages and a multi selection box in the center.
- Parameters:
headline |
|
message_top |
|
message_bottom |
|
help_text |
|
box_headline |
|
item_list |
|
special_buttons_list |
|
global build_label_description (string label, string description) -> string
|
|
Build (return) a description text for a label in the help_text field.
- Parameters:
label |
the label |
description |
the description text for the label. |
- Return value:
|
the formatted label help text |
|