24#ifndef JKQTMATHTEXTHONRIZONTALLISTNODE_H
25#define JKQTMATHTEXTHONRIZONTALLISTNODE_H
26#include "jkqtmathtext/jkqtmathtext_imexport.h"
27#include "jkqtmathtext/jkqtmathtexttools.h"
28#include "jkqtmathtext/nodes/jkqtmathtextnode.h"
30#include <QFontMetricsF>
subclass representing a list of nodes in the syntax tree, layed out horizontally
Definition jkqtmathtexthorizontallistnode.h:58
virtual JKQTMathTextNodeSize getSizeInternal(QPainter &painter, JKQTMathTextEnvironment currentEv) const override
determine the size of the node, overwrite this function in derived classes
virtual JKQTMathTextNode * getChild(int i) override
returns the i-th child node
virtual JKQTMathTextNode * replaceChild(int i, JKQTMathTextNode *newChild) override
returns the i-th child node
virtual void deleteChild(int i) override
delete the i-th child
virtual const JKQTMathTextNode * getChild(int i) const override
returns the i-th child node
virtual void clearChildren(bool deleteChildren=true) override
clear all children, deleting them if deleteChildren==true
virtual void modifyEnvironment(JKQTMathTextEnvironment ¤tEv) const override
modifies the fiven JKQTMathTextEnvironment currrentEv
virtual QString getTypeName() const override
return the name of this class as a string
void addChild(JKQTMathTextNode *n)
add a child node
virtual bool toHtml(QString &html, JKQTMathTextEnvironment currentEv, JKQTMathTextEnvironment defaultEv) const override
convert node to HTML and returns true on success
QList< JKQTMathTextNode * > nodes
list of all nodes within the line
Definition jkqtmathtexthorizontallistnode.h:91
virtual ~JKQTMathTextHorizontalListNode() override
virtual int childCount() const override
returns the number of child nodes
JKQTMathTextHorizontalListNode(JKQTMathText *parent)
void clearChildrenImpl(bool deleteChildren)
internal implementation of clearChildren() that is non-virtual, so can be used in the destructor
virtual QList< JKQTMathTextNode * > getChildren() override
returns a list of all child node
virtual double draw(QPainter &painter, double x, double y, JKQTMathTextEnvironment currentEv) const override
draw the contents at the designated position
this class parses a mathematical markup string and can then draw the contained text/equation onto a Q...
Definition jkqtmathtext.h:192
mixin extending a node that does not produce any output, but provides a function modifyEnvironment() ...
Definition jkqtmathtextnode.h:322
subclass representing a node in the syntax tree, that has two children
Definition jkqtmathtextnode.h:202
subclass representing one node in the syntax tree
Definition jkqtmathtextnode.h:37
#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