00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef __browserbutton_h__
00025 #define __browserbutton_h__
00026
00027 #include "panelbutton.h"
00028
00029 class PanelBrowserMenu;
00030
00034 class BrowserButton : public PanelPopupButton
00035 {
00036 Q_OBJECT
00037
00038 public:
00039 BrowserButton( const TQString& icon, const TQString& startDir, TQWidget* parent );
00040 BrowserButton( const KConfigGroup& config, TQWidget* parent );
00041 virtual ~BrowserButton();
00042
00043 void saveConfig( KConfigGroup& config ) const;
00044
00045 virtual void properties();
00046
00047 protected slots:
00048 virtual void slotDelayedPopup();
00049 virtual void startDrag();
00050
00051 protected:
00052 void initialize( const TQString& icon, const TQString& startDir );
00053 virtual TQString tileName() { return "Browser"; }
00054 virtual void initPopup();
00055 virtual void dropEvent(TQDropEvent *ev);
00056 virtual void dragEnterEvent(TQDragEnterEvent *ev);
00057 virtual void dragLeaveEvent(TQDragLeaveEvent *ev);
00058 virtual TQString defaultIcon() const { return "kdisknav"; };
00059
00060 PanelBrowserMenu* topMenu;
00061 TQString _icon;
00062 TQTimer *_menuTimer;
00063 };
00064
00065 #endif
00066