Main Page | Class Hierarchy | Class List | Directories | File List | Class Members

hk_kdetoolbar.h

00001 // ****************************************************************************
00002 // copyright (c) 2000-2004 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.13 $
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 
00042     protected:
00043 
00044     protected slots:
00045         void designbutton_clicked(void);
00046         void viewbutton_clicked(void);
00047 //void savebutton_clicked();
00048 //void exitbutton_clicked();
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

Generated on Tue Mar 22 23:28:15 2005 for Databasehandlingdialogclasses by  doxygen 1.4.1