UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
qzq_area.hpp
1 /* qzq_area.hpp */
2 /* $Id: qzq_area.hpp,v 1.12 2007/12/27 12:22:09 vlad Exp $ */
3 #ifndef __qzq_area_hpp
4 #define __qzq_area_hpp
5 
6 #include <qwidget.h>
7 #include <qpixmap.h>
8 
9 #include "zq_object.hpp"
10 #include "zqb_pixgroup.hpp"
11 #include "zqb_placeholder.hpp"
12 #include "zqb_natgrpmember.hpp"
13 
14 class QzqDynamicTip;
15 
16 
39 class QzqArea : public QWidget
40 {
41  Q_OBJECT
42 
43 public:
44 
46  QzqArea (QWidget *parent = NULL, const char* name = NULL, WFlags f = 0);
47 
49  virtual ~QzqArea ();
50 
51 
52  /*
53  * Built-in placeholder container
54  */
55 
59 
62  const ZqbPlaceholder* placeholder () const;
63 
64 
65  /*
66  * Visible functionality (small difference from ZqbVisible)
67  */
68 
75  virtual void redraw (bool bForce = false,
76  QPaintDevice* pdev = NULL,
77  QRect *pCustomRect = NULL,
78  bool bHardcopy = false);
79 
83  virtual void redrawOnSetCoord (ZqbNatGroup* pNatGrp);
84 
89  virtual bool isHardcopy () const;
90 
91 
93  virtual ZqbEventHint input (QEvent* qev);
94 
100  virtual bool updateGeometry (QPainter* paint = NULL,
101  bool bForce = false,
102  QRect *pCustomRect = NULL);
103 
108  virtual bool tip (const QPoint& p,
109  QString& qsShort, QString& qsLong);
110 
111 
118  virtual void interactiveRedraw ();
119 
120 
127  };
128 
131 
132 protected:
133 
134  /*
135  * Built-in placeholder and related functionality
136  */
137 
140 
143 
146 
150 
153 
155  QPainter m_qPainter;
156 
158  QPixmap m_qPixBuf;
159 
162 
164  ZqbNatGrpMembers m_vObservers;
165 
169 
174 
178 
179 
180  /*
181  * Event processing
182  */
183 
184  virtual void mousePressEvent (QMouseEvent* qev);
185  virtual void mouseReleaseEvent (QMouseEvent* qev);
186  virtual void mouseDoubleClickEvent (QMouseEvent* qev);
187  virtual void mouseMoveEvent (QMouseEvent* qev);
188  virtual void wheelEvent (QWheelEvent* qev);
189  virtual void keyPressEvent (QKeyEvent* qev);
190  virtual void keyReleaseEvent (QKeyEvent* qev);
191  virtual void enterEvent (QEvent* qev);
192  virtual void leaveEvent (QEvent* qev);
193  virtual void paintEvent (QPaintEvent* qev);
194  virtual void resizeEvent (QResizeEvent* qev);
195 
196 };
197 
198 
199 #endif /* qzq_area.hpp */
ZqbPixGroup m_pgy
Definition: qzq_area.hpp:142
ZqbPixGroup m_pgx
Definition: qzq_area.hpp:139
ZqObject * m_pGrabber
Definition: qzq_area.hpp:149
virtual void redrawOnSetCoord(ZqbNatGroup *pNatGrp)
QPixmap m_qPixBuf
Definition: qzq_area.hpp:158
QzqArea(QWidget *parent=NULL, const char *name=NULL, WFlags f=0)
Definition: qzq_area.hpp:125
ZqbNatGrpMembers m_vObservers
Definition: qzq_area.hpp:164
virtual bool updateGeometry(QPainter *paint=NULL, bool bForce=false, QRect *pCustomRect=NULL)
Definition: qzq_area.hpp:126
Definition: zqb_natgroup.hpp:35
DrawObjectSelection m_eDrawObjectSelection
Definition: qzq_area.hpp:177
Definition: zqb_placeholder.hpp:25
DrawObjectSelection getDrawObjectSelection() const
QPainter m_qPainter
Definition: qzq_area.hpp:155
ZqbPlaceholder * placeholder()
QzqDynamicTip * m_qDynTip
Definition: qzq_area.hpp:161
virtual ~QzqArea()
virtual void interactiveRedraw()
virtual void redraw(bool bForce=false, QPaintDevice *pdev=NULL, QRect *pCustomRect=NULL, bool bHardcopy=false)
Definition: zqb_container.hpp:23
bool m_bHardcopy
Definition: qzq_area.hpp:168
QPixmap m_qStaticPixBuf
Definition: qzq_area.hpp:173
Definition: qzq_area.hpp:39
virtual bool tip(const QPoint &p, QString &qsShort, QString &qsLong)
virtual bool isHardcopy() const
Definition: zq_object.hpp:36
virtual ZqbEventHint input(QEvent *qev)
Definition: qzq_dynamic_tip.hpp:15
DrawObjectSelection
Definition: qzq_area.hpp:123
ZqbPlaceholder m_AreaPh
Definition: qzq_area.hpp:152
ZqbContainer m_Container
Definition: qzq_area.hpp:145
Definition: qzq_area.hpp:124
Definition: zqb_pixgroup.hpp:34