Databasehandlingdialogclasses  0.5.3
hk_kdebutton.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 #ifndef HK_KDEBUTTON_H
12 #define HK_KDEBUTTON_H
13 #include "hk_button.h"
14 #include <qpushbutton.h>
15 class hk_form;
16 class hk_kdeform;
18 class hk_kdereport;
26 class hk_kdebutton :public QPushButton,public hk_button
27 {
28  Q_OBJECT
29  public:
30  hk_kdebutton(QWidget*wid,hk_form*f=NULL) ;
31  virtual ~hk_kdebutton(void);
32 virtual void show_widget(void);
33 virtual void hide_widget(void);
34 virtual bool close_widget(void);
35 virtual bool load_icon(const hk_string& filename,bool registerchange=true);
36 virtual void show_icon();
37 virtual void set_is_togglebutton(bool,bool registerchange=true,bool forcesetting=false);
38 virtual void set_is_pushed(bool,bool registerchange=true,bool forcesetting=false);
39  public slots:
40  void button_clicked(void);
41 
42 
43  protected slots:
44  void toggle_state_changed(int state);
45 
46  protected:
47  virtual void focusInEvent ( QFocusEvent * );
48  virtual void focusOutEvent ( QFocusEvent * );
49  virtual void widget_specific_tooltip_changed(void);
50  virtual bool widget_specific_coordinates(uint px,uint py,uint pwidth,uint pheight);
51  virtual bool widget_specific_open_form(void);
52  virtual bool widget_specific_close_form(void);
53  virtual bool widget_specific_open_table(void);
54  virtual bool widget_specific_open_query(void);
55  virtual bool widget_specific_preview_report(void);
56  virtual bool widget_specific_open_view(void);
57  virtual void widget_specific_enabled_changed(void);
58  virtual void widget_specific_label_changed(void);
59  virtual void widget_specific_font_changed(void);
60  virtual void resizeEvent (QResizeEvent *);
61  virtual void moveEvent ( QMoveEvent * ) ;
62  virtual void widget_specific_backgroundcolour_changed(const hk_colour& oldcolour);
63  virtual void widget_specific_foregroundcolour_changed(const hk_colour& oldcolour);
64  //virtual bool widget_specific_close_application(void);
65  virtual void mouseDoubleClickEvent(QMouseEvent*);
66  virtual bool presentationmode_changed(void);
67 
68  private:
69  void reposition(void);
70  hk_kdeform* find_existing_form(void);
71  hk_kdeformpartwidget* find_existing_formpart(void);
72  hk_kdereport* find_existing_report(void);
73  hk_kdereportpartwidget* find_existing_reportpart(void);
74 
75 };
76 #endif
KDE high level widget to display and design reports.
Definition: hk_kdereportpartwidget.h:45
base class for buttons in forms.
Definition: hk_kdebutton.h:26
KDE high level widget to display and design forms.
Definition: hk_kdeform.h:49
KDE high level widget to display and design reports.
Definition: hk_kdereport.h:45
KDE high level widget to display and design forms.
Definition: hk_kdeformpartwidget.h:48