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

hk_kdebutton.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 #ifndef HK_KDEBUTTON_H
00012 #define HK_KDEBUTTON_H
00013 #include "hk_button.h"
00014 #include <qpushbutton.h>
00015 class hk_form;
00016 class hk_kdeform;
00017 class hk_kdeformpartwidget;
00018 class hk_kdereport;
00019 class hk_kdereportpartwidget;
00026 class hk_kdebutton :public QPushButton,public hk_button
00027 {
00028     Q_OBJECT
00029         public:
00030         hk_kdebutton(QWidget*wid,hk_form*f=NULL) ;
00031         virtual ~hk_kdebutton(void);
00032 virtual void show_widget(void);
00033 virtual void hide_widget(void);
00034 virtual void close_widget(void);
00035 virtual bool load_icon(const hk_string& filename,bool registerchange=true);
00036 virtual void show_icon();
00037     public slots:
00038         void button_clicked(void);
00039 
00040     protected:
00041      virtual void focusInEvent ( QFocusEvent * );
00042      virtual void focusOutEvent ( QFocusEvent * );
00043      virtual void    widget_specific_tooltip_changed(void);
00044         virtual bool widget_specific_coordinates(uint px,uint py,uint pwidth,uint pheight);
00045         virtual bool widget_specific_open_form(void);
00046         virtual bool widget_specific_close_form(void);
00047         virtual bool widget_specific_open_table(void);
00048         virtual bool widget_specific_open_query(void);
00049         virtual bool widget_specific_preview_report(void);
00050         virtual bool widget_specific_open_view(void);
00051         virtual void widget_specific_enabled_changed(void);
00052         virtual void widget_specific_label_changed(void);
00053         virtual void widget_specific_font_changed(void);
00054         virtual void resizeEvent (QResizeEvent *);
00055         virtual void moveEvent ( QMoveEvent * ) ;
00056         virtual void widget_specific_backgroundcolour_changed(const hk_colour& oldcolour);
00057         virtual void widget_specific_foregroundcolour_changed(const hk_colour& oldcolour);
00058         //virtual bool    widget_specific_close_application(void);
00059         virtual void            mouseDoubleClickEvent(QMouseEvent*);
00060         virtual bool    presentationmode_changed(void);
00061 
00062     private:
00063         void    reposition(void);
00064         hk_kdeform* find_existing_form(void);
00065         hk_kdeformpartwidget* find_existing_formpart(void);
00066         hk_kdereport* find_existing_report(void);
00067         hk_kdereportpartwidget* find_existing_reportpart(void);
00068 
00069 };
00070 #endif

Generated on Tue Sep 13 05:09:15 2005 for Databasehandlingdialogclasses by  doxygen 1.4.4