UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
zq_scrollbar.hpp
1 /* zq_scrollbar.hpp */
2 /* $Id: zq_scrollbar.hpp 20080 2009-12-15 15:57:52Z vlad $ */
3 #ifndef __zq_scrollbar_hpp
4 #define __zq_scrollbar_hpp
5 
6 #include <qscrollbar.h>
7 
8 #include "zq_object.hpp"
9 #include "zqb_natgroup.hpp"
10 
11 
13 class QzqSbSensor;
14 
15 
24 class ZqScrollBar : public ZqObject, public ZqbNatGrpMember
25 {
26 public:
27 
30  ZqScrollBar (ZqbNatGroup& rNatAxis, Qt::Orientation eOrient,
31  const char* szName = NULL);
32 
35  ZqScrollBar (ZqbNatGroup& rNatAxis, Qt::Orientation eOrient,
36  ZqbPlaceholder* pPh, const char* szName = NULL);
37 
39  virtual ~ZqScrollBar ();
40 
41 
42  /*
43  * Drawing methods
44  */
45 
47  virtual void redraw (QPainter& paint);
48 
51  virtual void setDrawable (bool bFlag);
52 
53 
54  /*
55  * Position and size properties
56  */
57 
60  virtual void updateGeometry ();
61 
62 
63  /*
64  * Placement management
65  */
66 
70  virtual bool attachToPlace (ZqbPlaceholder* pPh);
71 
75  virtual bool detachFromPlace ();
76 
77 
78  /*
79  * Coordinates change processing
80  */
81 
84  virtual void onSetCoords ();
85 
87  virtual void valueChanged (int iNewValue);
88 
89 protected:
90 
93  void calcValueAndPageStep (int& iValue, int& iPageStep);
94 
96  void createScrollBar ();
97 
100  QScrollBar *m_pqScrollbar;
101 
103  Qt::Orientation m_eOrient;
104 
107 
111  bool m_bSelfProcess;
112 
113 private:
114 
116  static int s_iNameCounter;
117 
118 };
119 
120 
121 #endif /* zq_scrollbar.hpp */
virtual ~ZqScrollBar()
void createScrollBar()
virtual void valueChanged(int iNewValue)
QzqSbSensor * m_pqSbSensor
Definition: zq_scrollbar.hpp:106
virtual bool detachFromPlace()
void calcValueAndPageStep(int &iValue, int &iPageStep)
Definition: zqb_natgroup.hpp:35
Definition: zqb_placeholder.hpp:25
ZqScrollBar(ZqbNatGroup &rNatAxis, Qt::Orientation eOrient, const char *szName=NULL)
virtual void setDrawable(bool bFlag)
virtual void updateGeometry()
Qt::Orientation m_eOrient
Definition: zq_scrollbar.hpp:103
virtual void redraw()
Definition: zqb_visible.hpp:82
Definition: zq_scrollbar.hpp:24
bool m_bSelfProcess
Definition: zq_scrollbar.hpp:111
QScrollBar * m_pqScrollbar
Definition: zq_scrollbar.hpp:100
virtual void onSetCoords()
Definition: zq_object.hpp:36
virtual bool attachToPlace(ZqbPlaceholder *pPh)
Definition: zqb_natgrpmember.hpp:26
Definition: qzq_sbsensor.hpp:17