Refactor: Abstract dimension input and finalize creation logic to SketchTool
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
@@ -12,16 +12,16 @@ public:
|
||||
|
||||
void mousePressEvent(QMouseEvent *event) override;
|
||||
void mouseMoveEvent(QMouseEvent *event) override;
|
||||
void keyPressEvent(QKeyEvent *event) override;
|
||||
|
||||
void paintGL() override;
|
||||
void paint2D(QPainter& painter, const QMatrix4x4& modelView, const QMatrix4x4& projection) override;
|
||||
|
||||
void activate() override;
|
||||
void deactivate() override;
|
||||
|
||||
protected:
|
||||
void finalizeCreation() override;
|
||||
|
||||
private:
|
||||
bool m_isDefiningRectangle = false;
|
||||
gp_Pnt m_firstRectanglePoint;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user