src/tools/pathtool.h

Wed, 25 May 2022 13:49:45 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Wed, 25 May 2022 13:49:45 +0300
changeset 190
3dbdc243f053
parent 185
a38a0eb007b0
permissions
-rw-r--r--

add missing file

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