[TD]Cosmetic function overhaul (#14216)

* [TD]Cosmetic geometry and tools update

- all cosmetics to store geometry in same form
- all cosmetics to survive scaling and rotation
- extension functions to survive scaling and rotation

* [TD]overhaul leader point storage and editing

- add py routine makeLeader(points)

* [TD]add leader conversion utility

* [TD]Set Leader RotateWithView default to true

* [TD]fix intersection vertex position

* [TD]add CosmeticEdge::makeLineFromCanonicalPoints

* [TD]fix 2 Extension tools

- positioning in DrawCosmeticCircle
- mishandling of points in execLineParallelPerpendicular

* [TD]Remove duplicate constexpr

* [TD]fix 2x Cosmetic arc tools

* [TD]refactor LineFormat out of Cosmetic

* [TD]move cosmetic appearance settings to LineFormat

* [TD]remove 2 unused methods

* [TD]apply format to blue line & circle tools

* [TD]fix ballon arrowhead does not rotate with view

* [TD]fix CosmeticCircle3Points

* [TD]allow multiple cosmetic object deletions

* [TD]fix extend/shorten centerline
This commit is contained in:
WandererFan
2024-05-23 09:41:42 -04:00
committed by GitHub
parent a8d093280e
commit 50f970efd7
56 changed files with 1812 additions and 1076 deletions

View File

@@ -94,7 +94,7 @@ class TaskSelectLineAttributes : public QWidget
Q_OBJECT
public:
explicit TaskSelectLineAttributes(TechDraw::LineFormat* ptActiveAttributes);
explicit TaskSelectLineAttributes();
~TaskSelectLineAttributes() override;
virtual bool accept();
@@ -102,13 +102,11 @@ public:
void updateTask();
protected:
void changeEvent(QEvent *e) override;
void changeEvent(QEvent *event) override;
void setUiEdit();
private:
// lineAttributes* activeAttributes;
TechDraw::LineFormat* activeAttributes;
std::unique_ptr<Ui_TaskSelectLineAttributes> ui;
TechDraw::LineGenerator* m_lineGenerator;
@@ -119,7 +117,7 @@ class TaskDlgSelectLineAttributes : public Gui::TaskView::TaskDialog
Q_OBJECT
public:
explicit TaskDlgSelectLineAttributes(TechDraw::LineFormat * ptActiveAttributes);
explicit TaskDlgSelectLineAttributes();
~TaskDlgSelectLineAttributes() override;
public: