add more spacing
[personal-kdebase.git] / workspace / kwin / clients / test / test.h
bloba383716e8aa13da4648834e3834234bd7cef863b
1 /********************************************************************
3 Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 *********************************************************************/
19 #ifndef KWIN_TEST
20 #define KWIN_TEST
22 #include <kdecoration.h>
23 #include <kdecorationfactory.h>
24 #include <QPushButton>
26 namespace KWinTest
29 const int SUPPORTED_WINDOW_TYPES_MASK = NET::NormalMask | NET::DesktopMask | NET::DockMask
30 | NET::ToolbarMask | NET::MenuMask | NET::DialogMask /*| NET::OverrideMask*/ | NET::TopMenuMask
31 | NET::UtilityMask | NET::SplashMask;
33 class Decoration
34 : public KDecoration
36 Q_OBJECT
37 public:
38 Decoration( KDecorationBridge* bridge, KDecorationFactory* factory );
39 virtual void init();
40 virtual MousePosition mousePosition( const QPoint& p ) const;
41 virtual void borders( int& left, int& right, int& top, int& bottom ) const;
42 virtual void resize( const QSize& s );
43 virtual QSize minimumSize() const;
44 virtual void activeChange() {};
45 virtual void captionChange() {};
46 virtual void maximizeChange() {};
47 virtual void desktopChange() {};
48 virtual void shadeChange() {};
49 virtual void iconChange() {};
50 virtual bool eventFilter( QObject* o, QEvent* e );
51 virtual void reset( unsigned long changed );
52 virtual bool animateMinimize( bool minimize );
53 private:
54 QPushButton* button;
57 class Factory
58 : public KDecorationFactory
60 public:
61 virtual KDecoration* createDecoration( KDecorationBridge* );
62 virtual bool reset( unsigned long changed );
65 } // namespace
67 #endif