Databasehandlingdialogclasses  0.5.3
hk_kdereportsection.h
1 // ****************************************************************************
2 // copyright (c) 2000-2005 Horst Knorr <hk_classes@knoda.org>
3 // This file is part of the hk_kdeclasses library.
4 // This file may be distributed and/or modified under the terms of the
5 // GNU Library Public License version 2 as published by the Free Software
6 // Foundation and appearing in the file LGPL included in the
7 // packaging of this file.
8 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
9 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
10 // ****************************************************************************
11 
12 #ifndef HK_KDEREPORTSECTION_H
13 #define HK_KDEREPORTSECTION_H
14 #include <hk_reportsection.h>
15 #include <qwidget.h>
16 class hk_kdesimplereport;
17 class QPainter;
18 class hk_kdeformfocus;
19 class QLabel;
20 
21 class hk_kdereportsection:public QWidget, public hk_reportsection
22 {
23 
24  Q_OBJECT
25 
26  public:
27  hk_kdereportsection(hk_kdesimplereport* r, const char* name = 0, WFlags fl = 0 );
28  virtual ~hk_kdereportsection();
29  hk_kdeformfocus* new_focus(void);
30  hk_kdesimplereport* kdereport(void){return p_kdereport;}
31  unsigned int max_displaywidth(void);
32  unsigned int max_displayheight(void);
33  void set_displaystring(const QString&);
34  QString displaystring(void);
35  QWidget* header(void);
36  void set_activesection(bool active);
37  void resize_section(void);
38  void adjust_sectionsize(void);
39 
40  signals:
41  void field_created(void);
42  protected:
43 
44  virtual hk_reportdata* widget_specific_new_data(void);
45  virtual void widget_specific_after_loaddata(void);
46  virtual void paintEvent(QPaintEvent* e);
47  virtual void mousePressEvent(QMouseEvent*);
48  virtual void widget_specific_offset_changed(void);
49 
50  private:
51 
52  void create_field(const QPoint& point);
53  hk_kdesimplereport* p_kdereport;
54  unsigned int p_maxdisplayheight;
55  unsigned int p_maxdisplaywidth;
56  QString p_displaystring;
57  QLabel* p_header;
58  bool p_is_active_section;
59  double pix_je_cm;
60 
61 };
62 #endif
Definition: hk_kdereportsection.h:21
KDE Widget to design and execute reports.
Definition: hk_kdesimplereport.h:42
Definition: hk_kdeformfocus.h:51