Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / workspace / kwin / lib / kcommondecoration_p.h
blob39e779114d45e8d3901a8ab6635983f07bf7ed87
1 /*
2 This file is part of the KDE project.
4 Copyright (C) 2007 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.
25 #ifndef KCOMMONDECORATION_P_H
26 #define KCOMMONDECORATION_P_H
28 #include "kdecoration.h"
31 // This header file is internal. I mean it.
32 //
34 class KCommonDecoration;
35 class KDecorationBridge;
36 class KDecorationFactory;
38 // wrapper all functionality that needs reimplementing in KDecoration and forward it to KCommonDecoration
39 class KCommonDecorationWrapper
40 : public KDecoration
42 Q_OBJECT
43 public:
44 KCommonDecorationWrapper( KCommonDecoration* deco, KDecorationBridge* bridge, KDecorationFactory* factory );
45 virtual ~KCommonDecorationWrapper();
46 virtual void init();
47 virtual Position mousePosition( const QPoint& p ) const;
48 virtual void borders( int& left, int& right, int& top, int& bottom ) const;
49 virtual void resize( const QSize& s );
50 virtual QSize minimumSize() const;
51 virtual void activeChange();
52 virtual void captionChange();
53 virtual void iconChange();
54 virtual void maximizeChange();
55 virtual void desktopChange();
56 virtual void shadeChange();
57 virtual bool drawbound( const QRect& geom, bool clear );
58 virtual bool windowDocked( Position side );
59 virtual void reset( unsigned long changed );
60 private:
61 KCommonDecoration* decoration;
64 #endif // KCOMMONDECORATION_P_H