diff options
Diffstat (limited to 'src/diagramdocument.h')
-rw-r--r-- | src/diagramdocument.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/diagramdocument.h b/src/diagramdocument.h index ffb38ac..47d1294 100644 --- a/src/diagramdocument.h +++ b/src/diagramdocument.h @@ -34,9 +34,11 @@ class DiagramObject; class DiagramDocument : public QGraphicsScene { Q_OBJECT + Q_ENUMS(Notation) Q_PROPERTY(int gridSize READ gridSize WRITE setGridSize) Q_PROPERTY(bool gridVisible READ isGridVisible WRITE setGridVisible) Q_PROPERTY(QColor gridColor READ gridColor WRITE setGridColor) + Q_PROPERTY(Notation notation READ notation WRITE setNotation) public: DiagramDocument(QObject *parent = 0); @@ -47,6 +49,17 @@ public: AddRelation }; + enum Notation { + Relational, + CrowsFoot + }; + + //! Returns the notation used in the diagram + Notation notation() const; + + //! Sets the notation used in the diagram + void setNotation(Notation); + Mode mode(); void setMode(Mode mode); |