summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@pardus.org.tr>2016-07-25 13:55:47 +0300
committerCaolán McNamara <caolanm@redhat.com>2016-07-31 20:17:34 +0000
commit3a7aa4cb86a62249ff2193238b94cfa3a60dffff (patch)
tree018d436f506f5ee24c1dbbbc57a3ac0a7d1e2a02
parent190e19d391620f61cd1bdc7d76094eba36b3dd8b (diff)
Remove unnecessary label tdf#99341
Remove unnecessary label, update the explanation of the buttons, and reduce the width of the document recovery dialog. Change-Id: I74081d8fd479de419c3be4456228e3415ccc0483 Reviewed-on: https://gerrit.libreoffice.org/27511 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--svx/source/dialog/docrecovery.cxx6
-rw-r--r--svx/source/dialog/sdstring.src4
-rw-r--r--svx/uiconfig/ui/docrecoveryrecoverdialog.ui35
3 files changed, 11 insertions, 34 deletions
diff --git a/svx/source/dialog/docrecovery.cxx b/svx/source/dialog/docrecovery.cxx
index dbe58e43dae3..8cd751052267 100644
--- a/svx/source/dialog/docrecovery.cxx
+++ b/svx/source/dialog/docrecovery.cxx
@@ -633,7 +633,6 @@ SaveDialog::SaveDialog(vcl::Window* pParent, RecoveryCore* pCore)
{
get(m_pFileListLB, "filelist");
m_pFileListLB->set_height_request(m_pFileListLB->GetTextHeight() * 10);
- m_pFileListLB->set_width_request(m_pFileListLB->approximate_char_width() * 72);
get(m_pOkBtn, "ok");
// Prepare the office for the following crash save step.
@@ -694,9 +693,6 @@ SaveProgressDialog::SaveProgressDialog(vcl::Window* pParent, RecoveryCore* pCore
, m_pCore(pCore)
{
get(m_pProgrParent, "progress");
- Size aSize(LogicToPixel(Size(SAVEPROGR_CONTROLWIDTH, PROGR_HEIGHT)));
- m_pProgrParent->set_width_request(aSize.Width());
- m_pProgrParent->set_height_request(aSize.Height());
PluginProgress* pProgress = new PluginProgress(m_pProgrParent, pCore->getComponentContext());
m_xProgress.set(static_cast< css::task::XStatusIndicator* >(pProgress), css::uno::UNO_QUERY_THROW);
@@ -865,13 +861,11 @@ RecoveryDialog::RecoveryDialog(vcl::Window* pParent, RecoveryCore* pCore)
{
get(m_pDescrFT, "desc");
get(m_pProgrParent, "progress");
- m_pProgrParent->set_height_request(LogicToPixel(Size(0, PROGR_HEIGHT), MAP_APPFONT).Height());
get(m_pNextBtn, "next");
get(m_pCancelBtn, "cancel");
SvSimpleTableContainer* pFileListLBContainer = get<SvSimpleTableContainer>("filelist");
Size aSize(LogicToPixel(Size(RECOV_CONTROLWIDTH, RECOV_FILELISTHEIGHT), MAP_APPFONT));
- pFileListLBContainer->set_width_request(aSize.Width());
pFileListLBContainer->set_height_request(aSize.Height());
m_pFileListLB = VclPtr<RecovDocList>::Create(*pFileListLBContainer, DIALOG_MGR());
diff --git a/svx/source/dialog/sdstring.src b/svx/source/dialog/sdstring.src
index b70348583cb1..3bf08a9ec01b 100644
--- a/svx/source/dialog/sdstring.src
+++ b/svx/source/dialog/sdstring.src
@@ -2357,12 +2357,12 @@ String RID_SVXSTR_NOTRECOVYET
String RID_SVXSTR_RECOVERY_INPROGRESS
{
- Text[ en-US ] = "%PRODUCTNAME %PRODUCTVERSION will start to recover your documents. Depending on the size of the documents this process can take some time." ;
+ Text[ en-US ] = "%PRODUCTNAME %PRODUCTVERSION has begun recovering your documents. Depending on the size of the documents this process can take some time." ;
};
String RID_SVXSTR_RECOVERYONLY_FINISH_DESCR
{
- Text[ en-US ] = "Recovery of your documents was finished.\nClick 'Finish' to see your documents.";
+ Text[ en-US ] = "Recovery of your documents was finished. Click 'Finish' to see your documents.";
};
String RID_SVXSTR_RECOVERYONLY_FINISH
diff --git a/svx/uiconfig/ui/docrecoveryrecoverdialog.ui b/svx/uiconfig/ui/docrecoveryrecoverdialog.ui
index 4fff5a43cc1c..1b7b08b9dea7 100644
--- a/svx/uiconfig/ui/docrecoveryrecoverdialog.ui
+++ b/svx/uiconfig/ui/docrecoveryrecoverdialog.ui
@@ -18,12 +18,11 @@
<property name="can_focus">False</property>
<property name="layout_style">end</property>
<child>
- <object class="GtkButton" id="next">
- <property name="label" translatable="yes">_Start</property>
+ <object class="GtkButton" id="cancel">
+ <property name="label" translatable="yes">_Discard</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
- <property name="has_default">True</property>
<property name="receives_default">True</property>
<property name="use_underline">True</property>
</object>
@@ -34,11 +33,12 @@
</packing>
</child>
<child>
- <object class="GtkButton" id="cancel">
- <property name="label" translatable="yes">_Discard</property>
+ <object class="GtkButton" id="next">
+ <property name="label" translatable="yes">_Start</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
+ <property name="has_default">True</property>
<property name="receives_default">True</property>
<property name="use_underline">True</property>
</object>
@@ -69,14 +69,12 @@
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
- <property name="row_spacing">24</property>
+ <property name="row_spacing">10</property>
<child>
<object class="GtkLabel" id="desc">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Press 'Start' to start the recovery process of the documents listed below.
-
-Press 'Discard' to abandon attempting recovery of these documents.</property>
+ <property name="label" translatable="yes">%PRODUCTNAME will attempt to recover the state of the files you were working on before it crashed. Click 'Start' to begin the process, or click 'Discard' to cancel the recovery.</property>
<property name="wrap">True</property>
<property name="max_width_chars">87</property>
<property name="xalign">0</property>
@@ -170,21 +168,6 @@ Press 'Discard' to abandon attempting recovery of these documents.</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
- <property name="row_spacing">6</property>
- <child>
- <object class="GtkLabel" id="label3">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">Recovering document:</property>
- <property name="use_underline">True</property>
- <property name="mnemonic_widget">progress</property>
- <property name="xalign">0</property>
- </object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">0</property>
- </packing>
- </child>
<child>
<object class="GtkHBox" id="progress">
<property name="visible">True</property>
@@ -196,7 +179,7 @@ Press 'Discard' to abandon attempting recovery of these documents.</property>
</object>
<packing>
<property name="left_attach">0</property>
- <property name="top_attach">1</property>
+ <property name="top_attach">0</property>
</packing>
</child>
</object>
@@ -221,8 +204,8 @@ Press 'Discard' to abandon attempting recovery of these documents.</property>
</object>
</child>
<action-widgets>
- <action-widget response="0">next</action-widget>
<action-widget response="0">cancel</action-widget>
+ <action-widget response="0">next</action-widget>
</action-widgets>
</object>
</interface>