From 6303f8ac291233b1f6888a8d71e769debe0f9fb0 Mon Sep 17 00:00:00 2001 From: Jim Raykowski Date: Thu, 5 Dec 2019 12:14:37 -0900 Subject: tdf#108458 related: Add tooltip handling to TreeView MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Supports GtkInstanceTreeView and SalInstanceTreeView Change-Id: I33984f78c26135319531eace2a3e2e2e28712af1 Reviewed-on: https://gerrit.libreoffice.org/84587 Tested-by: Jenkins Reviewed-by: Heiko Tietze Tested-by: Heiko Tietze Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- include/vcl/treelistbox.hxx | 2 ++ include/vcl/weld.hxx | 8 ++++++++ 2 files changed, 10 insertions(+) (limited to 'include/vcl') diff --git a/include/vcl/treelistbox.hxx b/include/vcl/treelistbox.hxx index cb4945a96717..ba088cee8c6f 100644 --- a/include/vcl/treelistbox.hxx +++ b/include/vcl/treelistbox.hxx @@ -200,6 +200,7 @@ class VCL_DLLPUBLIC SvTreeListBox Link aSelectHdl; Link aDeselectHdl; Link aPopupMenuHdl; + Link aTooltipHdl; Image aPrevInsertedExpBmp; Image aPrevInsertedColBmp; @@ -433,6 +434,7 @@ public: void SetExpandingHdl(const Link& rNewHdl){aExpandingHdl=rNewHdl;} void SetExpandedHdl(const Link& rNewHdl){aExpandedHdl=rNewHdl;} void SetPopupMenuHdl(const Link& rLink) { aPopupMenuHdl = rLink; } + void SetTooltipHdl(const Link& rLink) { aTooltipHdl = rLink; } virtual void ExpandedHdl(); virtual bool ExpandingHdl(); diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index e68d46c420d6..54a72e80c32d 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -730,7 +730,15 @@ protected: return m_aEditingDoneHdl.Call(rIterText); } + Link m_aQueryTooltipHdl; + OUString signal_query_tooltip(const TreeIter& rIter) { return m_aQueryTooltipHdl.Call(rIter); } + public: + void connect_query_tooltip(const Link& rLink) + { + m_aQueryTooltipHdl = rLink; + } + virtual void insert(const TreeIter* pParent, int pos, const OUString* pStr, const OUString* pId, const OUString* pIconName, VirtualDevice* pImageSurface, const OUString* pExpanderName, bool bChildrenOnDemand, TreeIter* pRet) -- cgit