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 *********************************************************************/
22 #include <kdecoration.h>
23 #include <kdecorationfactory.h>
24 #include <QPushButton>
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
;
38 Decoration( KDecorationBridge
* bridge
, KDecorationFactory
* factory
);
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
);
58 : public KDecorationFactory
61 virtual KDecoration
* createDecoration( KDecorationBridge
* );
62 virtual bool reset( unsigned long changed
);