diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-11-27 11:16:31 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-11-28 10:22:58 +0200 |
commit | a11ba9c127546b38099b4729736ec70c43e59147 (patch) | |
tree | d55bd6596154644eee889b9f90fb539449c2152d | |
parent | 7920af486b7124b85b2eb30c90aa26ddc471bd15 (diff) |
Add the "Test" button back
This functionality is Calc-specific and will stay in the Calc part of
the options. Let's not give the false impression that it would be
going away. (How it looks and works now is not final.)
Change-Id: Ic2f783a6fd07de89eec7d7e685364dad71243b4b
-rw-r--r-- | sc/source/ui/optdlg/calcoptionsdlg.cxx | 7 | ||||
-rw-r--r-- | sc/source/ui/optdlg/calcoptionsdlg.hxx | 2 | ||||
-rw-r--r-- | sc/uiconfig/scalc/ui/formulacalculationoptions.ui | 14 |
3 files changed, 19 insertions, 4 deletions
diff --git a/sc/source/ui/optdlg/calcoptionsdlg.cxx b/sc/source/ui/optdlg/calcoptionsdlg.cxx index 996334c5797c..fb0875674b04 100644 --- a/sc/source/ui/optdlg/calcoptionsdlg.cxx +++ b/sc/source/ui/optdlg/calcoptionsdlg.cxx @@ -153,6 +153,7 @@ ScCalcOptionsDialog::ScCalcOptionsDialog(vcl::Window* pParent, const ScCalcConfi get(mpBtnFalse, "false"); get(mpSpinButton, "spinbutton"); get(mpEditField, "entry"); + get(mpTestButton, "test"); get(mpOpenclInfoList, "opencl_list"); get(mpBtnAutomaticSelectionTrue, "automatic_select_true"); get(mpBtnAutomaticSelectionFalse, "automatic_select_false"); @@ -204,6 +205,8 @@ ScCalcOptionsDialog::ScCalcOptionsDialog(vcl::Window* pParent, const ScCalcConfi mpLbSettings->SetSelectHdl(aLink); mpLbOptionEdit->SetSelectHdl(aLink); + mpTestButton->SetClickHdl(LINK(this, ScCalcOptionsDialog, TestClickHdl)); + aLink = LINK(this, ScCalcOptionsDialog, BtnToggleHdl); mpBtnTrue->SetToggleHdl(aLink); // Set handler only to the 'True' button. @@ -729,8 +732,6 @@ IMPL_LINK(ScCalcOptionsDialog, EditModifiedHdl, Control*, pCtrl) return 0; } -#if 0 - namespace { struct Area @@ -1163,6 +1164,4 @@ IMPL_LINK( ScCalcOptionsDialog, TestClickHdl, PushButton*, ) return 0; } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/ui/optdlg/calcoptionsdlg.hxx b/sc/source/ui/optdlg/calcoptionsdlg.hxx index 789c01ddbd7d..c7bfe4dbda29 100644 --- a/sc/source/ui/optdlg/calcoptionsdlg.hxx +++ b/sc/source/ui/optdlg/calcoptionsdlg.hxx @@ -41,6 +41,7 @@ public: DECL_LINK( DeviceSelHdl, void* ); DECL_LINK( NumModifiedHdl, void * ); DECL_LINK( EditModifiedHdl, Control * ); + DECL_LINK( TestClickHdl, PushButton* ); const ScCalcConfig& GetConfig() const { return maConfig;} @@ -74,6 +75,7 @@ private: RadioButton* mpBtnFalse; NumericField* mpSpinButton; Edit* mpEditField; + PushButton* mpTestButton; FixedText* mpFtAnnotation; FixedText* mpFtFrequency; diff --git a/sc/uiconfig/scalc/ui/formulacalculationoptions.ui b/sc/uiconfig/scalc/ui/formulacalculationoptions.ui index 37a10c64c13b..6fee1af1f6b2 100644 --- a/sc/uiconfig/scalc/ui/formulacalculationoptions.ui +++ b/sc/uiconfig/scalc/ui/formulacalculationoptions.ui @@ -646,6 +646,20 @@ <property name="height">1</property> </packing> </child> + <child> + <object class="GtkButton" id="test"> + <property name="label" translatable="yes">_Test</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">28</property> + <property name="expand">False</property> + <property name="fill">True</property> + </packing> + </child> </object> <packing> <property name="expand">False</property> |