not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / libs / taskmanager / taskactions_p.h
blob9ac42877fafe85a185f6de9665a7596fe504d0b8
1 /*****************************************************************
3 Copyright 2008 Christian Mollekopf <chrigi_1@hotmail.com>
5 Permission is hereby granted, free of charge, to any person obtaining a copy
6 of this software and associated documentation files (the "Software"), to deal
7 in the Software without restriction, including without limitation the rights
8 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 copies of the Software, and to permit persons to whom the Software is
10 furnished to do so, subject to the following conditions:
12 The above copyright notice and this permission notice shall be included in
13 all copies or substantial portions of the Software.
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
19 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 ******************************************************************/
24 #ifndef TASKACTIONS_P_H
25 #define TASKACTIONS_P_H
27 namespace TaskManager
30 /** Maximize a window or all windows in a group*/
31 class MaximizeActionImpl : public QAction
33 Q_OBJECT
34 public:
35 MaximizeActionImpl(QObject *parent, AbstractItemPtr task);
39 /** Minimize a window or all windows in a group*/
40 class MinimizeActionImpl : public QAction
42 Q_OBJECT
43 public:
44 MinimizeActionImpl(QObject *parent, AbstractItemPtr task);
47 /** Move window to current desktop*/
48 class ToCurrentDesktopActionImpl : public QAction
50 Q_OBJECT
51 public:
52 ToCurrentDesktopActionImpl(QObject *parent, AbstractItemPtr task);
53 private Q_SLOTS:
54 void slotToCurrentDesktop();
55 private:
56 AbstractItemPtr m_item;
59 /** Shade a window or all windows in a group*/
60 class ShadeActionImpl : public QAction
62 Q_OBJECT
63 public:
64 ShadeActionImpl(QObject *parent, AbstractItemPtr task);
67 /** Resize a window or all windows in a group*/
68 class ResizeActionImpl : public QAction
70 Q_OBJECT
71 public:
72 ResizeActionImpl(QObject *parent, TaskItem* task);
75 /** Move a window or all windows in a group*/
76 class MoveActionImpl : public QAction
78 Q_OBJECT
79 public:
80 MoveActionImpl(QObject *parent, TaskItem* task);
83 /** Shade a window or all windows in a group*/
84 class CloseActionImpl : public QAction
86 Q_OBJECT
87 public:
88 CloseActionImpl(QObject *parent, AbstractItemPtr task);
91 /** Send a Task to a specific Desktop*/
92 class ToDesktopActionImpl : public QAction
94 Q_OBJECT
95 public:
96 ToDesktopActionImpl(QObject *parent, AbstractItemPtr task, int desktop);
97 private Q_SLOTS:
98 void slotToDesktop();
99 private:
100 int m_desktop;
101 AbstractItemPtr m_item;
105 /** Set a window or all windows in a group to FullScreen*/
106 class ViewFullscreenActionImpl : public QAction
108 Q_OBJECT
109 public:
110 ViewFullscreenActionImpl(QObject *parent, AbstractItemPtr task);
113 /** Keep a Window or all windows in a group above the rest */
114 class KeepAboveActionImpl : public QAction
116 Q_OBJECT
117 public:
118 KeepAboveActionImpl(QObject *parent, AbstractItemPtr task);
121 /** Keep a Window or all windows in a group below the rest*/
122 class KeepBelowActionImpl : public QAction
124 Q_OBJECT
125 public:
126 KeepBelowActionImpl(QObject *parent, AbstractItemPtr task);
130 /** Leave current Group*/
131 class LeaveGroupActionImpl : public QAction
133 Q_OBJECT
134 public:
135 LeaveGroupActionImpl(QObject *parent, AbstractItemPtr task, GroupManager*);
137 private Q_SLOTS:
138 void leaveGroup();
140 private:
141 AbstractItemPtr abstractItem;
142 GroupManager *groupingStrategy;
145 /** Edit current Group*/
146 class EditGroupActionImpl : public QAction
148 Q_OBJECT
149 public:
150 EditGroupActionImpl(QObject *parent, TaskGroup *group, GroupManager*);
153 /** Remove Group
154 class RemoveGroupActionImpl : public QAction
156 Q_OBJECT
157 public:
158 RemoveGroupActionImpl(QObject *parent, AbstractItemPtr task);
162 } // TaskManager namespace
165 #endif