Add (and install) svg for the new krunner interface.
[kdebase/uwolfer.git] / workspace / kwin / lib / kdecorationbridge.h
blob5c28e52f70b2cf0f73a5371a6bf25ae253427133
1 /*****************************************************************
2 This file is part of the KDE project.
4 Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org>
6 Permission is hereby granted, free of charge, to any person obtaining a
7 copy of this software and associated documentation files (the "Software"),
8 to deal in the Software without restriction, including without limitation
9 the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 and/or sell copies of the Software, and to permit persons to whom the
11 Software is furnished to do so, subject to the following conditions:
13 The above copyright notice and this permission notice shall be included in
14 all copies or substantial portions of the Software.
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 DEALINGS IN THE SOFTWARE.
23 ******************************************************************/
25 #ifndef KDECORATIONBRIDGE_H
26 #define KDECORATIONBRIDGE_H
28 #include "kdecoration.h"
29 #include <QtGui/QWidget>
31 /** @addtogroup kdecoration */
32 /** @{ */
34 /**
35 * @short Bridge class for communicating between decorations and KWin core.
37 * This class allows communication between decorations and KWin core while allowing
38 * to keep binary compatibility. Decorations do not need to use it directly at all.
40 // This class is supposed to keep binary compatibility, just like KDecoration.
41 // Extending should be done the same way, i.e. inheriting KDecorationBridge2 from it
42 // and adding new functionality there.
43 class KDecorationBridge : public KDecorationDefines
45 public:
46 virtual ~KDecorationBridge(){}
47 virtual bool isActive() const = 0;
48 virtual bool isCloseable() const = 0;
49 virtual bool isMaximizable() const = 0;
50 virtual MaximizeMode maximizeMode() const = 0;
51 virtual bool isMinimizable() const = 0;
52 virtual bool providesContextHelp() const = 0;
53 virtual int desktop() const = 0;
54 virtual bool isModal() const = 0;
55 virtual bool isShadeable() const = 0;
56 virtual bool isShade() const = 0;
57 virtual bool isSetShade() const = 0;
58 virtual bool keepAbove() const = 0;
59 virtual bool keepBelow() const = 0;
60 virtual bool isMovable() const = 0;
61 virtual bool isResizable() const = 0;
62 virtual NET::WindowType windowType( unsigned long supported_types ) const = 0;
63 virtual QIcon icon() const = 0;
64 virtual QString caption() const = 0;
65 virtual void processMousePressEvent( QMouseEvent* ) = 0;
66 virtual void showWindowMenu( const QRect &) = 0;
67 virtual void showWindowMenu( const QPoint & ) = 0;
68 virtual void performWindowOperation( WindowOperation ) = 0;
69 virtual void setMask( const QRegion&, int ) = 0;
70 virtual bool isPreview() const = 0;
71 virtual QRect geometry() const = 0;
72 virtual QRect iconGeometry() const = 0;
73 virtual QRegion unobscuredRegion( const QRegion& r ) const = 0;
74 virtual WId windowId() const = 0;
75 virtual void closeWindow() = 0;
76 virtual void maximize( MaximizeMode mode ) = 0;
77 virtual void minimize() = 0;
78 virtual void showContextHelp() = 0;
79 virtual void setDesktop( int desktop ) = 0;
80 virtual void titlebarDblClickOperation() = 0;
81 virtual void titlebarMouseWheelOperation( int delta ) = 0;
82 virtual void setShade( bool set ) = 0;
83 virtual void setKeepAbove( bool ) = 0;
84 virtual void setKeepBelow( bool ) = 0;
85 // not part of public API
86 virtual int currentDesktop() const = 0;
87 virtual QWidget* initialParentWidget() const = 0;
88 virtual Qt::WFlags initialWFlags() const = 0;
89 virtual void grabXServer( bool grab ) = 0;
92 /** @} */
94 #endif