fc23037d3a
but not explicitly the license, there I assumed they're licensed under the same license as the rest of KWin, which is GPLv2+ as of now. CC-ing all people mentioned as copyright holders just in case somebody wants some other license, e.g. the X11 license KWin used to be licensed under until KDE3.2. Please check with other relevant contributors and change accordingly in such case. CCMAIL: Karol Szwed <gallium@kde.org> CCMAIL: Luciano Montanaro <mikelima@cirulla.net> CCMAIL: Sandro Giessl <sandro@giessl.com> CCMAIL: Daniel M. Duley <mosfet@kde.org> CCMAIL: Chris Lee <clee@kde.org> svn path=/trunk/KDE/kdebase/workspace/; revision=742990
67 lines
2.2 KiB
C++
67 lines
2.2 KiB
C++
/********************************************************************
|
|
|
|
Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org>
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*********************************************************************/
|
|
|
|
#ifndef KWIN_TEST
|
|
#define KWIN_TEST
|
|
|
|
#include <kdecoration.h>
|
|
#include <kdecorationfactory.h>
|
|
#include <QPushButton>
|
|
|
|
namespace KWinTest
|
|
{
|
|
|
|
const int SUPPORTED_WINDOW_TYPES_MASK = NET::NormalMask | NET::DesktopMask | NET::DockMask
|
|
| NET::ToolbarMask | NET::MenuMask | NET::DialogMask /*| NET::OverrideMask*/ | NET::TopMenuMask
|
|
| NET::UtilityMask | NET::SplashMask;
|
|
|
|
class Decoration
|
|
: public KDecoration
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
Decoration( KDecorationBridge* bridge, KDecorationFactory* factory );
|
|
virtual void init();
|
|
virtual MousePosition mousePosition( const QPoint& p ) const;
|
|
virtual void borders( int& left, int& right, int& top, int& bottom ) const;
|
|
virtual void resize( const QSize& s );
|
|
virtual QSize minimumSize() const;
|
|
virtual void activeChange() {};
|
|
virtual void captionChange() {};
|
|
virtual void maximizeChange() {};
|
|
virtual void desktopChange() {};
|
|
virtual void shadeChange() {};
|
|
virtual void iconChange() {};
|
|
virtual bool eventFilter( QObject* o, QEvent* e );
|
|
virtual void reset( unsigned long changed );
|
|
virtual bool animateMinimize( bool minimize );
|
|
private:
|
|
QPushButton* button;
|
|
};
|
|
|
|
class Factory
|
|
: public KDecorationFactory
|
|
{
|
|
public:
|
|
virtual KDecoration* createDecoration( KDecorationBridge* );
|
|
virtual bool reset( unsigned long changed );
|
|
};
|
|
|
|
} // namespace
|
|
|
|
#endif
|