From kde-panel-devel Sun May 26 14:05:51 2013 From: =?utf-8?b?Sm9zw6kgTWlsbMOhbiBTb3Rv?= Date: Sun, 26 May 2013 14:05:51 +0000 To: kde-panel-devel Subject: Re: Review Request 110504: Group tasks by activity Message-Id: <20130526140551.30360.32863 () vidsolbach ! de> X-MARC-Message: https://marc.info/?l=kde-panel-devel&m=136957716820525 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============8020957935200324762==" --===============8020957935200324762== Content-Type: multipart/alternative; boundary="===============3134365466518459530==" --===============3134365466518459530== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit > On May 26, 2013, 9:42 a.m., Marco Martin wrote: > > The libtaskmanager part is nice. > > > > However the applet is about t be replaced, so the display part would have to be redone I am aware that the tasks applet is going to be replaced soon, but most changes of this patch are in the library and not in the applet. I don't mind creating a patch for the new version of the applet to handle this grouping once the new version of the applet is available. - José ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/110504/#review33145 ----------------------------------------------------------- On May 18, 2013, 2:13 p.m., José Millán Soto wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > http://git.reviewboard.kde.org/r/110504/ > ----------------------------------------------------------- > > (Updated May 18, 2013, 2:13 p.m.) > > > Review request for Plasma. > > > Description > ------- > > New grouping strategy was created to allow tasks to be grouped by activity. > If an item is available in multiple activities, it will only appear in one of the activities the task is available on (except if it's available on all activities). > GroupManager was modified so that whether items should be grouped just when the task bar is full or not is not only taken into account when grouping by program but also when grouping by activity. > Activity icons are not handled yet, so an icon from the first task which was on the group is used as the icon of the task group. > > > Diffs > ----- > > plasma/desktop/applets/tasks/tasks.cpp dbbb0cb > libs/taskmanager/strategies/activitygroupingstrategy.cpp PRE-CREATION > libs/taskmanager/groupmanager.cpp 9ac15e7 > libs/taskmanager/strategies/activitygroupingstrategy.h PRE-CREATION > libs/taskmanager/CMakeLists.txt 70fa791 > libs/taskmanager/groupmanager.h ad4167a > > Diff: http://git.reviewboard.kde.org/r/110504/diff/ > > > Testing > ------- > > Three activities were created (named "Activity 1", "Activity 2" and "Activity 3"). > One instance of KDialog was assigned to Activity 1, two instances of KDialog were assigned to Activity 2, three instances of KDialog were assigned to Activity 3 and one instance of KDialog was assigned both to Activities 2 & 3. > The tasks applet was executed in plasma-windowed in all activities. > Screenshot 1 & 2 show the task manager in the situation described above. Screenshot 3 shows the same task manager after leaving only one instance of KDialog in each activity ("Only group when taskbar is full" enabled), and screenshot 4 shows the task manager when the tasks are the same that in screenshot 3 but "Only group when taskbar is full" is disabled. > > > File Attachments > ---------------- > > Screenshot 1 > http://git.reviewboard.kde.org/media/uploaded/files/2013/05/18/img1.png > Screenshot 2 > http://git.reviewboard.kde.org/media/uploaded/files/2013/05/18/img2.png > Screenshot 3 > http://git.reviewboard.kde.org/media/uploaded/files/2013/05/18/img3.png > Screenshot 4 > http://git.reviewboard.kde.org/media/uploaded/files/2013/05/18/img4.png > > > Thanks, > > José Millán Soto > > --===============3134365466518459530== Content-Type: text/html; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit
This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/110504/

On May 26th, 2013, 9:42 a.m. UTC, Marco Martin wrote:

The libtaskmanager part is nice.

However the applet is about t be replaced, so the display part would have to be redone
I am aware that the tasks applet is going to be replaced soon, but most changes of this patch are in the library and not in the applet.
I don't mind creating a patch for the new version of the applet to handle this grouping once the new version of the applet is available.

- José


On May 18th, 2013, 2:13 p.m. UTC, José Millán Soto wrote:

Review request for Plasma.
By José Millán Soto.

Updated May 18, 2013, 2:13 p.m.

Description

New grouping strategy was created to allow tasks to be grouped by activity.
If an item is available in multiple activities, it will only appear in one of the activities the task is available on (except if it's available on all activities).
GroupManager was modified so that whether items should be grouped just when the task bar is full or not is not only taken into account when grouping by program but also when grouping by activity.
Activity icons are not handled yet, so an icon from the first task which was on the group is used as the icon of the task group.

Testing

Three activities were created (named "Activity 1", "Activity 2" and "Activity 3").
One instance of KDialog was assigned to Activity 1, two instances of KDialog were assigned to Activity 2, three instances of KDialog were assigned to Activity 3 and one instance of KDialog was assigned both to Activities 2 & 3.
The tasks applet was executed in plasma-windowed in all activities.
Screenshot 1 & 2 show the task manager in the situation described above. Screenshot 3 shows the same task manager after leaving only one instance of KDialog in each activity ("Only group when taskbar is full" enabled), and screenshot 4 shows the task manager when the tasks are the same that in screenshot 3 but "Only group when taskbar is full" is disabled.

Diffs

  • plasma/desktop/applets/tasks/tasks.cpp (dbbb0cb)
  • libs/taskmanager/strategies/activitygroupingstrategy.cpp (PRE-CREATION)
  • libs/taskmanager/groupmanager.cpp (9ac15e7)
  • libs/taskmanager/strategies/activitygroupingstrategy.h (PRE-CREATION)
  • libs/taskmanager/CMakeLists.txt (70fa791)
  • libs/taskmanager/groupmanager.h (ad4167a)

View Diff

File Attachments

--===============3134365466518459530==-- --===============8020957935200324762== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel --===============8020957935200324762==--