2018-12-29 00:46:47 +08:00
|
|
|
#ifndef TESTFORM_H
|
|
|
|
#define TESTFORM_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include <QStringList>
|
|
|
|
#include "jkqtmathtext/jkqtmathtext.h"
|
|
|
|
#include "jkqtplottertools/jkqtphighrestimer.h"
|
|
|
|
#include <QPainter>
|
|
|
|
#include <QTreeWidget>
|
|
|
|
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class TestForm;
|
|
|
|
}
|
|
|
|
|
|
|
|
class TestForm : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit TestForm(QWidget *parent = 0);
|
|
|
|
~TestForm();
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void updateMath();
|
|
|
|
private:
|
|
|
|
Ui::TestForm *ui;
|
|
|
|
JKQTPHighResTimer ht;
|
2019-01-20 17:49:29 +08:00
|
|
|
double draw(QPainter& painter, double X, double YY, JKQTMathText& mt, QString name, double &durationSizingMS, double &durationTimingMS);
|
2018-12-29 00:46:47 +08:00
|
|
|
|
2019-01-20 17:49:29 +08:00
|
|
|
QTreeWidgetItem* createTree(JKQTMathText::MTnode* node, QTreeWidgetItem *parent=NULL);
|
2018-12-29 00:46:47 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TESTFORM_H
|