2018-12-29 00:46:47 +08:00
|
|
|
#ifndef TESTFORM_H
|
|
|
|
#define TESTFORM_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include <QStringList>
|
|
|
|
#include "jkqtmathtext/jkqtmathtext.h"
|
2019-05-30 04:40:02 +08:00
|
|
|
#include "jkqtcommon/jkqtphighrestimer.h"
|
2018-12-29 00:46:47 +08:00
|
|
|
#include <QPainter>
|
|
|
|
#include <QTreeWidget>
|
|
|
|
|
2020-10-02 21:41:26 +08:00
|
|
|
QT_BEGIN_NAMESPACE
|
2018-12-29 00:46:47 +08:00
|
|
|
namespace Ui {
|
|
|
|
class TestForm;
|
|
|
|
}
|
2020-10-02 21:41:26 +08:00
|
|
|
QT_END_NAMESPACE
|
2018-12-29 00:46:47 +08:00
|
|
|
|
|
|
|
class TestForm : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit TestForm(QWidget *parent = 0);
|
|
|
|
~TestForm();
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void updateMath();
|
|
|
|
private:
|
|
|
|
Ui::TestForm *ui;
|
|
|
|
JKQTPHighResTimer ht;
|
2022-06-26 06:28:49 +08:00
|
|
|
double draw(QPainter& painter, double X, double YY, JKQTMathText& mt, QString name, double &durationSizingMS, double &durationTimingMS, QStringList *lstErrors=nullptr);
|
2022-07-04 03:30:12 +08:00
|
|
|
double drawAligned(QPainter& painter, double X, double YY, JKQTMathText& mt, QString name);
|
2018-12-29 00:46:47 +08:00
|
|
|
|
2022-06-08 21:38:26 +08:00
|
|
|
QTreeWidgetItem* createTree(JKQTMathTextNode* node, QTreeWidgetItem *parent=NULL);
|
2018-12-29 00:46:47 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TESTFORM_H
|