00001
00002
00003
00004
00005
00006
00007
00008
00009
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