diff -r b05af0bab735 -r 1909a0123c72 src/document.h --- a/src/document.h Tue Jun 07 20:44:19 2022 +0300 +++ b/src/document.h Tue Jun 07 21:35:29 2022 +0300 @@ -34,27 +34,21 @@ const ldraw::ColorTable& colorTable, QWidget *parent = nullptr); ~EditorTabWidget() override; - QByteArray saveSplitterState() const; - void restoreSplitterState(const QByteArray& state); void applyToVertices(VertexMap::ApplyFunction fn) const; const QSet selectedObjects() const; const ldraw::ColorTable& colorTable; Canvas* const canvas; Model* const model; - Q_SLOT void editingModeTriggered(); + EditingMode currentEditingMode() const; + Q_SLOT void setEditMode(EditingMode mode); Q_SLOT void canvasMouseClick(QMouseEvent* event); Q_SLOT void canvasMouseMove(QMouseEvent* event); - void select(const QSet &selected); Q_SIGNALS: void newStatusText(const QString& newStatusText); void splitterChanged(); private: - void initializeTools(); void closeShape(); DrawState drawState; DocumentManager* const documents; VertexMap vertexMap; - class Ui_Document& ui; - QToolBar* toolsBar; - std::vector toolActions; };