00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef HK_KDETOOLBAR_H
00014 #define HK_KDETOOLBAR_H
00015
00016 #include <hk_dsvisible.h>
00017 #include <qstring.h>
00018 #include <qobject.h>
00019
00020 class QToolButton;
00021 class QVBoxLayout;
00022 class QHBoxLayout;
00023 class KAction;
00024 class KToggleAction;
00025
00026 class hk_kdetoolbar : public QObject ,public hk_dsvisible
00027 {
00028 Q_OBJECT
00029 public:
00030 hk_kdetoolbar(QWidget* w=NULL,const char* s=NULL);
00031 ~hk_kdetoolbar(void);
00032 void set_designmode(void);
00033 void set_viewmode(void);
00034 void set_nodesignmode(bool);
00035 bool is_filter_activated(void);
00036 void set_filteractions(KAction* filterdefinition,KToggleAction* filterexec);
00037 public slots:
00038 void deactivate_filter(void);
00039
00040 void set_filter(const QString& s);
00041 void set_filter(bool);
00042
00043 protected:
00044
00045 protected slots:
00046 void designbutton_clicked(void);
00047 void viewbutton_clicked(void);
00048
00049
00050
00051 void filterdefinebutton_clicked();
00052 void filterexecbutton_clicked();
00053 void activate_filter();
00054 private:
00055 bool p_showqbebutton;
00056 bool p_showsavebutton;
00057 bool p_showfilterbutton;
00058 bool p_nodesignmode;
00059 bool p_showsearchbutton;
00060 bool p_is_activated;
00061 bool p_filter_should_be_activated;
00062 bool p_use_filter;
00063 QString p_filter;
00064 hk_string p_originalfilter;
00065 bool p_viewmode;
00066 QWidget* p_parent;
00067 KAction* p_filterdefinitionaction;
00068 KToggleAction* p_filterexecaction;
00069 };
00070 #endif