summaryrefslogtreecommitdiffstats
path: root/kwin/clients/test/test.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit4aed2c8219774f5d797760606b8489a92ddc5163 (patch)
tree3f8c130f7d269626bf6a9447407ef6c35954426a /kwin/clients/test/test.h
downloadtdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz
tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kwin/clients/test/test.h')
-rw-r--r--kwin/clients/test/test.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/kwin/clients/test/test.h b/kwin/clients/test/test.h
new file mode 100644
index 000000000..56e21dbc0
--- /dev/null
+++ b/kwin/clients/test/test.h
@@ -0,0 +1,49 @@
+#ifndef KWIN_TEST
+#define KWIN_TEST
+
+#include <kdecoration.h>
+#include <kdecorationfactory.h>
+#include <qpushbutton.h>
+
+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