-
Notifications
You must be signed in to change notification settings - Fork 11
/
geometrytool.h
36 lines (26 loc) · 813 Bytes
/
geometrytool.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef GEOMETRYTOOL_H
#define GEOMETRYTOOL_H
#include <tools/menutool.h>
class GeometryTools : QObject
{
Q_OBJECT
public:
Q_INVOKABLE GeometryTools();
public slots:
static void getToolButtons(QList<ToolButton*> & result, QByteArray const & type);
static void handleToolButton(ToolButton* button, QByteArray const & type);
};
class GeometryTool : public MenuTool
{
Q_OBJECT
public:
Q_INVOKABLE GeometryTool(ResourceView *res = nullptr);
private:
virtual void getToolButtons(QList<ToolButton *> & buttons,
ToolButton * parent) override;
using ToolButtonProvider::handleToolButton;
virtual bool handleToolButton(ToolButton * button, QStringList const & args) override;
private:
QList<ToolButton *> buttons_;
};
#endif // GRAPHTOOL_H