diff options
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/toolkit/treelistbox.hxx | 4 | ||||
-rw-r--r-- | include/vcl/weld.hxx | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/vcl/toolkit/treelistbox.hxx b/include/vcl/toolkit/treelistbox.hxx index 999f3a52c6b6..69c07b422094 100644 --- a/include/vcl/toolkit/treelistbox.hxx +++ b/include/vcl/toolkit/treelistbox.hxx @@ -220,6 +220,7 @@ class VCL_DLLPUBLIC SvTreeListBox bool mbQuickSearch; // Enables type-ahead search in the check list box. bool mbActivateOnSingleClick; // Make single click "activate" a row like a double-click normally does bool mbHoverSelection; // Make mouse over a row "select" a row like a single-click normally does + bool mbSelectingByHover; // true during "Select" if it was due to hover sal_Int8 mnClicksToToggle; // 0 == Click on a row not toggle its checkbox. // 1 == Every click on row toggle its checkbox. // 2 == First click select, second click toggle. @@ -677,6 +678,9 @@ public: void SetHoverSelection(bool bEnable) { mbHoverSelection = bEnable; } bool GetHoverSelection() const { return mbHoverSelection; } + // only true during Select if the Select is due to a Hover + bool IsSelectDueToHover() const { return mbSelectingByHover; } + // Set when clicks toggle the checkbox of the row. void SetClicksToToggle(sal_Int8 nCount) { mnClicksToToggle = nCount; } diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index 561baaaa256b..d296f1bbdd4a 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -1277,6 +1277,10 @@ public: // remove the selected nodes virtual void remove_selection() = 0; + // only meaningful is call this from a "changed" callback, true if the change + // was due to mouse hovering over the entry + virtual bool changed_by_hover() const = 0; + virtual void vadjustment_set_value(int value) = 0; virtual int vadjustment_get_value() const = 0; |