On Sun, 10 Jul 2016 11:21:48 -0700 (PDT)
"'tfer' via leo-editor" <
leo-e...@googlegroups.com> wrote:
> As I fumbled around in Leo Menus trying to do half remembered things,
> (its been a while since I've used it), I thought that we should
> borrow from the prompts Inkscape provides to make this easier.
>
> In Inkscape, down in the status bar context sensitive hints are
I think putting these hints in the status bar might be doable.
Inkscape is Gtk based. The idea of tooltips for menu items in Leo came
up some time ago, and I don't think it's directly supported in Qt.
https://wiki.qt.io/Qt_project_org_faq#How_can_I_add_tooltips_to_actions_in_menus.3F
(from an old thread "Re: Rev 5685: Docstrings create tooltips for
@button nodes, not @rclick nodes")
Not finding it but I think there was some proof of concept which was
considered too weird looking, but it used pop up tool tips near the
menu item, not the text in the status bar Inkscape uses.
So basically the method in that link could show the tips, if they
existed. I'm not sure if they do, in some cases (all cases?) a command
points to a function, and in some cases the doc. string for that
function would make good status bar text, but probably not always.
Still, the UI part's probably not hard.
Cheers -Terry
> displayed. For instance, as you go through the menus, you get an
> explanation of what the currently highlighted menu item would do.
> For Leo, say we have Edit > Edit Body > highlighted:
>
> - "Create a new node named by the first line of selected body text
> and a body made of the other selected lines, then deletes that
> selection."
> - (if some lines are selected in an active body pane)
> - "Create a new node named the line the cursor is in (leading
> whitespace stripped)"
> - (for when we have the cursor or a selection in a single line)
> - "Needs to have cursor in, or lines selected in an active body
> pane to work"
> - (for when menu item is inactive)