<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
<br><br>> From: aseigo@kde.org<br>> To: panel-devel@kde.org<br>> Subject: Re: Taskmanager with grouping support preview version<br>> Date: Thu, 10 Jul 2008 10:04:10 -0600<br>> <br>> On Thursday 10 July 2008, christian mollekopf wrote:<br>> > To get around the TaskPtr problem, i derived a new class from<br>> > AbstractGroupableItem called TaskItem in the libs part. It basically just<br>> > holds a copy of the TaskPtr. Its a bit overhead but in favour we can work<br>> > with the AbstractGroupaleItems and manage Groups and Tasks therefore the<br>> > same way. This way the Task class isn't affected in any way by the grouping<br>> > ability.<br>> <br>> 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>> <br>> > :QAction(parent)<br>> ><br>> > {<br>> > connect(this, SIGNAL(triggered()), task.data(),<br>> > SLOT(toggleMaximized())); setText(i18n("Ma&ximize"));<br>> > setCheckable(true);<br>> > setChecked(task->isMaximized());<br>> > setEnabled(!KWindowSystem::allowedActionsSupported() ||<br>> > task->info().actionSupported(NET::ActionMax)); }<br>> <br>> i'm not 100% sure, but these items may want to update themselves when the task <br>> changes (e.g. change the setChecked status if the window become minimized <br>> after creation, but not through this action). i suppose whether or not that's <br>> acually needed is something we'll find out as things go on; but this approach <br>> is flexible enough to do things like this should we find the need to do so <br>> 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> <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>