Popups for the YaST2 system repair tool. |
OSRPopup.ycp |
|
|
This module has an unstable interface. |
Sublayout for other layouts.
- Parameters:
-
center_box button_box
Layout for some following dialog.
- Parameters:
-
headline help_text special_contents
Layout for some following dialogs.
- Parameters:
-
headline rb_group strict
Open a dialog with the term r_options in the center.
- Parameters:
-
headline error_text r_options
Open the base dialog to suggest modify.
- Parameters:
-
headline message help_text body hweight
Dialog to change one field in the fstab.
- Parameters:
-
org_value description
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);
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_val 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);
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_val 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);
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
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