WimaJoinedArea.h 983 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
#ifndef WIMAJOINEDAREA_H
#define WIMAJOINEDAREA_H

#include <QObject>

#include "WimaArea.h"

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

    WimaJoinedArea &operator=(const WimaJoinedArea &other);

    // Overrides from WimaPolygon
    QString         mapVisualQML    (void) const { return "WimaJoinedAreaMapVisual.qml";}
    QString         editorQML       (void) const { return "";}

    // Methodes
    void                saveToJson     (QJsonObject& json);
    bool                loadFromJson   (const QJsonObject& json, QString& errorString);

    // static Members
    static const char* WimaJoinedAreaName;

    // Friends
    friend void print(const WimaJoinedArea& area, QString& outputString);
    friend void print(const WimaJoinedArea& area);

signals:

public slots:

private:
    void init();
};

#endif // WIMAJOINEDAREA_H