hk_kdetoolbar.h

00001 // ****************************************************************************
00002 // copyright (c) 2000-2005 Horst Knorr <hk_classes@knoda.org>  
00003 // This file is part of the hk_kdeclasses library.
00004 // This file may be distributed and/or modified under the terms of the
00005 // GNU Library Public License version 2 as published by the Free Software
00006 // Foundation and appearing in the file LGPL included in the
00007 // packaging of this file.
00008 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00009 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00010 // ****************************************************************************
00011 //Version $Revision: 1.15 $
00012 
00013 #ifndef HK_KDETOOLBAR_H
00014 #define HK_KDETOOLBAR_H
00015 //#include <hk_kdetoolbarbase.h>
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 //void savebutton_clicked();
00049 //void exitbutton_clicked();
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

Generated on Tue Sep 25 22:39:06 2007 for Databasehandlingdialogclasses by  doxygen 1.5.3