40 lines
581 B
C++
40 lines
581 B
C++
#ifndef METAEDITWIDGET_H
|
|
#define METAEDITWIDGET_H
|
|
|
|
#include "fixC11.h"
|
|
|
|
#include <QWidget>
|
|
#include <Indoor/floorplan/v2/Floorplan.h>
|
|
|
|
#include "../fixC11.h"
|
|
|
|
class MetaEditModel;
|
|
class QTableView;
|
|
|
|
/**
|
|
* helper class to edit the Floorplan::Meta
|
|
* key value attribute
|
|
*/
|
|
class MetaEditWidget : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
private:
|
|
|
|
Floorplan::Meta* metaOrig;
|
|
Floorplan::Meta metaCopy; // used for the abort button
|
|
|
|
MetaEditModel* model;
|
|
|
|
QTableView* tbl;
|
|
|
|
public:
|
|
|
|
MetaEditWidget(Floorplan::Meta* meta);
|
|
|
|
void keyPressEvent(QKeyEvent* e);
|
|
|
|
};
|
|
|
|
#endif // METAEDITWIDGET_H
|