50 lines
916 B
C++
50 lines
916 B
C++
/*
|
||
* © Copyright 2014 – Urheberrechtshinweis
|
||
* Alle Rechte vorbehalten / All Rights Reserved
|
||
*
|
||
* Programmcode ist urheberrechtlich geschuetzt.
|
||
* Das Urheberrecht liegt, soweit nicht ausdruecklich anders gekennzeichnet, bei Frank Ebner.
|
||
* Keine Verwendung ohne explizite Genehmigung.
|
||
* (vgl. § 106 ff UrhG / § 97 UrhG)
|
||
*/
|
||
|
||
#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
|