Moved headers to separate include directories
This commit is contained in:
parent
a94503cb82
commit
4c64008fa5
98 changed files with 0 additions and 0 deletions
|
@ -1,53 +0,0 @@
|
|||
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
|
||||
* Qwt Widget Library
|
||||
* Copyright (C) 1997 Josef Wilgen
|
||||
* Copyright (C) 2003 Uwe Rathmann
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the Qwt License, Version 1.0
|
||||
*****************************************************************************/
|
||||
|
||||
// vim: expandtab
|
||||
|
||||
#ifndef QWT_MATHML_TEXT_ENGINE_H
|
||||
#define QWT_MATHML_TEXT_ENGINE_H 1
|
||||
|
||||
#include "qwt_text_engine.h"
|
||||
|
||||
/*!
|
||||
\brief Text Engine for the MathML renderer of the Qt solutions package.
|
||||
|
||||
To enable MathML support the following code needs to be added to the
|
||||
application:
|
||||
\verbatim
|
||||
#include <qwt_mathml_text_engine.h>
|
||||
|
||||
QwtText::setTextEngine(QwtText::MathMLText, new QwtMathMLTextEngine());
|
||||
\endverbatim
|
||||
|
||||
\sa QwtTextEngine, QwtText::setTextEngine
|
||||
\warning Unfortunately the MathML renderer doesn't support rotating of texts.
|
||||
*/
|
||||
|
||||
class QWT_EXPORT QwtMathMLTextEngine: public QwtTextEngine
|
||||
{
|
||||
public:
|
||||
QwtMathMLTextEngine();
|
||||
virtual ~QwtMathMLTextEngine();
|
||||
|
||||
virtual double heightForWidth( const QFont &font, int flags,
|
||||
const QString &text, double width ) const;
|
||||
|
||||
virtual QSizeF textSize( const QFont &font, int flags,
|
||||
const QString &text ) const;
|
||||
|
||||
virtual void draw( QPainter *painter, const QRectF &rect,
|
||||
int flags, const QString &text ) const;
|
||||
|
||||
virtual bool mightRender( const QString & ) const;
|
||||
|
||||
virtual void textMargins( const QFont &, const QString &,
|
||||
double &left, double &right, double &top, double &bottom ) const;
|
||||
};
|
||||
|
||||
#endif
|
|
@ -1,45 +0,0 @@
|
|||
#ifndef _QWT_MML_DOCUMENT_H_
|
||||
#define _QWT_MML_DOCUMENT_H_ 1
|
||||
|
||||
#include <qwt_global.h>
|
||||
#include <QString>
|
||||
|
||||
class QPainter;
|
||||
class QPoint;
|
||||
|
||||
class QwtMmlDocument;
|
||||
|
||||
class QWT_EXPORT QwtMathMLDocument
|
||||
{
|
||||
public:
|
||||
enum MmlFont
|
||||
{
|
||||
NormalFont,
|
||||
FrakturFont,
|
||||
SansSerifFont,
|
||||
ScriptFont,
|
||||
MonospaceFont,
|
||||
DoublestruckFont
|
||||
};
|
||||
|
||||
QwtMathMLDocument();
|
||||
~QwtMathMLDocument();
|
||||
|
||||
void clear();
|
||||
|
||||
bool setContent( QString text, QString *errorMsg = 0,
|
||||
int *errorLine = 0, int *errorColumn = 0 );
|
||||
void paint( QPainter *p, const QPoint &pos ) const;
|
||||
QSize size() const;
|
||||
|
||||
QString fontName( MmlFont type ) const;
|
||||
void setFontName( MmlFont type, const QString &name );
|
||||
|
||||
int baseFontPointSize() const;
|
||||
void setBaseFontPointSize( int size );
|
||||
|
||||
private:
|
||||
QwtMmlDocument *m_doc;
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue