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

hk_kdereportsection.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_KDEREPORTSECTION_H
00013 #define HK_KDEREPORTSECTION_H
00014 #include <hk_reportsection.h>
00015 #include <qwidget.h>
00016 class hk_kdesimplereport;
00017 class QPainter;
00018 class hk_kdeformfocus;
00019 class QLabel;
00020 
00021 class hk_kdereportsection:public QWidget, public hk_reportsection
00022 {
00023 
00024     Q_OBJECT
00025 
00026         public:
00027         hk_kdereportsection(hk_kdesimplereport* r, const char* name = 0, WFlags fl = 0 );
00028         virtual    ~hk_kdereportsection();
00029         hk_kdeformfocus* new_focus(void);
00030         hk_kdesimplereport* kdereport(void){return p_kdereport;}
00031         unsigned int max_displaywidth(void);
00032         unsigned int max_displayheight(void);
00033         void set_displaystring(const QString&);
00034         QString displaystring(void);
00035         QWidget* header(void);
00036         void set_activesection(bool active);
00037         void resize_section(void);
00038         void adjust_sectionsize(void);
00039 
00040         signals:
00041         void field_created(void);
00042     protected:
00043 
00044         virtual hk_reportdata* widget_specific_new_data(void);
00045         virtual void widget_specific_after_loaddata(void);
00046         virtual void paintEvent(QPaintEvent* e);
00047         virtual void mousePressEvent(QMouseEvent*);
00048         virtual void widget_specific_offset_changed(void);
00049 
00050     private:
00051 
00052         void create_field(const QPoint& point);
00053         hk_kdesimplereport* p_kdereport;
00054         unsigned int p_maxdisplayheight;
00055         unsigned int p_maxdisplaywidth;
00056         QString p_displaystring;
00057         QLabel* p_header;
00058         bool p_is_active_section;
00059 };
00060 #endif

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