Databasehandlingdialogclasses  0.5.3
hk_kdetoolbar.h
1 // ****************************************************************************
2 // copyright (c) 2000-2005 Horst Knorr <hk_classes@knoda.org>
3 // This file is part of the hk_kdeclasses library.
4 // This file may be distributed and/or modified under the terms of the
5 // GNU Library Public License version 2 as published by the Free Software
6 // Foundation and appearing in the file LGPL included in the
7 // packaging of this file.
8 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
9 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
10 // ****************************************************************************
11 //Version $Revision: 1.16 $
12 
13 #ifndef HK_KDETOOLBAR_H
14 #define HK_KDETOOLBAR_H
15 //#include <hk_kdetoolbarbase.h>
16 #include <hk_dsvisible.h>
17 #include <qstring.h>
18 #include <qobject.h>
19 
20 class QToolButton;
21 class QVBoxLayout;
22 class QHBoxLayout;
23 class KAction;
24 class KToggleAction;
25 
26 class hk_kdetoolbar : public QObject ,public hk_dsvisible
27 {
28  Q_OBJECT
29  public:
30  hk_kdetoolbar(QWidget* w=NULL,const char* s=NULL);
31  ~hk_kdetoolbar(void);
32  void set_designmode(void);
33  void set_viewmode(void);
34  void set_nodesignmode(bool);
35  bool is_filter_activated(void);
36  void set_filteractions(KToggleAction* filterdefinition,KToggleAction* filterexec);
37  public slots:
38  void deactivate_filter(void);
39 
40  void set_filter(const QString& s);
41  void set_filter(bool);
42 
43  protected:
44 
45  protected slots:
46  void designbutton_clicked(void);
47  void viewbutton_clicked(void);
48 //void savebutton_clicked();
49 //void exitbutton_clicked();
50 
51  void filterdefinebutton_clicked();
52  void filterexecbutton_clicked();
53  void activate_filter();
54  private:
55  bool p_showqbebutton;
56  bool p_showsavebutton;
57  bool p_showfilterbutton;
58  bool p_nodesignmode;
59  bool p_showsearchbutton;
60  bool p_is_activated;
61  bool p_filter_should_be_activated;
62  bool p_use_filter;
63  QString p_filter;
64  hk_string p_originalfilter;
65  bool p_viewmode;
66  QWidget* p_parent;
67  KToggleAction* p_filterdefinitionaction;
68  KToggleAction* p_filterexecaction;
69 };
70 #endif
Definition: hk_kdetoolbar.h:26