From 872d76228fc440d22924b69a391f027dbdc8e693 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 27 Nov 2012 12:40:15 +0100 Subject: Introduce a Restart dialog that allows to automatically restart LO ...instead of just telling the user to restart manually. The one existing dialog (duplicated into svtools and cui) that got replaced by this is the dialog asking to restart when the choice of JVM changed. There are more similar dialogs that would benefit from replacing them, like RID_SVX_MSGBOX_OPTIONS_RESTART (cui/source/options/optjava.src), but that one is called when closing a dialog nested within the Options dialog, and calling OfficeRestartManger.requestRestart in such a nested situation still leads to a crash. The design idea is that when more similar dialogs are replaced, restartdialog.ui contains a list of hidden GtkLables with the appropriate prose why a restart is required in the given case, and restartdialog.hxx's RestartReason enum contains corresponding values that will show exactly one of those GtkLables. The new svtools/uiconfig/ui/restartdialog.ui is probably still pretty rough and could benefit from some UX love. Change-Id: Id939188ee22f24301a8a3598b83afb31339bded5 --- svtools/uiconfig/ui/restartdialog.ui | 102 +++++++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 svtools/uiconfig/ui/restartdialog.ui (limited to 'svtools/uiconfig') diff --git a/svtools/uiconfig/ui/restartdialog.ui b/svtools/uiconfig/ui/restartdialog.ui new file mode 100644 index 000000000000..dd041b4ec52b --- /dev/null +++ b/svtools/uiconfig/ui/restartdialog.ui @@ -0,0 +1,102 @@ + + + + + + False + 5 + dialog + + + False + vertical + 2 + + + False + True + center + + + Restart now + True + True + True + + + False + True + 0 + + + + + Restart later + True + True + True + + + False + True + 1 + + + + + False + True + end + 0 + + + + + True + False + vertical + + + False + For the selected Java runtime environment to work properly, %PRODUCTNAME must be restarted. + + + False + True + 0 + + + + + True + False + Do you want to restart %PRODUCTNAME now? + + + False + True + 1 + + + + + False + True + 1 + + + + + + yes + no + + + -- cgit