[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: doubleClicked in toolbar/KAction
From: Waldo Bastian <bastian () kde ! org>
Date: 2000-06-04 22:32:52
[Download RAW message or body]
On Sun, 04 Jun 2000, Lotzi Boloni wrote:
> > > > Unless this double-click on toolbar-button thing becomes very common,
> > > > I think this is good enough. BTW, do many users find out that trick ?
> > > > :-)
> > >
> > > I don't know about others, but I would love to use something like
> > > this to implement renaming of the konsole buttons. And there are other
> > > cases... Maybe something like KMultipleAction where two or three
> > > actions are linked to the same widget (for Click, DoubleClick,
> > > Shift-Click, LeftClick etc.).
> >
> > Why not... but wouldn't it be wiser to use a RMB popup for this ?
> > Remove session might be the next candidate for the popup, then assign
> > shortcut, then move (like kicker buttons) :) etc...
>
> Well, that would be also fine, but even that is possible only by hacking
> plug. I guess, the general problem is that we have the one widget = one
> action assumption. Hmm, it would be nice to have an elegant solution for
> this. Maybe:
>
> action->addSecondaryAction("RightClick", SLOT(popup()));
> action->addSecondaryAction("DoubleClick", SLOT(rename());
> action->plug(toolbar); // sets the primary and secondary actions
> action->plug(menubar); // sets the primary and secondaries which
> apply to menubar
I don't see any possibility to support "DoubleClick" since I can't think of a
way to support that and still respect the users "use single click" setting.
RMB support seems the way to go. Something like:
action->addRMBAction(.....).. which then adds the action to a RMB popup
menu...
Cheers,
Waldo
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic