summaryrefslogtreecommitdiffstats
path: root/kicker/extensions/sidebar/sidebarextension.h
diff options
context:
space:
mode:
Diffstat (limited to 'kicker/extensions/sidebar/sidebarextension.h')
-rw-r--r--kicker/extensions/sidebar/sidebarextension.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/kicker/extensions/sidebar/sidebarextension.h b/kicker/extensions/sidebar/sidebarextension.h
new file mode 100644
index 000000000..5a117b1ee
--- /dev/null
+++ b/kicker/extensions/sidebar/sidebarextension.h
@@ -0,0 +1,63 @@
+/***************************************************************************
+ sidebarextension.h
+ -------------------
+ begin : Sun July 20 16:00:00 CEST 2003
+ copyright : (C) 2003 Joseph Wenninger
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * 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 SIDEBAREXTENSION_H
+#define SIDEBAREXTENSION_H
+
+#include <kpanelextension.h>
+#include <kurl.h>
+#include <tdeparts/browserextension.h>
+
+class TQHBoxLayout;
+class TQVBox;
+
+class SidebarExtension : public KPanelExtension
+{
+ Q_OBJECT
+
+public:
+ SidebarExtension( const TQString& configFile,
+ Type t = Normal,
+ int actions = 0,
+ TQWidget *parent = 0, const char *name = 0 );
+
+ virtual ~SidebarExtension();
+
+ TQSize sizeHint( Position, TQSize maxSize ) const;
+ Position preferedPosition() const;
+
+ virtual void positionChange( Position position );
+
+protected:
+ virtual void about();
+ virtual void preferences();
+ virtual bool eventFilter( TQObject *o, TQEvent *e );
+protected slots:
+ void openURLRequest( const KURL &, const KParts::URLArgs &);
+ void needLayoutUpdate(bool);
+
+private:
+ int m_currentWidth;
+ int m_x;
+ TQFrame *m_resizeHandle;
+ bool m_resizing;
+ int m_expandedSize;
+ TQHBoxLayout *m_layout;
+ TQVBox *m_sbWrapper;
+};
+
+#endif
+