src/openedmodel.h

changeset 383
530d23cd4e97
equal deleted inserted replaced
382:94d5587bb0c4 383:530d23cd4e97
1 #ifndef OPENEDMODEL_H
2 #define OPENEDMODEL_H
3
4 #include <QObject>
5 #include "basics.h"
6 #include "gl/partrenderer.h"
7 #include "layers/edittools.h"
8 #include "layers/axeslayer.h"
9 #include "layers/gridlayer.h"
10
11 class EditableModel : public QObject
12 {
13 Q_OBJECT
14 public:
15 explicit EditableModel(QTextDocument* model, DocumentManager* documents, ColorTable* colorTable);
16 std::unique_ptr<PartRenderer> canvas;
17 std::unique_ptr<EditTools> tools;
18 std::unique_ptr<AxesLayer> axesLayer;
19 std::unique_ptr<GridLayer> gridLayer;
20 std::unique_ptr<QTextCursor> textcursor;
21 QTextDocument* const model;
22
23 Q_SIGNALS:
24 void modelAction(const ModelAction& action);
25 void select(std::int32_t linenumber);
26 void newStatusText(const QString& newStatusText);
27 };
28
29 #endif // OPENEDMODEL_H

mercurial