YaST2 Developers Documentation: yast2 | ![]() |
![]() functions files intro |
Returns a button box with buttons "Back", "Abort", "Next"
Returns a button box with buttons "Back", "Abort Installation", "Next"
Returns a button box with buttons "Back", "Next"
Returns a button box with buttons "Cancel", "Accept"
Returns a button box with buttons "Abort", "Accept"
Returns a button box with buttons "Abort Installation", "Accept"
Returns a button box with buttons "Abort", "Apply", "Finish"
Returns a term describing a generic wizard dialog with a configurable button box.
Check if the topmost dialog is a wizard dialog (i.e. has a widget with `id(`WizardDialog) )
Open a popup dialog that displays a help text (rich text format).
Returns a standard wizard dialog with buttons "Next", "Back", "Abort".
Returns a standard wizard dialog with buttons "Cancel", "Accept"
Open any wizard dialog.
Open a dialog with buttons "Next", "Back", "Abort" and set the keyboard focus to "Next".
Open a dialog with "Accept", "Cancel" and set the keyboard focus to "Accept".
Open a dialog with "Accept", "Cancel" and set the keyboard focus to "Accept".
Open a dialog with "Accept", "Cancel" that will also accept workflow steps.
Open a dialog with "Accept", "Cancel" that will also accept workflow steps.
Open a dialog with "Back", "Next", "Abort" that will also accept workflow steps.
Open a wizard dialog with simple layout - no graphics, no steps, only a help widget buttons (by default "Back", "Abort", "Next"). This is the only type of wizard dialog which still allows replacing the help space - either already upon opening it or later with Wizard::ReplaceCustomHelp(). If help_space_contents is 'nil', the normal help widget will remain. If button_box is 'nil', Wizard::BackAbortNextButtonBox() is used.
Replace the help widget for dialogs opened with Wizard::OpenCustomDialog().
Close a wizard dialog.
Substitute for UI::UserInput that transparently handles different variations of the wizard layout. Returns `next if `next or `accept were clicked, `back if `back or `cancel were clicked. Simply replace ret = UI::UserInput() with ret = Wizard::UserInput()
Create and open a typical installation wizard dialog. For backwards compatibility only - don't use this any more in new modules.
how the general framework for the installation wizard should look like. This function creates and shows a dialog.
Clear the wizard contents. This may sound silly, but it gives much faster feedback to the user if used properly: Whenever the user clicks "Next" or "Back", call ClearContents() prior to any lengthy operation -> the user notices instant response, even though he may in fact still have to wait.
Set contents of wizard dialog + its title, help_text and buttons labels. Enables both back and next button.
Replace the wizard help subwindow with a custom widget. THIS FUNCTION IS DEPRECATED!
Set a new help text.
Restore the wizard help subwindow.
Set the dialog's "Next" button with a new label and a new ID
Set the dialog's "Back" button with a new label and a new ID
Set the dialog's "Abort" button with a new label and a new ID
Hide the Wizard's "Next" button. Restore it later with RestoreNextButton():
Hide the Wizard's "Back" button. Restore it later with RestoreBackButton():
Hide the Wizard's "Abort" button. Restore it later with RestoreAbortButton():
Restore the wizard 'back' button.
Restore the wizard 'next' button.
Restore the wizard 'abort' button.
Replace the wizard 'next' button with a custom widget. THIS FUNCTION IS DEPRECATED!
Replace the wizard 'back' button with a custom widget. THIS FUNCTION IS DEPRECATED!
Replace the wizard 'abort' button with a custom widget. THIS FUNCTION IS DEPRECATED!
Set the wizard 'title' icon to the specified icon from the standard icon directory.
Clear the wizard 'title' icon, i.e. replace it with nothing
PRIVATE - Replace the entire Wizard button box with a new one.
Enable the wizard's "Abort" button.
Disable the wizard's "Abort" button.
Disable the wizard's "Next" (or "Accept") button.
Enable the wizard's "Next" (or "Accept") button.
Disable the wizard's "Back" button.
Enable the wizard's "Back" button.
Disable the wizard's "Cancel" button.
Enable the wizard's "Cancel" button.
Retranslate the wizard buttons. This will revert button labels and IDs to the default that were used upon Wizard::CreateDialog(), Wizard::OpenNextBackDialog(), or Wizard::OpenAcceptDialog().
Set the keyboard focus to the wizard's "Next" (or "Accept") button.
Set the keyboard focus to the wizard's "Back" (or "Cancel") button.
Currently used screenshot name. Initially, it must match the UI default, "yast2"
Screenshot names overriden by nested SetScreenShotName calls
Declare a name for the current dialog to ease making screenshots. By convention, the name is {rpm-name-without-yast2}-{sorting-prefix}-{description} The calls may be nested.
Restore the screenshot name. If it does not match a SetScreenShotName, "yast2" is used and a y2error logged.
Open a Tree dialog with buttons "Next", "Back", "Abort" and set the keyboard focus to "Next".
Create and open a Tree wizard dialog. For backwards compatibility only - don't use this any more in new modules.
Add Tree Item to tree enabled Wizard @param list
Create the Tree Items @param list
Create the tree in the dialog, replaces helpspace with new tree widget @param list
Add Menu @param list
Add Sub Menu @param list
Add Menu Entry @param list
Create the Menu Items @param list
Create the menu in the dialog @param list |
YaST2 Developers Documentation | ![]() |