QtHPConnect/hp_mditexteditor.h
2019-04-02 21:14:31 +02:00

43 lines
848 B
C++

#ifndef HP_MDITEXTEDITOR_H
#define HP_MDITEXTEDITOR_H
#include <QObject>
#include <QWidget>
#include <QMdiSubWindow>
#include <QTreeView>
#include "hpdata.h"
class hpTreeItem;
class hpCalcData;
#include "texteditor.h"
class hp_mdiTextEdit: public QMdiSubWindow
{
Q_OBJECT
protected:
textEditor * textEdit =nullptr;
hpTreeItem * hptreeitem =nullptr;
// hpCalcData * hpcalc =nullptr;
QString filename;
hp_DataType type;
AbstractData * data =nullptr;
public:
hp_mdiTextEdit(QWidget * parent = nullptr, hpTreeItem * treeItem = nullptr,
AbstractData * calcData =nullptr);
hp_mdiTextEdit(QWidget * parent, hp_DataStruct filename,
AbstractData * calcData);
void setup();
void show();
~hp_mdiTextEdit();
signals:
public slots:
};
#endif // HP_MDITEXTEDITOR_H