src/document.h

changeset 214
8e1fe64ce4e3
parent 205
1a4342d80de7
child 215
34c6e7bc4ee1
--- a/src/document.h	Sat Jun 11 15:20:24 2022 +0300
+++ b/src/document.h	Sun Jun 12 20:47:04 2022 +0300
@@ -38,20 +38,18 @@
 
 Q_DECLARE_METATYPE(ModelAction)
 
-class EditorTabWidget : public QWidget
+class EditTools : public QObject
 {
 	Q_OBJECT
 public:
-	explicit EditorTabWidget(
+	explicit EditTools(
 		Model* model,
-		DocumentManager* documents,
 		const ColorTable& colorTable,
-		QWidget *parent = nullptr);
-	~EditorTabWidget() override;
+		QObject *parent = nullptr);
+	~EditTools() override;
 	void applyToVertices(VertexMap::ApplyFunction fn) const;
 	const QSet<ModelId> selectedObjects() const;
 	const ColorTable& colorTable;
-	Canvas* const canvas;
 	Model* const model;
 	EditingMode currentEditingMode() const;
 	Q_SLOT void setEditMode(EditingMode mode);
@@ -61,6 +59,7 @@
 	void newStatusText(const QString& newStatusText);
 	void splitterChanged();
 	void modelAction(const ModelAction& action);
+	void drawStateChanged(const DrawState& drawState);
 private:
 	void closeShape();
 	DrawState drawState;

mercurial