UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
zq_grid.hpp
1 /* zq_grid.hpp */
2 /* $Id: zq_grid.hpp,v 1.1 2006/04/13 15:21:37 vlad Exp $ */
3 #ifndef __zq_grid_hpp
4 #define __zq_grid_hpp
5 
6 
7 #include <qpen.h>
8 
9 #include "zq_object.hpp"
10 #include "zqb_natgrpmember.hpp"
11 
12 
21 class ZqGrid : public ZqObject, public ZqbNatGrpMember
22 {
23 public:
24 
27  ZqGrid (ZqbNatGroup& rNatAxis, Qt::Orientation eAxisOrient,
28  const char* szName = NULL);
29 
32  ZqGrid (ZqbNatGroup& rNatAxis, Qt::Orientation eAxisOrient,
33  ZqbPlaceholder* pPh, const char* szName = NULL);
34 
35 
36  /*
37  * Properties
38  */
39 
42  virtual void setPen (const QPen& pen);
43 
45  virtual const QPen& getPen () const;
46 
48  virtual QPen& pen ();
49 
52  virtual void setIntegerTicks (bool bFlag);
53 
55  virtual bool isIntegerTicks () const;
56 
57 
58  /*
59  * Main functionality
60  */
61 
63  virtual void redraw (QPainter& paint);
64 
65 protected:
66 
68  QPen m_qLinePen;
69 
73 
76  Qt::Orientation m_eAxisOrient;
77 
78 private:
79 
81  static int s_iNameCounter;
82 
83 };
84 
85 #include "zq_grid_inline.hpp"
86 
87 
88 #endif /* zq_grid.hpp */
QPen m_qLinePen
Definition: zq_grid.hpp:68
virtual QPen & pen()
Definition: zq_grid_inline.hpp:46
Definition: zqb_natgroup.hpp:35
Definition: zqb_placeholder.hpp:25
virtual bool isIntegerTicks() const
Definition: zq_grid_inline.hpp:69
Qt::Orientation m_eAxisOrient
Definition: zq_grid.hpp:76
virtual void redraw()
Definition: zqb_visible.hpp:82
ZqGrid(ZqbNatGroup &rNatAxis, Qt::Orientation eAxisOrient, const char *szName=NULL)
Definition: zq_object.hpp:36
virtual void setPen(const QPen &pen)
Definition: zq_grid_inline.hpp:24
Definition: zq_grid.hpp:21
bool m_bIntegerTicks
Definition: zq_grid.hpp:72
virtual void setIntegerTicks(bool bFlag)
Definition: zq_grid_inline.hpp:58
Definition: zqb_natgrpmember.hpp:26
virtual const QPen & getPen() const
Definition: zq_grid_inline.hpp:35