--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/openedmodel.h Thu Jun 15 16:18:03 2023 +0300 @@ -0,0 +1,29 @@ +#ifndef OPENEDMODEL_H +#define OPENEDMODEL_H + +#include <QObject> +#include "basics.h" +#include "gl/partrenderer.h" +#include "layers/edittools.h" +#include "layers/axeslayer.h" +#include "layers/gridlayer.h" + +class EditableModel : public QObject +{ + Q_OBJECT +public: + explicit EditableModel(QTextDocument* model, DocumentManager* documents, ColorTable* colorTable); + std::unique_ptr<PartRenderer> canvas; + std::unique_ptr<EditTools> tools; + std::unique_ptr<AxesLayer> axesLayer; + std::unique_ptr<GridLayer> gridLayer; + std::unique_ptr<QTextCursor> textcursor; + QTextDocument* const model; + +Q_SIGNALS: + void modelAction(const ModelAction& action); + void select(std::int32_t linenumber); + void newStatusText(const QString& newStatusText); +}; + +#endif // OPENEDMODEL_H