[Libreoffice-commits] core.git: cui/source
Jim Raykowski
raykowj at gmail.com
Thu Jan 25 13:50:46 UTC 2018
cui/source/customize/cfg.cxx | 8 ++++++++
cui/source/inc/cfg.hxx | 1 +
2 files changed, 9 insertions(+)
New commits:
commit 1c1c50e12cc33df7c158badfc6b08c2ef9bb38a5
Author: Jim Raykowski <raykowj at gmail.com>
Date: Wed Jan 24 22:55:14 2018 -0900
tdf#115129 Add function on double click in Customize Dialog
Change-Id: I21a7f8b4fc05d55d1539a3fd148e5870899b1596
Reviewed-on: https://gerrit.libreoffice.org/48555
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index 2d41063947a6..4e194ba4cc05 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -1193,6 +1193,7 @@ SvxConfigPage::SvxConfigPage(vcl::Window *pParent, const SfxItemSet& rSet)
m_pSearchEdit->SetUpdateDataHdl ( LINK( this, SvxConfigPage, SearchUpdateHdl ));
m_pSearchEdit->EnableUpdateData();
+ m_pFunctions->SetDoubleClickHdl( LINK( this, SvxConfigPage, FunctionDoubleClickHdl ) );
m_pFunctions->SetSelectHdl(
LINK( this, SvxConfigPage, SelectFunctionHdl ) );
}
@@ -1783,6 +1784,13 @@ IMPL_LINK( SvxConfigPage, MoveHdl, Button *, pButton, void )
MoveEntry(pButton == m_pMoveUpButton);
}
+IMPL_LINK_NOARG( SvxConfigPage, FunctionDoubleClickHdl, SvTreeListBox *, bool )
+{
+ if ( m_pAddCommandButton->IsEnabled() )
+ m_pAddCommandButton->Click();
+ return false;
+}
+
IMPL_LINK_NOARG( SvxConfigPage, SelectFunctionHdl, SvTreeListBox *, void )
{
// Store the tooltip of the description field at first run
diff --git a/cui/source/inc/cfg.hxx b/cui/source/inc/cfg.hxx
index b8bf3fcd7020..d69da888059e 100644
--- a/cui/source/inc/cfg.hxx
+++ b/cui/source/inc/cfg.hxx
@@ -418,6 +418,7 @@ protected:
DECL_LINK( MoveHdl, Button *, void );
DECL_LINK( SelectFunctionHdl, SvTreeListBox *, void );
+ DECL_LINK( FunctionDoubleClickHdl, SvTreeListBox *, bool );
virtual SaveInData* CreateSaveInData(
const css::uno::Reference< css::ui::XUIConfigurationManager >&,
More information about the Libreoffice-commits
mailing list