24#ifndef JKQTMATHTEXTDECORATEDNODE_H
25#define JKQTMATHTEXTDECORATEDNODE_H
26#include "jkqtmathtext/jkqtmathtext_imexport.h"
27#include "jkqtmathtext/jkqtmathtexttools.h"
28#include "jkqtmathtext/nodes/jkqtmathtextnode.h"
subclass representing a decorated text m (e.g. \vec \hat ...) node
Definition jkqtmathtextdecoratednode.h:41
DecorationType
types of decoration available in a JKQTMathTextDecoratedNode
Definition jkqtmathtextdecoratednode.h:45
@ MTDdoubleoverline
double overline over block
Definition jkqtmathtextdecoratednode.h:58
@ MTDcancel
cancel text with sloped line
Definition jkqtmathtextdecoratednode.h:67
@ MTDstrike
strikethrough text
Definition jkqtmathtextdecoratednode.h:70
@ MTDoverrightarrow
right-pointing arrow over everything text
Definition jkqtmathtextdecoratednode.h:72
@ MTDwidehat
full-width hat over block
Definition jkqtmathtextdecoratednode.h:48
@ MTDwidecheck
full-width v over block
Definition jkqtmathtextdecoratednode.h:50
@ MTDunderlineDashed
dashed line under block
Definition jkqtmathtextdecoratednode.h:60
@ MTDunderline
underline under block
Definition jkqtmathtextdecoratednode.h:59
@ MTDdoubleunderline
double line under block
Definition jkqtmathtextdecoratednode.h:62
@ MTDgrave
small grave accent over block
Definition jkqtmathtextdecoratednode.h:66
@ MTDcheck
small v over block
Definition jkqtmathtextdecoratednode.h:49
@ MTDunderrightarrow
right-pointing arrow under everything text
Definition jkqtmathtextdecoratednode.h:75
@ MTDunderlineDotted
dotted line under block
Definition jkqtmathtextdecoratednode.h:61
@ MTDunderleftrightarrow
left/right-pointing arrow under everything text
Definition jkqtmathtextdecoratednode.h:76
@ MTDoverline
overline over block
Definition jkqtmathtextdecoratednode.h:57
@ MTDbreve
small cup (breve) over block
Definition jkqtmathtextdecoratednode.h:51
@ MTDxcancel
cancel text with X
Definition jkqtmathtextdecoratednode.h:69
@ MTDbar
bar over block
Definition jkqtmathtextdecoratednode.h:55
@ MTDacute
small acute accent over block
Definition jkqtmathtextdecoratednode.h:65
@ MTDtilde
small tilde over block
Definition jkqtmathtextdecoratednode.h:63
@ MTDunderleftarrow
left-pointing arrow under everything text
Definition jkqtmathtextdecoratednode.h:74
@ MTDarrow
arrow over block
Definition jkqtmathtextdecoratednode.h:56
@ MTDbcancel
cancel text with backward sloped line
Definition jkqtmathtextdecoratednode.h:68
@ MTDhat
small hat over block
Definition jkqtmathtextdecoratednode.h:47
@ MTDwidetilde
full width tilde over block
Definition jkqtmathtextdecoratednode.h:64
@ MTDoverleftarrow
left-pointing arrow over everything text
Definition jkqtmathtextdecoratednode.h:71
@ MTDvec
vector arrow over block
Definition jkqtmathtextdecoratednode.h:46
@ MTDocirc
single circle over block
Definition jkqtmathtextdecoratednode.h:52
@ MTDoverleftrightarrow
left/right-pointing arrow over everything text
Definition jkqtmathtextdecoratednode.h:73
@ MTDddot
double dot over block
Definition jkqtmathtextdecoratednode.h:54
@ MTDdot
single dot over block
Definition jkqtmathtextdecoratednode.h:53
virtual bool toHtml(QString &html, JKQTMathTextEnvironment currentEv, JKQTMathTextEnvironment defaultEv) const override
convert node to HTML and returns true on success
static DecorationType InstructionName2DecorationType(const QString &mode)
returns the FracType corresponding to instructionName
JKQTMathTextDecoratedNode(JKQTMathText *parent, DecorationType decoration, JKQTMathTextNode *child)
static const QHash< QString, DecorationType > & instructions()
lists all supported instructions
virtual JKQTMathTextNodeSize getSizeInternal(QPainter &painter, JKQTMathTextEnvironment currentEv) const override
determine the size of the node, overwrite this function in derived classes
DecorationType getDecoration() const
type of decoration that is added to the child node
virtual double draw(QPainter &painter, double x, double y, JKQTMathTextEnvironment currentEv) const override
draw the contents at the designated position
static bool supportsInstructionName(const QString &instructionName)
returns true, if the given instructionName can be converted to a FracType
virtual QString getTypeName() const override
return the name of this class as a string
DecorationType decoration
type of decoration that is added to the child node
Definition jkqtmathtextdecoratednode.h:105
static QString DecorationType2String(DecorationType mode)
convert a DecorationType into a string
virtual ~JKQTMathTextDecoratedNode() override
this class parses a mathematical markup string and can then draw the contained text/equation onto a Q...
Definition jkqtmathtext.h:192
subclass representing one node in the syntax tree
Definition jkqtmathtextnode.h:37
subclass representing a node in the syntax tree, that has one child
Definition jkqtmathtextnode.h:174
#define JKQTMATHTEXT_LIB_EXPORT
Definition jkqtmathtext_imexport.h:108
describes the current drawing environment (base fontname ...)
Definition jkqtmathtexttools.h:304
beschreibt die Größe(n) eines Knotens
Definition jkqtmathtexttools.h:393