summaryrefslogtreecommitdiffstats
path: root/kdeui/tests/kdockwidgettest.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
commitce4a32fe52ef09d8f5ff1dd22c001110902b60a2 (patch)
tree5ac38a06f3dde268dc7927dc155896926aaf7012 /kdeui/tests/kdockwidgettest.h
downloadtdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.tar.gz
tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.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/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/tests/kdockwidgettest.h')
-rw-r--r--kdeui/tests/kdockwidgettest.h72
1 files changed, 72 insertions, 0 deletions
diff --git a/kdeui/tests/kdockwidgettest.h b/kdeui/tests/kdockwidgettest.h
new file mode 100644
index 000000000..70d75877c
--- /dev/null
+++ b/kdeui/tests/kdockwidgettest.h
@@ -0,0 +1,72 @@
+/***************************************************************************
+ copyright : (C) 1999 by Judin Max
+ email : novaprint@mtu-net.ru
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * 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. *
+ * *
+ ***************************************************************************/
+
+#ifndef KDOCKWIDGETTEST_H
+#define KDOCKWIDGETTEST_H
+
+#include <kdockwidget.h>
+#include <kdockwidget_p.h>
+#include <qtabwidget.h>
+#include <qlabel.h>
+class QPushButton;
+
+class DockApplication : public KDockMainWindow
+{Q_OBJECT
+public:
+ DockApplication( const char* name );
+ ~DockApplication();
+
+public slots:
+ void rConfig();
+ void wConfig();
+ void cap();
+ void greenMain();
+ void blueMain();
+ void nullMain();
+ void gSetPix1();
+ void gSetPix2();
+
+protected:
+ void initMenuBar();
+ void initToolBars();
+ void initStatusBar();
+
+private:
+ void updateButton();
+ KDockWidget* dock;
+ KDockWidget* dock1;
+ KDockWidget* dock4;
+ KDockWidget* dock5;
+ KDockWidget* dock6;
+
+ QWidget* mainW;
+ QWidget* l;
+ QPushButton* m_bname;
+};
+
+class CTW:public QTabWidget,public KDockContainer
+{
+ Q_OBJECT
+public:
+ CTW(QWidget *parent):QTabWidget(parent,"MyDockContainer"),KDockContainer(){insertTab(new QLabel("BLAH",this),"BLUP");}
+ virtual ~CTW(){;}
+ KDockWidget *parentDockWidget(){return ((KDockWidget*)parent());}
+ void insertWidget (KDockWidget *w, QPixmap, const QString &, int &){qDebug("widget inserted"); insertTab(w,"NO");}
+ void setToolTip (KDockWidget *, QString &){qDebug("Tooltip set");}
+};
+
+
+#endif
+
+