00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef SIDEBAREXTENSION_H
00018 #define SIDEBAREXTENSION_H
00019
00020 #include <kpanelextension.h>
00021 #include <kurl.h>
00022 #include <kparts/browserextension.h>
00023
00024 class TQHBoxLayout;
00025 class TQVBox;
00026
00027 class SidebarExtension : public KPanelExtension
00028 {
00029 Q_OBJECT
00030
00031 public:
00032 SidebarExtension( const TQString& configFile,
00033 Type t = Normal,
00034 int actions = 0,
00035 TQWidget *parent = 0, const char *name = 0 );
00036
00037 virtual ~SidebarExtension();
00038
00039 TQSize sizeHint( Position, TQSize maxSize ) const;
00040 Position preferedPosition() const;
00041
00042 virtual void positionChange( Position position );
00043
00044 protected:
00045 virtual void about();
00046 virtual void preferences();
00047 virtual bool eventFilter( TQObject *o, TQEvent *e );
00048 protected slots:
00049 void openURLRequest( const KURL &, const KParts::URLArgs &);
00050 void needLayoutUpdate(bool);
00051
00052 private:
00053 int m_currentWidth;
00054 int m_x;
00055 TQFrame *m_resizeHandle;
00056 bool m_resizing;
00057 int m_expandedSize;
00058 TQHBoxLayout *m_layout;
00059 TQVBox *m_sbWrapper;
00060 };
00061
00062 #endif
00063