qtexengine-0.3/0000755000175000017500000000000011513214361013420 5ustar showardshowardqtexengine-0.3/README.txt0000644000175000017500000000254711242320554015127 0ustar showardshowardQTeXEngine GNU GPL v. 3.0 ------------------------ AUTHOR: Ion Vasilief ------------------------ FEATURES: QTeXEngine enables Qt based applications to easily export graphics created using the QPainter class to the .tex format using Pgf/TikZ packages (http://sourceforge.net/projects/pgf/). --------------------------------------------------------------------------- DEPENDENCIES: You need Qt (http://www.qtsoftware.com) installed on your system in order to build QTeXEngine. --------------------------------------------------------------------------- COMPILING: QTeXEngine uses qmake for the building process. qmake is part of a Qt distribution: qmake reads project files, that contain the options and rules how to build a certain project. A project file ends with the suffix "*.pro". Please read the qmake documentation for more details. After installing Qt on your system, type the following command lines: $ qmake $ make if you use MinGW, or: $ qmake -tp vc -r if you use Microsoft Visual Studio (this will generate Visual Studio .vcproj project files in the "src" and "example" folders). --------------------------------------------------------------------------- USE: a short demo application is provided in the "example" folder of the source archive. --------------------------------------------------------------------------- qtexengine-0.3/src/0000755000175000017500000000000011513214361014207 5ustar showardshowardqtexengine-0.3/src/QTeXPaintDevice.cpp0000644000175000017500000000756111253744236017673 0ustar showardshoward/*************************************************************************** File : QTeXPaintDevice.cpp Project : QTeXEngine GNU GPL v. 3.0 -------------------------------------------------------------------- Copyright : (C) 2009 by Ion Vasilief Email (use @ for *) : ion_vasilief*yahoo.fr Description : Enables the export of QPainter grafics to .tex files ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 3 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 51 Franklin Street, Fifth Floor, * * Boston, MA 02110-1301 USA * * * ***************************************************************************/ #include "QTeXEngine.h" #include #include QTeXPaintDevice::QTeXPaintDevice(const QString& fileName, const QSize& s, Unit u) : QPaintDevice() { d_size = s; if (!d_size.isValid()) d_size = QSize(500, 400); engine = new QTeXPaintEngine(fileName, u); } QTeXPaintDevice::~QTeXPaintDevice() { delete engine; } QPaintEngine * QTeXPaintDevice::paintEngine () const { return engine; } void QTeXPaintDevice::setColorMode(QPrinter::ColorMode mode) { engine->setGrayScale(mode == QPrinter::GrayScale); } void QTeXPaintDevice::setOutputMode(OutputMode mode) { engine->setOutputMode(mode); } void QTeXPaintDevice::setUnit(Unit u) { engine->setUnit(u); } void QTeXPaintDevice::setDocumentMode(bool on) { engine->setDocumentMode(on); } void QTeXPaintDevice::setEscapeTextMode(bool on) { engine->setEscapeTextMode(on); } void QTeXPaintDevice::exportFontSizes(bool on) { engine->exportFontSizes(on); } void QTeXPaintDevice::setTextHorizontalAlignment(Qt::Alignment alignment) { engine->setTextHorizontalAlignment(alignment); } int QTeXPaintDevice::metric ( PaintDeviceMetric metric ) const { QDesktopWidget *desktop = QApplication::desktop(); int dpi_x = desktop->logicalDpiX(); int dpi_y = desktop->logicalDpiY(); switch (metric){ case QPaintDevice::PdmWidth: return d_size.width(); case QPaintDevice::PdmHeight: return d_size.height(); case QPaintDevice::PdmWidthMM: return int(25.4*d_size.width()/(double)dpi_x); case QPaintDevice::PdmHeightMM: return int(25.4*d_size.height()/(double)dpi_y); case QPaintDevice::PdmNumColors: return 65536;//should it be millions? case QPaintDevice::PdmDepth: return 32; case QPaintDevice::PdmDpiX: case QPaintDevice::PdmPhysicalDpiX: return dpi_x; case QPaintDevice::PdmDpiY: case QPaintDevice::PdmPhysicalDpiY: return dpi_y; default: qWarning ("QTeXPaintDevice::Unknown metric asked"); return 0; } } qtexengine-0.3/src/QTeXEngine.h0000644000175000017500000001456011241011730016326 0ustar showardshoward/*************************************************************************** File : QTeXEngine.h Project : QTeXEngine GNU GPL v. 3.0 -------------------------------------------------------------------- Copyright : (C) 2009 by Ion Vasilief Email (use @ for *) : ion_vasilief*yahoo.fr Description : Enables the export of QPainter grafics to .tex files ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 3 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 51 Franklin Street, Fifth Floor, * * Boston, MA 02110-1301 USA * * * ***************************************************************************/ #ifndef Q_TEX_ENGINE_H #define Q_TEX_ENGINE_H #include #include #include class QFile; class QTeXPaintEngine; class QTeXPaintDevice : public QPaintDevice { public: enum Unit{pt, bp, mm, cm, in, ex, em}; enum OutputMode{Tikz, Pgf}; QTeXPaintDevice(const QString& fileName, const QSize& s = QSize(), Unit u = pt); ~QTeXPaintDevice(); virtual QPaintEngine * paintEngine () const; //! Set color mode (Color or GrayScale) void setColorMode(QPrinter::ColorMode mode); //! Set output mode (Tikz or Pgf) void setOutputMode(OutputMode mode); //! Set length unit void setUnit(Unit u); //! Set size void setSize(const QSize& s){d_size = s;}; //! Enables/Disables document tags void setDocumentMode(bool on = true); //! Enables/Disables escaping of special characters in texts void setEscapeTextMode(bool on = true); //! Enables/Disables exporting of font sizes void exportFontSizes(bool on = true); //! Set horizontal alignment void setTextHorizontalAlignment(Qt::Alignment alignment); protected: virtual int metric ( PaintDeviceMetric ) const; private: //! Size in pixels QSize d_size; QTeXPaintEngine* engine; }; class QTeXPaintEngine : public QPaintEngine { public: QTeXPaintEngine(const QString&, QTeXPaintDevice::Unit u = QTeXPaintDevice::pt); ~QTeXPaintEngine(){}; virtual bool begin(QPaintDevice*); virtual bool end(); virtual void updateState( const QPaintEngineState & ) {}; virtual void drawEllipse(const QRectF &); virtual QPaintEngine::Type type() const {return QPaintEngine::User;}; virtual void drawPoints ( const QPointF * points, int pointCount ); virtual void drawLines ( const QLineF * , int ); virtual void drawPath ( const QPainterPath & path ); virtual void drawPolygon ( const QPointF * , int , PolygonDrawMode ); virtual void drawTextItem ( const QPointF & , const QTextItem & ); virtual void drawRects ( const QRectF * , int ); virtual void drawPixmap ( const QRectF &, const QPixmap &, const QRectF &); virtual void drawImage(const QRectF &, const QImage &, const QRectF &, Qt::ImageConversionFlags); //! Set length unit void setUnit(QTeXPaintDevice::Unit u){d_unit = u;}; //! Enables/Disables gray scale output void setGrayScale(bool on = true){d_gray_scale = on;}; //! Set output syntax void setOutputMode(QTeXPaintDevice::OutputMode mode){d_pgf_mode = (mode == QTeXPaintDevice::Pgf) ? true : false;}; void setDocumentMode(bool on = true){d_document_mode = on;}; //! Enables/Disables escaping of special characters in texts void setEscapeTextMode(bool on = true){d_escape_text = on;}; void exportFontSizes(bool on = true){d_font_size = on;}; void setTextHorizontalAlignment(Qt::Alignment alignment){d_horizontal_alignment = alignment;}; private: enum Shape{Line, Polygon, Polyline, Rect, Ellipse, Path, Points}; //! Returns true if draw operation has NoBrush and NoPen bool emptyStringOperation(); QString unit(); double unitFactor(); double resFactorX(); double resFactorY(); QString pgfPoint(const QPointF& p); QString tikzPoint(const QPointF& p); QPointF convertPoint(const QPointF& p); QString color(const QColor& col); QString defineColor(const QColor& c, const QString& name); QString pgfPen(const QPen& pen); QString tikzPen(const QPen& pen); QString pgfBrush(const QBrush& brush); QString tikzBrush(const QBrush& brush); QString beginScope(); QString endScope(); QString clipPath(); bool changedClipping(); QString path(const QPainterPath & path); QString pgfPath(const QPainterPath & path); QString tikzPath(const QPainterPath & path); QString drawShape(Shape shape, const QString & path); QString drawPgfShape(Shape shape, const QString & path); QString drawTikzShape(Shape shape, const QString & path); //! Draws pixmap pix in a given rectangle void drawPixmap(const QPixmap &pix, const QRectF &p); void writeToFile(const QString& s); QString indentString(const QString& s); //! Returns true if a new color command should be added bool addNewBrushColor(); bool addNewPatternColor(); bool addNewPenColor(); QFile *file; //! Name of the output file QString fname; int d_pixmap_index; bool d_pgf_mode; bool d_open_scope; bool d_gray_scale; bool d_document_mode; bool d_escape_text; bool d_font_size; QPainterPath d_clip_path; QColor d_current_color, d_pattern_color; QTeXPaintDevice::Unit d_unit; Qt::Alignment d_horizontal_alignment; }; #endif qtexengine-0.3/src/QTeXPaintEngine.cpp0000644000175000017500000006466511464631130017701 0ustar showardshoward/*************************************************************************** File : QTeXPaintEngine.cpp Project : QTeXEngine GNU GPL v. 3.0 -------------------------------------------------------------------- Copyright : (C) 2009 by Ion Vasilief Email (use @ for *) : ion_vasilief*yahoo.fr Description : Enables the export of QPainter grafics to .tex files ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 3 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 51 Franklin Street, Fifth Floor, * * Boston, MA 02110-1301 USA * * * ***************************************************************************/ #include "QTeXEngine.h" #include #include #include #include QTeXPaintEngine::QTeXPaintEngine(const QString& f, QTeXPaintDevice::Unit u) : QPaintEngine(QPaintEngine::AllFeatures), fname(f), d_pixmap_index(1), d_unit(u) { d_pgf_mode = false; d_open_scope = false; d_gray_scale = false; d_document_mode = false; d_escape_text = true; d_font_size = true; d_clip_path = QPainterPath(); d_current_color = QColor(); d_pattern_color = QColor(); d_horizontal_alignment = Qt::AlignHCenter; } bool QTeXPaintEngine::begin(QPaintDevice* p) { setPaintDevice(p); file = new QFile(fname); if (file->open(QIODevice::WriteOnly)){ QTextStream t(file); t.setCodec("UTF-8"); if (d_document_mode){ t << "\\documentclass{article}\n"; t << "\\usepackage[left=0.2cm,top=0.1cm,right=0.2cm,nohead,nofoot]{geometry}\n"; if (d_pgf_mode){ t << "\\usepackage{pgf}\n"; t << "\\usepgflibrary{patterns}\n"; } else { t << "\\usepackage{tikz}\n"; t << "\\usetikzlibrary{patterns}\n"; } t << "\\usepackage{ulem}\n";//used for striked out fonts (\sout command) t << "\\begin{document}\n"; } QString pictureEnv = "\\begin{tikzpicture}{0"; if (d_pgf_mode) pictureEnv = "\\begin{pgfpicture}{0"; QString u = unit(); t << pictureEnv + u + "}{0" + u + "}{"; t << QString::number(p->width()) + u + "}{"; t << QString::number(p->height()) + u + "}\n"; if (!d_pgf_mode){ QPainterPath path; path.addRect(QRect(0, 0, p->width(), p->height())); t << "\t\\clip" + tikzPath(path); } return true; } delete file; return false; } bool QTeXPaintEngine::end() { QTextStream t(file); t.setCodec("UTF-8"); if (d_open_scope) t << endScope(); if (d_pgf_mode) t << "\\end{pgfpicture}\n"; else t << "\\end{tikzpicture}\n"; if (d_document_mode) t << "\\end{document}\n"; file->close(); return true; } void QTeXPaintEngine::drawPoints ( const QPointF * points, int pointCount ) { if (emptyStringOperation()) return; QMatrix m = painter()->worldMatrix(); double lw = painter()->pen().widthF(); QString s = QString::null; if (addNewPenColor()){ d_current_color = painter()->pen().color(); s = color(d_current_color); } for (int i = 0; i < pointCount; i++){ QPointF p = m.map(points[i]); if (d_pgf_mode){ QString path = pgfPoint(convertPoint(p)); path += pgfPoint(QPointF(lw, lw)) + "\n"; s += "\\pgfrect[fill]" + path; } else { QString path = tikzPoint(convertPoint(p)); path += " rectangle " + tikzPoint(convertPoint(QPointF(p.x() + lw, p.y() + lw))) + ";\n"; s += "\\fill " + path; } } writeToFile(s); } void QTeXPaintEngine::drawLines ( const QLineF * lines, int lineCount ) { if (painter()->pen().style() == Qt::NoPen) return; QString s; for (int i = 0; i < lineCount; i++){ QPainterPath path(lines[i].p1()); path.lineTo(lines[i].p2()); s += drawShape(Line, this->path(path)); } writeToFile(s); } void QTeXPaintEngine::drawPolygon ( const QPointF * points, int pointCount, PolygonDrawMode mode ) { if (emptyStringOperation()) return; QVector pts; for (int i = 0; i < pointCount; i++) pts << points[i]; QPainterPath path; path.addPolygon(QPolygonF(pts)); if (mode != QPaintEngine::PolylineMode) path.closeSubpath (); QString s;; if (mode != QPaintEngine::PolylineMode){ path.closeSubpath (); s += drawShape(Polygon, this->path(path)); } else s += drawShape(Polyline, this->path(path)); writeToFile(s); } void QTeXPaintEngine::drawTextItem ( const QPointF & p, const QTextItem & textItem ) { QString s = QString::null; if (addNewPenColor()){ s = color(painter()->pen().color()); d_current_color = painter()->pen().color(); } QMatrix m = painter()->worldMatrix(); s += "\\pgftext["; QPointF origin = p; switch(d_horizontal_alignment){ case Qt::AlignLeft: s += "left"; break; case Qt::AlignHCenter: case Qt::AlignJustify: origin = QPointF(p.x() + 0.5*textItem.width(), p.y()); s += "center"; break; case Qt::AlignRight: origin = QPointF(p.x() + textItem.width(), p.y()); s += "right"; break; default: break; } s += ", base, at="; s += pgfPoint(convertPoint(m.map(origin))); if (painter()->transform().isRotating ()){ double angle = 180.0/M_PI*acos(m.m11()); if (m.m11() != 0.0 && m.m12() > 0) angle = -angle; s += ",rotate=" + QString::number(angle); } s += "]{"; QFont f = textItem.font(); if (d_font_size) s += "\\fontsize{" + QString::number(int(f.pointSizeF())) + "}{0}\\selectfont{"; if (f.underline()) s += "\\underline{"; if (f.italic()) s += "\\textit{"; if (f.bold()) s += "\\textbf{"; if (f.strikeOut()) s += "\\sout{"; QString text = textItem.text(); text.remove(QRegExp("~\\")); if (d_escape_text){ text.replace("$", "\\$"); text.replace("_", "\\_"); text.replace("{", "\\{"); text.replace("}", "\\}"); text.replace("^", "\\^"); text.replace("&", "\\&"); text.replace("%", "\\%"); text.replace("#", "\\#"); } s += text; if (d_font_size) s += "}"; if (f.italic()) s += "}"; if (f.bold()) s += "}"; if (f.underline()) s += "}"; if (f.strikeOut()) s += "}"; s += "}\n"; writeToFile(s); } void QTeXPaintEngine::drawRects ( const QRectF * rects, int rectCount ) { if (emptyStringOperation()) return; QString s; for (int i = 0; i < rectCount; i++){ QPainterPath path; path.addPolygon(QPolygonF(rects[i])); s += drawShape(Path, this->path(path)); } writeToFile(s); } void QTeXPaintEngine::drawEllipse ( const QRectF & rect ) { if (emptyStringOperation()) return; QPointF p = painter()->worldMatrix().map(rect.bottomLeft()); QString path; if (d_pgf_mode){ path = pgfPoint(convertPoint(QPointF(p.x() + 0.5*rect.width(), p.y() - 0.5*rect.height()))); path += pgfPoint(QPointF(0, 0.5*rect.height()*resFactorY())); path += pgfPoint(QPointF(0.5*rect.width()*resFactorX(), 0)) + "\n"; } else { path = tikzPoint(convertPoint(QPointF(p.x() + 0.5*rect.width(), p.y() - 0.5*rect.height()))); path += " ellipse ("; QString u = unit(); path += QString::number(0.5*rect.width()*resFactorX()) + u + " and "; path += QString::number(0.5*rect.height()*resFactorY()) + u + ");\n"; } writeToFile(drawShape(Ellipse, path)); } void QTeXPaintEngine::drawPath ( const QPainterPath & path ) { if (emptyStringOperation()) return; writeToFile(drawShape(Path, this->path(path))); } QString QTeXPaintEngine::drawPgfShape(Shape shape, const QString & path) { if (path.isEmpty()) return QString::null; QString stroke_command = path + "\\pgfstroke\n"; QString fill_command = path + "\\pgffill\n"; switch(shape){ case Line: case Polygon: case Polyline: case Path: case Points: break; case Rect: stroke_command = "\\pgfrect[stroke]" + path; fill_command = "\\pgfrect[fill]" + path; break; case Ellipse: stroke_command = "\\pgfellipse[stroke]" + path; fill_command = "\\pgfellipse[fill]" + path; break; } QString s = QString::null; if (shape != Line && shape != Polyline && painter()->brush().style() != Qt::NoBrush){ // fill the background s += pgfBrush(painter()->brush()); s += fill_command; } if (painter()->pen().style() != Qt::NoPen){// draw the contour s += pgfPen(painter()->pen()); s += stroke_command; } return s; } QString QTeXPaintEngine::drawShape(Shape shape, const QString & path) { if (d_pgf_mode) return drawPgfShape(shape, path); return drawTikzShape(shape, path); } QString QTeXPaintEngine::drawTikzShape(Shape shape, const QString & path) { QString s = QString::null; if (path.isEmpty()) return s; if (shape != Line && shape != Polyline && painter()->brush().style() != Qt::NoBrush) // fill the background s += tikzBrush(painter()->brush()) + path; if (painter()->pen().style() != Qt::NoPen)// draw the contour s += tikzPen(painter()->pen()) + path; return s; } void QTeXPaintEngine::drawImage(const QRectF & r, const QImage & image, const QRectF & sr, Qt::ImageConversionFlags flags) { drawPixmap(QPixmap::fromImage(image, flags).copy(sr.toAlignedRect()), r); } void QTeXPaintEngine::drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr) { drawPixmap(pm.copy(sr.toAlignedRect()), r); } void QTeXPaintEngine::drawPixmap(const QPixmap &pix, const QRectF &r) { QFileInfo fi(*file); QString base = fi.baseName() + "-images-"; base += QDateTime::currentDateTime().toString("ddMMyy-hhmmss"); if (!fi.dir().exists(base)){ if (!fi.dir().mkdir(base)) return; } QString name = fi.dir().absolutePath(); name += "/" + base + "/image" + QString::number(d_pixmap_index); name = QDir::cleanPath(name); if (!pix.save(name + ".png", "PNG")) return; d_pixmap_index++; QTextStream t(file); t.setCodec("UTF-8"); t << "\\pgfputat"; t << pgfPoint(convertPoint(painter()->worldMatrix().map(r.bottomLeft()))); t << "{\\pgfimage[interpolate=false,width="; QString u = unit(); t << QString::number(r.width()*resFactorX()) + u + ",height="; t << QString::number(r.height()*resFactorY()) + u + "]{"; t << name; t << "}}\n"; } QString QTeXPaintEngine::clipPath() { if (painter()->hasClipping()){ QPainterPath path = painter()->clipPath().simplified(); if (path.elementCount() > 1000)//latex has a limited main memory size return QString::null; if (d_pgf_mode) return pgfPath(path) + "\\pgfclip\n"; else return "\\clip" + tikzPath(path); } return QString::null; } QString QTeXPaintEngine::defineColor(const QColor& c, const QString& name) { QString col = "\\definecolor{" + name + "}{"; if (d_gray_scale){ col += "gray}{"; double gray = qGray(c.rgb())/255.0; col += QString::number(gray) + "}\n"; } else { col += "rgb}{"; col += QString::number(c.redF()) + ","; col += QString::number(c.greenF()) + ","; col += QString::number(c.blueF()) + "}\n"; } return col; } QString QTeXPaintEngine::tikzBrush(const QBrush& brush) { QString options = QString::null; if (addNewPatternColor()){ options = defineColor(brush.color(), "c"); d_pattern_color = brush.color(); } options += "\\fill [pattern color=c, pattern="; switch(brush.style()){ case Qt::NoBrush: return QString::null; break; case Qt::SolidPattern: { QString s = QString::null; if (addNewBrushColor()){ d_current_color = brush.color(); s = color(brush.color()); } s += "\\fill"; double alpha = painter()->brush().color().alphaF(); if(alpha > 0.0 && alpha < 1.0) s += "[opacity=" + QString::number(alpha) + "]"; return s; } break; case Qt::Dense1Pattern: case Qt::Dense2Pattern: case Qt::Dense3Pattern: case Qt::Dense4Pattern: options += "crosshatch dots"; break; case Qt::Dense5Pattern: case Qt::Dense6Pattern: case Qt::Dense7Pattern: options += "dots"; break; case Qt::HorPattern: options += "horizontal lines"; break; case Qt::VerPattern: options += "vertical lines"; break; case Qt::CrossPattern: options += "grid"; break; case Qt::BDiagPattern: options += "north east lines"; break; case Qt::FDiagPattern: options += "north west lines"; break; case Qt::DiagCrossPattern: options += "crosshatch"; break; case Qt::LinearGradientPattern: { const QLinearGradient *qtgradient = (const QLinearGradient *)brush.gradient(); QGradientStops stops = qtgradient->stops(); QString lc = defineColor(stops.first().second, "lc"); QString rc = defineColor(stops.last().second, "rc"); QMatrix m = painter()->worldMatrix(); QPointF sp = m.map(qtgradient->start()); QPointF ep = m.map(qtgradient->finalStop()); options = lc + rc + "\\fill ["; options += "left color=lc, "; options += "right color=rc, "; options += "shading angle=" + QString::number(-QLineF(sp, ep).angle()); } break; case Qt::RadialGradientPattern: { const QRadialGradient *qtgradient = (const QRadialGradient *)brush.gradient(); QGradientStops stops = qtgradient->stops(); QString colors; int count = stops.count(); colors += defineColor(stops[0].second, "c1"); colors += defineColor(stops[count - 1].second, "c2"); /*for (int i = 0; i < count; i++){ QGradientStop stop = stops[i]; colors += defineColor(stop.second, "c" + QString::number(i + 1)); }*/ options = colors + "\\fill ["; options += "inner color=c1, "; options += "outer color=c2, "; options += "shading=radial"; qWarning("QTeXEngine: Uncentered Qt::RadialGradientPattern with more than two colors not supported."); } break; case Qt::ConicalGradientPattern: { qWarning("QTeXEngine: Qt::ConicalGradientPattern is not supported."); return QString::null; } break; default: break; } return options + "]"; } QString QTeXPaintEngine::pgfBrush(const QBrush& brush) { QString s = QString::null; QColor c = brush.color(); QString col = defineColor(c, "c"); QString command = "\\pgfsetfillpattern{"; switch(brush.style()){ case Qt::NoBrush: break; case Qt::SolidPattern: s += color(c); break; case Qt::Dense1Pattern: case Qt::Dense2Pattern: case Qt::Dense3Pattern: case Qt::Dense4Pattern: s += col + command + "crosshatch dots}{c}\n"; break; case Qt::Dense5Pattern: case Qt::Dense6Pattern: case Qt::Dense7Pattern: s += col + command + "dots}{c}\n"; break; case Qt::HorPattern: s += col + command + "horizontal lines}{c}\n"; break; case Qt::VerPattern: s += col + command + "vertical lines}{c}\n"; break; case Qt::CrossPattern: s += col + command + "grid}{c}\n"; break; case Qt::BDiagPattern: s += col + command + "north east lines}{c}\n"; break; case Qt::FDiagPattern: s += col + command + "north west lines}{c}\n"; break; case Qt::DiagCrossPattern: s += col + command + "crosshatch}{c}\n"; break; default: break; } return s; } QString QTeXPaintEngine::path(const QPainterPath & path) { if (path.isEmpty ()) return QString::null; if (d_pgf_mode) return pgfPath(path); return tikzPath(path); } QString QTeXPaintEngine::pgfPath(const QPainterPath & path) { QString s = QString::null; int points = path.elementCount(); QMatrix m = painter()->worldMatrix(); int curvePoints = 0; for (int i = 0; i < points; i++){ QPainterPath::Element el = path.elementAt(i); QPointF p = m.map(QPointF(el.x, el.y)); switch(el.type){ case QPainterPath::MoveToElement: s += "\\pgfmoveto" + pgfPoint(convertPoint(p)) + "\n"; break; case QPainterPath::LineToElement: s += "\\pgflineto" + pgfPoint(convertPoint(p)) + "\n"; break; case QPainterPath::CurveToElement: s += "\\pgfcurveto" + pgfPoint(convertPoint(p)); curvePoints = 0; break; case QPainterPath::CurveToDataElement: s += pgfPoint(convertPoint(p)); curvePoints++; if (curvePoints == 2) s += "\n"; break; } } return s; } QString QTeXPaintEngine::tikzPath(const QPainterPath & path) { QString s = QString::null; if (path.isEmpty()) return s; int points = path.elementCount(); QMatrix m = painter()->worldMatrix(); int curvePoints = 0; for (int i = 0; i < points; i++){ QPainterPath::Element el = path.elementAt(i); QPointF p = m.map(QPointF(el.x, el.y)); switch(el.type){ case QPainterPath::MoveToElement: s += tikzPoint(convertPoint(p)); break; case QPainterPath::LineToElement: s += " -- " + tikzPoint(convertPoint(p)); break; case QPainterPath::CurveToElement: s += " .. controls " + tikzPoint(convertPoint(p)); curvePoints = 0; break; case QPainterPath::CurveToDataElement: curvePoints++; if (curvePoints == 1) s += " and " + tikzPoint(convertPoint(p)); else if (curvePoints == 2) s += " .. " + tikzPoint(convertPoint(p)); break; } } return s + ";\n"; } QPointF QTeXPaintEngine::convertPoint( const QPointF& p) { return QPointF(resFactorX()*p.x(), paintDevice()->height() - resFactorY()*p.y()); } double QTeXPaintEngine::unitFactor() { double factor = 1.0; switch (d_unit){ case QTeXPaintDevice::pt: factor = 72.27; break; case QTeXPaintDevice::bp: factor = 72; break; case QTeXPaintDevice::mm: factor = 25.4; break; case QTeXPaintDevice::cm: factor = 2.54; break; case QTeXPaintDevice::in: case QTeXPaintDevice::ex: case QTeXPaintDevice::em: break; } return factor; } double QTeXPaintEngine::resFactorX() { return unitFactor()/(double)paintDevice()->logicalDpiX(); } double QTeXPaintEngine::resFactorY() { return unitFactor()/(double)paintDevice()->logicalDpiY(); } QString QTeXPaintEngine::pgfPoint( const QPointF& p) { QString u = unit(); QString s = "{\\pgfpoint{" + QString::number(p.x()); s += u + "}{" + QString::number(p.y()) + u + "}}"; return s; } QString QTeXPaintEngine::tikzPoint(const QPointF & p) { QString u = unit(); QString s = "(" + QString::number(p.x()); s += u + "," + QString::number(p.y()) + u + ")"; return s; } QString QTeXPaintEngine::color( const QColor& col) { QString s = "\\color["; if (d_gray_scale){ s += "gray]{"; double gray = qGray(col.rgb())/255.0; s += QString::number(gray) + "}\n"; } else { s += "rgb]{"; s += QString::number(col.redF()) + ","; s += QString::number(col.greenF()) + ","; s += QString::number(col.blueF()) + "}\n"; } return s; } QString QTeXPaintEngine::pgfPen(const QPen& pen) { QString s = QString::null; if (pen.style() == Qt::NoPen) return s; s += color(pen.color()); s += "\\pgfsetlinewidth{" + QString::number(painter()->pen().widthF()) + "pt}\n"; QString aux = "\\pgfsetdash{"; QString term = "}{0cm}\n"; double space_length = 0.08*pen.widthF(); double dot_length = 0.3*space_length; double dash_length = 1.5*space_length; QString dash = "{" + QString::number(dash_length) + "cm}"; QString dot = "{" + QString::number(dot_length) + "cm}"; QString space = "{" + QString::number(space_length) + "cm}"; switch (pen.style()){ case Qt::SolidLine: break; case Qt::DashLine: s += aux + dash + space + term; break; case Qt::DotLine: s += aux + dot + space + term; break; case Qt::DashDotLine: s += aux + dash + space + dot + space + term; break; case Qt::DashDotDotLine: s += aux + dash + space + dot + space + dot + space + term; break; case Qt::CustomDashLine: { s += aux; QVector pattern = pen.dashPattern(); int count = pattern.count(); QString u = unit(); for (int i = 0; i < count; i++) s += "{" + QString::number(pattern[i]) + u + "}"; s += term; break; } default: break; } switch (pen.joinStyle()){ case Qt::MiterJoin: s += "\\pgfsetmiterjoin\n"; //s += "\\pgfsetmiterlimit{" + QString::number(pen.miterLimit()) + "pt}\n"; break; case Qt::BevelJoin: s += "\\pgfsetbeveljoin\n"; break; case Qt::RoundJoin: s += "\\pgfsetroundjoin\n"; break; case Qt::SvgMiterJoin: s += "\\pgfsetmiterjoin\n"; break; default: break; } switch (pen.capStyle()){ case Qt::FlatCap: s += "\\pgfsetrectcap\n"; break; case Qt::SquareCap: s += "\\pgfsetrectcap\n"; break; case Qt::RoundCap: s += "\\pgfsetroundcap\n"; break; default: break; } return s; } QString QTeXPaintEngine::tikzPen(const QPen& pen) { if (pen.style() == Qt::NoPen) return QString::null; QString col = QString::null; if (addNewPenColor()){ col = color(pen.color()); d_current_color = pen.color(); } QString options = "[line width="; options += QString::number(painter()->pen().widthF()) + "pt, "; double space_length = 0.08*pen.widthF(); double dot_length = 0.3*space_length; double dash_length = 1.5*space_length; QString dash = "on " + QString::number(dash_length) + "cm"; QString dot = "on " + QString::number(dot_length) + "cm"; QString space = " off " + QString::number(space_length) + "cm"; QString aux = "dash pattern="; QString term = ", dash phase=0pt, "; switch (pen.style()){ case Qt::SolidLine: break; case Qt::DashLine: options += aux + dash + space + term; break; case Qt::DotLine: options += aux + dot + space + term; break; case Qt::DashDotLine: options += aux + dash + space + dot + space + term; break; case Qt::DashDotDotLine: options += aux + dash + space + dot + space + dot + space + term; break; case Qt::CustomDashLine: { options += aux; QVector pattern = pen.dashPattern(); int count = pattern.count(); QString u = unit(); for (int i = 0; i < count; i++){ QString s = "on "; if (i%2) s = " off "; options += s + QString::number(pattern[i]) + u; } options += term; break; } default: break; } options += "line join="; switch (pen.joinStyle()){ case Qt::MiterJoin: options += "miter, "; break; case Qt::BevelJoin: options += "bevel, "; break; case Qt::RoundJoin: options += "round, "; break; case Qt::SvgMiterJoin: options += "miter, "; break; default: break; } options += "line cap="; switch (pen.capStyle()){ case Qt::FlatCap: options += "rect]"; break; case Qt::SquareCap: options += "rect]"; break; case Qt::RoundCap: options += "round]"; break; default: break; } return col + "\\draw" + options; } QString QTeXPaintEngine::indentString(const QString& s) { QStringList lst = s.split("\n", QString::SkipEmptyParts); for(int i = 0; i < lst.count(); i++) lst[i].prepend("\t"); return lst.join("\n") + "\n"; } QString QTeXPaintEngine::beginScope() { QString s = "\\begin{scope}\n"; if (d_pgf_mode) s = "\\begin{pgfscope}\n"; if (painter()->hasClipping()){ QString clip = clipPath(); if (!clip.isEmpty()) s += indentString(clip); } d_pattern_color = QColor(); d_current_color = QColor(); return s; } QString QTeXPaintEngine::endScope() { if (d_pgf_mode) return "\\end{pgfscope}\n"; return "\\end{scope}\n"; } void QTeXPaintEngine::writeToFile(const QString& s) { QTextStream t(file); t.setCodec("UTF-8"); if (d_pgf_mode){ t << beginScope(); t << indentString(s); t << endScope(); return; } QString scope; if (d_open_scope) scope = endScope(); if (changedClipping()){ scope += beginScope(); scope += indentString(s); t << scope; d_open_scope = true; if (painter()->hasClipping()) d_clip_path = painter()->clipPath(); else d_clip_path = QPainterPath(); } else t << indentString(s); } bool QTeXPaintEngine::emptyStringOperation() { if ((painter()->brush().style() == Qt::NoBrush || (painter()->brush().color().alpha() == 0)) && painter()->pen().style() == Qt::NoPen) return true; return false; } bool QTeXPaintEngine::changedClipping() { QPainterPath clipPath = QPainterPath(); if (painter()->hasClipping()){ if (painter()->clipPath().elementCount() > 1000) return false; clipPath = painter()->clipPath(); } if (clipPath != d_clip_path) return true; return false; } bool QTeXPaintEngine::addNewPatternColor() { Qt::BrushStyle style = painter()->brush().style(); if (style <= Qt::SolidPattern || style >= Qt::LinearGradientPattern) return false; if (!d_pattern_color.isValid() || d_pattern_color != painter()->brush().color()) return true; return false; } bool QTeXPaintEngine::addNewBrushColor() { if (!d_current_color.isValid() || changedClipping() || d_current_color.name() != painter()->brush().color().name()) return true; return false; } bool QTeXPaintEngine::addNewPenColor() { if (!d_current_color.isValid() || (changedClipping() && painter()->brush().style() == Qt::NoBrush) || d_current_color.name() != painter()->pen().color().name()) return true; return false; } QString QTeXPaintEngine::unit() { switch (d_unit){ case QTeXPaintDevice::pt: return "pt"; break; case QTeXPaintDevice::bp: return "bp"; break; case QTeXPaintDevice::mm: return "mm"; break; case QTeXPaintDevice::cm: return "cm"; break; case QTeXPaintDevice::in: return "in"; break; case QTeXPaintDevice::ex: return "ex"; break; case QTeXPaintDevice::em: return "em"; break; } return "pt"; } qtexengine-0.3/src/src.pro0000644000175000017500000000067111236304504015525 0ustar showardshoward# qmake project file for building the QTeXEngine libraries include( ../config.pri ) TARGET = QTeXEngine TEMPLATE = lib MOC_DIR = ../tmp OBJECTS_DIR = ../tmp DESTDIR = ../ contains(CONFIG, QTeXEngineDll) { CONFIG += dll DEFINES += QTEXENGINE_DLL QTEXENGINE_DLL_BUILD } else { CONFIG += staticlib } HEADERS = QTeXEngine.h SOURCES += QTeXPaintEngine.cpp SOURCES += QTeXPaintDevice.cpp qtexengine-0.3/QTeXEngine.pro0000644000175000017500000000013611236304264016115 0ustar showardshowardinclude( config.pri ) TEMPLATE = subdirs SUBDIRS = \ src \ example \ testqtexengine-0.3/COPYING.txt0000644000175000017500000010451311164745622015310 0ustar showardshoward GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . qtexengine-0.3/example/0000755000175000017500000000000011513214361015053 5ustar showardshowardqtexengine-0.3/example/renderarea.cpp0000644000175000017500000000666311233464524017711 0ustar showardshoward#include #include "renderarea.h" #include "pixmaps.h" RenderArea::RenderArea(QWidget *parent) : QWidget(parent) { setBackgroundRole(QPalette::Base); setAutoFillBackground(true); setFixedWidth(600); setFixedHeight(500); } void RenderArea::draw(QPainter *painter) { static const QPoint points[4] = { QPoint(10, 80), QPoint(20, 10), QPoint(80, 30), QPoint(90, 70) }; QRect rect(10, 20, 80, 60); QPainterPath path; path.moveTo(20, 80); path.lineTo(20, 30); path.cubicTo(80, 0, 50, 50, 80, 80); int startAngle = 20 * 16; int arcLength = 120 * 16; QLinearGradient linearGrad(QPointF(0, 0), QPointF(100, 100)); linearGrad.setColorAt(0, Qt::black); linearGrad.setColorAt(1, Qt::red); QRadialGradient radialGrad(QPointF(50, 50), 50, QPointF(50, 50)); radialGrad.setColorAt(0, Qt::red); radialGrad.setColorAt(1, Qt::green); /*QConicalGradient conGrad(QPointF(50, 50), 90); conGrad.setColorAt(0, Qt::blue); conGrad.setColorAt(0.5, Qt::red); conGrad.setColorAt(1, Qt::green); QBrush brush = QBrush(conGrad);*/ QBrush brush = QBrush(Qt::gray); int brushStyle = Qt::NoBrush; int penStyle = Qt::NoPen; int shape = Rect; int drawnRects = 0; for (int x = 0; x < width(); x += 100){ for (int y = 0; y < height(); y += 100){ painter->save(); painter->setRenderHint(QPainter::Antialiasing); shape = (shape + 1)%14; penStyle = (penStyle + 1)%4; if(!penStyle) penStyle = 1; if (shape == RoundedRect && drawnRects < 2){ if (drawnRects == 0) painter->setBrush(QBrush(linearGrad)); else if (drawnRects == 1) painter->setBrush(QBrush(radialGrad)); drawnRects++; } else { brushStyle = (brushStyle + 1)%14; if(!brushStyle) brushStyle = 1; brush.setStyle((Qt::BrushStyle)brushStyle); painter->setBrush(brush); } painter->setPen(QPen(Qt::black, 2, (Qt::PenStyle)penStyle, Qt::FlatCap, Qt::MiterJoin)); painter->translate(x, y); switch (shape) { case Line: painter->drawLine(rect.bottomLeft(), rect.topRight()); break; case Polyline: painter->drawPolyline(points, 4); break; case Polygon: painter->drawPolygon(points, 4); break; case Rect: painter->drawRect(rect); break; case RoundedRect: painter->drawRoundedRect(rect, 25, 25, Qt::RelativeSize); break; case Ellipse: painter->drawEllipse(rect); break; case Arc: painter->drawArc(rect, startAngle, arcLength); break; case Chord: painter->drawChord(rect, startAngle, arcLength); break; case Pie: painter->drawPie(rect, startAngle, arcLength); break; case Path: painter->drawPath(path); break; case Text: painter->drawText(rect, Qt::AlignCenter, "QTeXEngine"); break; case Pixmap: painter->drawPixmap(10, 10, QPixmap(qt_logo_xpm)); break; case TiledPixmap: painter->drawTiledPixmap (QRect(10, 10, 64, 64), QPixmap(brick_xpm)); break; } painter->restore(); } } painter->setPen(Qt::darkGray); painter->setBrush(Qt::NoBrush); painter->drawRect(QRect(9, 9, width() - 18, height() - 18)); } void RenderArea::paintEvent(QPaintEvent * /* event */) { QPainter painter(this); draw(&painter); } qtexengine-0.3/example/pixmaps.h0000644000175000017500000006004111170701740016707 0ustar showardshoward/* XPM */ static const char * qt_logo_xpm[] = { "69 80 364 2", " c None", ". c #0C481E", "+ c #135020", "@ c #3F832C", "# c #4D932F", "$ c #509730", "% c #559C31", "& c #5AA233", "* c #569E32", "= c #4D942F", "- c #468B2E", "; c #41852C", "> c #0E4B1F", ", c #347629", "' c #60A934", ") c #66B036", "! c #63AC35", "~ c #579F32", "{ c #4E9430", "] c #478C2E", "^ c #41862C", "/ c #124F20", "( c #59A133", "_ c #64AD35", ": c #58A032", "< c #4F9530", "[ c #488D2E", "} c #42862C", "| c #4A8F2E", "1 c #64AE36", "2 c #509630", "3 c #488E2E", "4 c #42872C", "5 c #317328", "6 c #65AF36", "7 c #5AA333", "8 c #498E2E", "9 c #43872D", "0 c #175521", "a c #63AD35", "b c #5BA333", "c c #519830", "d c #498F2E", "e c #43882D", "f c #2E6F27", "g c #5CA533", "h c #529931", "i c #4A902F", "j c #44882D", "k c #40842C", "l c #5DA634", "m c #539A31", "n c #4B902F", "o c #44892D", "p c #5FA734", "q c #549B31", "r c #0D491E", "s c #589E37", "t c #70B04C", "u c #83BE5D", "v c #7CBB53", "w c #6DB43F", "x c #63AD36", "y c #286926", "z c #26622B", "A c #699665", "B c #D0E0CF", "C c #FFFFFF", "D c #FEFEFD", "E c #E5F2DD", "F c #C4E1B2", "G c #9DCD7F", "H c #69B23A", "I c #185722", "J c #114E20", "K c #7FA67A", "L c #EEF6E8", "M c #A7D18B", "N c #6BB23C", "O c #3A7D2B", "P c #0D481E", "Q c #1E5A26", "R c #D4E2D1", "S c #E0EFD6", "T c #76B84A", "U c #63AB35", "V c #397C2A", "W c #8DBE74", "X c #9ECD80", "Y c #8EC56B", "Z c #7DBC55", "` c #6DB33F", " . c #3F842C", ".. c #175323", "+. c #D2E1D0", "@. c #EFF7EA", "#. c #83BF5D", "$. c #0D491F", "%. c #EAF1E9", "&. c #CBE4BA", "*. c #B9D1B6", "=. c #EFF7EB", "-. c #72B646", ";. c #235F2A", ">. c #65B036", ",. c #1C5A22", "'. c #487E48", "). c #F8FAF9", "!. c #ADC6AB", "~. c #B7CFB4", "{. c #D3E8C5", "]. c #67B037", "^. c #246324", "/. c #4F844E", "(. c #104D20", "_. c #DBE8D9", ":. c #CCE5BC", "<. c #7BBB52", "[. c #114E1F", "}. c #2A662F", "|. c #A2C09D", "1. c #A1CE83", "2. c #64AE35", "3. c #0F4D1F", "4. c #8DB289", "5. c #65AF35", "6. c #165321", "7. c #588A56", "8. c #E6F2DE", "9. c #6CB33E", "0. c #0C491E", "a. c #104B1F", "b. c #CCDDC8", "c. c #E8F3E0", "d. c #539B31", "e. c #DCE8DB", "f. c #BCD3B8", "g. c #81BE59", "h. c #2C6D26", "i. c #2E6932", "j. c #95C873", "k. c #3E832B", "l. c #1C5926", "m. c #347529", "n. c #1B5825", "o. c #EBF4E4", "p. c #98B993", "q. c #D4E9C7", "r. c #296A26", "s. c #457B44", "t. c #558853", "u. c #C9E3B8", "v. c #155220", "w. c #568A54", "x. c #FAFDF9", "y. c #2D6A2D", "z. c #0F4B1E", "A. c #53864F", "B. c #D9E6D7", "C. c #BCD2B9", "D. c #D5E3D2", "E. c #DAECCF", "F. c #8DC469", "G. c #82BF5B", "H. c #77B94D", "I. c #589F33", "J. c #A6C3A1", "K. c #A7D28C", "L. c #276826", "M. c #2D6831", "N. c #659363", "O. c #51854F", "P. c #C5E1B3", "Q. c #E3EBE0", "R. c #86C161", "S. c #FDFEFD", "T. c #A8C5A1", "U. c #C6E2B4", "V. c #145122", "W. c #FEFFFE", "X. c #6AB23B", "Y. c #C5D8C1", "Z. c #CFE2C8", "`. c #2C6C27", " + c #2B6530", ".+ c #F8FBF6", "++ c #5BA334", "@+ c #91B48C", "#+ c #E2EFDA", "$+ c #1D5B22", "%+ c #497F49", "&+ c #F1F8ED", "*+ c #82AA7F", "=+ c #F1F8EC", "-+ c #458536", ";+ c #2F6A33", ">+ c #417841", ",+ c #E7F0E2", "'+ c #BDD8B3", ")+ c #C3DAB9", "!+ c #CBDFC4", "~+ c #DBE9D3", "{+ c #B7D9A1", "]+ c #649360", "^+ c #EAF4E3", "/+ c #78A274", "(+ c #478C2D", "_+ c #6F9C6C", ":+ c #E3F1DB", "<+ c #0E4A1E", "[+ c #6D9B69", "}+ c #7DA578", "|+ c #DCEDD1", "1+ c #639260", "2+ c #7FBD57", "3+ c #61AA35", "4+ c #88AE84", "5+ c #D5E9C8", "6+ c #598B57", "7+ c #8CC468", "8+ c #97B792", "9+ c #CEE6BF", "0+ c #1A5821", "a+ c #9ACB7A", "b+ c #5AA132", "c+ c #C8E2B6", "d+ c #1E5D23", "e+ c #477D46", "f+ c #5FA834", "g+ c #90B38B", "h+ c #1E5C22", "i+ c #487D47", "j+ c #A9D28D", "k+ c #7AA476", "l+ c #D1E7C3", "m+ c #51844E", "n+ c #9ECD7F", "o+ c #679563", "p+ c #D7EBCB", "q+ c #175421", "r+ c #93C771", "s+ c #185621", "t+ c #558752", "u+ c #DEEED4", "v+ c #61915E", "w+ c #88C263", "x+ c #1F5E24", "y+ c #437B44", "z+ c #E5F1DC", "A+ c #0F4C1F", "B+ c #6A9867", "C+ c #276625", "D+ c #356E38", "E+ c #749F70", "F+ c #73B747", "G+ c #2D6E27", "H+ c #28642E", "I+ c #62AB34", "J+ c #68B139", "K+ c #1D5A26", "L+ c #5EA734", "M+ c #F7FBF4", "N+ c #145021", "O+ c #9EBD99", "P+ c #E7EFE5", "Q+ c #91C66F", "R+ c #DEE9DC", "S+ c #C2DFAF", "T+ c #B0D698", "U+ c #357829", "V+ c #195524", "W+ c #99CA79", "X+ c #578955", "Y+ c #D0E7C1", "Z+ c #37703A", "`+ c #71B645", " @ c #D1E7C2", ".@ c #E0EFD7", "+@ c #478D2E", "@@ c #EBF5E5", "#@ c #4B902E", "$@ c #80BE59", "%@ c #579E32", "&@ c #ADC7A8", "*@ c #B8DAA1", "=@ c #F9FBF8", "-@ c #6EB440", ";@ c #155321", ">@ c #D6EAC9", ",@ c #3D743E", "'@ c #C1DFB1", ")@ c #538E44", "!@ c #437B42", "~@ c #CCDEC7", "{@ c #377A2A", "]@ c #195623", "^@ c #FCFDFB", "/@ c #94C873", "(@ c #4B922F", "_@ c #67B138", ":@ c #62AB35", "<@ c #FBFDF9", "[@ c #5EA634", "}@ c #7EA77A", "|@ c #F0F7EB", "1@ c #8FC56D", "2@ c #3C7E2A", "3@ c #427941", "4@ c #97C977", "5@ c #6A9866", "6@ c #E7EEE5", "7@ c #E4ECE2", "8@ c #D9EBCD", "9@ c #EBF2EB", "0@ c #66AF36", "a@ c #236324", "b@ c #387139", "c@ c #BADBA4", "d@ c #1F5E23", "e@ c #4A8049", "f@ c #F2F8EE", "g@ c #83BF5C", "h@ c #2F6C31", "i@ c #C7DAC3", "j@ c #EDF6E7", "k@ c #9DCC7E", "l@ c #74B749", "m@ c #F2F7F2", "n@ c #E1F0D8", "o@ c #78B94E", "p@ c #AAC5A6", "q@ c #A5D189", "r@ c #6AB23C", "s@ c #62AD35", "t@ c #266725", "u@ c #FDFEFC", "v@ c #6C9A68", "w@ c #29642E", "x@ c #CEE6BE", "y@ c #62AC35", "z@ c #AFD595", "A@ c #77A172", "B@ c #D5E8CD", "C@ c #B6D9A1", "D@ c #25602B", "E@ c #FAFCFA", "F@ c #185521", "G@ c #5B8C59", "H@ c #A2C19E", "I@ c #155221", "J@ c #8CB284", "K@ c #3D812B", "L@ c #417F37", "M@ c #679A5C", "N@ c #97BF8A", "O@ c #C8E1B7", "P@ c #BBDCA5", "Q@ c #89C264", "R@ c #45892D", "S@ c #5BA433", "T@ c #519831", "U@ c #5CA433", "V@ c #5DA534", "W@ c #4B912F", " . . + @ # $ % & * = - ; ", " . . . . > , ' ) ) ) ) ) ) ) ) ) ) ! ~ { ] ^ ", " . . . . / ( ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) _ : < [ } ", " . . . . . | ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) 1 ( 2 3 4 ", " . . . . . 5 ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) 6 7 $ 8 9 ", " . . . . 0 a ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) 6 b c d e ", " . . . . . f ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) g h i j ", " . . . . . k ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) l m n o ", " . . . . . h ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) p q ", " . . . . r ! ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ' * s t u v w ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) x 3 y z A B C C C C D E F G H ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) ) c I J K C C C C C C C C C C C L M N ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) O P Q R C C C C C C C C C C C C C C S T ) ) ) ) ) ) ) ) U V V W X Y Z ` ) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) .. ..+.C C C C C C C C C C C C C C C C @.#.) ) ) ) ) ) ) { . $.%.C C C &.) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) # P $.*.C C C C C C C C C C C C C C C C C C =.-.) ) ) ) ) ) V . ;.C C C C &.) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) ) >.,.. '.C C C C C C C C C ).!.~.C C C C C C C C {.].) ) ) ) ) ^.. /.C C C C &.) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) ) e . (._.C C C C C C C C :.<.e [.}.|.C C C C C C C 1.) ) ) ) 2.3.. 4.C C C C &.) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) 5.6.. 7.C C C C C C C C 8.9.) ) h 0.a.b.C C C C C C c.].) ) ) d.. . e.C C C C &.) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) $ . . f.C C C C C C C C g.) ) ) ) h.. i.C C C C C C C j.) ) ) k.. l.C C C C C &.) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) m.. n.C C C C C C C C o.) ) ) ) ) 7 . . p.C C C C C C q.) ) ) r.. s.C C C C C &.) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) 0 . t.C C C C C C C C u.) ) ) ) ) ) v.. w.C C C C C C x.y.z.A.B.C.D.C C C C C E.F.G.H.` ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) I.. . J.C C C C C C C C K.) ) ) ) ) ) L.. M.C C C C C C C N.. O.C C C C C C C C C C C C C P.) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) 3 . . Q.C C C C C C C C R.) ) ) ) ) ) O . J S.C C C C C C T.. O.C C C C C C C C C C C C C U.) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) O . V.C C C C C C C C W.X.) ) ) ) ) ) # . . Y.C C C C C C Z.. O.C C C C C C C C C C C C C U.) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) `.. +C C C C C C C C .+) ) ) ) ) ) ) ++. . @+C C C C C C #+. O.C C C C C C C C C C C C C U.) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) $+. %+C C C C C C C C &+) ) ) ) ) ) ) ' . . *+C C C C C C =+{ -+;+>+C C C C C C ,+'+)+!+~+{+) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) + . ]+C C C C C C C C ^+) ) ) ) ) ) ) 1 . . /+C C C C C C S.].(+. / C C C C C C &.) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) z.. _+C C C C C C C C :+) ) ) ) ) ) ) ) <+. [+C C C C C C C -.(+. / C C C C C C &.) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) 2.. . }+C C C C C C C C |+) ) ) ) ) ) ) ) [.. 1+C C C C C C C 2+(+. / C C C C C C &.) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) 3+. . 4+C C C C C C C C 5+) ) ) ) ) ) ) ) 6.. 6+C C C C C C C 7+(+. / C C C C C C &.) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) g . . 8+C C C C C C C C 9+) ) ) ) ) ) ) ) 0+. /.C C C C C C C a+(+. / C C C C C C &.) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) b+. . |.C C C C C C C C c+) ) ) ) ) ) ) ) d+. e+C C C C C C C M (+. / C C C C C C &.) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) f+. . g+C C C C C C C C &.) ) ) ) ) ) ) ) h+. i+C C C C C C C j+(+. / C C C C C C &.) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) 5.0.. k+C C C C C C C C l+) ) ) ) ) ) ) ) 0+. m+C C C C C C C n+(+. / C C C C C C &.) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) [.. o+C C C C C C C C p+) ) ) ) ) ) ) ) q+. 7.C C C C C C C r+(+. / C C C C C C &.) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) s+. t+C C C C C C C C u+) ) ) ) ) ) ) ) / . v+C C C C C C C w+(+. / C C C C C C &.) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) x+. y+C C C C C C C C z+) ) ) ) ) ) ) ) A+. B+C C C C C C C Z (+. / C C C C C C &.) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) C+. D+C C C C C C C C o.) ) ) ) ) ) ) >.. . E+C C C C C C C F+(+. / C C C C C C &.) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) G+. H+C C C C C C C C &+) ) ) ) ) ) ) I+. . K C C C C C C C J+(+. / C C C C C C &.) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) m.. K+C C C C C C C C .+) ) ) ) ) ) ) L+. . 4+C C C C C C M+) (+. / C C C C C C &.) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) O . N+C C C C C C C C C F+) ) ) ) ) ) : . . O+C C C C C C c.) (+. / C C C C C C &.) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) (+. 0.P+C C C C C C C C Q+) ) ) ) ) ) (+. . R+C C C C C C S+) (+. / C C C C C C &.) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) g . . p.C C C C C C C C T+) ) ) ) ) ) U+. V+C C C C C C C W+) (+. / C C C C C C &.) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) 0 . X+C C C C C C C C Y+) ) ) ) ) ) ^.. Z+C C C C C C D `+) (+. / C C C C C C @) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) G+. H+C C C C C C C C @.) ) ) ) ) ) / . ]+C C C C C C .@) ) +@. / C C C C C C @@) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) #@. $.D.C C C C C C C C $@) ) ) ) %@. . &@C C C C C C *@) ) = . $.=@C C C C C W.-@) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) 5.;@. v+C C C C C C C C >@) ) ) ) L.. ,@C C C C C C C Y ) ) ~ . . R C C C C C C '@)@!@/+~@) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) ) {@. ]@^@C C C C C C C C /@) ) (@. / _.C C C C C C 8._@) ) :@. . &@C C C C C C C C C C <@) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) ) [@[.. }@C C C C C C C C |@1@2@(.3@*.C C C C C C C 4@) ) ) ) ,.. 5@C C C C C C C C C C x.) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) } . / e.C C C C C C C C C 6@7@C C C C C C C C 8@) ) ) ) ) 8 . N+9@C C C C C C C C C <@) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) 0@a@. b@S.C C C C C C C C C C C C C C C C C L F+) ) ) ) ) 0@y . '.=@C C C C C C C z+c@) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) 3+d@. e@C C C C C C C C C C C C C C C C f@g@) ) ) ) ) ) ) ) j ^.h@g+i@=@j@P.k@l@) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) 3+a@. %+m@C C C C C C C C C C C C C n@o@) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) ) 0@9 [.K+p@C C C C C C C C C C o.q@r@) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) s@[ t@;.A P+C C C C C C u@-@) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) 1 [.. v@C C C C C C C r+) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) `.. w@C C C C C C C x@) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) y@ ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) [ . P _.C C C C C C C z@F+) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ~ ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) :@z.. A@C C C C C C C C D B@C@) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) < ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) f . D@E@C C C C C C C C C 8@) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) - ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) 3+F@. G@C C C C C C C C C 8@) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) y@ ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) m <+P H@C C C C C C C C 8@) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) n ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) # $+I@J@^@C C C C C C 8@) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ' ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) 0@= K@L@M@N@O@U.P@M Q@) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) 3+ ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) L+ ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) 6 ~ o ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) 6 b c i R@ ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) 6 S@T@i o ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) U@h i o ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) g h i o ", " . . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) V@h i o ", " . . . / ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) V@m n o ", " . . / ) ) ) ) ) ) ) ) ) ) ) ) l m n o ", " . / ) ) ) ) ) ) L+m W@o ", " v.L+m W@R@ "}; /* XPM */ static const char * brick_xpm[] = { "32 16 338 2", " c #ECDAA8", ". c #EEDDA8", "+ c #F0E0A8", "@ c #F0E2A8", "# c #F2E3A8", "$ c #F2E4A8", "% c #F1E3A8", "& c #F1E2A8", "* c #EEDEA8", "= c #EEDBA8", "- c #EBD9A8", "; c #EAD6A8", "> c #E9D4A8", ", c #E7D1A8", "' c #E6CDA8", ") c #E6CFA8", "! c #E7D0A8", "~ c #E8D2A8", "{ c #E6CEA8", "] c #E4CCA8", "^ c #E3CAA8", "/ c #E2C7A8", "( c #E1C6A8", "_ c #E1C5A8", ": c #E4CBA8", "< c #EBD7A8", "[ c #EFDFA8", "} c #473600", "| c #ECDBA8", "1 c #E7D083", "2 c #EBD783", "3 c #EDD983", "4 c #EEDC83", "5 c #F0DF83", "6 c #F1E283", "7 c #EDDA83", "8 c #EBD683", "9 c #E5CC83", "0 c #E4C983", "a c #E2C683", "b c #E0C183", "c c #DDBD83", "d c #DEBE83", "e c #E0C283", "f c #DFBF83", "g c #DCBC83", "h c #D9B683", "i c #D7B283", "j c #D5AF83", "k c #D6AF83", "l c #D7B383", "m c #654D00", "n c #463400", "o c #E9D283", "p c #E4C84D", "q c #E8CD4D", "r c #EAD24D", "s c #EDD84D", "t c #F1DF4D", "u c #F0DC4D", "v c #EBD34D", "w c #DFBE4D", "x c #DAB64D", "y c #D9B44D", "z c #D8B24D", "A c #D4AC4D", "B c #D1A44D", "C c #CFA14D", "D c #D1A54D", "E c #D2A64D", "F c #CA984D", "G c #C6924D", "H c #C6904D", "I c #C48F4D", "J c #C6914D", "K c #C9964D", "L c #D7AF4D", "M c #8D6900", "N c #634B00", "O c #EBD583", "P c #E5CA4D", "Q c #E2C000", "R c #E4C400", "S c #EBD100", "T c #EFD800", "U c #EDD400", "V c #E6C800", "W c #DCB600", "X c #D4A800", "Y c #CB9700", "Z c #C48B00", "` c #C38800", " . c #C28700", ".. c #BC7C00", "+. c #B87500", "@. c #B97700", "#. c #B77300", "$. c #B46E00", "%. c #AF6300", "&. c #AB5E00", "*. c #AD6000", "=. c #AA5B00", "-. c #A95A00", ";. c #AC5E00", ">. c #B36C00", ",. c #BB7900", "'. c #C08400", "). c #8A6400", "!. c #634900", "~. c #ECD883", "{. c #E8CE4D", "]. c #E3C300", "^. c #E8CC00", "/. c #F1DD00", "(. c #EDD500", "_. c #E5C600", ":. c #D4A700", "<. c #CA9500", "[. c #C08200", "}. c #BD7E00", "|. c #BC7B00", "1. c #B67200", "2. c #B36B00", "3. c #B26A00", "4. c #B06600", "5. c #AB5F00", "6. c #A65500", "7. c #A45000", "8. c #A65400", "9. c #B06500", "0. c #B57000", "a. c #BA7800", "b. c #886000", "c. c #624800", "d. c #E9D14D", "e. c #E4C500", "f. c #EBD200", "g. c #F1DC00", "h. c #F0DB00", "i. c #ECD400", "j. c #E2C200", "k. c #D6AC00", "l. c #C48A00", "m. c #BF8200", "n. c #B77400", "o. c #B36A00", "p. c #AF6500", "q. c #AD6100", "r. c #AC5F00", "s. c #AF6400", "t. c #AB5C00", "u. c #A14A00", "v. c #A04900", "w. c #A45100", "x. c #AD5F00", "y. c #B56F00", "z. c #835500", "A. c #5E4000", "B. c #432F00", "C. c #F4E7A8", "D. c #F0E083", "E. c #EAD34D", "F. c #E5C700", "G. c #ECD300", "H. c #EFD900", "I. c #DAB300", "J. c #CD9C00", "K. c #BE8000", "L. c #A95800", "M. c #A85800", "N. c #A75500", "O. c #AA5C00", "P. c #A75600", "Q. c #A24C00", "R. c #A55200", "S. c #AB5D00", "T. c #B06700", "U. c #7E4D00", "V. c #593800", "W. c #3F2800", "X. c #F5E8A8", "Y. c #EBD74D", "Z. c #E9CF00", "`. c #E0BD00", " + c #D7AE00", ".+ c #CE9D00", "++ c #C89200", "@+ c #C58C00", "#+ c #BF8100", "$+ c #A24D00", "%+ c #A85700", "&+ c #A95900", "*+ c #B26900", "=+ c #7D4B00", "-+ c #583500", ";+ c #3D2600", ">+ c #F3E6A8", ",+ c #EED94D", "'+ c #E9CE00", ")+ c #E5C500", "!+ c #DBB500", "~+ c #D1A100", "{+ c #C79000", "]+ c #C18400", "^+ c #C08300", "/+ c #B97500", "(+ c #A04800", "_+ c #9D4300", ":+ c #9F4700", "<+ c #A34F00", "[+ c #A65300", "}+ c #A44F00", "|+ c #AC6000", "1+ c #AE6200", "2+ c #B16700", "3+ c #7C4A00", "4+ c #583600", "5+ c #3D2500", "6+ c #EFDC4D", "7+ c #D8AF00", "8+ c #CF9F00", "9+ c #C58D00", "0+ c #BA7900", "a+ c #B67100", "b+ c #9C4100", "c+ c #9C4200", "d+ c #9E4500", "e+ c #A14B00", "f+ c #9F4800", "g+ c #AE6400", "h+ c #B46C00", "i+ c #7D4C00", "j+ c #F2E283", "k+ c #E5C800", "l+ c #E7CA00", "m+ c #DEB900", "n+ c #D6AA00", "o+ c #D1A200", "p+ c #C79100", "q+ c #BB7C00", "r+ c #B46F00", "s+ c #B16900", "t+ c #A34D00", "u+ c #A04700", "v+ c #9B4000", "w+ c #9F4500", "x+ c #9E4400", "y+ c #A24E00", "z+ c #7F5000", "A+ c #5A3900", "B+ c #3E2800", "C+ c #F2E5A8", "D+ c #EFDD83", "E+ c #E7CD4D", "F+ c #DDB800", "G+ c #DBB400", "H+ c #D2A300", "I+ c #C99400", "J+ c #9E4600", "K+ c #9B4100", "L+ c #993C00", "M+ c #9F4600", "N+ c #9A3F00", "O+ c #5B3C00", "P+ c #412D00", "Q+ c #F0E1A8", "R+ c #EAD483", "S+ c #DDBC4D", "T+ c #CF9E00", "U+ c #D5AB00", "V+ c #CE9C00", "W+ c #C99200", "X+ c #C28600", "Y+ c #B97600", "Z+ c #9B3F00", "`+ c #B16800", " @ c #805100", ".@ c #5D3F00", "+@ c #443100", "@@ c #8C6500", "#@ c #8A6300", "$@ c #917000", "%@ c #927200", "&@ c #906E00", "*@ c #906F00", "=@ c #8E6900", "-@ c #885E00", ";@ c #825400", ">@ c #7B4800", ",@ c #753B00", "'@ c #713400", ")@ c #6F3200", "!@ c #703400", "~@ c #713600", "{@ c #703300", "]@ c #6F3100", "^@ c #723600", "/@ c #753E00", "(@ c #784200", "_@ c #794500", ":@ c #835700", "<@ c #5F4200", "[@ c #443200", "}@ c #604400", "|@ c #5F4300", "1@ c #624900", "2@ c #634A00", "3@ c #654C00", "4@ c #5B3D00", "5@ c #573400", "6@ c #532D00", "7@ c #512800", "8@ c #4E2400", "9@ c #502700", "0@ c #502800", "a@ c #502600", "b@ c #522A00", "c@ c #542F00", "d@ c #553100", "e@ c #573300", "f@ c #593900", "g@ c #5B3B00", "h@ c #5C3D00", "i@ c #5E4200", "j@ c #604500", "k@ c #433100", "l@ c #422D00", "m@ c #422F00", "n@ c #3E2700", "o@ c #3D2400", "p@ c #3B2300", "q@ c #391F00", "r@ c #391D00", "s@ c #391E00", "t@ c #381C00", "u@ c #381B00", "v@ c #402B00", "w@ c #453400", " . + @ # $ % & + * = - ; > , ' ) ! ~ ! { ] ^ / ( _ : ~ < = [ } ", "| 1 2 3 4 5 6 5 7 8 1 9 0 a b c d e e f g h i j k k l g 0 1 m n ", "* o p q r s t u v p w x y z A B C D E C F G H I I J K C L M N } ", "@ O P Q R S T U V W X Y Z ` ...+.@.#.$.%.&.*.=.-.;.>.,.'.).!.} ", "% ~.{.].^.T /.(._.W :.<.[.}.|.1.2.2.$.3.4.5.=.6.7.8.9.0.a.b.c.n ", "$ 4 d.e.f.g.h.i.j.k.Y l.m.n.o.p.q.r.s.4.&.t.6.u.v.w.x.>.y.z.A.B.", "C.D.E.F.G.H.f.e.I.J.l.m.K.>.L.M.N.w.O.&.8.P.P.Q.v.R.S.T.2.U.V.W.", "X.6 Y.V Z.^.`. +.+++@+#+K.2.R.Q.Q.$+M.M.$+7.%+P.N.M.&+*.*+=+-+;+", ">+6 ,+'+Z.)+!+~+{+]+^+}./+*+P.(+_+:+<+[+Q.}+-.|+*.1+3.3.2+3+4+5+", "$ 6 6+S '+Q 7+8+9+0+0.a+>.1+%+u.b+c+d+e+f+Q.M.g+2+h+@.+.2.i+V.;+", ">+j+s k+l+m+n+o+p+q+r+s+*.6.t+u+c+v+_+w+x+_+y+1+*+>.h+2.*+z+A+B+", "C+D+E+I.F+G+ +H+I+m.1.4.8.v.u+J+K+L+_+M+N+L+M+L.9.s.1+s.2+z+O+P+", "Q+R+S+T+U+ +X V+W+X+Y+4.[+:+J+u.:+N+_+_+Z+d+$+N.S.S.g+2+`+ @.@+@", "* 1 @@#@$@%@&@*@=@-@;@>@,@'@)@!@~@{@]@)@!@^@/@(@_@>@=+z+z+:@<@[@", "| c.}@|@1@2@2@3@c.4@V.5@6@7@8@9@0@a@8@8@b@c@d@e@5@f@g@g@h@i@j@k@", "l@m@B.B.B.[@[@[@P+n@;+o@p@q@r@s@s@t@u@t@s@o@n@n@B+v@l@B.B.[@w@[@"}; qtexengine-0.3/example/example.pro0000644000175000017500000000047511236304612017237 0ustar showardshowardTARGET = example TEMPLATE = app CONFIG += warn_on release thread MOC_DIR = ../tmp OBJECTS_DIR = ../tmp DESTDIR = ./ INCLUDEPATH += ../src LIBS += ../libQTeXEngine.a HEADERS = renderarea.h \ pixmaps.h SOURCES = main.cpp \ renderarea.cpp qtexengine-0.3/example/main.cpp0000644000175000017500000000066011240610414016501 0ustar showardshoward#include #include "renderarea.h" #include int main(int argc, char *argv[]) { QApplication app(argc, argv); RenderArea area; area.setGeometry(100, 100, 600, 500); area.show(); QTeXPaintDevice tex(QString("example.tex"), QSize(600, 500)); tex.setDocumentMode(); QPainter paint; paint.begin(&tex); area.draw(&paint); paint.end(); return app.exec(); } qtexengine-0.3/example/renderarea.h0000644000175000017500000000062111172144470017337 0ustar showardshoward#ifndef RENDERAREA_H #define RENDERAREA_H #include class RenderArea : public QWidget { public: enum Shape { Line, Polyline, Polygon, Rect, RoundedRect, Ellipse, Arc, Chord, Pie, Path, Text, Pixmap, TiledPixmap }; RenderArea(QWidget *parent = 0); void draw(QPainter *painter); protected: void paintEvent(QPaintEvent *event); }; #endif qtexengine-0.3/doc/0000755000175000017500000000000011450124170014163 5ustar showardshowardqtexengine-0.3/doc/qtexengine.dox0000644000175000017500000000377411242320432017057 0ustar showardshoward/*! \mainpage QTeXEngine - TeX support for Qt QTeXEngine enables Qt based applications to easily export graphics created using the QPainter class to TeX. It is built on top of QPaintEngine and uses the TikZ/Pgf graphic systems for TeX. \section license License QTeXEngine is distributed under the terms of the \ref gtexenginelicense. \section platforms Platforms QTeXEngine might be usable in all environments where you find Qt 4. \section dependencies Dependencies QTeXEngine depends on the following libraries: Qt 4. \section downloads Downloads QTeXEngine-0.2-opensource.zip \section installonmainpage Installation Have a look at the QTeXEngine.pro project file. It is prepared for building static libraries in Win32 and Unix/X11 environments. If you don't know what to do with it, read the file \ref qtexengineinstall and/or Trolltechs qmake manual. \section support Support If you are looking for technical support contact ion.vasilief@proindependent.com. \section relatedprojects Related Projects TikZ/Pgf graphic systems for TeX.\n QtiPlot, data analysis and scientific plotting tool. \section credits Credits: \par Author: Ion Vasilief \par Project admin: Ion Vasilief \ */ /*! \page gtexenginelicense GPL License, Version 3 \include "COPYING.txt" */ /*! \page qtexengineinstall README.txt \include "README.txt" */ qtexengine-0.3/doc/html/0000755000175000017500000000000011450124170015127 5ustar showardshowardqtexengine-0.3/doc/html/tabs.css0000644000175000017500000000345611242321244016602 0ustar showardshoward/* tabs styles, based on http://www.alistapart.com/articles/slidingdoors */ DIV.tabs { float : left; width : 100%; background : url("tab_b.gif") repeat-x bottom; margin-bottom : 4px; } DIV.tabs UL { margin : 0px; padding-left : 10px; list-style : none; } DIV.tabs LI, DIV.tabs FORM { display : inline; margin : 0px; padding : 0px; } DIV.tabs FORM { float : right; } DIV.tabs A { float : left; background : url("tab_r.gif") no-repeat right top; border-bottom : 1px solid #84B0C7; font-size : 80%; font-weight : bold; text-decoration : none; } DIV.tabs A:hover { background-position: 100% -150px; } DIV.tabs A:link, DIV.tabs A:visited, DIV.tabs A:active, DIV.tabs A:hover { color: #1A419D; } DIV.tabs SPAN { float : left; display : block; background : url("tab_l.gif") no-repeat left top; padding : 5px 9px; white-space : nowrap; } DIV.tabs INPUT { float : right; display : inline; font-size : 1em; } DIV.tabs TD { font-size : 80%; font-weight : bold; text-decoration : none; } /* Commented Backslash Hack hides rule from IE5-Mac \*/ DIV.tabs SPAN {float : none;} /* End IE5-Mac hack */ DIV.tabs A:hover SPAN { background-position: 0% -150px; } DIV.tabs LI.current A { background-position: 100% -150px; border-width : 0px; } DIV.tabs LI.current SPAN { background-position: 0% -150px; padding-bottom : 6px; } DIV.navpath { background : none; border : none; border-bottom : 1px solid #84B0C7; text-align : center; margin : 2px; padding : 2px; } qtexengine-0.3/doc/html/doxygen.png0000644000175000017500000000240111242321244017307 0ustar showardshowardPNG  IHDRd-ok>gAMAOX2tEXtSoftwareAdobe ImageReadyqe<]PLTEǾ"&ﶻޠ{ԍ눙נED9hg]_X<@:#mhU1tRNSvIDATxbC: d#h` @X",***LK.], X@t b @BD6%""  % B:Hf@ RPy"K`\PbC(!II!h(!Cąl!0[X\J\$TM(>a$S @ Ш@R.$LJBRAG1 (FPhhT%!`&q%u P    CT$B|Wl!B`R$( @A%%@,(%$RPmB U`1IYB  99\1 yCCCf"[N'=TGȒl8^K5<SRɤ%@@  b1qAXH&BR y nP4A j>  t!+(.WQA2MU܂ `1%`19F< 3cZ`e!\ D+. 83!lYYA -6EJV @XXX 4 @86`RdB4I " "@xrʌHA`f ȰC"XV0C b@2H ȓ p)!( 04)(%R $Tʀbb,s@7 Ѱ?f֗\PIx!I"Ȉ3 QYt^^gv- }>WJOAV`$&#88\FF SFJ$ƀƊ 4 - Hf ?5 k1d, ."FˀI"4Hgx|fm)))9. aMD& X@t b @%DK.], X@t b @d`ɽSOIENDB`qtexengine-0.3/doc/html/annotated.html0000644000175000017500000000332111242321244017771 0ustar showardshoward QTeXEngine: Class List

Class List

Here are the classes, structs, unions and interfaces with brief descriptions:
QTeXPaintDevice
QTeXPaintEngine

Generated on Mon Aug 17 15:34:11 2009 for QTeXEngine by  doxygen 1.5.8
qtexengine-0.3/doc/html/functions_enum.html0000644000175000017500000000416611242321244021060 0ustar showardshoward QTeXEngine: Class Members - Enumerations
 


Generated on Mon Aug 17 15:34:11 2009 for QTeXEngine by  doxygen 1.5.8
qtexengine-0.3/doc/html/functions_func.html0000644000175000017500000002541411242321244021046 0ustar showardshoward QTeXEngine: Class Members - Functions
 

- a -

- b -

- c -

- d -

- e -

- i -

- m -

- p -

- q -

- r -

- s -

- t -

- u -

- w -

- ~ -


Generated on Mon Aug 17 15:34:11 2009 for QTeXEngine by  doxygen 1.5.8
qtexengine-0.3/doc/html/gtexenginelicense.html0000644000175000017500000014367211242321244021532 0ustar showardshoward QTeXEngine: GPL License, Version 3

GPL License, Version 3

                    GNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU General Public License is a free, copyleft license for
software and other kinds of works.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.  We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors.  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights.  Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received.  You must make sure that they, too, receive
or can get the source code.  And you must show them these terms so they
know their rights.

  Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.

  For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software.  For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.

  Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so.  This is fundamentally incompatible with the aim of
protecting users' freedom to change the software.  The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable.  Therefore, we
have designed this version of the GPL to prohibit the practice for those
products.  If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.

  Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary.  To prevent this, the GPL assures that
patents cannot be used to render the program non-free.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Use with the GNU Affero General Public License.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

    <program>  Copyright (C) <year>  <name of author>
    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.

  The GNU General Public License does not permit incorporating your program
into proprietary programs.  If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library.  If this is what you want to do, use the GNU Lesser General
Public License instead of this License.  But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.

Generated on Mon Aug 17 15:34:11 2009 for QTeXEngine by  doxygen 1.5.8
qtexengine-0.3/doc/html/QTeXEngine_8h.html0000644000175000017500000000412511242321244020365 0ustar showardshoward QTeXEngine: C:/qtiplot/3rdparty/QTeXEngine/src/QTeXEngine.h File Reference

QTeXEngine.h File Reference

#include <QPaintDevice>
#include <QPaintEngine>
#include <QPrinter>

Go to the source code of this file.

Classes

class  QTeXPaintDevice
class  QTeXPaintEngine


Generated on Mon Aug 17 15:34:11 2009 for QTeXEngine by  doxygen 1.5.8
qtexengine-0.3/doc/html/QTeXPaintDevice_8cpp.html0000644000175000017500000000322111242321244021702 0ustar showardshoward QTeXEngine: C:/qtiplot/3rdparty/QTeXEngine/src/QTeXPaintDevice.cpp File Reference

QTeXPaintDevice.cpp File Reference

#include "QTeXEngine.h"
#include <QApplication>
#include <QDesktopWidget>

Generated on Mon Aug 17 15:34:11 2009 for QTeXEngine by  doxygen 1.5.8
qtexengine-0.3/doc/html/dirs.html0000644000175000017500000000237411242321244016764 0ustar showardshoward QTeXEngine: Directory Hierarchy

Directories

This directory hierarchy is sorted roughly, but not completely, alphabetically:

Generated on Mon Aug 17 15:34:11 2009 for QTeXEngine by  doxygen 1.5.8
qtexengine-0.3/doc/html/QTeXPaintEngine_8cpp.html0000644000175000017500000000333311242321244021714 0ustar showardshoward QTeXEngine: C:/qtiplot/3rdparty/QTeXEngine/src/QTeXPaintEngine.cpp File Reference

QTeXPaintEngine.cpp File Reference

#include "QTeXEngine.h"
#include <math.h>
#include <QDir>
#include <QTextStream>
#include <QDateTime>

Generated on Mon Aug 17 15:34:11 2009 for QTeXEngine by  doxygen 1.5.8
qtexengine-0.3/doc/html/doxygen.css0000644000175000017500000001310511242321244017316 0ustar showardshowardbody, table, div, p, dl { font-family: Lucida Grande, Verdana, Geneva, Arial, sans-serif; font-size: 12px; } /* @group Heading Levels */ h1 { text-align: center; font-size: 150%; } h2 { font-size: 120%; } h3 { font-size: 100%; } /* @end */ caption { font-weight: bold; } div.qindex, div.navtab{ background-color: #e8eef2; border: 1px solid #84b0c7; text-align: center; margin: 2px; padding: 2px; } div.qindex, div.navpath { width: 100%; line-height: 140%; } div.navtab { margin-right: 15px; } /* @group Link Styling */ a { color: #153788; font-weight: normal; text-decoration: none; } .contents a:visited { color: #1b77c5; } a:hover { text-decoration: underline; } a.qindex { font-weight: bold; } a.qindexHL { font-weight: bold; background-color: #6666cc; color: #ffffff; border: 1px double #9295C2; } .contents a.qindexHL:visited { color: #ffffff; } a.el { font-weight: bold; } a.elRef { } a.code { } a.codeRef { } /* @end */ dl.el { margin-left: -1cm; } .fragment { font-family: monospace, fixed; font-size: 105%; } pre.fragment { border: 1px solid #CCCCCC; background-color: #f5f5f5; padding: 4px 6px; margin: 4px 8px 4px 2px; } div.ah { background-color: black; font-weight: bold; color: #ffffff; margin-bottom: 3px; margin-top: 3px } div.groupHeader { margin-left: 16px; margin-top: 12px; margin-bottom: 6px; font-weight: bold; } div.groupText { margin-left: 16px; font-style: italic; } body { background: white; color: black; margin-right: 20px; margin-left: 20px; } td.indexkey { background-color: #e8eef2; font-weight: bold; border: 1px solid #CCCCCC; margin: 2px 0px 2px 0; padding: 2px 10px; } td.indexvalue { background-color: #e8eef2; border: 1px solid #CCCCCC; padding: 2px 10px; margin: 2px 0px; } tr.memlist { background-color: #f0f0f0; } p.formulaDsp { text-align: center; } img.formulaDsp { } img.formulaInl { vertical-align: middle; } /* @group Code Colorization */ span.keyword { color: #008000 } span.keywordtype { color: #604020 } span.keywordflow { color: #e08000 } span.comment { color: #800000 } span.preprocessor { color: #806020 } span.stringliteral { color: #002080 } span.charliteral { color: #008080 } span.vhdldigit { color: #ff00ff } span.vhdlchar { color: #000000 } span.vhdlkeyword { color: #700070 } span.vhdllogic { color: #ff0000 } /* @end */ .search { color: #003399; font-weight: bold; } form.search { margin-bottom: 0px; margin-top: 0px; } input.search { font-size: 75%; color: #000080; font-weight: normal; background-color: #e8eef2; } td.tiny { font-size: 75%; } .dirtab { padding: 4px; border-collapse: collapse; border: 1px solid #84b0c7; } th.dirtab { background: #e8eef2; font-weight: bold; } hr { height: 0; border: none; border-top: 1px solid #666; } /* @group Member Descriptions */ .mdescLeft, .mdescRight, .memItemLeft, .memItemRight, .memTemplItemLeft, .memTemplItemRight, .memTemplParams { background-color: #FAFAFA; border: none; margin: 4px; padding: 1px 0 0 8px; } .mdescLeft, .mdescRight { padding: 0px 8px 4px 8px; color: #555; } .memItemLeft, .memItemRight, .memTemplParams { border-top: 1px solid #ccc; } .memTemplParams { color: #606060; } /* @end */ /* @group Member Details */ /* Styles for detailed member documentation */ .memtemplate { font-size: 80%; color: #606060; font-weight: normal; margin-left: 3px; } .memnav { background-color: #e8eef2; border: 1px solid #84b0c7; text-align: center; margin: 2px; margin-right: 15px; padding: 2px; } .memitem { padding: 0; } .memname { white-space: nowrap; font-weight: bold; } .memproto, .memdoc { border: 1px solid #84b0c7; } .memproto { padding: 0; background-color: #d5e1e8; font-weight: bold; -webkit-border-top-left-radius: 8px; -webkit-border-top-right-radius: 8px; -moz-border-radius-topleft: 8px; -moz-border-radius-topright: 8px; } .memdoc { padding: 2px 5px; background-color: #eef3f5; border-top-width: 0; -webkit-border-bottom-left-radius: 8px; -webkit-border-bottom-right-radius: 8px; -moz-border-radius-bottomleft: 8px; -moz-border-radius-bottomright: 8px; } .paramkey { text-align: right; } .paramtype { white-space: nowrap; } .paramname { color: #602020; white-space: nowrap; } .paramname em { font-style: normal; } /* @end */ /* @group Directory (tree) */ /* for the tree view */ .ftvtree { font-family: sans-serif; margin: 0.5em; } /* these are for tree view when used as main index */ .directory { font-size: 9pt; font-weight: bold; } .directory h3 { margin: 0px; margin-top: 1em; font-size: 11pt; } /* The following two styles can be used to replace the root node title with an image of your choice. Simply uncomment the next two styles, specify the name of your image and be sure to set 'height' to the proper pixel height of your image. */ /* .directory h3.swap { height: 61px; background-repeat: no-repeat; background-image: url("yourimage.gif"); } .directory h3.swap span { display: none; } */ .directory > h3 { margin-top: 0; } .directory p { margin: 0px; white-space: nowrap; } .directory div { display: none; margin: 0px; } .directory img { vertical-align: -30%; } /* these are for tree view when not used as main index */ .directory-alt { font-size: 100%; font-weight: bold; } .directory-alt h3 { margin: 0px; margin-top: 1em; font-size: 11pt; } .directory-alt > h3 { margin-top: 0; } .directory-alt p { margin: 0px; white-space: nowrap; } .directory-alt div { display: none; margin: 0px; } .directory-alt img { vertical-align: -30%; } /* @end */ address { font-style: normal; color: #333; } qtexengine-0.3/doc/html/classQTeXPaintEngine-members.html0000644000175000017500000005025211242321244023442 0ustar showardshoward QTeXEngine: Member List

QTeXPaintEngine Member List

This is the complete list of members for QTeXPaintEngine, including all inherited members.

addNewBrushColor()QTeXPaintEngine [private]
addNewPatternColor()QTeXPaintEngine [private]
addNewPenColor()QTeXPaintEngine [private]
begin(QPaintDevice *)QTeXPaintEngine [virtual]
beginScope()QTeXPaintEngine [private]
changedClipping()QTeXPaintEngine [private]
clipPath()QTeXPaintEngine [private]
color(const QColor &col)QTeXPaintEngine [private]
convertPoint(const QPointF &p)QTeXPaintEngine [private]
d_clip_pathQTeXPaintEngine [private]
d_current_colorQTeXPaintEngine [private]
d_document_modeQTeXPaintEngine [private]
d_escape_textQTeXPaintEngine [private]
d_font_sizeQTeXPaintEngine [private]
d_gray_scaleQTeXPaintEngine [private]
d_horizontal_alignmentQTeXPaintEngine [private]
d_open_scopeQTeXPaintEngine [private]
d_pattern_colorQTeXPaintEngine [private]
d_pgf_modeQTeXPaintEngine [private]
d_pixmap_indexQTeXPaintEngine [private]
d_unitQTeXPaintEngine [private]
defineColor(const QColor &c, const QString &name)QTeXPaintEngine [private]
drawEllipse(const QRectF &)QTeXPaintEngine [virtual]
drawImage(const QRectF &, const QImage &, const QRectF &, Qt::ImageConversionFlags)QTeXPaintEngine [virtual]
drawLines(const QLineF *, int)QTeXPaintEngine [virtual]
drawPath(const QPainterPath &path)QTeXPaintEngine [virtual]
drawPgfShape(Shape shape, const QString &path)QTeXPaintEngine [private]
drawPixmap(const QRectF &, const QPixmap &, const QRectF &)QTeXPaintEngine [virtual]
drawPixmap(const QPixmap &pix, const QRectF &p)QTeXPaintEngine [private]
drawPoints(const QPointF *points, int pointCount)QTeXPaintEngine [virtual]
drawPolygon(const QPointF *, int, PolygonDrawMode)QTeXPaintEngine [virtual]
drawRects(const QRectF *, int)QTeXPaintEngine [virtual]
drawShape(Shape shape, const QString &path)QTeXPaintEngine [private]
drawTextItem(const QPointF &, const QTextItem &)QTeXPaintEngine [virtual]
drawTikzShape(Shape shape, const QString &path)QTeXPaintEngine [private]
Ellipse enum valueQTeXPaintEngine [private]
emptyStringOperation()QTeXPaintEngine [private]
end()QTeXPaintEngine [virtual]
endScope()QTeXPaintEngine [private]
exportFontSizes(bool on=true)QTeXPaintEngine [inline]
fileQTeXPaintEngine [private]
fnameQTeXPaintEngine [private]
indentString(const QString &s)QTeXPaintEngine [private]
Line enum valueQTeXPaintEngine [private]
Path enum valueQTeXPaintEngine [private]
path(const QPainterPath &path)QTeXPaintEngine [private]
pgfBrush(const QBrush &brush)QTeXPaintEngine [private]
pgfPath(const QPainterPath &path)QTeXPaintEngine [private]
pgfPen(const QPen &pen)QTeXPaintEngine [private]
pgfPoint(const QPointF &p)QTeXPaintEngine [private]
Points enum valueQTeXPaintEngine [private]
Polygon enum valueQTeXPaintEngine [private]
Polyline enum valueQTeXPaintEngine [private]
QTeXPaintEngine(const QString &, QTeXPaintDevice::Unit u=QTeXPaintDevice::pt)QTeXPaintEngine
Rect enum valueQTeXPaintEngine [private]
resFactorX()QTeXPaintEngine [private]
resFactorY()QTeXPaintEngine [private]
setDocumentMode(bool on=true)QTeXPaintEngine [inline]
setEscapeTextMode(bool on=true)QTeXPaintEngine [inline]
setGrayScale(bool on=true)QTeXPaintEngine [inline]
setOutputMode(QTeXPaintDevice::OutputMode mode)QTeXPaintEngine [inline]
setTextHorizontalAlignment(Qt::Alignment alignment)QTeXPaintEngine [inline]
setUnit(QTeXPaintDevice::Unit u)QTeXPaintEngine [inline]
Shape enum nameQTeXPaintEngine [private]
tikzBrush(const QBrush &brush)QTeXPaintEngine [private]
tikzPath(const QPainterPath &path)QTeXPaintEngine [private]
tikzPen(const QPen &pen)QTeXPaintEngine [private]
tikzPoint(const QPointF &p)QTeXPaintEngine [private]
type() const QTeXPaintEngine [inline, virtual]
unit()QTeXPaintEngine [private]
unitFactor()QTeXPaintEngine [private]
updateState(const QPaintEngineState &)QTeXPaintEngine [inline, virtual]
writeToFile(const QString &s)QTeXPaintEngine [private]
~QTeXPaintEngine()QTeXPaintEngine [inline]


Generated on Mon Aug 17 15:34:11 2009 for QTeXEngine by  doxygen 1.5.8
qtexengine-0.3/doc/html/pages.html0000644000175000017500000000243111242321244017114 0ustar showardshoward QTeXEngine: Page Index

Related Pages

Here is a list of all related documentation pages:

Generated on Mon Aug 17 15:34:11 2009 for QTeXEngine by  doxygen 1.5.8
qtexengine-0.3/doc/html/dir_def0c14f7261295f36d3de237dcfedeb.html0000644000175000017500000000373211242321244023544 0ustar showardshoward QTeXEngine: C:/qtiplot/3rdparty/QTeXEngine/src/ Directory Reference

src Directory Reference


Files

file  QTeXEngine.h [code]
file  QTeXPaintDevice.cpp
file  QTeXPaintEngine.cpp

Generated on Mon Aug 17 15:34:11 2009 for QTeXEngine by  doxygen 1.5.8
qtexengine-0.3/doc/html/QTeXEngine_8h-source.html0000644000175000017500000007622211242321244021672 0ustar showardshoward QTeXEngine: C:/qtiplot/3rdparty/QTeXEngine/src/QTeXEngine.h Source File

QTeXEngine.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     File                 : QTeXEngine.h
00003     Project              : QTeXEngine GNU GPL v. 3.0
00004     --------------------------------------------------------------------
00005     Copyright            : (C) 2009 by Ion Vasilief
00006     Email (use @ for *)  : ion_vasilief*yahoo.fr
00007     Description          : Enables the export of QPainter grafics to .tex files
00008  ***************************************************************************/
00009 
00010 /***************************************************************************
00011  *                                                                         *
00012  *  This program is free software; you can redistribute it and/or modify   *
00013  *  it under the terms of the GNU General Public License as published by   *
00014  *  the Free Software Foundation; either version 3 of the License, or      *
00015  *  (at your option) any later version.                                    *
00016  *                                                                         *
00017  *  This program is distributed in the hope that it will be useful,        *
00018  *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
00019  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
00020  *  GNU General Public License for more details.                           *
00021  *                                                                         *
00022  *   You should have received a copy of the GNU General Public License     *
00023  *   along with this program; if not, write to the Free Software           *
00024  *   Foundation, Inc., 51 Franklin Street, Fifth Floor,                    *
00025  *   Boston, MA  02110-1301  USA                                           *
00026  *                                                                         *
00027  ***************************************************************************/
00028 
00029 #ifndef Q_TEX_ENGINE_H
00030 #define Q_TEX_ENGINE_H
00031 
00032 #include <QPaintDevice>
00033 #include <QPaintEngine>
00034 #include <QPrinter>
00035 
00036 class QFile;
00037 class QTeXPaintEngine;
00038 
00039 class QTeXPaintDevice : public QPaintDevice
00040 {
00041 public:
00042     enum Unit{pt, bp, mm, cm, in, ex, em};
00043     enum OutputMode{Tikz, Pgf};
00044 
00045     QTeXPaintDevice(const QString& fileName, const QSize& s = QSize(), Unit u = pt);
00046     ~QTeXPaintDevice();
00047 
00048     virtual QPaintEngine * paintEngine () const;
00050     void setColorMode(QPrinter::ColorMode mode);
00052     void setOutputMode(OutputMode mode);
00054     void setUnit(Unit u);
00056     void setSize(const QSize& s){d_size = s;};
00058     void setDocumentMode(bool on = true);
00060     void setEscapeTextMode(bool on = true);
00062     void exportFontSizes(bool on = true);
00064     void setTextHorizontalAlignment(Qt::Alignment alignment);
00065 
00066 protected:
00067     virtual int metric ( PaintDeviceMetric ) const;
00068 
00069 private:
00071     QSize d_size;
00072     QTeXPaintEngine* engine;
00073 };
00074 
00075 class QTeXPaintEngine : public QPaintEngine
00076 {
00077 public:
00078     QTeXPaintEngine(const QString&, QTeXPaintDevice::Unit u = QTeXPaintDevice::pt);
00079     ~QTeXPaintEngine(){};
00080     virtual bool begin(QPaintDevice*);
00081     virtual bool end();
00082     virtual void updateState( const QPaintEngineState & ) {};
00083     virtual void drawEllipse(const QRectF &);
00084     virtual QPaintEngine::Type type() const {return QPaintEngine::User;};
00085     virtual void drawPoints ( const QPointF * points, int pointCount );
00086     virtual void drawLines ( const QLineF * , int );
00087     virtual void drawPath ( const QPainterPath & path );
00088     virtual void drawPolygon ( const QPointF * , int , PolygonDrawMode );
00089     virtual void drawTextItem ( const QPointF & , const QTextItem & );
00090     virtual void drawRects ( const QRectF * , int );
00091     virtual void drawPixmap ( const QRectF &, const QPixmap &, const QRectF &);
00092     virtual void drawImage(const QRectF &, const QImage &, const QRectF &, Qt::ImageConversionFlags);
00093 
00095     void setUnit(QTeXPaintDevice::Unit u){d_unit = u;};
00097     void setGrayScale(bool on = true){d_gray_scale = on;};
00099     void setOutputMode(QTeXPaintDevice::OutputMode mode){d_pgf_mode = (mode == QTeXPaintDevice::Pgf) ? true : false;};
00100     void setDocumentMode(bool on = true){d_document_mode = on;};
00102     void setEscapeTextMode(bool on = true){d_escape_text = on;};
00103     void exportFontSizes(bool on = true){d_font_size = on;};
00104     void setTextHorizontalAlignment(Qt::Alignment alignment){d_horizontal_alignment = alignment;};
00105 
00106 private:
00107     enum Shape{Line, Polygon, Polyline, Rect, Ellipse, Path, Points};
00109     bool emptyStringOperation();
00110     QString unit();
00111     double unitFactor();
00112     double resFactorX();
00113     double resFactorY();
00114 
00115     QString pgfPoint(const QPointF& p);
00116     QString tikzPoint(const QPointF& p);
00117 
00118     QPointF convertPoint(const QPointF& p);
00119     QString color(const QColor& col);
00120     QString defineColor(const QColor& c, const QString& name);
00121 
00122     QString pgfPen(const QPen& pen);
00123     QString tikzPen(const QPen& pen);
00124 
00125     QString pgfBrush(const QBrush& brush);
00126     QString tikzBrush(const QBrush& brush);
00127 
00128     QString beginScope();
00129     QString endScope();
00130 
00131     QString clipPath();
00132     bool changedClipping();
00133 
00134     QString path(const QPainterPath & path);
00135     QString pgfPath(const QPainterPath & path);
00136     QString tikzPath(const QPainterPath & path);
00137 
00138     QString drawShape(Shape shape, const QString & path);
00139     QString drawPgfShape(Shape shape, const QString & path);
00140     QString drawTikzShape(Shape shape, const QString & path);
00141 
00143     void drawPixmap(const QPixmap &pix, const QRectF &p);
00144     void writeToFile(const QString& s);
00145     QString indentString(const QString& s);
00147     bool addNewBrushColor();
00148     bool addNewPatternColor();
00149     bool addNewPenColor();
00150 
00151     QFile *file;
00153     QString fname;
00154     int d_pixmap_index;
00155     bool d_pgf_mode;
00156     bool d_open_scope;
00157     bool d_gray_scale;
00158     bool d_document_mode;
00159     bool d_escape_text;
00160     bool d_font_size;
00161     QPainterPath d_clip_path;
00162     QColor d_current_color, d_pattern_color;
00163     QTeXPaintDevice::Unit d_unit;
00164     Qt::Alignment d_horizontal_alignment;
00165 };
00166 #endif

Generated on Mon Aug 17 15:34:11 2009 for QTeXEngine by  doxygen 1.5.8
qtexengine-0.3/doc/html/classes.html0000644000175000017500000000367211242321244017462 0ustar showardshoward QTeXEngine: Alphabetical List

Class Index

  Q  
QTeXPaintDevice   QTeXPaintEngine   


Generated on Mon Aug 17 15:34:11 2009 for QTeXEngine by  doxygen 1.5.8
qtexengine-0.3/doc/html/tab_l.gif0000644000175000017500000000130211242321244016673 0ustar showardshowardGIF89a ,薴ŝɯͻ, ,@P`H$!%CqVe2XJ(Ġ+3 2$ kv-u*"}|}|~q(" $f 'l(&&$r & !){rƲεҽͼиP?Bm A%V܈!k/Đ;^$Ɩ#Mf)f͇(WLK҄ I)L:eD Cx*4 Uh %A^NKbeXkx!2t !5t]$%X.i[]YfEkg`:zҞ;}jaaM׸c瞽vۺ8ȋ'?9積G_>yu_ߞ]zw߭Ǿm浏G~თ/>٫|W}v;qtexengine-0.3/doc/html/index.html0000644000175000017500000000662011242321244017130 0ustar showardshoward QTeXEngine: QTeXEngine - TeX support for Qt

QTeXEngine - TeX support for Qt

0.2

QTeXEngine enables Qt based applications to easily export graphics created using the QPainter class to TeX. It is built on top of QPaintEngine and uses the TikZ/Pgf graphic systems for TeX.

License

QTeXEngine is distributed under the terms of the GPL License, Version 3.

Platforms

QTeXEngine might be usable in all environments where you find Qt 4.

Dependencies

QTeXEngine depends on the following libraries: Qt 4.

Downloads

QTeXEngine-0.2-opensource.zip

Installation

Have a look at the QTeXEngine.pro project file. It is prepared for building static libraries in Win32 and Unix/X11 environments. If you don't know what to do with it, read the file README.txt and/or Trolltechs qmake manual.

Support

If you are looking for technical support contact ion.vasilief@proindependent.com.

Related Projects

TikZ/Pgf graphic systems for TeX.
QtiPlot, data analysis and scientific plotting tool.

Credits:

Author:
Ion Vasilief
Project admin:
Ion Vasilief <ion.vasilief@proindependent.com>

Generated on Mon Aug 17 15:34:11 2009 for QTeXEngine by  doxygen 1.5.8
qtexengine-0.3/doc/html/classQTeXPaintDevice.html0000644000175000017500000005624211242321244022011 0ustar showardshoward QTeXEngine: QTeXPaintDevice Class Reference

QTeXPaintDevice Class Reference

#include <QTeXEngine.h>

List of all members.

Public Types


Public Member Functions

void exportFontSizes (bool on=true)
 Enables/Disables exporting of font sizes.
virtual QPaintEngine * paintEngine () const
 QTeXPaintDevice (const QString &fileName, const QSize &s=QSize(), Unit u=pt)
void setColorMode (QPrinter::ColorMode mode)
 Set color mode (Color or GrayScale).
void setDocumentMode (bool on=true)
 Enables/Disables document tags.
void setEscapeTextMode (bool on=true)
 Enables/Disables escaping of special characters in texts.
void setOutputMode (OutputMode mode)
 Set output mode (Tikz or Pgf).
void setSize (const QSize &s)
 Set size.
void setTextHorizontalAlignment (Qt::Alignment alignment)
 Set horizontal alignment.
void setUnit (Unit u)
 Set length unit.
 ~QTeXPaintDevice ()

Protected Member Functions

virtual int metric (PaintDeviceMetric) const

Private Attributes

QSize d_size
 Size in pixels.
QTeXPaintEngineengine


Member Enumeration Documentation

Enumerator:
Tikz 
Pgf 

Enumerator:
pt 
bp 
mm 
cm 
in 
ex 
em 


Constructor & Destructor Documentation

QTeXPaintDevice::QTeXPaintDevice ( const QString &  fileName,
const QSize &  s = QSize(),
Unit  u = pt 
)

References d_size, and engine.

QTeXPaintDevice::~QTeXPaintDevice (  ) 

References engine.


Member Function Documentation

void QTeXPaintDevice::exportFontSizes ( bool  on = true  ) 

Enables/Disables exporting of font sizes.

References engine, and QTeXPaintEngine::exportFontSizes().

int QTeXPaintDevice::metric ( PaintDeviceMetric  metric  )  const [protected, virtual]

References d_size.

QPaintEngine * QTeXPaintDevice::paintEngine (  )  const [virtual]

References engine.

void QTeXPaintDevice::setColorMode ( QPrinter::ColorMode  mode  ) 

Set color mode (Color or GrayScale).

References engine, and QTeXPaintEngine::setGrayScale().

void QTeXPaintDevice::setDocumentMode ( bool  on = true  ) 

Enables/Disables document tags.

References engine, and QTeXPaintEngine::setDocumentMode().

void QTeXPaintDevice::setEscapeTextMode ( bool  on = true  ) 

Enables/Disables escaping of special characters in texts.

References engine, and QTeXPaintEngine::setEscapeTextMode().

void QTeXPaintDevice::setOutputMode ( OutputMode  mode  ) 

Set output mode (Tikz or Pgf).

References engine, and QTeXPaintEngine::setOutputMode().

void QTeXPaintDevice::setSize ( const QSize &  s  )  [inline]

Set size.

References d_size.

void QTeXPaintDevice::setTextHorizontalAlignment ( Qt::Alignment  alignment  ) 

Set horizontal alignment.

References engine, and QTeXPaintEngine::setTextHorizontalAlignment().

void QTeXPaintDevice::setUnit ( Unit  u  ) 

Set length unit.

References engine, and QTeXPaintEngine::setUnit().


Member Data Documentation

QSize QTeXPaintDevice::d_size [private]

Size in pixels.

Referenced by metric(), QTeXPaintDevice(), and setSize().


The documentation for this class was generated from the following files:

Generated on Mon Aug 17 15:34:11 2009 for QTeXEngine by  doxygen 1.5.8
qtexengine-0.3/doc/html/tab_r.gif0000644000175000017500000000503111242321244016704 0ustar showardshowardGIF89a,薴ŝɯͻ,,@pH,Ȥrl:ШtJZجv h d@L"F:򑐌$9 (8&Nz (GFB^!˨)WVl)1 w̥.wY0Ib|Hpf:e pJ}Ȧ6nz 80%"8v~ @JЂMBІ:D'ZPKF ּ&16юz HGJRb L5Җ0LgJӚ#(e>Ӟ@ PJԢHMRԦ:PTJժ&5;%Uծz` XJVCjYֶp\Uxͫ^׾i)$Mb:v, ಘͬf7z hGKҚMjWֺ*$SPͭnwm +Mr:E?9Zͮv9" xKbLz^A|ͯ0/LN(; n0'LaJ0{/{ؘG|(SCr. v1wc6@LdHNd/PLeOXp|+s2L_153M5t3_:wsgʹπp?/FFЎt!-JҖ1NӞuA-Pԝ>53UWծ4cYZѶsA׀5,aƶ3=e3~-3Sc6mo2Mq>7ӭn$D~7,y1m}v\/N3#S\gu-mO0C\'_S^|.c.0ל49~s=3d:u)?F;ˮW|;W)vt˽w|=xA;qtexengine-0.3/doc/html/functions.html0000644000175000017500000003710211242321244020030 0ustar showardshoward QTeXEngine: Class Members
Here is a list of all class members with links to the classes they belong to:

- a -

- b -

- c -

- d -

- e -

- f -

- i -

- l -

- m -

- o -

- p -

- q -

- r -

- s -

- t -

- u -

- w -

- ~ -


Generated on Mon Aug 17 15:34:11 2009 for QTeXEngine by  doxygen 1.5.8
qtexengine-0.3/doc/html/functions_vars.html0000644000175000017500000000720011242321244021057 0ustar showardshoward QTeXEngine: Class Members - Variables
 


Generated on Mon Aug 17 15:34:11 2009 for QTeXEngine by  doxygen 1.5.8
qtexengine-0.3/doc/html/classQTeXPaintDevice-members.html0000644000175000017500000001675011242321244023441 0ustar showardshoward QTeXEngine: Member List

QTeXPaintDevice Member List

This is the complete list of members for QTeXPaintDevice, including all inherited members.

bp enum valueQTeXPaintDevice
cm enum valueQTeXPaintDevice
d_sizeQTeXPaintDevice [private]
em enum valueQTeXPaintDevice
engineQTeXPaintDevice [private]
ex enum valueQTeXPaintDevice
exportFontSizes(bool on=true)QTeXPaintDevice
in enum valueQTeXPaintDevice
metric(PaintDeviceMetric) const QTeXPaintDevice [protected, virtual]
mm enum valueQTeXPaintDevice
OutputMode enum nameQTeXPaintDevice
paintEngine() const QTeXPaintDevice [virtual]
Pgf enum valueQTeXPaintDevice
pt enum valueQTeXPaintDevice
QTeXPaintDevice(const QString &fileName, const QSize &s=QSize(), Unit u=pt)QTeXPaintDevice
setColorMode(QPrinter::ColorMode mode)QTeXPaintDevice
setDocumentMode(bool on=true)QTeXPaintDevice
setEscapeTextMode(bool on=true)QTeXPaintDevice
setOutputMode(OutputMode mode)QTeXPaintDevice
setSize(const QSize &s)QTeXPaintDevice [inline]
setTextHorizontalAlignment(Qt::Alignment alignment)QTeXPaintDevice
setUnit(Unit u)QTeXPaintDevice
Tikz enum valueQTeXPaintDevice
Unit enum nameQTeXPaintDevice
~QTeXPaintDevice()QTeXPaintDevice


Generated on Mon Aug 17 15:34:11 2009 for QTeXEngine by  doxygen 1.5.8
qtexengine-0.3/doc/html/functions_eval.html0000644000175000017500000001001511242321244021031 0ustar showardshoward QTeXEngine: Class Members - Enumerator
Generated on Mon Aug 17 15:34:11 2009 for QTeXEngine by  doxygen 1.5.8
qtexengine-0.3/doc/html/qtexengine_8dox.html0000644000175000017500000000246711242321244021137 0ustar showardshoward QTeXEngine: qtexengine.dox File Reference

qtexengine.dox File Reference


Generated on Mon Aug 17 15:34:11 2009 for QTeXEngine by  doxygen 1.5.8
qtexengine-0.3/doc/html/tab_b.gif0000644000175000017500000000004311242321244016662 0ustar showardshowardGIF89a,D;qtexengine-0.3/doc/html/classQTeXPaintEngine.html0000644000175000017500000027400111242321244022012 0ustar showardshoward QTeXEngine: QTeXPaintEngine Class Reference

QTeXPaintEngine Class Reference

#include <QTeXEngine.h>

List of all members.

Public Member Functions

virtual bool begin (QPaintDevice *)
virtual void drawEllipse (const QRectF &)
virtual void drawImage (const QRectF &, const QImage &, const QRectF &, Qt::ImageConversionFlags)
virtual void drawLines (const QLineF *, int)
virtual void drawPath (const QPainterPath &path)
virtual void drawPixmap (const QRectF &, const QPixmap &, const QRectF &)
virtual void drawPoints (const QPointF *points, int pointCount)
virtual void drawPolygon (const QPointF *, int, PolygonDrawMode)
virtual void drawRects (const QRectF *, int)
virtual void drawTextItem (const QPointF &, const QTextItem &)
virtual bool end ()
void exportFontSizes (bool on=true)
 QTeXPaintEngine (const QString &, QTeXPaintDevice::Unit u=QTeXPaintDevice::pt)
void setDocumentMode (bool on=true)
void setEscapeTextMode (bool on=true)
 Enables/Disables escaping of special characters in texts.
void setGrayScale (bool on=true)
 Enables/Disables gray scale output.
void setOutputMode (QTeXPaintDevice::OutputMode mode)
 Set output syntax.
void setTextHorizontalAlignment (Qt::Alignment alignment)
void setUnit (QTeXPaintDevice::Unit u)
 Set length unit.
virtual QPaintEngine::Type type () const
virtual void updateState (const QPaintEngineState &)
 ~QTeXPaintEngine ()

Private Types


Private Member Functions

bool addNewBrushColor ()
 Returns true if a new color command should be added.
bool addNewPatternColor ()
bool addNewPenColor ()
QString beginScope ()
bool changedClipping ()
QString clipPath ()
QString color (const QColor &col)
QPointF convertPoint (const QPointF &p)
QString defineColor (const QColor &c, const QString &name)
QString drawPgfShape (Shape shape, const QString &path)
void drawPixmap (const QPixmap &pix, const QRectF &p)
 Draws pixmap pix in a given rectangle.
QString drawShape (Shape shape, const QString &path)
QString drawTikzShape (Shape shape, const QString &path)
bool emptyStringOperation ()
 Returns true if draw operation has NoBrush and NoPen.
QString endScope ()
QString indentString (const QString &s)
QString path (const QPainterPath &path)
QString pgfBrush (const QBrush &brush)
QString pgfPath (const QPainterPath &path)
QString pgfPen (const QPen &pen)
QString pgfPoint (const QPointF &p)
double resFactorX ()
double resFactorY ()
QString tikzBrush (const QBrush &brush)
QString tikzPath (const QPainterPath &path)
QString tikzPen (const QPen &pen)
QString tikzPoint (const QPointF &p)
QString unit ()
double unitFactor ()
void writeToFile (const QString &s)

Private Attributes

QPainterPath d_clip_path
QColor d_current_color
bool d_document_mode
bool d_escape_text
bool d_font_size
bool d_gray_scale
Qt::Alignment d_horizontal_alignment
bool d_open_scope
QColor d_pattern_color
bool d_pgf_mode
int d_pixmap_index
QTeXPaintDevice::Unit d_unit
QFile * file
QString fname
 Name of the output file.


Member Enumeration Documentation

enum QTeXPaintEngine::Shape [private]

Enumerator:
Line 
Polygon 
Polyline 
Rect 
Ellipse 
Path 
Points 


Constructor & Destructor Documentation

QTeXPaintEngine::QTeXPaintEngine ( const QString &  f,
QTeXPaintDevice::Unit  u = QTeXPaintDevice::pt 
)

QTeXPaintEngine::~QTeXPaintEngine (  )  [inline]


Member Function Documentation

bool QTeXPaintEngine::addNewBrushColor (  )  [private]

Returns true if a new color command should be added.

References changedClipping(), and d_current_color.

Referenced by tikzBrush().

bool QTeXPaintEngine::addNewPatternColor (  )  [private]

References d_pattern_color.

Referenced by tikzBrush().

bool QTeXPaintEngine::addNewPenColor (  )  [private]

bool QTeXPaintEngine::begin ( QPaintDevice *  p  )  [virtual]

QString QTeXPaintEngine::beginScope (  )  [private]

bool QTeXPaintEngine::changedClipping (  )  [private]

QString QTeXPaintEngine::clipPath (  )  [private]

References d_pgf_mode, path(), pgfPath(), and tikzPath().

Referenced by beginScope(), and changedClipping().

QString QTeXPaintEngine::color ( const QColor &  col  )  [private]

QPointF QTeXPaintEngine::convertPoint ( const QPointF &  p  )  [private]

QString QTeXPaintEngine::defineColor ( const QColor &  c,
const QString &  name 
) [private]

References d_gray_scale.

Referenced by pgfBrush(), and tikzBrush().

void QTeXPaintEngine::drawEllipse ( const QRectF &  rect  )  [virtual]

void QTeXPaintEngine::drawImage ( const QRectF &  r,
const QImage &  image,
const QRectF &  sr,
Qt::ImageConversionFlags  flags 
) [virtual]

References drawPixmap().

void QTeXPaintEngine::drawLines ( const QLineF *  lines,
int  lineCount 
) [virtual]

References drawShape(), Line, path(), and writeToFile().

void QTeXPaintEngine::drawPath ( const QPainterPath &  path  )  [virtual]

QString QTeXPaintEngine::drawPgfShape ( Shape  shape,
const QString &  path 
) [private]

References Ellipse, Line, Path, pgfBrush(), pgfPen(), Points, Polygon, Polyline, and Rect.

Referenced by drawShape().

void QTeXPaintEngine::drawPixmap ( const QPixmap &  pix,
const QRectF &  p 
) [private]

Draws pixmap pix in a given rectangle.

References convertPoint(), d_pixmap_index, file, pgfPoint(), resFactorX(), resFactorY(), and unit().

void QTeXPaintEngine::drawPixmap ( const QRectF &  r,
const QPixmap &  pm,
const QRectF &  sr 
) [virtual]

Referenced by drawImage().

void QTeXPaintEngine::drawPoints ( const QPointF *  points,
int  pointCount 
) [virtual]

void QTeXPaintEngine::drawPolygon ( const QPointF *  points,
int  pointCount,
PolygonDrawMode  mode 
) [virtual]

void QTeXPaintEngine::drawRects ( const QRectF *  rects,
int  rectCount 
) [virtual]

QString QTeXPaintEngine::drawShape ( Shape  shape,
const QString &  path 
) [private]

void QTeXPaintEngine::drawTextItem ( const QPointF &  p,
const QTextItem &  textItem 
) [virtual]

QString QTeXPaintEngine::drawTikzShape ( Shape  shape,
const QString &  path 
) [private]

References Line, Polyline, tikzBrush(), and tikzPen().

Referenced by drawShape().

bool QTeXPaintEngine::emptyStringOperation (  )  [private]

Returns true if draw operation has NoBrush and NoPen.

References color().

Referenced by drawEllipse(), drawPath(), drawPoints(), drawPolygon(), and drawRects().

bool QTeXPaintEngine::end (  )  [virtual]

QString QTeXPaintEngine::endScope (  )  [private]

References d_pgf_mode.

Referenced by end(), and writeToFile().

void QTeXPaintEngine::exportFontSizes ( bool  on = true  )  [inline]

References d_font_size.

Referenced by QTeXPaintDevice::exportFontSizes().

QString QTeXPaintEngine::indentString ( const QString &  s  )  [private]

Referenced by beginScope(), and writeToFile().

QString QTeXPaintEngine::path ( const QPainterPath &  path  )  [private]

QString QTeXPaintEngine::pgfBrush ( const QBrush &  brush  )  [private]

References color(), and defineColor().

Referenced by drawPgfShape().

QString QTeXPaintEngine::pgfPath ( const QPainterPath &  path  )  [private]

References convertPoint(), and pgfPoint().

Referenced by clipPath(), and path().

QString QTeXPaintEngine::pgfPen ( const QPen &  pen  )  [private]

References color(), and unit().

Referenced by drawPgfShape().

QString QTeXPaintEngine::pgfPoint ( const QPointF &  p  )  [private]

double QTeXPaintEngine::resFactorX (  )  [private]

References unitFactor().

Referenced by convertPoint(), drawEllipse(), and drawPixmap().

double QTeXPaintEngine::resFactorY (  )  [private]

References unitFactor().

Referenced by convertPoint(), drawEllipse(), and drawPixmap().

void QTeXPaintEngine::setDocumentMode ( bool  on = true  )  [inline]

void QTeXPaintEngine::setEscapeTextMode ( bool  on = true  )  [inline]

Enables/Disables escaping of special characters in texts.

References d_escape_text.

Referenced by QTeXPaintDevice::setEscapeTextMode().

void QTeXPaintEngine::setGrayScale ( bool  on = true  )  [inline]

Enables/Disables gray scale output.

References d_gray_scale.

Referenced by QTeXPaintDevice::setColorMode().

void QTeXPaintEngine::setOutputMode ( QTeXPaintDevice::OutputMode  mode  )  [inline]

Set output syntax.

References d_pgf_mode, and QTeXPaintDevice::Pgf.

Referenced by QTeXPaintDevice::setOutputMode().

void QTeXPaintEngine::setTextHorizontalAlignment ( Qt::Alignment  alignment  )  [inline]

void QTeXPaintEngine::setUnit ( QTeXPaintDevice::Unit  u  )  [inline]

Set length unit.

References d_unit.

Referenced by QTeXPaintDevice::setUnit().

QString QTeXPaintEngine::tikzBrush ( const QBrush &  brush  )  [private]

QString QTeXPaintEngine::tikzPath ( const QPainterPath &  path  )  [private]

References convertPoint(), and tikzPoint().

Referenced by begin(), clipPath(), and path().

QString QTeXPaintEngine::tikzPen ( const QPen &  pen  )  [private]

References addNewPenColor(), color(), d_current_color, and unit().

Referenced by drawTikzShape().

QString QTeXPaintEngine::tikzPoint ( const QPointF &  p  )  [private]

References unit().

Referenced by drawEllipse(), drawPoints(), and tikzPath().

virtual QPaintEngine::Type QTeXPaintEngine::type (  )  const [inline, virtual]

virtual void QTeXPaintEngine::updateState ( const QPaintEngineState &   )  [inline, virtual]

void QTeXPaintEngine::writeToFile ( const QString &  s  )  [private]


Member Data Documentation

Referenced by drawPixmap().

QFile* QTeXPaintEngine::file [private]

Referenced by begin(), drawPixmap(), end(), and writeToFile().

QString QTeXPaintEngine::fname [private]

Name of the output file.

Referenced by begin().


The documentation for this class was generated from the following files:

Generated on Mon Aug 17 15:34:11 2009 for QTeXEngine by  doxygen 1.5.8
qtexengine-0.3/doc/html/qtexengineinstall.html0000644000175000017500000000521211242321244021553 0ustar showardshoward QTeXEngine: README.txt

README.txt

QTeXEngine GNU GPL v. 3.0
------------------------
AUTHOR: Ion Vasilief
------------------------
FEATURES:  QTeXEngine enables Qt based applications to easily export graphics created using the 
       QPainter class to the .tex format using Pgf/TikZ packages (http://sourceforge.net/projects/pgf/).
---------------------------------------------------------------------------
DEPENDENCIES: You need Qt (http://www.qtsoftware.com) installed on your system in order to build QTeXEngine.
---------------------------------------------------------------------------
COMPILING: QTeXEngine uses qmake for the building process. 
    qmake is part of a Qt distribution: 
    qmake reads project files, that contain the options and rules how to build a certain project. 
    A project file ends with the suffix "*.pro". Please read the qmake documentation for more details.

After installing Qt on your system, type the following command lines: 

    $ qmake
    $ make

if you use MinGW, or:

    $ qmake -tp vc -r

if you use Microsoft Visual Studio (this will generate Visual Studio .vcproj project files in the "src" and "example" folders).

---------------------------------------------------------------------------
USE: a short demo application is provided in the "example" folder of the source archive.
---------------------------------------------------------------------------

Generated on Mon Aug 17 15:34:11 2009 for QTeXEngine by  doxygen 1.5.8
qtexengine-0.3/doc/html/files.html0000644000175000017500000000347011242321244017123 0ustar showardshoward QTeXEngine: File Index

File List

Here is a list of all files with brief descriptions:
C:/qtiplot/3rdparty/QTeXEngine/src/QTeXEngine.h [code]
C:/qtiplot/3rdparty/QTeXEngine/src/QTeXPaintDevice.cpp
C:/qtiplot/3rdparty/QTeXEngine/src/QTeXPaintEngine.cpp

Generated on Mon Aug 17 15:34:11 2009 for QTeXEngine by  doxygen 1.5.8
qtexengine-0.3/doc/Doxyfile0000644000175000017500000002062111242320116015667 0ustar showardshoward#--------------------------------------------------------------------------- # Project related configuration options #--------------------------------------------------------------------------- PROJECT_NAME = QTeXEngine PROJECT_NUMBER = 0.2 OUTPUT_DIRECTORY = . CREATE_SUBDIRS = NO OUTPUT_LANGUAGE = English USE_WINDOWS_ENCODING = NO BRIEF_MEMBER_DESC = YES REPEAT_BRIEF = YES ABBREVIATE_BRIEF = ALWAYS_DETAILED_SEC = NO INLINE_INHERITED_MEMB = NO FULL_PATH_NAMES = YES STRIP_FROM_PATH = STRIP_FROM_INC_PATH = SHORT_NAMES = NO JAVADOC_AUTOBRIEF = NO MULTILINE_CPP_IS_BRIEF = NO DETAILS_AT_TOP = YES INHERIT_DOCS = YES DISTRIBUTE_GROUP_DOC = NO TAB_SIZE = 4 ALIASES = OPTIMIZE_OUTPUT_FOR_C = NO OPTIMIZE_OUTPUT_JAVA = NO SUBGROUPING = YES #--------------------------------------------------------------------------- # Build related configuration options #--------------------------------------------------------------------------- EXTRACT_ALL = YES EXTRACT_PRIVATE = YES EXTRACT_STATIC = YES EXTRACT_LOCAL_CLASSES = YES EXTRACT_LOCAL_METHODS = NO HIDE_UNDOC_MEMBERS = NO HIDE_UNDOC_CLASSES = NO HIDE_FRIEND_COMPOUNDS = NO HIDE_IN_BODY_DOCS = NO INTERNAL_DOCS = NO CASE_SENSE_NAMES = YES HIDE_SCOPE_NAMES = NO SHOW_INCLUDE_FILES = YES INLINE_INFO = YES SORT_MEMBER_DOCS = YES SORT_BRIEF_DOCS = YES SORT_BY_SCOPE_NAME = NO GENERATE_TODOLIST = YES GENERATE_TESTLIST = YES GENERATE_BUGLIST = YES GENERATE_DEPRECATEDLIST= YES ENABLED_SECTIONS = MAX_INITIALIZER_LINES = 30 SHOW_USED_FILES = YES SHOW_DIRECTORIES = YES FILE_VERSION_FILTER = #--------------------------------------------------------------------------- # configuration options related to warning and progress messages #--------------------------------------------------------------------------- QUIET = NO WARNINGS = YES WARN_IF_UNDOCUMENTED = YES WARN_IF_DOC_ERROR = YES WARN_NO_PARAMDOC = NO WARN_FORMAT = "$file:$line: $text" WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- INPUT = ../src . FILE_PATTERNS = *.cpp \ *.h \ *.txt \ *.dox RECURSIVE = yes EXCLUDE = EXCLUDE_SYMLINKS = NO EXCLUDE_PATTERNS = *moc_* EXAMPLE_PATH = ../README.txt ../COPYING.txt EXAMPLE_PATTERNS = EXAMPLE_RECURSIVE = NO IMAGE_PATH = INPUT_FILTER = FILTER_PATTERNS = FILTER_SOURCE_FILES = NO #--------------------------------------------------------------------------- # configuration options related to source browsing #--------------------------------------------------------------------------- SOURCE_BROWSER = NO INLINE_SOURCES = NO STRIP_CODE_COMMENTS = YES REFERENCED_BY_RELATION = YES REFERENCES_RELATION = YES VERBATIM_HEADERS = YES #--------------------------------------------------------------------------- # configuration options related to the alphabetical class index #--------------------------------------------------------------------------- ALPHABETICAL_INDEX = YES COLS_IN_ALPHA_INDEX = 5 IGNORE_PREFIX = #--------------------------------------------------------------------------- # configuration options related to the HTML output #--------------------------------------------------------------------------- GENERATE_HTML = YES HTML_OUTPUT = html HTML_FILE_EXTENSION = .html HTML_HEADER = HTML_FOOTER = HTML_STYLESHEET = HTML_ALIGN_MEMBERS = YES GENERATE_HTMLHELP = NO CHM_FILE = HHC_LOCATION = GENERATE_CHI = NO BINARY_TOC = NO TOC_EXPAND = NO DISABLE_INDEX = NO ENUM_VALUES_PER_LINE = 4 GENERATE_TREEVIEW = NO TREEVIEW_WIDTH = 250 #--------------------------------------------------------------------------- # configuration options related to the LaTeX output #--------------------------------------------------------------------------- GENERATE_LATEX = NO LATEX_OUTPUT = latex LATEX_CMD_NAME = latex MAKEINDEX_CMD_NAME = makeindex COMPACT_LATEX = NO PAPER_TYPE = a4wide EXTRA_PACKAGES = LATEX_HEADER = PDF_HYPERLINKS = NO USE_PDFLATEX = NO LATEX_BATCHMODE = NO LATEX_HIDE_INDICES = NO #--------------------------------------------------------------------------- # configuration options related to the RTF output #--------------------------------------------------------------------------- GENERATE_RTF = NO RTF_OUTPUT = rtf COMPACT_RTF = NO RTF_HYPERLINKS = NO RTF_STYLESHEET_FILE = RTF_EXTENSIONS_FILE = #--------------------------------------------------------------------------- # configuration options related to the man page output #--------------------------------------------------------------------------- GENERATE_MAN = NO MAN_OUTPUT = man MAN_EXTENSION = .3 MAN_LINKS = NO #--------------------------------------------------------------------------- # configuration options related to the XML output #--------------------------------------------------------------------------- GENERATE_XML = NO XML_OUTPUT = xml XML_SCHEMA = XML_DTD = XML_PROGRAMLISTING = YES #--------------------------------------------------------------------------- # configuration options for the AutoGen Definitions output #--------------------------------------------------------------------------- GENERATE_AUTOGEN_DEF = NO #--------------------------------------------------------------------------- # configuration options related to the Perl module output #--------------------------------------------------------------------------- GENERATE_PERLMOD = NO PERLMOD_LATEX = NO PERLMOD_PRETTY = YES PERLMOD_MAKEVAR_PREFIX = #--------------------------------------------------------------------------- # Configuration options related to the preprocessor #--------------------------------------------------------------------------- ENABLE_PREPROCESSING = YES MACRO_EXPANSION = NO EXPAND_ONLY_PREDEF = NO SEARCH_INCLUDES = YES INCLUDE_PATH = INCLUDE_FILE_PATTERNS = PREDEFINED = EXPAND_AS_DEFINED = SKIP_FUNCTION_MACROS = YES #--------------------------------------------------------------------------- # Configuration::additions related to external references #--------------------------------------------------------------------------- TAGFILES = GENERATE_TAGFILE = ALLEXTERNALS = NO EXTERNAL_GROUPS = YES PERL_PATH = /usr/bin/perl #--------------------------------------------------------------------------- # Configuration options related to the dot tool #--------------------------------------------------------------------------- CLASS_DIAGRAMS = YES HIDE_UNDOC_RELATIONS = YES # recommendation: install graphviz and use HAVE_DOT = YES HAVE_DOT = NO CLASS_GRAPH = YES COLLABORATION_GRAPH = YES GROUP_GRAPHS = YES UML_LOOK = NO TEMPLATE_RELATIONS = NO INCLUDE_GRAPH = YES INCLUDED_BY_GRAPH = YES CALL_GRAPH = NO GRAPHICAL_HIERARCHY = YES DIRECTORY_GRAPH = YES DOT_IMAGE_FORMAT = png DOT_PATH = DOTFILE_DIRS = MAX_DOT_GRAPH_WIDTH = 1024 MAX_DOT_GRAPH_HEIGHT = 1024 MAX_DOT_GRAPH_DEPTH = 1000 DOT_TRANSPARENT = NO DOT_MULTI_TARGETS = NO GENERATE_LEGEND = YES DOT_CLEANUP = YES #--------------------------------------------------------------------------- # Configuration::additions related to the search engine #--------------------------------------------------------------------------- SEARCHENGINE = NO qtexengine-0.3/CHANGES.txt0000644000175000017500000000060611466323462015245 0ustar showardshowardQTeXEngine GNU GPL v. 3.0 ------------------------ 09/11/2010 - Release 0.3: Fixed a bug leading to the creation of empty drawing paths. ------------------------ 17/08/2009 - Release 0.2: - Improved handling of text strings. - Added several useful output options. - Added Doxygen configuration files. ------------------------ 05/08/2009 - Release 0.1: Initial release.qtexengine-0.3/test/0000755000175000017500000000000011513214361014377 5ustar showardshowardqtexengine-0.3/test/thermal.tif0000644000175000017500000002504011227403376016550 0ustar showardshowardMM*(wwgggggggggggggggggggggggggggggggggggggggggggggggggg碢""άȪƪƫƫƫƫƫƫƫƫƫƫƫƫƫƫƫƫƫƫƫƫƁ\\$$ӣҢԤդդդդդդդդդդդդդդդդդդդդQQӢŐ))((''$$ѡ߭군UUӢ߬ŐލۭˤЫխשOO쫫լצþ==ꔔĘƨӶŐއצ΢``__ggjjhh((YYbbڨ֥**ddaahhŐ44SSRR##Ԥǚң٨שii""興Ǚ˝ѢZZեʝեاʴʠѢ˜٨᮹;;۲̞РӣZZ֦ϠܪҢ٧٨ϠҢϠ۩DD̞͟""հΪǷZZڨܪ!!ݫ٨II۩ܪDD++''**++++,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,++rrا߬""ڨIIݫެРاެ߬٨ѡ""ۨJJݫ߬ܪڨ۩ܪܪܪܪܪܪܪܪܪܪܪܪܪܪܪܪܪܪܪܪ۪کܪ""ۨJJݫ߬""ۨJJݫ߬__""ۨZZJJݫ߬,,""ۨ&&JJݫ߬__00**샃""ڨ22**\\JJݫެ''˝ɛޫ""ڨ''ˡƙ٨JJݫެ𿅅ɛƙ۩""ڨ˞×צJJݫ߬ޫ۩""ڨاIIܫެ""ڨ%%$$######## ""####""NN$$$$########""######]]ܪ͞Οݪެϡ˝ڨ߭ڨ٨٨٨צңӣئ٨٨٨ڨڨ٨٨٨اӣҢצ٧٨٨ڨެ}}yyssrrqqqqqqqqqqqqqqqqqqqq٭Ŗzzttrrqqqqqqqqqqqqqqqqqqqqٔťؠԙϖ͖͖||00̖̖͖͖̕ͿŶա՚ϖ͖͖͖̖̖͖͖ͮ̕ݫ֦֥֥BBΟΟԣե֥֥צݫ߬צ֥֥եϠ͟ӣե֥֥֦۪粿DDϠСҢ͞ެIIکܪ""ެاIIݫެ""ڨJJݫ߬""ۨJJݫ߬""ۨJJݫ߬""ۨJJݫ߬""ۨJJݫ߬""ڨśܛܛܛܛܛ܀--̖̇ךۛܛŮכܛܛܛܛܛ΄ʓ՚ۛܛܶrr00BB__Ϡ0066̝ʳݫ˺Ԥƙǚɛėެ;;) o)@(**(/private/Network/Servers/triplex.plexim.com/Users/wolfgang/Documents/Development/plecs-dev/private/thermal.tif^^qtexengine-0.3/test/test.pro0000644000175000017500000000034611236304564016112 0ustar showardshowardTARGET = test TEMPLATE = app CONFIG += warn_on release thread MOC_DIR = ../tmp OBJECTS_DIR = ../tmp DESTDIR = ./ INCLUDEPATH += ../src LIBS += ../libQTeXEngine.a SOURCES += test.cpp qtexengine-0.3/test/test.cpp0000644000175000017500000000304511240610434016062 0ustar showardshoward#include #include "QTeXEngine.h" class PolygonItem : public QGraphicsItem { virtual QRectF boundingRect() const { return QRectF(-20, -20, 40, 40); } virtual void paint (QPainter* painter, const QStyleOptionGraphicsItem*, QWidget*) { painter->setBrush(Qt::blue); painter->setPen(Qt::NoPen); painter->drawConvexPolygon(QVector() << QPointF(-20, -20) << QPointF(20, 0) << QPointF(-20, 20)); } }; class GraphicsView : public QGraphicsView { Q_OBJECT public: GraphicsView(){ QGraphicsScene* s = new QGraphicsScene(this); setScene(s); setRenderHint(QPainter::Antialiasing); translate(0.5, 0.5); QGraphicsLineItem* l = new QGraphicsLineItem(10,10, 70, 100); QPen lp; lp.setDashPattern(QVector() << 1.0 << 4.0); l->setPen(lp); s->addItem(l); PolygonItem* p = new PolygonItem(); p->setPos(60,20); s->addItem(p); QPixmap pm1("machines.tif"); QGraphicsPixmapItem* px1 = new QGraphicsPixmapItem(pm1); px1->setPos(70, 30); s->addItem(px1); QPixmap pm2("thermal.tif"); QGraphicsPixmapItem* px2 = new QGraphicsPixmapItem(pm2); px2->setPos(140, 30); s->addItem(px2); } }; #include "test.moc" int main(int argc, char **argv) { QApplication app(argc, argv); GraphicsView view; view.show(); QTeXPaintDevice tex("test.tex", view.scene()->sceneRect().size().toSize()); tex.setOutputMode(QTeXPaintDevice::Pgf); tex.setDocumentMode(); QPainter painter(&tex); view.scene()->render(&painter); painter.end(); return app.exec(); } qtexengine-0.3/test/machines.tif0000644000175000017500000002510211227373010016671 0ustar showardshowardMM*(ǐsssssssss׬̣kkVmmWsplkkkkkkss\jjUww_ܰFF8FF8oۯحججججج||EE7EE8;;/GG9حѧ޲گ֬ۯ֫ppZ$$̣SSCܰ׬ٮححEE7Ü渱tt]ЦܱUUDʡ뼄ippZƌppppppppp֫ޱggRrr[ppY޲ˠggSjjUvsonmmmmmrr[ffRtt]콽ooY++"BB5qڮج׬׬׬׬׬~AA4kkkUzCC5޲ЦccOܰگ֬۰׬im[[ILL=WWF߳ЦSSB߲۰}}dpJJ;ĖwܰOO?yya\\I|{ۯ˰~33)f!!繮LL=Üݱgss\ooYj߲mmẈ̘yrr[ggR``LccO''qqZllVjjUhhSaaN֫vv^u뼔wbbNiiTss]̵llW[[IVVE,,#oگحˢЧPP@ݰǟddPddPccP ``L[[IZZHWWFRRBQQAZZHaaNccOccOccOUUDWWF[[I߲^^K̵hhSگ~YYGi֫ݱ޲߳UUDЧŞ>>2??2??2??2??2??2llW}tx|||z(( {~22(ө~\\JگŎr  ܰt__L›Ƞ^^KGG9ܰ׬ЧϥϥΥ׬ݱ֫ÜȠΥϦϦѧԩԪժժѨsYYG›88-RRBܰڮگ޲٭vddP֫Ө``Mͤժ߲ܰ׬֫֫֫ƞҨ̣߳껬TTCϦڮݱժۯݱگۯөhw۰޲``Mʢpuy{{{fQQAOO?MM>ٮ֫ЦnnXݱܰͤKK<ۯ``M\\JkkVppZtt]rr[ooYnnXnnXnnX}ޱͣө˕wuu^߳ժII:ܰ``MnnXfzܯڮڮڮڮڮܰޱΤө̖xzza̪ܰ;;/;;/ԪGG9߲ݱ``Mɡ̣֫ۯᴡ11'33)55*گ׬̗y~~eح̼qqZٮ22(EE7۰ݱ``M !!!!!!!!!!ffR޲حҨӨժ̘ye׭̵jjUۯ%%BB5өܰ``M$$**!SSBۯ֬ȠҨ̘yeحΥtt]ur]]K<<0ƞٮ``ṂҨܰܰڮٮٮٮosw̘֫֫yeحnnXkkV٭;;/ĝح``MˢkkUooYss\uu]uu]uu]vv_xx`uu^rr[ح̘֬yeحۯحAA4Ѩܰ``M@@3KK<]]J|zvuuuۯʢҨ̘yeحÜEE7گݱ``Mo٭׫֫֫׫حܰЦԪ̘yeحǦhhSݱ``Mɡǟĝ̣ҨԪԪԪv!!!!!!۰׬iiTحȠȠ˯bbNݰ``Mos55*44*33(22(22(22(xx`ЦԪ̼ccOۯŞ֫䷄iZZHWWEyɡrr[``M@@3KK||cժ``ṂҨtlsxxxxxxxxj%%nk))!ج~[[Iۯᅥk--$,,#ܰɡ[[IffQ44)44)44)44)Ѩ--$**!--$..%//%̣ԩի֫֫֫AA4ĝ›??3++"UUDΤڮԪͥ߳٭ժ߲iiTuܰ33)̣ի֬֫֫ЦҨFF8ͤ׬ժ22(ٮͤөөȟӨ߳ٮ߳حޱhhS|GG9Ϧԩө٭ffR}ʡȠݱԩRRAۯۯڮjjUͤeePkŝĘz~~e֫حˢss\߲'' Ɵvv_ss\uu^f̨zzbzzbhvv_Ɣvyya껰suSSCTTCTTDUUDUUDUUDUUDUUDUUDoݱ˼gحGG9r**"׬ٮۯ׬ۯ00&mmWxx`ٮAA4ЦddP߳جժժժժժժ֪٭BB5߳ZZHڮ``M߲ݱ``MŞݱVVE߲ܰVVEҨzzaӨiiTccOx{׬ě||}}daaM٭ddPի~~eˢΥtt]vv_vv^uu]}}d̦vv_xx`kh޲xx`mmWΥܰuwPP@PPAQQAQQAQQAQQAQQAQQAQQAo۰ڮݱۯ{{c֫KK<׬گۯ׬ۯǐs{{caNԩHH9kkV %%߳جժժժժժժ֪٭˖xmX٩ZHyEE7ۯݱ<<0̣!!$${̛|##11(Ǖw!i~eՆO?Bt5өۯ;;/II;{{cj55+ʢ̛|hMM> 䶎q~~e}dRB}XF>v2ˢح;;/ŞHH:yyaxx`11'̛|}}dJJ;ѧh}}di[IgfQu??2ʢج;;/ʢHH:yya{{b22(ժ̛|{{cII;ͤ||c&jyavթ׬dPϥ>>1ɡ׬ժϦˢʢ›ˣԩޱɡϦ{ciTϟΥԩڮÜ77,өϥÜˣŞҨܰݱޱޱޱޱޱޱޱޱޱޱޱޱޱޱޱޱޱޱޱޱޱܰԪÜqrZ|}cϥ̤ΥBB5<<0::.>>1??3??2??2??2??2??2??2??2??3??3@@3@@3@@3@@3@@3@@3@@3@@3@@3@@3@@3@@3@@3@@3@@3@@3@@3@@3@@3@@3@@3@@3@@3??3??2??2??2??2??2xѧڮܰѧٮܱݱݱܰܰܰܰܰݱޱޱޱޱޱޱޱޱޱޱޱޱޱޱޱޱޱޱޱޱޱޱޱޱݱܰܰܰܰܰ֫Ϧݱܰݱݱݱݱݱݱݱݱݱޱޱޱޱޱޱޱޱޱޱޱޱޱޱޱޱޱޱޱޱޱޱޱޱݱݱݱݱݱݱܰ޲;;) p)*@(*2*:(/private/Network/Servers/triplex.plexim.com/Users/wolfgang/Documents/Development/plecs-dev/private/machines.tifCreated with The GIMPHHqtexengine-0.3/config.pri0000644000175000017500000000026411236304246015407 0ustar showardshowardCONFIG += qt warn_on thread CONFIG += release # Comment the lines bellow if you want to build QTeXEngine statically #CONFIG += QTeXEngineDll