<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
<br><br>&gt; From: aseigo@kde.org<br>&gt; To: panel-devel@kde.org<br>&gt; Subject: Re: Taskmanager with grouping support preview version<br>&gt; Date: Thu, 10 Jul 2008 10:04:10 -0600<br>&gt; <br>&gt; On Thursday 10 July 2008, christian mollekopf wrote:<br>&gt; &gt; To get around the TaskPtr problem, i derived a new class from<br>&gt; &gt; AbstractGroupableItem called TaskItem in the libs part. It basically just<br>&gt; &gt; holds a copy of the TaskPtr. Its a bit overhead but in favour we can work<br>&gt; &gt; with the AbstractGroupaleItems and manage Groups and Tasks therefore the<br>&gt; &gt; same way. This way the Task class isn't affected in any way by the grouping<br>&gt; &gt; ability.<br>&gt; <br>&gt; ok; i guess when i can see the code this paragraph will be clearer to me =)<br><br>After two days of learning how to work with svn i finally managed to create a branch =)<br>The code lives now in branches/work/plasma-groupingtaskbar/<br><br>Just check if the TaskItem seems to be a reasonable way to get around the guarded TaskPtr / AbstractItem problem.<br>If so i would probably only use the TaskItem instead of the TaskPtr throughout the taskbar vistualization (applets/tasks/*).<br><br>&gt; <br>&gt; &gt; :QAction(parent)<br>&gt; &gt;<br>&gt; &gt; {<br>&gt; &gt;     connect(this, SIGNAL(triggered()), task.data(),<br>&gt; &gt; SLOT(toggleMaximized())); setText(i18n("Ma&amp;ximize"));<br>&gt; &gt;     setCheckable(true);<br>&gt; &gt;     setChecked(task-&gt;isMaximized());<br>&gt; &gt;     setEnabled(!KWindowSystem::allowedActionsSupported() ||<br>&gt; &gt; task-&gt;info().actionSupported(NET::ActionMax)); }<br>&gt; <br>&gt; i'm not 100% sure, but these items may want to update themselves when the task <br>&gt; changes (e.g. change the setChecked status if the window become minimized <br>&gt; after creation, but not through this action). i suppose whether or not that's <br>&gt; acually needed is something we'll find out as things go on; but this approach <br>&gt; is flexible enough to do things like this should we find the need to do so <br>&gt; later.<br><br>Well, at least not for the menu used in this taskbar because the menu disapears as<br>soon as an action is clicked.<br>&nbsp;<br> I'm on vacation for the next two weeks, so take your time =)<br><br>Regards<br><br /><hr />Es ist höchste Zeit dabei zu sein - Holen Sie sich jetzt die neue Generation der Windows Live Services! <a href='http://get.live.com/' target='_new'>Hier klicken!</a></body>
</html>