From 919c5e4bbeaafc707a668851feef7a4818c40f66 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Fri, 13 Dec 2013 17:09:42 +0100 Subject: [PATCH] datastreams: Improve usability of the dialog. Change-Id: I6b3f9316c3eb907912aeff1715705a95bbbf547c --- sc/source/ui/inc/datastreamdlg.hxx | 1 - sc/source/ui/miscdlgs/datastreamdlg.cxx | 14 +- sc/uiconfig/scalc/ui/datastreams.ui | 373 ++++++++++++------------ 3 files changed, 198 insertions(+), 190 deletions(-) diff --git a/sc/source/ui/inc/datastreamdlg.hxx b/sc/source/ui/inc/datastreamdlg.hxx index 5bb05f31df5b..162a0d6b89d0 100644 --- a/sc/source/ui/inc/datastreamdlg.hxx +++ b/sc/source/ui/inc/datastreamdlg.hxx @@ -35,7 +35,6 @@ class DataStreamDlg : public ModalDialog OKButton* m_pBtnOk; VclFrame* m_pVclFrameLimit; VclFrame* m_pVclFrameMove; - VclFrame* m_pVclFrameRange; DECL_LINK(UpdateHdl, void *); DECL_LINK(BrowseHdl, void *); diff --git a/sc/source/ui/miscdlgs/datastreamdlg.cxx b/sc/source/ui/miscdlgs/datastreamdlg.cxx index 405c7c03ffc2..a6d0a9237276 100644 --- a/sc/source/ui/miscdlgs/datastreamdlg.cxx +++ b/sc/source/ui/miscdlgs/datastreamdlg.cxx @@ -32,7 +32,6 @@ DataStreamDlg::DataStreamDlg(ScDocShell *pDocShell, Window* pParent) get(m_pBtnOk, "ok"); get(m_pVclFrameLimit, "framelimit"); get(m_pVclFrameMove, "framemove"); - get(m_pVclFrameRange, "framerange"); m_pCbUrl->SetSelectHdl( LINK( this, DataStreamDlg, UpdateHdl ) ); m_pRBAddressValue->SetClickHdl( LINK( this, DataStreamDlg, UpdateHdl ) ); @@ -65,16 +64,15 @@ void DataStreamDlg::UpdateEnable() if (m_pRBAddressValue->IsChecked()) { m_pRBNoMove->Check(); - m_pVclFrameLimit->Hide(); - m_pVclFrameMove->Hide(); - m_pVclFrameRange->Hide(); - m_pEdRange->SetText(""); + m_pVclFrameLimit->Disable(); + m_pVclFrameMove->Disable(); + m_pEdRange->Disable(); } else { - m_pVclFrameLimit->Show(); - m_pVclFrameMove->Show(); - m_pVclFrameRange->Show(); + m_pVclFrameLimit->Enable(); + m_pVclFrameMove->Enable(); + m_pEdRange->Enable(); bOk = bOk && !m_pEdRange->GetText().isEmpty(); } m_pBtnOk->Enable(bOk); diff --git a/sc/uiconfig/scalc/ui/datastreams.ui b/sc/uiconfig/scalc/ui/datastreams.ui index fc2dcea68a90..1c2abe78f18b 100644 --- a/sc/uiconfig/scalc/ui/datastreams.ui +++ b/sc/uiconfig/scalc/ui/datastreams.ui @@ -17,6 +17,7 @@ True False vertical + 6 True @@ -45,7 +46,7 @@ True False - URL + URL: False @@ -103,6 +104,7 @@ True False vertical + 6 Direct data feed @@ -156,26 +158,30 @@ 6 12 - + True False - vertical + 6 + 6 + + + - value1,value2,... + value1,value2,...,valueN, and fill into range: True True False True 0 - True True addressvalue - False - True - 0 + 0 + 0 + 1 + 1 @@ -190,9 +196,25 @@ valuesinline - False - True - 2 + 0 + 1 + 1 + 1 + + + + + True + True + True + + True + + + 1 + 0 + 1 + 1 @@ -215,34 +237,14 @@ - + + Empty lines trigger UI refresh True - False - 0 - none - - - True - False - 6 - 12 - - - True - True - - - - - - - - True - False - _Fill data into range - True - - + True + False + 0 + True + True False @@ -273,128 +275,40 @@ - + True False - 0 - none + True + 6 + True - + True False - 6 - 12 + 0 + none - + True False - vertical + 6 + 12 - - Move existing data down - True - True - False - True - 0 - True - True - rangedown - - - False - True - 0 - - - - - Move the range down - True - True - False - True - 0 - True - datadown - - - False - True - 1 - - - - - Overwrite existing data - True - True - False - True - 0 - True - datadown - - - False - True - 2 - - - - - - - - - True - False - When new data arrives - - - - - - - - False - True - 6 - 1 - - - - - True - False - 0 - none - - - True - False - 6 - 12 - - - True - False - vertical - - + True False + vertical + 6 - - Limit to + + Move existing data down True True False True 0 - True True - unlimited + rangedown False @@ -402,65 +316,162 @@ 0 + + + Move the range down + True + True + False + True + 0 + True + datadown + + + False + True + 1 + + + + + Overwrite existing data + True + True + False + True + 0 + True + datadown + + + False + True + 2 + + + + + + + + + True + False + When new data arrives + + + + + + + + False + True + 0 + + + + + True + False + 0 + none + + + True + False + 6 + 12 + + + True + False + True + 6 + 6 + + + + + + Limit to: + True + True + False + True + 0 + True + unlimited + + + 0 + 0 + 1 + 1 + + True True + True 1000 True - False - True - 6 - 2 + 1 + 0 + 1 + 1 + + + + + _Unlimited + True + True + False + start + True + 0 + True + maxlimit + + + 0 + 1 + 1 + 1 - - False - True - 1 - - - - - _Unlimited - True - True - False - True - 0 - True - maxlimit - - - False - True - 2 - + + + True + False + Maximal amount of rows + + + + + - - - - True - False - Maximal amount of rows - - - - + + False + True + 1 + False True - 6 - 2 + 1 @@ -473,7 +484,7 @@ False - start + end gtk-ok