WimaFlyArea.h 830 Bytes
Newer Older
Valentin Platzgummer's avatar
Valentin Platzgummer committed
1 2 3 4 5
#ifndef WIMAFLYAREA_H
#define WIMAFLYAREA_H

#include <QObject>
#include "QGCMapPolygon.h"
6
#include "QmlObjectListModel.h"
Valentin Platzgummer's avatar
Valentin Platzgummer committed
7 8 9 10 11 12 13 14 15 16 17 18

class WimaFlyArea : public QObject
{
    Q_OBJECT
public:
    WimaFlyArea(QObject *parent = nullptr);
    WimaFlyArea(const WimaFlyArea& other, QObject *parent = nullptr);

    const WimaFlyArea& operator=(const WimaFlyArea& other);



19 20 21
    Q_PROPERTY(QmlObjectListModel *polygons                   READ polygons NOTIFY polygonsChanged)

    Q_INVOKABLE void append_WimaFlyArea();
Valentin Platzgummer's avatar
Valentin Platzgummer committed
22 23

    //  Property Accessors
24
    QmlObjectListModel *        polygons            (void)        { return _polygons;}
Valentin Platzgummer's avatar
Valentin Platzgummer committed
25 26 27


    // Methodes
28
    void _init(void);
Valentin Platzgummer's avatar
Valentin Platzgummer committed
29 30

signals:
31
    void polygonsChanged(void);
Valentin Platzgummer's avatar
Valentin Platzgummer committed
32 33 34 35 36


public slots:

private:
Valentin Platzgummer's avatar
Valentin Platzgummer committed
37 38
    QmlObjectListModel* _polygons;
    QGCMapPolygon* _isCurrentPolygon;
39 40


Valentin Platzgummer's avatar
Valentin Platzgummer committed
41 42 43
};

#endif // WIMAFLYAREA_H