UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
zq_rubberbox.hpp
1 /* zq_rubberbox.hpp */
2 /* $Id: zq_rubberbox.hpp,v 1.4 2006/03/04 08:09:01 rus1 Exp $ */
3 #ifndef __zq_rubberbox_hpp
4 #define __zq_rubberbox_hpp
5 
6 #include "zq_object.hpp"
7 
8 
14 class ZqRubberBox : public ZqObject
15 {
16 public:
17 
19  enum RangeMode {
20  Vertical = 0x01,
21  Horizontal = 0x02,
22  Rectangle = 0x03
25  };
26 
27 
29  ZqRubberBox (const char* szName = NULL);
30 
32  ZqRubberBox (ZqbPlaceholder* pPh, const char* szName = NULL);
33 
34 
35  /*
36  * Properties
37  */
38 
40  virtual void setThickness (int iThickness);
41 
43  virtual int getThickness () const;
44 
48  virtual void setRangeMode (int mMode);
49 
52  virtual int getRangeMode () const;
53 
55  virtual void setSensExtWidth (int iWidth);
56 
58  virtual int getSensExtWidth () const;
59 
60 
61  /*
62  * Polymorphic methods
63  */
64 
67  virtual ZqbEventHint input (QEvent& event);
68 
71  virtual void setInputable (bool bFlag);
72 
75  virtual void box (QRect r);
76 
80  virtual void click (QRect r);
81 
82 
83 protected:
84 
88  void drawRubberRect (const QRect& r);
89 
92  bool m_bDrawn;
93 
95  QRect m_qRect;
96  QPoint m_qCurrent, m_qStart;
97 
100 
103  int m_mMode;
104 
108 
109 private:
110 
112  static int s_iNameCounter;
113 
114 };
115 
116 
117 #include "zq_rubberbox_inline.hpp"
118 
119 
120 #endif /* zq_rubberbox.hpp */
int m_iExtWidth
Definition: zq_rubberbox.hpp:107
Definition: zq_rubberbox.hpp:14
virtual int getRangeMode() const
Definition: zq_rubberbox_inline.hpp:59
ZqRubberBox(const char *szName=NULL)
virtual void setThickness(int iThickness)
Definition: zq_rubberbox_inline.hpp:23
virtual void setSensExtWidth(int iWidth)
Definition: zq_rubberbox_inline.hpp:70
Definition: zqb_placeholder.hpp:25
QRect m_qRect
Definition: zq_rubberbox.hpp:95
Definition: zq_rubberbox.hpp:22
virtual void setRangeMode(int mMode)
Definition: zq_rubberbox_inline.hpp:47
bool m_bDrawn
Definition: zq_rubberbox.hpp:92
int m_mMode
Definition: zq_rubberbox.hpp:103
RangeMode
Definition: zq_rubberbox.hpp:19
void drawRubberRect(const QRect &r)
virtual void click(QRect r)
int m_iThickness
Definition: zq_rubberbox.hpp:99
virtual int getSensExtWidth() const
Definition: zq_rubberbox_inline.hpp:82
virtual void setInputable(bool bFlag)
Definition: zq_object.hpp:36
virtual void box(QRect r)
Definition: zq_rubberbox.hpp:20
virtual ZqbEventHint input(QEvent &event)
Definition: zq_rubberbox.hpp:21
virtual int getThickness() const
Definition: zq_rubberbox_inline.hpp:34