2003-09-16 19:28:03 +00:00
|
|
|
/*****************************************************************
|
|
|
|
KWin - the KDE window manager
|
|
|
|
This file is part of the KDE project.
|
|
|
|
|
|
|
|
Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org>
|
|
|
|
|
|
|
|
You can Freely distribute this program under the GNU General Public
|
|
|
|
License. See the file "COPYING" for the exact licensing terms.
|
|
|
|
******************************************************************/
|
|
|
|
|
|
|
|
#ifndef KWIN_BRIDGE_H
|
|
|
|
#define KWIN_BRIDGE_H
|
|
|
|
|
|
|
|
#include <kdecoration_p.h>
|
|
|
|
|
|
|
|
namespace KWinInternal
|
|
|
|
{
|
|
|
|
|
|
|
|
class Client;
|
|
|
|
|
|
|
|
class Bridge : public KDecorationBridge
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Bridge( Client* cl );
|
|
|
|
virtual bool isActive() const;
|
|
|
|
virtual bool isCloseable() const;
|
|
|
|
virtual bool isMaximizable() const;
|
|
|
|
virtual MaximizeMode maximizeMode() const;
|
|
|
|
virtual bool isMinimizable() const;
|
|
|
|
virtual bool providesContextHelp() const;
|
|
|
|
virtual int desktop() const;
|
|
|
|
virtual bool isModal() const;
|
|
|
|
virtual bool isShadeable() const;
|
|
|
|
virtual bool isShade() const;
|
2003-11-25 15:26:50 +00:00
|
|
|
virtual bool isSetShade() const;
|
2003-09-16 19:28:03 +00:00
|
|
|
virtual bool keepAbove() const;
|
|
|
|
virtual bool keepBelow() const;
|
|
|
|
virtual bool isMovable() const;
|
|
|
|
virtual bool isResizable() const;
|
|
|
|
virtual NET::WindowType windowType( unsigned long supported_types ) const;
|
|
|
|
virtual QIconSet icon() const;
|
|
|
|
virtual QString caption() const;
|
|
|
|
virtual void processMousePressEvent( QMouseEvent* );
|
|
|
|
virtual void showWindowMenu( QPoint );
|
2004-06-02 09:47:36 +00:00
|
|
|
virtual void showWindowMenu( const QRect & );
|
2003-09-16 19:28:03 +00:00
|
|
|
virtual void performWindowOperation( WindowOperation );
|
|
|
|
virtual void setMask( const QRegion&, int );
|
|
|
|
virtual bool isPreview() const;
|
|
|
|
virtual QRect geometry() const;
|
|
|
|
virtual QRect iconGeometry() const;
|
2003-10-27 16:28:53 +00:00
|
|
|
virtual QRegion unobscuredRegion( const QRegion& r ) const;
|
2003-09-16 19:28:03 +00:00
|
|
|
virtual QWidget* workspaceWidget() const;
|
2004-12-06 15:46:27 +00:00
|
|
|
virtual WId windowId() const;
|
2003-09-16 19:28:03 +00:00
|
|
|
virtual void closeWindow();
|
|
|
|
virtual void maximize( MaximizeMode mode );
|
|
|
|
virtual void minimize();
|
|
|
|
virtual void showContextHelp();
|
|
|
|
virtual void setDesktop( int desktop );
|
|
|
|
virtual void titlebarDblClickOperation();
|
2005-05-06 15:20:49 +00:00
|
|
|
virtual void titlebarMouseWheelOperation( int delta );
|
2003-09-16 19:28:03 +00:00
|
|
|
virtual void setShade( bool set );
|
|
|
|
virtual void setKeepAbove( bool );
|
|
|
|
virtual void setKeepBelow( bool );
|
|
|
|
virtual int currentDesktop() const;
|
|
|
|
virtual QWidget* initialParentWidget() const;
|
|
|
|
virtual Qt::WFlags initialWFlags() const;
|
|
|
|
virtual void helperShowHide( bool show );
|
2003-12-04 13:54:10 +00:00
|
|
|
virtual void grabXServer( bool grab );
|
2003-09-16 19:28:03 +00:00
|
|
|
private:
|
|
|
|
Client* c;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
#endif
|