summaryrefslogtreecommitdiffstats
path: root/twin/clients/test/test.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-07 21:50:33 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-07 21:50:33 -0600
commit0b6057404f65218182ab27a9483a21065ef61fca (patch)
treeb8b06dfa2deb965bebfbe131a772124e3e693a96 /twin/clients/test/test.h
parent43d99cc2477266cb9072e179137f0e8485370b3d (diff)
downloadtdebase-0b6057404f65218182ab27a9483a21065ef61fca.tar.gz
tdebase-0b6057404f65218182ab27a9483a21065ef61fca.zip
Rename kwin to twin (Part 2 of 2)
Diffstat (limited to 'twin/clients/test/test.h')
-rw-r--r--twin/clients/test/test.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/twin/clients/test/test.h b/twin/clients/test/test.h
new file mode 100644
index 000000000..e1d3d51a6
--- /dev/null
+++ b/twin/clients/test/test.h
@@ -0,0 +1,49 @@
+#ifndef KWIN_TEST
+#define KWIN_TEST
+
+#include <kdecoration.h>
+#include <kdecorationfactory.h>
+#include <tqpushbutton.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 TQPoint& p ) const;
+ virtual void borders( int& left, int& right, int& top, int& bottom ) const;
+ virtual void resize( const TQSize& s );
+ virtual TQSize tqminimumSize() const;
+ virtual void activeChange() {};
+ virtual void captionChange() {};
+ virtual void maximizeChange() {};
+ virtual void desktopChange() {};
+ virtual void shadeChange() {};
+ virtual void iconChange() {};
+ virtual bool eventFilter( TQObject* o, TQEvent* e );
+ virtual void reset( unsigned long changed );
+ virtual bool animateMinimize( bool minimize );
+ private:
+ TQPushButton* button;
+ };
+
+class Factory
+ : public KDecorationFactory
+ {
+ public:
+ virtual KDecoration* createDecoration( KDecorationBridge* );
+ virtual bool reset( unsigned long changed );
+ };
+
+} // namespace
+
+#endif