Databasehandlingdialogclasses  0.5.3
hk_kdeformfocus.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 #ifndef HK_KDEFORMFOCUS
12 #define HK_KDEFORMFOCUS
13 #include <hk_class.h>
14 #include <qwidget.h>
15 #include <qobject.h>
16 #include <list>
17 class hk_kdeformfocus;
18 class hk_kdesimpleform;
19 class hk_kdesimplereport;
21 class hk_report;
22 
23 class hk_marker :public QWidget,hk_class
24 {
25  Q_OBJECT
26  friend class hk_kdeformfocus;
27  public:
28  enum enum_markertype {lo,mo,ro,lm,rm,lu,mu,ru};
29  hk_marker(hk_kdesimpleform*,hk_kdeformfocus*,hk_marker::enum_markertype);
30 // hk_marker(hk_kdesimplereport*,hk_kdeformfocus*,hk_marker::enum_markertype);
31  hk_marker(hk_kdereportsection*,hk_kdeformfocus*,hk_marker::enum_markertype);
32  ~hk_marker(void);
33  void set_widget(QWidget*);
34  enum_markertype type(void);
35  void set_cursors(void);
36 
37  protected:
38  virtual void paintEvent( QPaintEvent* );
39  virtual void mousePressEvent( QMouseEvent* );
40  virtual void mouseMoveEvent( QMouseEvent* );
41  private:
42  enum_markertype p_type;
43  QWidget* p_widget;
44  QPoint p_originalposition;
45  hk_kdeformfocus* p_focus;
46  hk_kdesimpleform* p_form;
47  hk_kdesimplereport* p_report;
48  hk_kdereportsection* p_section;
49 };
50 
51 class hk_kdeformfocus :public QObject,public hk_class
52 {
53  Q_OBJECT
54  friend class hk_marker;
55  signals:
56  void size_changed();
57 
58  public:
60 // hk_kdeformfocus(hk_kdesimplereport*);
62  ~hk_kdeformfocus(void);
63  void set_widget(QWidget*);
64  QWidget* widget(void);
65  void show(void);
66  void hide(void);
67  void set_positions(void);
68  void repaint(void);
69  protected:
70  bool eventFilter(QObject* object,QEvent* event);
71 
72  private:
73  QWidget* p_widget;
74  bool p_markermove;
75  double pix_je_cm;
76  list<hk_marker*> p_markers;
77  void marker_moved(void);
78 // void clearmultiplefocus(void);
79  hk_kdereportsection* p_section;
80 };
81 #endif
Definition: hk_kdeformfocus.h:23
Definition: hk_kdereportsection.h:21
KDE Widget to display forms.
Definition: hk_kdesimpleform.h:41
KDE Widget to design and execute reports.
Definition: hk_kdesimplereport.h:42
Definition: hk_kdeformfocus.h:51