UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
zq_bbox.hpp
1 /* zq_bbox.hpp */
2 /* $Id: zq_bbox.hpp,v 1.5 2005/11/14 12:26:45 vlad Exp $ */
3 #ifndef __zq_bbox_hpp
4 #define __zq_bbox_hpp
5 
6 #include <qpen.h>
7 
8 #include "zq_object.hpp"
9 
10 
20 class ZqBBox : public ZqObject
21 {
22 public:
23 
25  ZqBBox (const char* szName = NULL);
26 
28  ZqBBox (ZqbPlaceholder* pPh, const char* szName = NULL);
29 
30 
31  /*
32  * Properties
33  */
34 
37  virtual void setPen (const QPen& pen);
38 
40  virtual const QPen& getPen () const;
41 
43  virtual QPen& pen ();
44 
49  virtual void setOffset (int offset);
50 
52  virtual int getOffset () const;
53 
54 
55  /*
56  * Polymorphic methods
57  */
58 
60  virtual void redraw (QPainter& paint);
61 
62 protected:
63 
66  QPen m_qPen;
67 
72  int m_iOffset;
73 
74 private:
75 
77  static int s_iNameCounter;
78 
79 };
80 
81 
82 #include "zq_bbox_inline.hpp"
83 
84 
85 #endif /* zq_bbox.hpp */
virtual QPen & pen()
Definition: zq_bbox_inline.hpp:46
virtual void setOffset(int offset)
Definition: zq_bbox_inline.hpp:60
Definition: zqb_placeholder.hpp:25
int m_iOffset
Definition: zq_bbox.hpp:72
virtual void setPen(const QPen &pen)
Definition: zq_bbox_inline.hpp:24
virtual int getOffset() const
Definition: zq_bbox_inline.hpp:71
QPen m_qPen
Definition: zq_bbox.hpp:66
virtual void redraw()
Definition: zqb_visible.hpp:82
ZqBBox(const char *szName=NULL)
Definition: zq_object.hpp:36
virtual const QPen & getPen() const
Definition: zq_bbox_inline.hpp:35
Definition: zq_bbox.hpp:20