1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
--- applet/src/daisy.h
+++ applet/src/daisy.h
@@ -102,8 +102,8 @@
#include <taskmanager/taskitem.h>
#include <taskmanager/groupmanager.h>
#include <taskmanager/startup.h>
-using TaskManager::TaskPtr;
-using TaskManager::StartupPtr;
+using TaskManager::Task;
+using TaskManager::Startup;
using TaskManager::GroupManager;
@@ -337,7 +337,7 @@
bool checkLock();
void checkAttention( KWindowInfo taskInfo, QString widclass_tmp );
- void createTaskThumbnail( TaskPtr task_tmp, int j );
+ void createTaskThumbnail( Task* task_tmp, int j );
void scrollTasks(int delta);
@@ -418,7 +418,7 @@
QSizeF m_hoversz;
- TaskPtr m_task;
+ Task* m_task;
GroupManager *m_groupManager;
@@ -512,8 +512,8 @@
private slots:
- void startupAdded(StartupPtr startupItem);
- void startupRemoved(StartupPtr startupItem);
+ void startupAdded(Startup* startupItem);
+ void startupRemoved(Startup* startupItem);
void windowAdded(WId id);
--- applet/src/daisyTasks.cpp
+++ applet/src/daisyTasks.cpp
@@ -159,7 +159,7 @@
//-----------------------------------------------------------------------------
// Startup added
//FIXME
-void daisy::startupAdded(StartupPtr startupItem)
+void daisy::startupAdded(Startup* startupItem)
{
m_startingwindow = -1;
@@ -195,7 +195,7 @@
//-----------------------------------------------------------------------------
// Startup removed
//FIXME
-void daisy::startupRemoved(StartupPtr startupItem)
+void daisy::startupRemoved(Startup* startupItem)
{
Q_UNUSED(startupItem);
@@ -218,7 +218,7 @@
KWindowInfo taskInfo = KWindowSystem::windowInfo( id, NET::WMName | NET::WMVisibleName | NET::WMVisibleIconName | NET::WMState | NET::XAWMState | NET::WMDesktop, NET::WM2WindowClass );
- TaskPtr task_tmp = TaskManager::TaskManager::self()->findTask( id );
+ Task* task_tmp = TaskManager::TaskManager::self()->findTask( id );
if ( m_alias.indexOf( taskInfo.windowClassName() ) != -1 || m_alias.indexOf( QString(taskInfo.windowClassClass().toLower()) ) != -1 )
@@ -372,7 +372,7 @@
KWindowInfo taskInfo = KWindowSystem::windowInfo( *it, NET::WMName | NET::WMVisibleName | NET::WMVisibleIconName | NET::WMState | NET::XAWMState | NET::WMDesktop | NET::WMWindowType, NET::WM2WindowClass );
- TaskPtr task_tmp = TaskManager::TaskManager::self()->findTask( *it );
+ Task* task_tmp = TaskManager::TaskManager::self()->findTask( *it );
if ( task_tmp && *it == KWindowSystem::activeWindow() )
{m_focusedWindow = *it;}
@@ -478,7 +478,7 @@
//-----------------------------------------------------------------------------
// Create task thumbnail
//FIXME
-void daisy::createTaskThumbnail( TaskPtr task_tmp, int j )
+void daisy::createTaskThumbnail( Task* task_tmp, int j )
{
QIcon thumbnail;
//thumbnail = QIcon( QPixmap::grabWindow ( task_tmp->win(), 0, 0, -1, -1 ) );//This would suck
@@ -714,7 +714,7 @@
KWindowInfo taskInfo = KWindowSystem::windowInfo( m_focusedWindow, NET::WMState, NET::WM2WindowClass );
for (it = taskDict.begin(); it != taskDict.end(); ++it )
{
- TaskPtr task_tmp = TaskManager::TaskManager::self()->findTask( *it );
+ Task* task_tmp = TaskManager::TaskManager::self()->findTask( *it );
if ( task_tmp ){real_taskDict << *it;}
}
if (real_taskDict.size() > 0)
@@ -768,7 +768,7 @@
void daisy::delayTaskIcoChange(void)
{
m_uti_tmr->stop();
- TaskPtr task_tmp = TaskManager::TaskManager::self()->findTask( m_toupwid );
+ Task* task_tmp = TaskManager::TaskManager::self()->findTask( m_toupwid );
if ( task_tmp )
{
// QIcon thumbnail;
|