summaryrefslogtreecommitdiffstats
path: root/knights/tabpage.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-17 01:24:36 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-17 01:24:36 +0000
commita8c9924456e5335c964e4e55b2dde1963c88726f (patch)
treef5bf107ba079ae460536da778ce2da5e6c68aa69 /knights/tabpage.h
downloadknights-a8c9924456e5335c964e4e55b2dde1963c88726f.tar.gz
knights-a8c9924456e5335c964e4e55b2dde1963c88726f.zip
Added KDE3 version of Knights
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/knights@1091568 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'knights/tabpage.h')
-rw-r--r--knights/tabpage.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/knights/tabpage.h b/knights/tabpage.h
new file mode 100644
index 0000000..d5aeb28
--- /dev/null
+++ b/knights/tabpage.h
@@ -0,0 +1,64 @@
+/***************************************************************************
+ tabpage.h - description
+ -------------------
+ begin : Fri Sep 13 2002
+ copyright : (C) 2003 by Troy Corbin Jr.
+ email : tcorbin@users.sf.net
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * 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 TABPAGE_H
+#define TABPAGE_H
+
+#include <qframe.h>
+#include <qwidget.h>
+#include <qvbox.h>
+#include <qhbox.h>
+#include <qstring.h>
+#include "tabbox.h"
+
+/**
+ *@author Troy Corbin Jr.
+ */
+class resource;
+class QToolButton;
+class TabGrip;
+
+class TabPage : public QVBox
+{
+ Q_OBJECT
+ public:
+ TabPage( QWidget *parent, QWidget *child, resource *rsrc );
+ ~TabPage();
+ void setCaption( const QString& );
+ QWidget* getChild( void );
+
+ protected slots:
+ void tabDragged( const QPoint&, const QPoint& );
+
+ signals:
+ void newParent( TabBox* );
+ void requestDestruction( void );
+
+ protected:
+ TabBox* parentTabBox( void );
+
+ private:
+ QString myCaption;
+ QHBox *actionBar;
+ TabGrip *grip;
+ QToolButton *closeButton;
+
+ QWidget *myChild;
+ resource *myResource;
+};
+
+#endif