UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
zqb_pixgrpmember.hpp
1 /* zqb_pixgrpmember.hpp */
2 /* $Id: zqb_pixgrpmember.hpp,v 1.3 2007/03/08 08:14:43 rus1 Exp $ */
3 #ifndef __zqb_pixgrpmember_hpp
4 #define __zqb_pixgrpmember_hpp
5 
6 #include <vector>
7 
8 #include "zqb_pixgrpcontrol.hpp"
9 
10 //modify by haoyg,begin
11 #ifdef HAOYG
12 class QPainter;
13 #endif
14 //modify by haoyg,end;
15 
16 class ZqbPixGroup;
17 
18 
25 {
26 
27  friend class ZqbPixGroup;
28 
29 public:
30 
33  ZqbPixGrpMember (ZqbPixGroup* pPixGroup);
34 
36  virtual ~ZqbPixGrpMember ();
37 
38 
39  /*
40  * Specific operations for setting size policy for exact group
41  * member
42  */
43 
45  ZqbPixGroup& group () const;
46 
49  void setHint (ZqbSizeHint hint, int limitsize = 0);
50 
53  void setHintLimit (int limitsize);
54 
55 //modify by haoyg,begin
56 #ifdef HAOYG
57  void setHint (const QPainter &paint,
58  ZqbSizeHint hint, int limitsize = 0);
59  void setHintLimit (const QPainter &paint, int limitsize);
60 private:
61  double getCGMScaleNorm (const QPainter &paint);
62 public:
63 #endif
64 //modify by haoyg,end
65 
66  /*
67  * Group geometry management operations
68  */
69 
71  virtual int getSize () const;
72 
74  virtual int getCoord () const;
75 
77  virtual void getCoords (int c[2]) const;
78 
79 
82  virtual bool setCoords (int c[2]);
83 
86  virtual bool setCoord (int c);
87 
90  virtual bool setSize (int d);
91 
94  virtual ZqbSizeHint getHint () const;
95 
98  virtual int getHintLimit () const;
99 
100 
101  /*
102  * Placement support operations
103  */
104 
107  virtual bool isPlaced () const;
108 
110  virtual void setPlaced (bool bFlag);
111 
112 
113 protected:/* data */
114 
116  ZqbSizeHint m_eHint;
117 
120 
123 
124 };
125 
126 
131 typedef std::vector<ZqbPixGrpMember*> ZqbPixGrpMembers;
132 
133 
134 
135 #endif /* zqb_pixgrpmember.hpp */
virtual ~ZqbPixGrpMember()
ZqbSizeHint m_eHint
Definition: zqb_pixgrpmember.hpp:116
void setHintLimit(int limitsize)
ZqbPixGrpMember(ZqbPixGroup *pPixGroup)
virtual void setPlaced(bool bFlag)
ZqbPixGroup & group() const
virtual bool isPlaced() const
virtual int getSize() const
int m_iHintLimit
Definition: zqb_pixgrpmember.hpp:119
virtual bool setCoord(int c)
virtual ZqbSizeHint getHint() const
virtual bool setSize(int d)
Definition: zqb_pixgrpmember.hpp:24
virtual void getCoords(int c[2]) const
Definition: zqb_pixgrpcontrol.hpp:29
virtual int getCoord() const
virtual int getHintLimit() const
ZqbPixGroup * m_pPixGroup
Definition: zqb_pixgrpmember.hpp:122
void setHint(ZqbSizeHint hint, int limitsize=0)
virtual bool setCoords(int c[2])
Definition: zqb_pixgroup.hpp:34