[PATCH] make window preview support mouse click in plasma tooltip
Aaron J. Seigo
aseigo at kde.org
Fri Jun 12 17:42:17 CEST 2009
On Tuesday 09 June 2009, Emdek wrote:
> On 09-06-2009 at 20:09:34 Aaron J. Seigo <aseigo at kde.org> wrote:
> > On Tuesday 09 June 2009, Emdek wrote:
> >> > do we need the screen position of the click? not for window previews,
> >> > probably, but for links it might be useful?
> >>
> >> Could it be possible to send whole event object? Then we got position,
> >> buttons etc.
> >
> > ... and then need to bind the entire event object into all the script
> > runtimes
> > and make sure people don't do "unplasma" things with the interface as a
> > result. since we need to say "this was clicked" anyways (unless we
> > expose the
> > actual tip widget to the user of the tooltips, which is not going to
> > happen),
> > passing an actual event object has limited value and is really the easy
> > way
> > out.
> >
> > we should think about what is needed and what we want to make possible
> > (and
> > what we want to not make possible as well) and provide an api that does
> > exactly that.
>
> OK, right.
> I'm not sure if click position is really needed, I can imagine only that
> it could be used for positioning window menu for preview or something like
> that.
>
> >> But in case of default tool tips this would need change in limit of
> >> windows shown in tool tip
> >
> > yes; probably need to shrink them or else provide some scrolling
> > interface or
> > some combo ... shrinking is probably enough.
>
> What about showing them in grid (if there is more than x windows)?
depends on how it would look; there's also the issue of vertical space used...
> Scrolling could be also good idea, for example we could show two arrows on
> sides of tool tip and scroll previews when hovering over arrow (maybe also
> with mouse wheel).
mouse wheel and arrows would both work.
> >> There is also case of Composite less or with thumbnails disabled, but
> >> for
> >> them we can show vertical list of tasks (maybe this could be also used
> >> when we have more than four tasks in group).
> >
> > .. in this case the tooltips should be "normal" and not clickable.
>
> And what with idea of using tool tips instead of group menu?
do you mean for things like the context menu (to desktop, minize, etc)? that
could be added... i don't think we need to make the tasks widget not show the
group menu on click when there is composite, though.
--
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
KDE core developer sponsored by Qt Software
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20090612/e76acfe2/attachment-0001.sig
More information about the Plasma-devel
mailing list