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
30 /** Maximize a window or all windows in a group*/
31 class MaximizeActionImpl
: public QAction
35 MaximizeActionImpl(QObject
*parent
, AbstractItemPtr task
);
39 /** Minimize a window or all windows in a group*/
40 class MinimizeActionImpl
: public QAction
44 MinimizeActionImpl(QObject
*parent
, AbstractItemPtr task
);
47 /** Move window to current desktop*/
48 class ToCurrentDesktopActionImpl
: public QAction
52 ToCurrentDesktopActionImpl(QObject
*parent
, AbstractItemPtr task
);
54 void slotToCurrentDesktop();
56 AbstractItemPtr m_item
;
59 /** Shade a window or all windows in a group*/
60 class ShadeActionImpl
: public QAction
64 ShadeActionImpl(QObject
*parent
, AbstractItemPtr task
);
67 /** Resize a window or all windows in a group*/
68 class ResizeActionImpl
: public QAction
72 ResizeActionImpl(QObject
*parent
, TaskItem
* task
);
75 /** Move a window or all windows in a group*/
76 class MoveActionImpl
: public QAction
80 MoveActionImpl(QObject
*parent
, TaskItem
* task
);
83 /** Shade a window or all windows in a group*/
84 class CloseActionImpl
: public QAction
88 CloseActionImpl(QObject
*parent
, AbstractItemPtr task
);
91 /** Send a Task to a specific Desktop*/
92 class ToDesktopActionImpl
: public QAction
96 ToDesktopActionImpl(QObject
*parent
, AbstractItemPtr task
, int desktop
);
101 AbstractItemPtr m_item
;
105 /** Set a window or all windows in a group to FullScreen*/
106 class ViewFullscreenActionImpl
: public QAction
110 ViewFullscreenActionImpl(QObject
*parent
, AbstractItemPtr task
);
113 /** Keep a Window or all windows in a group above the rest */
114 class KeepAboveActionImpl
: public QAction
118 KeepAboveActionImpl(QObject
*parent
, AbstractItemPtr task
);
121 /** Keep a Window or all windows in a group below the rest*/
122 class KeepBelowActionImpl
: public QAction
126 KeepBelowActionImpl(QObject
*parent
, AbstractItemPtr task
);
130 /** Leave current Group*/
131 class LeaveGroupActionImpl
: public QAction
135 LeaveGroupActionImpl(QObject
*parent
, AbstractItemPtr task
, GroupManager
*);
141 AbstractItemPtr abstractItem
;
142 GroupManager
*groupingStrategy
;
145 /** Edit current Group*/
146 class EditGroupActionImpl
: public QAction
150 EditGroupActionImpl(QObject
*parent
, TaskGroup
*group
, GroupManager
*);
154 class RemoveGroupActionImpl : public QAction
158 RemoveGroupActionImpl(QObject *parent, AbstractItemPtr task);
162 } // TaskManager namespace