src/tools/pathtool.h

Mon, 16 May 2022 01:40:49 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Mon, 16 May 2022 01:40:49 +0300
changeset 187
30204975694a
parent 185
a38a0eb007b0
permissions
-rw-r--r--

work on circle tool

185
a38a0eb007b0 Added line path tool
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
1 #pragma once
a38a0eb007b0 Added line path tool
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
2 #include "drawtool.h"
a38a0eb007b0 Added line path tool
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
3
a38a0eb007b0 Added line path tool
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
4 class PathTool : public AbstractDrawTool
a38a0eb007b0 Added line path tool
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
5 {
a38a0eb007b0 Added line path tool
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
6 Q_OBJECT
a38a0eb007b0 Added line path tool
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
7
a38a0eb007b0 Added line path tool
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
8 public:
a38a0eb007b0 Added line path tool
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
9 Q_INVOKABLE PathTool(Document* document);
a38a0eb007b0 Added line path tool
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
10 QString name() const override;
a38a0eb007b0 Added line path tool
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
11 QString toolTip() const override;
a38a0eb007b0 Added line path tool
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
12 void overpaint(Canvas*canvas, QPainter*painter) const override;
a38a0eb007b0 Added line path tool
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
13 QString iconName() const override;
a38a0eb007b0 Added line path tool
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
14 void closeShape() override;
a38a0eb007b0 Added line path tool
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
15 };

mercurial