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

hk_kdeboolean.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 
00012 #ifndef HK_KDEBOOLEAN
00013 #define HK_KDEBOOLEAN
00014 #include <qcheckbox.h>
00015 #include <hk_dsboolean.h>
00016 class hk_form;
00027 class hk_kdeboolean : public QCheckBox, public hk_dsboolean
00028 {
00029     Q_OBJECT
00030         public:
00031         hk_kdeboolean(QWidget* wid,hk_form* form=NULL);
00032         ~hk_kdeboolean(void);
00033 
00034     protected:
00035         virtual bool    widget_specific_row_change(void);
00036         virtual bool    widget_specific_coordinates(unsigned int px,unsigned int py,unsigned int pwidth,unsigned int pheight);
00037         virtual void    widget_specific_label_changed(void);
00038         virtual void    widget_specific_font_changed(void);
00039         virtual void    widget_specific_insert_mode(void);
00040         virtual void    widget_specific_row_deleted(void);
00041         virtual void    widget_specific_row_added(void);
00042         void   keyPressEvent ( QKeyEvent * e );
00043         virtual void resizeEvent (QResizeEvent *);
00044         virtual void  moveEvent ( QMoveEvent * ) ;
00045         virtual void mousePressEvent(QMouseEvent* m);
00046         virtual void            mouseDoubleClickEvent(QMouseEvent*);
00047         virtual void widget_specific_backgroundcolour_changed(const hk_colour& oldcolour);
00048         virtual void widget_specific_foregroundcolour_changed(const hk_colour& oldcolour);
00049 
00050     protected slots:
00051         void     slot_data_changed(void);
00052 
00053     private:
00054         void    reposition(void);
00055         bool p_widget_specific_row_change;
00056         void    widget_specific_enable_disable(void);
00057 };
00058 #endif

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