~ubuntu-branches/debian/sid/scribus/sid

« back to all changes in this revision

Viewing changes to scribus/util_math.h

  • Committer: Package Import Robot
  • Author(s): Oleksandr Moskalenko
  • Date: 2012-02-09 21:50:56 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120209215056-2wrx1ara0jbm7fi5
Tags: 1.4.0.dfsg+r17287-1
* New upstream stable release upload into Debian (Closes: #654703).
* Applied the Ubuntu armel patch.
* Removed non-free color swatches from resources.
* debian/control:
  - Moved icc-profiles from Recommends to Suggests (Closes: #655885).
  - Updated Standards-Version to 3.9.2.
  - Updated extended description per lintian warning.
* debian/rules:
  - Update mailcap (Closes: #630751). A request for mime.types update has
    been sent to the mime-support maintainer.
  - Added build-arch and build-indep targets per lintian warning.
* debian/patches:
  - top_cmakelists.patch - don't copy extra docs and changelogs.
  - scribus_cmakelists.patch - don't copy extra docs and changelogs.
  - scribus_cmakelists.patch - don't install the non-free "doc" dir.
  - profiles_cmakelists.patch - don't install non-free sRGB profile.
* debian/copyright: 
  - Converted to the DEP5 machine readable foramt.
  - Added licenses for free color swatches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
#include <cmath>
14
14
#include <vector>
15
15
 
16
 
#include <QString>
 
16
#include <QByteArray>
17
17
#include <QPolygon>
18
18
#include <QList>
19
19
#include <QPainterPath>
22
22
 
23
23
class FPoint;
24
24
class FPointArray;
25
 
 
 
25
class QRegion;
26
26
 
27
27
/*! \brief Compare double values by pre-multiplying by 10000 and converting to long if possible.
28
28
If premultiplication does not allow to store result in a long value, perform a standard comparison.
29
29
*/
30
30
bool SCRIBUS_API compareDouble(double a, double b);
31
 
FPoint SCRIBUS_API getMaxClipF(FPointArray* Clip);
32
 
FPoint SCRIBUS_API getMinClipF(FPointArray* Clip);
33
 
inline double SCRIBUS_API xy2Deg(double x, double y);
34
 
FPoint SCRIBUS_API projectPointOnLine(FPoint p, QPointF lineStart, QPointF lineEnd);
 
31
uint SCRIBUS_API getDouble(const QByteArray in, bool raw);
 
32
FPoint   SCRIBUS_API getMaxClipF(FPointArray* Clip);
 
33
FPoint   SCRIBUS_API getMinClipF(FPointArray* Clip);
 
34
FPoint   SCRIBUS_API projectPointOnLine(FPoint p, QPointF lineStart, QPointF lineEnd);
 
35
bool     SCRIBUS_API regionContainsRect(const QRegion& shape, QRect rect);
35
36
QPolygon SCRIBUS_API FlattenPath(const FPointArray& ina, QList<uint> &Segs);
36
37
QList<QPainterPath> SCRIBUS_API decomposePath(QPainterPath &path);
37
 
QPainterPath SCRIBUS_API RegularPolygon(double w, double h, uint c, bool star, double factor, double rota, double factor2 = 0.0);
38
 
uint SCRIBUS_API getDouble(QString in, bool raw);
 
38
QPainterPath  SCRIBUS_API RegularPolygon(double w, double h, uint c, bool star, double factor, double rota, double factor2 = 0.0);
 
39
inline double SCRIBUS_API xy2Deg(double x, double y);
39
40
inline double SCRIBUS_API sind(double);
40
41
inline double SCRIBUS_API cosd(double);
41
42
inline double SCRIBUS_API square(double);