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

« back to all changes in this revision

Viewing changes to src/ipecanvas/ipescissors.cpp

  • 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:
4
4
/*
5
5
 
6
6
    This file is part of the extensible drawing editor Ipe.
7
 
    Copyright (C) 1993-2004  Otfried Cheong
 
7
    Copyright (C) 1993-2005  Otfried Cheong
8
8
 
9
9
    Ipe is free software; you can redistribute it and/or modify it
10
10
    under the terms of the GNU General Public License as published by
33
33
 
34
34
#include <qevent.h>
35
35
#include <qpainter.h>
 
36
//Added by qt3to4:
 
37
#include <QMouseEvent>
 
38
#include <QKeyEvent>
 
39
#include <QPaintEvent>
36
40
 
37
41
// --------------------------------------------------------------------
38
42
 
305
309
  painter.Transform(iM);
306
310
 
307
311
  qPainter->setPen(Qt::magenta);
308
 
  qPainter->setBrush(QBrush::NoBrush);
 
312
  qPainter->setBrush(Qt::NoBrush);
309
313
 
310
314
  painter.NewPath();
311
315
  iSP->Draw(painter);
312
316
  painter.DrawPath();
313
317
  for (int i = 0; i < iNoCuts; ++i) {
314
 
    qPainter->setPen(QPen::NoPen);
 
318
    qPainter->setPen(Qt::NoPen);
315
319
    qPainter->setBrush(Qt::red);
316
320
    IpeVector v = painter.Matrix() * iPos[i];
317
321
    int x = int(v.iX);