added a ruler for measuring
added support for meta-data editing improved element selection changed zooming fixed some issues with layer events fixed issue with 3D outline fixed loading issue for old maps some interface changes
This commit is contained in:
41
params/MetaEditModel.h
Normal file
41
params/MetaEditModel.h
Normal file
@@ -0,0 +1,41 @@
|
||||
#ifndef METAEDITMODEL_H
|
||||
#define METAEDITMODEL_H
|
||||
|
||||
#include <Indoor/floorplan/v2/Floorplan.h>
|
||||
#include <QAbstractTableModel>
|
||||
|
||||
class MetaEditModel : public QAbstractTableModel {
|
||||
|
||||
Q_OBJECT
|
||||
|
||||
private:
|
||||
|
||||
Floorplan::Meta* meta = nullptr;
|
||||
|
||||
public:
|
||||
|
||||
MetaEditModel(QObject* parent = nullptr);
|
||||
|
||||
/** delete the idx-th entry */
|
||||
void deleteEntry(const int idx);
|
||||
|
||||
/** add a new entry at the end */
|
||||
void addEntry();
|
||||
|
||||
void setSource(Floorplan::Meta* meta);
|
||||
|
||||
int rowCount(const QModelIndex& parent) const override;
|
||||
|
||||
int columnCount(const QModelIndex& parent) const override;
|
||||
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const override;
|
||||
|
||||
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override;
|
||||
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
|
||||
|
||||
bool setData(const QModelIndex & index, const QVariant &value, int role = Qt::EditRole) override;
|
||||
|
||||
};
|
||||
|
||||
#endif // METAEDITMODEL_H
|
||||
Reference in New Issue
Block a user