~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: 2007-01-09 23:14:51 UTC
  • mfrom: (3.1.4 feisty)
  • Revision ID: james.westby@ubuntu.com-20070109231451-3nd095g7ishc108l
Tags: 6.0pre27-3
* debian/gsfonts-fontmap.xml: New.  Fontmap for fonts from gsfonts package.
* debian/rules: Use gsfonts-fontmap.xml instead of tetex-fontmap.xml.
* debian/control: Add texlive-latex-base dependency as alternative to
  tetex-bin (for pdflatex) and replace tetex-extra by gsfonts (for font
  files).  Patch courtesy of Norbert Preining.  Closes: #378537.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
/*
6
6
 
7
7
    This file is part of the extensible drawing editor Ipe.
8
 
    Copyright (C) 1993-2004  Otfried Cheong
 
8
    Copyright (C) 1993-2005  Otfried Cheong
9
9
 
10
10
    Ipe is free software; you can redistribute it and/or modify it
11
11
    under the terms of the GNU General Public License as published by
36
36
#include "ipepainter.h"
37
37
#include "ipepage.h"
38
38
 
39
 
#include <qpoint.h>
40
 
#include <qcolor.h>
 
39
#include <QColor>
 
40
#include <QPainterPath>
41
41
 
42
42
// --------------------------------------------------------------------
43
43
 
63
63
                         const IpeVector &v3);
64
64
  virtual void DoClosePath();
65
65
 
 
66
  virtual void DoDrawPath();
66
67
  virtual void DoDrawBitmap(IpeBitmap bitmap);
67
68
  virtual void DoDrawText(const IpeText *text);
68
69
 
69
70
private:
70
71
  QPainter *iPainter;
71
 
  QPoint iPathBegin;
72
 
  QPoint iPos;
 
72
  QPainterPath iPath;
73
73
};
74
74
 
75
75
// --------------------------------------------------------------------
82
82
 
83
83
class IpeOverlayServices {
84
84
public:
 
85
  virtual ~IpeOverlayServices() { /* nothing */ } // placate compiler
85
86
  virtual void OvSvcAddObject(IpeObject *obj) = 0;
86
87
  virtual const IpeAllAttributes &OvSvcAttributes() = 0;
87
88
  virtual const IpeStyleSheet *OvSvcStyleSheet() = 0;
174
175
  IpeTransforming(QMouseEvent *ev, IpePage *page, int view,
175
176
                  IpeCanvas *canvas, TType type,
176
177
                  IpeOverlayServices *services);
177
 
  bool FindObjects(int selectDistance);
 
178
  bool findObjects(int selectDistance);
 
179
  bool checkOrigin();
178
180
 
179
181
  virtual void Draw(QPaintEvent *ev, QPainter *painter) const;
180
182
  virtual void MouseMove(QMouseEvent *ev);
212
214
  void CreateOverlay(int index);
213
215
  IpeOverlay *MakeOverlay(int index);
214
216
  static const char *PixmapName(int index);
215
 
  static const char *Tooltip(int index);
216
 
  static const char *WhatsThis(int index);
217
 
  static const char *Shortcut(int index);
 
217
  static QString Tooltip(int index);
 
218
  static QString WhatsThis(int index);
218
219
  static const char *Context(int index);
219
220
private:
220
221
  IpeOverlay *StartTransforming(IpeTransforming::TType type);