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
00042 protected:
00043
00044 protected slots:
00045 void designbutton_clicked(void);
00046 void viewbutton_clicked(void);
00047
00048
00049
00050 void filterdefinebutton_clicked();
00051 void filterexecbutton_clicked();
00052 void activate_filter();
00053 private:
00054 bool p_showqbebutton;
00055 bool p_showsavebutton;
00056 bool p_showfilterbutton;
00057 bool p_nodesignmode;
00058 bool p_showsearchbutton;
00059 bool p_is_activated;
00060 bool p_filter_should_be_activated;
00061 QString p_filter;
00062 hk_string p_originalfilter;
00063 bool p_viewmode;
00064 QWidget* p_parent;
00065 KAction* p_filterdefinitionaction;
00066 KToggleAction* p_filterexecaction;
00067 };
00068 #endif