UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
zq_rubberline.hpp
1 /* zq_rubberline.hpp */
2 /* $Id: zq_rubberline.hpp,v 1.3 2006/06/23 10:23:34 guser1 Exp $ */
3 #ifndef __zq_rubberline_hpp
4 #define __zq_rubberline_hpp
5 
6 #include "zq_object.hpp"
7 
8 
14 class ZqRubberLine : public ZqObject
15 {
16 public:
17 
19  enum RangeMode {
20  Vertical = 0x01,
21  Horizontal = 0x02,
22  };
23 
24 
26  ZqRubberLine (const char* szName = NULL);
27 
29  ZqRubberLine (ZqbPlaceholder* pPh, const char* szName = NULL);
30 
31 
32  /*
33  * Properties
34  */
35 
37  virtual void setThickness (int iThickness);
38 
40  virtual int getThickness () const;
41 
44  virtual void setRangeMode (int mMode);
45 
48  virtual int getRangeMode () const;
49 
50 
51  /*
52  * Polymorphic methods
53  */
54 
56  virtual void redraw (QPainter& paint);
57 
60  virtual ZqbEventHint input (QEvent& event);
61 
64  virtual void setInputable (bool bFlag);
65 
68  virtual void line (QRect r);
69 
70 
71 protected:
72 
76  void drawRubberLine (const QRect& p);
77 
80  bool m_bDrawn;
81 
83  QRect m_qLine;
84  QPoint m_qCurrent, m_qStart;
85 
88 
91  int m_mMode;
92 
93 private:
94 
96  static int s_iNameCounter;
97 
98 };
99 
100 
101 #include "zq_rubberline_inline.hpp"
102 
103 
104 #endif /* zq_rubberline.hpp */
ZqRubberLine(const char *szName=NULL)
bool m_bDrawn
Definition: zq_rubberline.hpp:80
int m_mMode
Definition: zq_rubberline.hpp:91
Definition: zq_rubberline.hpp:14
virtual void setRangeMode(int mMode)
Definition: zq_rubberline_inline.hpp:47
Definition: zqb_placeholder.hpp:25
virtual int getRangeMode() const
Definition: zq_rubberline_inline.hpp:59
virtual void setInputable(bool bFlag)
void drawRubberLine(const QRect &p)
Definition: zq_rubberline.hpp:20
virtual void redraw()
Definition: zqb_visible.hpp:82
int m_iThickness
Definition: zq_rubberline.hpp:87
virtual void line(QRect r)
QRect m_qLine
Definition: zq_rubberline.hpp:83
RangeMode
Definition: zq_rubberline.hpp:19
Definition: zq_rubberline.hpp:21
virtual ZqbEventHint input(QEvent &event)
virtual void setThickness(int iThickness)
Definition: zq_rubberline_inline.hpp:23
virtual int getThickness() const
Definition: zq_rubberline_inline.hpp:34
Definition: zq_object.hpp:36