UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
zqb_bar_draw.hpp
1 /* zqb_bar_draw.hpp */
2 /* $Id: zqb_bar_draw.hpp 20080 2009-12-15 15:57:52Z vlad $
3  Instantiated from ZBarDraw.H Revision: 1.7 Date: 2003/01/31 17:11:47
4  */
5 #ifndef __zqb_bar_draw_hpp
6 #define __zqb_bar_draw_hpp
7 
8 #include <qpainter.h>
9 
10 #include "zqb_palette.hpp"
11 
12 
17 class ZqbBarDraw
18 {
19 protected:
20 
23  bool m_bFlip;
24 
26  QPainter &m_qPaint;
27 
29  QRect m_qClipRect;
30 
33 
36  int m_iColor;
37 
39  QVector<QLine> m_Buffer;
40 
41 public:
42 
46  ZqbBarDraw (QPainter& paint, const QRect& clip);
47 
49  virtual ~ZqbBarDraw ();
50 
51 
54  virtual void flip (bool new_flag) {
55  m_bFlip = new_flag;
56  }
57 
59  virtual bool isFlipped () const {
60  return m_bFlip;
61  }
62 
65  virtual bool clipAndFlip (QLine& dest, int pos, int start, int end);
66 
68  virtual void setPalette (const ZqbPalette& zpal);
69 
73  virtual void drawBar (int pos, int start, int end, int ci);
74 
78  virtual void drawBar (int pos, int start, int end, const QColor& c);
79 
83  virtual void drawBar (int pos, int start, int end);
84 
86  virtual void setColor (int ci);
87 
89  virtual void flush ();
90 
91 };
92 
93 
94 #endif /* zqb_bar_draw.hpp */
bool m_bFlip
Definition: zqb_bar_draw.hpp:23
virtual void flush()
virtual void flip(bool new_flag)
Definition: zqb_bar_draw.hpp:54
QVector< QLine > m_Buffer
Definition: zqb_bar_draw.hpp:39
virtual void setColor(int ci)
ZqbPalette m_zPal
Definition: zqb_bar_draw.hpp:37
QPainter & m_qPaint
Definition: zqb_bar_draw.hpp:31
virtual bool isFlipped() const
Definition: zqb_bar_draw.hpp:59
virtual ~ZqbBarDraw()
virtual bool clipAndFlip(QPointArray &dest, int pos, int start, int end)
virtual void setPalette(const ZqbPalette &zpal)
virtual void drawBar(int pos, int start, int end, int ci)
ZqbBarDraw(QPainter &paint, const QRect &clip, bool bHardcopy)
Definition: zqb_bar_draw.hpp:17
QRect m_qClipRect
Definition: zqb_bar_draw.hpp:34
Definition: zqb_palette.hpp:17
int m_iColor
Definition: zqb_bar_draw.hpp:41