2019-02-10 14:32:15 +01:00
|
|
|
#ifndef HP_MDIVARIABLEEDIT_H
|
|
|
|
#define HP_MDIVARIABLEEDIT_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QWidget>
|
2019-02-10 14:43:00 +01:00
|
|
|
#include <QMdiSubWindow>
|
|
|
|
#include <QTableView>
|
|
|
|
#include "vartablemodel.h"
|
2019-03-02 20:20:23 +01:00
|
|
|
#include "hpdata.h"
|
2019-02-10 14:32:15 +01:00
|
|
|
|
2019-02-10 14:43:00 +01:00
|
|
|
class hpTreeItem;
|
|
|
|
|
|
|
|
class hp_mdiVariableEdit : public QMdiSubWindow
|
2019-02-10 14:32:15 +01:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
2019-02-10 14:43:00 +01:00
|
|
|
|
|
|
|
protected:
|
2019-03-02 20:20:23 +01:00
|
|
|
QTableView * tableView =nullptr;
|
|
|
|
hpTreeItem * hptreeitem =nullptr;
|
|
|
|
varTableModel * varmodel =nullptr;
|
|
|
|
hpCalcData * hpcalc =nullptr;
|
|
|
|
QString filename;
|
|
|
|
hp_DataType type;
|
|
|
|
void setup();
|
2019-02-10 14:43:00 +01:00
|
|
|
|
2019-02-10 14:32:15 +01:00
|
|
|
public:
|
2019-03-02 20:20:23 +01:00
|
|
|
explicit hp_mdiVariableEdit(QWidget *parent = nullptr,
|
|
|
|
hpTreeItem * treeItem = nullptr,
|
|
|
|
hpCalcData * dataStore =nullptr
|
|
|
|
);
|
2019-04-02 21:14:31 +02:00
|
|
|
// explicit hp_mdiVariableEdit(QWidget *parent,
|
|
|
|
// hp_DataStruct filedata,
|
|
|
|
// hpCalcData * dataStore
|
|
|
|
// );
|
2019-02-10 14:43:00 +01:00
|
|
|
void show();
|
|
|
|
~hp_mdiVariableEdit();
|
2019-02-10 14:32:15 +01:00
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
public slots:
|
2019-02-10 14:43:00 +01:00
|
|
|
|
2019-02-10 14:32:15 +01:00
|
|
|
};
|
|
|
|
|
2019-02-10 14:43:00 +01:00
|
|
|
#endif // HP_MDIVARIABLEEDIT_H
|