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

hk_kdebutton.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 #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 
00033     public slots:
00034         void button_clicked(void);
00035 
00036     protected:
00037         virtual bool widget_specific_coordinates(uint px,uint py,uint pwidth,uint pheight);
00038         virtual bool widget_specific_open_form(void);
00039         virtual bool widget_specific_close_form(void);
00040         virtual bool widget_specific_open_table(void);
00041         virtual bool widget_specific_open_query(void);
00042         virtual bool widget_specific_preview_report(void);
00043 
00044         virtual void widget_specific_label_changed(void);
00045         virtual void widget_specific_font_changed(void);
00046         virtual void resizeEvent (QResizeEvent *);
00047         virtual void moveEvent ( QMoveEvent * ) ;
00048         virtual void widget_specific_backgroundcolour_changed(const hk_colour& oldcolour);
00049         virtual void widget_specific_foregroundcolour_changed(const hk_colour& oldcolour);
00050         virtual void            mouseDoubleClickEvent(QMouseEvent*);
00051 
00052     private:
00053         void    reposition(void);
00054         hk_kdeform* find_existing_form(void);
00055         hk_kdeformpartwidget* find_existing_formpart(void);
00056         hk_kdereport* find_existing_report(void);
00057         hk_kdereportpartwidget* find_existing_reportpart(void);
00058 
00059 };
00060 #endif

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