Loading...
Searching...
No Matches
BaseScenarioDisplayedElementsToolPalette.hpp
1#pragma once
2#include <Process/Tools/ToolPalette.hpp>
3
4#include <Scenario/Document/BaseScenario/BaseElementContext.hpp>
5#include <Scenario/Palette/ScenarioPoint.hpp>
6#include <Scenario/Palette/Tool.hpp>
7#include <Scenario/Palette/Tools/SmartTool.hpp>
8#include <Scenario/Palette/Tools/States/ScenarioMoveStatesWrapper.hpp>
9
10#include <score/statemachine/GraphicsSceneToolPalette.hpp>
11
12#include <QPoint>
14namespace Scenario
15{
16class EditionSettings;
17
18class BaseScenario;
19class DisplayedElementsPresenter;
20class DoNotMoveInterval_StateWrapper;
21class MoveLeftBraceInBaseScenario_StateWrapper;
22class MoveRightBraceInBaseScenario_StateWrapper;
23class MoveEventInBaseScenario_StateWrapper;
24class MoveTimeSyncInBaseScenario_StateWrapper;
25class ScenarioDocumentPresenter;
26
28{
29public:
32
33 BaseGraphicsObject& view() const;
34 DisplayedElementsPresenter& presenter() const;
35 const BaseScenario& model() const;
36 const BaseElementContext& context() const;
37 Process::MagnetismAdjuster& magnetic() const { return m_magnetic; }
38 const Scenario::EditionSettings& editionSettings() const;
39
40 void activate(Scenario::Tool);
41 void desactivate(Scenario::Tool);
42
43 void on_pressed(QPointF);
44 void on_moved(QPointF);
45 void on_released(QPointF);
46 void on_cancel();
47
48private:
49 Scenario::Point ScenePointToScenarioPoint(QPointF point);
50
51 ScenarioDocumentPresenter& m_presenter;
52 DisplayedElementsPresenter& m_presenters;
53 BaseElementContext m_context;
55
61 m_state;
62
66 m_inputDisp;
67};
68}
Definition GraphicsProxyObject.hpp:8
Definition GraphicsSceneToolPalette.hpp:10
Definition MagnetismAdjuster.hpp:24
Definition BaseElementContext.hpp:10
Definition BaseScenarioDisplayedElementsToolPalette.hpp:28
Definition BaseScenario.hpp:24
Definition DisplayedElementsPresenter.hpp:25
Definition BaseScenarioDisplayedElements_StateWrappers.hpp:15
Definition ScenarioEditionSettings.hpp:14
Definition BaseScenarioDisplayedElements_StateWrappers.hpp:26
Definition ScenarioMoveStatesWrapper.hpp:37
Definition ScenarioMoveStatesWrapper.hpp:54
Definition BaseScenarioDisplayedElements_StateWrappers.hpp:48
The ScenarioDocumentPresenter class.
Definition ScenarioDocumentPresenter.hpp:58
Definition score-plugin-scenario/Scenario/Palette/Tools/SmartTool.hpp:24
Definition ToolPalette.hpp:14
Main plug-in of score.
Definition score-plugin-dataflow/Dataflow/PortItem.hpp:13
Definition ScenarioPoint.hpp:13