~ubuntu-branches/ubuntu/precise/ipe/precise

« back to all changes in this revision

Viewing changes to src/ipecanvas/ipeoverlay.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2005-02-24 22:09:16 UTC
  • mfrom: (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050224220916-9vxiiqjz066r5489
Tags: 6.0pre23-2
debian/control: Ipe should depend on exact version of libipe.
Closes: #296771.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
  IpeOverlayPainter(const IpeStyleSheet *sheet, QPainter *painter);
57
57
  virtual ~IpeOverlayPainter() { }
58
58
 
59
 
  virtual void BeginPath(const IpeVector &v);
60
 
  virtual void BeginClosedPath(const IpeVector &v);
61
 
  virtual void LineTo(const IpeVector &v);
62
 
  virtual void CurveTo(const IpeVector &v1, const IpeVector &v2,
63
 
                       const IpeVector &v3);
64
 
  virtual void EndPath();
65
 
  virtual void EndClosedPath();
 
59
protected:
 
60
  virtual void DoMoveTo(const IpeVector &v);
 
61
  virtual void DoLineTo(const IpeVector &v);
 
62
  virtual void DoCurveTo(const IpeVector &v1, const IpeVector &v2,
 
63
                         const IpeVector &v3);
 
64
  virtual void DoClosePath();
66
65
 
67
 
  virtual void DrawBitmap(IpeBitmap bitmap);
68
 
  virtual void DrawText(const IpeText *text);
 
66
  virtual void DoDrawBitmap(IpeBitmap bitmap);
 
67
  virtual void DoDrawText(const IpeText *text);
69
68
 
70
69
private:
71
70
  QPainter *iPainter;
134
133
 
135
134
class IpeSelecting : public IpeOverlay {
136
135
 public:
137
 
  IpeSelecting(QMouseEvent *ev, IpePage *page, IpeCanvas *canvas,
138
 
               bool nonDestructive, int selectDistance, int view,
 
136
  IpeSelecting(QMouseEvent *ev, IpePage *page, int view, IpeCanvas *canvas,
 
137
               bool nonDestructive, int selectDistance,
139
138
               IpeOverlayServices *services);
140
139
 
141
140
  virtual void Draw(QPaintEvent *ev, QPainter *painter) const;
160
159
  };
161
160
  std::vector<SObj> iObjs;
162
161
  int iCur;
 
162
  int iView;
163
163
 
164
164
  bool iDragging;
165
165
  IpeVector iCorner;
171
171
 public:
172
172
  enum TType { EMove, EScale, EStretch, ERotate };
173
173
 
174
 
  IpeTransforming(QMouseEvent *ev, IpePage *page,
 
174
  IpeTransforming(QMouseEvent *ev, IpePage *page, int view,
175
175
                  IpeCanvas *canvas, TType type,
176
176
                  IpeOverlayServices *services);
177
177
  bool FindObjects(int selectDistance);
186
186
 
187
187
 private:
188
188
  IpePage *iPage;
 
189
  int iView;
189
190
  IpeOverlayServices *iServices;
190
191
  TType iType;
191
192
  bool iWithShift;