Loading...
Searching...
No Matches
MoveTool.hpp
1#pragma once
2#include <Curve/Palette/CommandObjects/CreatePointCommandObject.hpp>
3#include <Curve/Palette/CommandObjects/PenCommandObject.hpp>
4#include <Curve/Palette/CommandObjects/SetSegmentParametersCommandObject.hpp>
5#include <Curve/Palette/CurvePoint.hpp>
6#include <Curve/Palette/Tools/CurveTool.hpp>
7
8#include <QPoint>
9
10namespace Curve
11{
12class ToolPalette;
13
15{
16public:
18
19 void on_pressed(QPointF, Curve::Point);
20 void on_moved(QPointF, Curve::Point);
21 void on_released(QPointF, Curve::Point);
22};
23
25{
26public:
27 explicit CreateTool(Curve::ToolPalette& sm, const score::DocumentContext& context);
28
30 void rollback();
31
32private:
34};
35
37{
38public:
39 explicit SetSegmentTool(Curve::ToolPalette& sm, const score::DocumentContext& context);
40
42 void rollback();
43
44private:
46};
47
49{
50public:
51 explicit CreatePenTool(Curve::ToolPalette& sm, const score::DocumentContext& context);
52
54 void rollback();
55
56private:
58};
59}
Definition MoveTool.hpp:49
void rollback()
Undoes what the gesture in progress did to the model, at once.
Definition MoveTool.cpp:141
Definition CreatePointCommandObject.hpp:17
Definition MoveTool.hpp:25
void rollback()
Undoes what the gesture in progress did to the model, at once.
Definition MoveTool.cpp:131
Definition CurveTool.hpp:19
Definition MoveTool.hpp:15
Definition PenCommandObject.hpp:19
Definition SetSegmentParametersCommandObject.hpp:27
Definition MoveTool.hpp:37
void rollback()
Undoes what the gesture in progress did to the model, at once.
Definition MoveTool.cpp:136
Definition CurvePalette.hpp:33
Utilities and base classes for 1D curves.
Definition FocusDispatcher.hpp:12
Definition DocumentContext.hpp:18