2
* Copyright © 2008 Dennis Kasprzyk <onestone@opencompositing.org>
3
* Copyright © 2006 Novell, Inc.
4
* Copyright © 2006 Volker Krause <vkrause@kde.org>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21
* Author: David Reveman <davidr@novell.com>
27
#include <kdecoration.h>
34
class Options : public KDecorationOptions
42
MouseToggleRaiseAndLower,
43
MouseActivateAndRaise,
44
MouseActivateAndLower,
46
MouseActivateRaiseAndPassClick,
47
MouseActivateAndPassClick,
49
MouseUnrestrictedMove,
50
MouseActivateRaiseAndMove,
51
MouseActivateRaiseAndUnrestrictedMove,
53
MouseUnrestrictedResize,
68
enum MouseWheelCommand
71
MouseWheelShadeUnshade,
72
MouseWheelMaximizeRestore,
74
MouseWheelPreviousNextDesktop,
75
MouseWheelChangeOpacity,
79
Options (KConfig *config);
81
virtual unsigned long updateSettings (void);
83
WindowOperation operationTitlebarDblClick (void)
85
return OpTitlebarDblClick;
88
MouseCommand commandActiveTitlebar1 (void)
90
return CmdActiveTitlebar1;
92
MouseCommand commandActiveTitlebar2 (void)
94
return CmdActiveTitlebar2;
96
MouseCommand commandActiveTitlebar3 (void)
98
return CmdActiveTitlebar3;
100
MouseCommand commandInactiveTitlebar1 (void)
102
return CmdInactiveTitlebar1;
104
MouseCommand commandInactiveTitlebar2 (void)
106
return CmdInactiveTitlebar2;
108
MouseCommand commandInactiveTitlebar3 (void)
110
return CmdInactiveTitlebar3;
113
MouseCommand operationTitlebarMouseWheel (int delta)
115
return wheelToMouseCommand (CmdTitlebarWheel, delta);
119
static KDecorationDefines::WindowOperation
120
windowOperation (const QString &name, bool restricted);
121
MouseCommand mouseCommand (const QString &name, bool restricted);
122
MouseWheelCommand mouseWheelCommand (const QString &name);
123
MouseCommand wheelToMouseCommand (MouseWheelCommand com, int delta);
126
KDecorationDefines::WindowOperation OpTitlebarDblClick;
127
MouseCommand CmdActiveTitlebar1;
128
MouseCommand CmdActiveTitlebar2;
129
MouseCommand CmdActiveTitlebar3;
130
MouseCommand CmdInactiveTitlebar1;
131
MouseCommand CmdInactiveTitlebar2;
132
MouseCommand CmdInactiveTitlebar3;
133
MouseWheelCommand CmdTitlebarWheel;