Commonly used popup dialogs
Gabriele Strattner <gs@suse.de>
Stefan Hundhammer <sh@suse.de>
Arvin Schnell <arvin@suse.de>
List of Global Functions
AnyMessage - Generic message popup
AnyQuestion - Generic question popup with two buttons.
AnyQuestion3 - Generic question popup with three buttons.
AnyQuestionRichText - Show a question that might need scrolling.
AnyTimedMessage - Generic message popup
ClearFeedback - Clear feedback message
ConfirmAbort - Confirmation for "Abort" button during installation.
ContinueCancel - Dialog which displays the "message" and has a <b>Continue</b> and a <b>Cancel</b> button.
ContinueCancelHeadline - Dialog which displays the "message" and has a <b>Continue</b> and a <b>Cancel</b> button.
Error - Show an error message and wait until user clicked "OK".
ErrorDetails - Show an error message with Details button and wait until user clicked "OK".
LongError - Show a long error and wait until user clicked "OK".
LongErrorGeometry - Show a long error message and wait until user clicked "OK". Size of the popup window is adjustable.
LongMessage - Show a long message and wait until user clicked "OK".
LongMessageGeometry - Show a long message and wait until user clicked "OK". Size of the popup window is adjustable.
LongNotify - Show a long notify message and wait until user clicked "OK".
LongNotifyGeometry - Show a long notify message and wait until user clicked "OK". Size of the popup window is adjustable.
LongText - Show a long text that might need scrolling.
LongWarning - Show a long warning and wait until user clicked "OK".
LongWarningGeometry - Show a long warning and wait until user clicked "OK". Size of the popup window is adjustable
Message - Show a simple message and wait until user clicked "OK".
MessageDetails - Show a message with Details button and wait until user clicked "OK".
ModuleError - Special error popup for YCP modules that don't work.
NoHeadline - Indicator for empty headline for popups that can optionally have one
NoIcon - Indicator for empty icon for popups that can have one - for code readability.
Notify - Show a notification message and wait until user clicked "OK".
NotifyDetails - Show a notify message with Details button and wait until user clicked "OK".
ReallyAbort - Confirmation popup when user clicked "Abort".
ShowFeedback - Show popup with a headline and a message for feedback
ShowFile - Show the contents of an entire file in a popup.
ShowText - Show the contents of an entire file in a popup.
ShowTextTimed - Show the contents of an entire file in a popup.
TimedAnyQuestion - Timed question popup with two buttons and time display
TimedError - Show an error message and wait specified amount of time or until user clicked "OK".
TimedLongError - Show a long error message and wait until user clicked "OK" or time is out.
TimedLongErrorGeometry - Show a long error message and wait until user clicked "OK" or time is out. Size of the popup window is adjustable.
TimedLongMessage - Show a long message and wait until user clicked "OK" or time is out.
TimedLongMessageGeometry - Show a long message and wait until user clicked "OK" or time is out. Size of the popup window is adjustable.
TimedLongNotify - Show a long error message and wait until user clicked "OK" or time is out.
TimedLongNotifyGeometry - Show a long notify message and wait until user clicked "OK" or time is out. Size of the popup window is adjustable.
TimedLongWarning - Show a long warning message and wait until user clicked "OK" or time is out.
TimedLongWarningGeometry - Show a long warning and wait until user clicked "OK" or time is out. Size of the popup window is adjustable.
TimedMessage - Show a message and wait until user clicked "OK" or time is out
TimedNotify - Show a long notify message and wait until user clicked "OK" or the time is out.
TimedOKCancel - Display a message with a timeout
TimedWarning - Show a warning message and wait specified amount of time or until user clicked "OK".
Warning - Show a warning message and wait until user clicked "OK".
WarningDetails - Show a warning with Details button and wait until user clicked "OK".
YesNo - Display a yes/no question and wait for answer.
YesNoHeadline - This dialog displays "message" (a question) and has a <b>Yes</b> and a <b>No</b> button.
List of Global Variables
Generic message popup
Function parameters
string headline
string message
Return value
void
Generic question popup with two buttons.
Function parameters
string headline
string message
string yes_button_message
string no_button_message
symbol focus
Return value
boolean - true: first button has been clicked false: second button has been clicked
Example 58.
Popup::AnyQuestion( Label::WarningMsg(), "Do really want to ...?", "Install", "Don't do it", `focus_no );
See also:
YesNo
ContinueCancel
Generic question popup with three buttons.
Function parameters
string headline
string message
string yes_button_message
string no_button_message
string retry_button_message
symbol focus
Return value
symbol - - `yes: first button has been clicked - `no: second button has been clicked - `retry: third button has been clicked
Example 59.
Popup::AnyQuestion3( Label::WarningMsg(), _("... failed"), _("Continue"), _("Cancel"), _("Retry"), `focus_yes );
See also:
AnyQuestion
Show a question that might need scrolling.
Function parameters
string headline
string richtext
integer hdim
integer vdim
string yes_button_message
string no_button_message
symbol focus
Return value
boolean - left button pressed?
Generic message popup
Function parameters
string headline
string message
integer timeout
Return value
void -
Confirmation for "Abort" button during installation.
Function parameters
symbol severity
Return value
boolean -
Dialog which displays the "message" and has a <b>Continue</b> and a <b>Cancel</b> button.
Function parameters
string message
Return value
boolean -
See also:
AnyQuestion
Dialog which displays the "message" and has a <b>Continue</b> and a <b>Cancel</b> button.
Function parameters
string headline
string message
Return value
boolean -
See also:
ContinueCancel
YesNo
AnyQuestion
Show an error message and wait until user clicked "OK".
Function parameters
string message
Return value
void
See also:
Message
Notify
Warning
AnyMessage
Show an error message with Details button and wait until user clicked "OK".
Function parameters
string message
string details
Return value
void
See also:
Message
Show a long error and wait until user clicked "OK".
Function parameters
string message
Return value
void
Show a long error message and wait until user clicked "OK". Size of the popup window is adjustable.
Function parameters
string message
integer width
integer height
Return value
void
Show a long message and wait until user clicked "OK".
Function parameters
string message
Return value
void
Show a long message and wait until user clicked "OK". Size of the popup window is adjustable.
Function parameters
string message
integer width
integer height
Return value
void
Show a long notify message and wait until user clicked "OK".
Function parameters
string message
Return value
void
Show a long notify message and wait until user clicked "OK". Size of the popup window is adjustable.
Function parameters
string message
integer width
integer height
Return value
void
Show a long text that might need scrolling.
Function parameters
string headline
term richtext
integer hdim
integer vdim
Return value
void
Example 65.
Popup::LongText ( "Package description", `Richtext("<p>Hello, this is a long description .....</p>"), 50, 20 );
Show a long warning and wait until user clicked "OK".
Function parameters
string message
Return value
void
Show a long warning and wait until user clicked "OK". Size of the popup window is adjustable
Function parameters
string message
integer width
integer height
Return value
void
Show a simple message and wait until user clicked "OK".
Function parameters
string message
Return value
void
See also:
AnyMessage
Notify
Warning
Error
Show a message with Details button and wait until user clicked "OK".
Function parameters
string message
string details
Return value
void
Example 67.
Popup::MessageDetails("This is an information about ... .", "This service is intended to...");
See also:
Message
Special error popup for YCP modules that don't work.
Function parameters
string text
Return value
symbol - `back, `again, `cancel, `next
Indicator for empty headline for popups that can optionally have one
Return value
string - empty string ("")
Indicator for empty icon for popups that can have one - for code readability.
Return value
string
Show a notification message and wait until user clicked "OK".
Function parameters
string message
Return value
void
See also:
Message
AnyMessage
Show a notify message with Details button and wait until user clicked "OK".
Function parameters
string message
string details
Return value
void
See also:
Message
Confirmation popup when user clicked "Abort".
Function parameters
boolean have_changes
Return value
boolean - true: "abort" confirmed; false: don't abort
Show popup with a headline and a message for feedback
Function parameters
string headline
string message
Return value
void
Show the contents of an entire file in a popup.
Function parameters
string headline
string filename
Return value
void
Show the contents of an entire file in a popup.
Function parameters
string headline
string text
Return value
void
Show the contents of an entire file in a popup.
Function parameters
string headline
string text
integer timeout
Return value
void
Timed question popup with two buttons and time display
Function parameters
string headline
string message
string yes_button_message
string no_button_message
symbol focus
integer timeout_seconds
Return value
boolean - True if Yes, False if no
See also:
AnyQuestion
Show an error message and wait specified amount of time or until user clicked "OK".
Function parameters
string message
integer timeout_seconds
Return value
void -
See also:
Error
Show a long error message and wait until user clicked "OK" or time is out.
Function parameters
string message
integer timeout_seconds
Return value
void
Show a long error message and wait until user clicked "OK" or time is out. Size of the popup window is adjustable.
Function parameters
string message
integer timeout_seconds
integer width
integer height
Return value
void
Show a long message and wait until user clicked "OK" or time is out.
Function parameters
string message
integer timeout_seconds
Return value
void
Show a long message and wait until user clicked "OK" or time is out. Size of the popup window is adjustable.
Function parameters
string message
integer timeout_seconds
integer width
integer height
Return value
void
Show a long error message and wait until user clicked "OK" or time is out.
Function parameters
string message
integer timeout_seconds
Return value
void
Show a long notify message and wait until user clicked "OK" or time is out. Size of the popup window is adjustable.
Function parameters
string message
integer timeout_seconds
integer width
integer height
Return value
void
Show a long warning message and wait until user clicked "OK" or time is out.
Function parameters
string message
integer timeout_seconds
Return value
void
Show a long warning and wait until user clicked "OK" or time is out. Size of the popup window is adjustable.
Function parameters
string message
integer timeout_seconds
integer width
integer height
Return value
void
Show a message and wait until user clicked "OK" or time is out
Function parameters
string message
integer timeout_seconds
Return value
void
Show a long notify message and wait until user clicked "OK" or the time is out.
Function parameters
string message
integer timeout_seconds
Return value
void
Display a message with a timeout
Function parameters
string message
integer timeout_seconds
Return value
boolean - true --> "OK" or timer expired<br> false --> "Cancel"
Show a warning message and wait specified amount of time or until user clicked "OK".
Function parameters
string message
integer timeout_seconds
Return value
void -
See also:
Warning
Show a warning message and wait until user clicked "OK".
Function parameters
string message
Return value
void
See also:
Message
Notify
Error
AnyMessage
Show a warning with Details button and wait until user clicked "OK".
Function parameters
string message
string details
Return value
void
Example 75.
Popup::WarningDetails("Something is wrong. Please check your configuration.", "possible problem is in..." );
See also:
Message
Display a yes/no question and wait for answer.
Function parameters
string message
Return value
boolean - true if [Yes] has been pressed
See also:
YesNoHeadline
ContinueCancel
AnyQuestion
This dialog displays "message" (a question) and has a <b>Yes</b> and a <b>No</b> button.
Function parameters
string headline
string message
Return value
boolean - true if [Yes] has been pressed
See also:
YesNo
AnyQuestion