[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: [PATCH][RFC] Use KAction::toolTip()  as label in KEditToolbar
From:       David Faure <david () mandrakesoft ! com>
Date:       2002-01-07 0:29:05
[Download RAW message or body]

On Wednesday 02 January 2002 12:52, Marc Mutz wrote:
> Hi!
> 
> Attached patch makes the listboxes in KEditToolbar use the tooltip if
> possible (ie. no line breaks, not empty and not rich text).
> 
> I couldn't get something like this to work for KKeyDialog, though, so it
> mainly serves as a RFC rather than a patch I want comitted.
> 
> Q: Why is this needed in the first place?
> A: Because listing the plainText() of actions work only for so long. As
> soon as submenues come into the game, you probably end up with
> duplicate entries or undigestable labels (See KMail's dialogs: "New".
> New _what_? Message? Folder? Main window? No! "Mark Message as New"...)
> The tooltip can be a sane way to describe the action out of the menu
> context.
> 
> Q: Isn't this a bit hackish?
> A: Of course. But I'm not into KAccel and KAction. The best solution
> would probably be to introduce _two_ labels:
> One for use in menus (ie. with surrounding context).
> The other for use in toolbars and the two config dialogs (ie. useable
> without context).

Q: Isn't the tooltip way too long, sometimes, for being shown in kedittoolbar's list ?

Suggestion: why not leave the plaintext in the list, but show the tooltip
in some other area of the dialog, when selecting the action in the list ?
I thought we had a bottom area for displaying such a thing, but it looks like
I only dreamt it, it's not there yet ;)

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://www.kde.org/people/david.html (my real webpage is down)
KDE 3.0: Konquering the Desktops

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic