QtHPConnect/hp_mditexteditor.h

42 lines
739 B
C
Raw Normal View History

2019-02-10 14:32:15 +01:00
#ifndef HP_MDITEXTEDITOR_H
#define HP_MDITEXTEDITOR_H
#include <QObject>
#include <QWidget>
2019-02-10 14:43:00 +01:00
#include <QMdiSubWindow>
#include <QTreeView>
2019-02-26 20:56:39 +01:00
#include "hpdata.h"
2019-02-10 14:32:15 +01:00
2019-02-10 14:43:00 +01:00
class hpTreeItem;
2019-02-26 20:56:39 +01:00
class hpCalcData;
2019-02-10 14:43:00 +01:00
#include "texteditor.h"
class hp_mdiTextEdit: public QMdiSubWindow
2019-02-10 14:32:15 +01:00
{
2019-02-10 14:43:00 +01:00
Q_OBJECT
protected:
2019-02-26 20:56:39 +01:00
textEditor * textEdit =nullptr;
hpTreeItem * hptreeitem =nullptr;
hpCalcData * hpcalc =nullptr;
QString filename;
hp_DataType type;
AbstractData * data =nullptr;
2019-02-10 14:43:00 +01:00
2019-02-10 14:32:15 +01:00
public:
2019-02-26 20:56:39 +01:00
hp_mdiTextEdit(QWidget * parent = nullptr, hpTreeItem * treeItem = nullptr,
hpCalcData * dataStore =nullptr);
2019-02-10 14:43:00 +01:00
void setup();
void show();
~hp_mdiTextEdit();
signals:
public slots:
2019-02-10 14:32:15 +01:00
};
2019-02-10 14:43:00 +01:00
#endif // HP_MDITEXTEDITOR_H