https://bugs.documentfoundation.org/show_bug.cgi?id=170528

--- Comment #2 from Jim Raykowski <[email protected]> ---
(In reply to V Stuart Foote from comment #1)
> @Jim, did you want to go ahead and post up code pointers for an easyhack, or
> just implement?

Let's first give some code pointers for any beginner that may be interested:

include/tools/link.hxx:
  #define DECL_LINK
  #define LINK
  #define IMPL_LINK

include/vcl/weld/TreeView.hxx:
  weld::TreeView::connect_query_tooltip

cui/source/inc/acccfg.hxx:
  class SfxAcceleratorConfigPage:
    std::unique_ptr m_xEntriesBox<weld::TreeView> is the TreeView we want to
connect a function to so we can supply a tooltip when
TreeView::signal_query_tooltip happens.
    add: DECL_LINK to declare the LINK in weld::TreeView::connect_query_tooltip

cui/source/customize/acccfg.cxx:
  SfxAcceleratorConfigPage:
    ctor:
      m_xEntriesBox(m_xBuilder->weld_tree_view(u"shortcuts"_ustr))
      add: weld::TreeView::connect_query_tooltip(LINK)
    add: IMPL_LINK definition to return tooltip string
      cui/source/inc/acccfg.hxx:
        struct TAccInfo
      include/vcl/commandinfoprovider.hxx:
        vcl::CommandInfoProvider::GetCommandProperties
        vcl::CommandInfoProvider::GetTooltipForCommand

cui/uiconfig/ui/accelconfigpage.ui:
  <object class="GtkTreeView" id="shortcuts">
  set: property has-tooltip so signal_query_tooltip happens.
  Use glade or edit the .ui file directly.

Search the codebase for 'connect_query_tooltip' for example usages.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to