Commit graph

32 commits

Author SHA1 Message Date
Ivailo Monev
bd3f60eb10 plasma: redo pager and tasks applets
nothing is final between releases - it's development cycle. the pager
applet now does verticals tho

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-03 09:47:24 +03:00
Ivailo Monev
942581ee78 plasma: call KTaskManager::activateRaiseOrIconify() as static method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-03 03:25:45 +03:00
Ivailo Monev
057b58b76d libs: rework KTaskManager to not cache information other than the window ID
otherwise the name and desktop number have to be refreshed each time a task
window changes and that information may or may not be used in, say, the
pager applet

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-02 22:15:46 +03:00
Ivailo Monev
18fbb354cf plasma: note that the maximum size can also be used as workaround in PagerApplet::updatePagers()
either the preferred or maximum but the preferred is used in that case

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-02 21:24:12 +03:00
Ivailo Monev
8d96c97af6 plasma: drop windowlist applet
and showdesktop is next, the pager applet does not only virtual desktop
switching, tasks actions (e.g. iconify/minimize) but also has the only
feature showdesktop has (except it does it on middle-mouse button)

oh, yes - using virtual desktops for grouping tasks is a thing now
(somewhat similar to the old task manager library grouping feature)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-02 07:07:44 +03:00
Ivailo Monev
ebaf50efee plasma: workaround layout weirdness in pager applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-02 06:40:17 +03:00
Ivailo Monev
eea341460b plasma: use image for the pager arrow based on the applet location
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-02 05:25:15 +03:00
Ivailo Monev
3f677f81ca plasma: adjust preview activation bits, preparation for showing unfitting tasks in a dialog
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-02 02:24:44 +03:00
Ivailo Monev
9b2d5c06a9 plasma: update pagers layout incrementally, animate icons
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-02 00:32:14 +03:00
Ivailo Monev
ebd427394b plasma: merge tasks applet into the the pager applet
why have one taskbar when I can have one for each virtual desktop? here
is how it looks:
https://ibb.co/TbNT2mC

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-29 23:37:54 +03:00
Ivailo Monev
cce8577a40 plasma: show preview of windows based on the X11 timestamp in pager applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-29 17:26:13 +03:00
Ivailo Monev
eaefa8595f plasma: update pager applet tooltips on KTaskManager::taskChanged() signal
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-29 17:01:46 +03:00
Ivailo Monev
9e2b0ef99f plasma: implement interactive windows preview for pager applet
wasn't a thing before, is now

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-29 16:57:52 +03:00
Ivailo Monev
45dbe71270 plasma: enable antialising for the pager applet painter
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-29 16:37:04 +03:00
Ivailo Monev
50aab9bc48 plasma: drop the option to hide the pager applet when there is only one virtual desktop
also tweaked it for such case, soon the virtual desktops will be 2 by
default

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-29 15:46:08 +03:00
Ivailo Monev
9b5b7e0164 plasma: reimplement tasks applet
very dull right now but atleast text eliding is done correctly. lots of
plans for it, tasks grouping and sorting is unlikely to be a thing tho.
the people behind the old implementation missing a few basic things -
what things do I want the taskbar to show (e.g. icon and text, icon or text
only) and what happens when a task is interacted with (on
left/right/middle mouse button click - there can be option to move tasks
on middle click for example)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-28 02:21:48 +03:00
Ivailo Monev
57fdb31fee plasma: change pager applet layout contents margins based on the applet visibility
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-27 19:48:01 +03:00
Ivailo Monev
deae0deb4e plasma: remove unused constant in pager source file
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-27 18:02:11 +03:00
Ivailo Monev
22b76d52a6 plasma: proxy the desktop KCM in pager applet again
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-27 17:55:58 +03:00
Ivailo Monev
cbe7baa196 tweak lockout and pager applets
not giving a damn about size policy, minimum and maximum sizes (other than
the magic one for the pager svg) makes things easy

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-27 01:35:51 +03:00
Ivailo Monev
c41bdb629e plasma: connect the single desktop configuration widget signal in pager applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-27 00:02:49 +03:00
Ivailo Monev
ef926e8192 plasma: implement option to hide the applet when there is only one virtual desktop
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-26 23:41:43 +03:00
Ivailo Monev
7c768b9449 plasma: implement configuration interface for pager applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-26 23:25:26 +03:00
Ivailo Monev
49b205605d plasma: show/hide the desktop on middle mouse button from pager applet
a feature that the old implementation did not had, now the pager applet
does everything the showdesktop applet does and then some

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-26 22:29:06 +03:00
Ivailo Monev
7afe570e55 plasma: handle mouse wheel events and setup toooltip for pager applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-26 21:47:42 +03:00
Ivailo Monev
d9112916cc plasma: reimplement pager applet
no configuration and drag-n-drop yet because I've something in mind
which has to be tested and done before the configuration is

on a side note: the size of the applet is correct now when a virtual
desktop is removed

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-26 21:10:17 +03:00
Ivailo Monev
f254c44f7d Revert "plasma: use QColor::name() in Pager::updatePagerStyle()"
This reverts commit 3bb3d55a72.
2023-08-07 22:29:20 +03:00
Ivailo Monev
3bb3d55a72 plasma: use QColor::name() in Pager::updatePagerStyle()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-07 22:13:19 +03:00
Ivailo Monev
5c6056952d generic: remove dashboard support
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-07-16 04:04:04 +03:00
Ivailo Monev
8bf18129e8 generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-26 22:16:02 +00:00
Ivailo Monev
f94152c0bf generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-01-14 05:21:53 +02:00
Ivailo Monev
efbde9e504 plasma: organize sub-directories
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-12-24 22:48:47 +02:00
Renamed from plasma/desktop/applets/pager/pager.cpp (Browse further)