2#include <Process/Actions/ProcessActions.hpp>
3#include <Process/Layer/LayerContextMenu.hpp>
5#include <Scenario/Document/ScenarioDocument/ScenarioDocumentModel.hpp>
6#include <Scenario/Process/ScenarioModel.hpp>
9#include <score/selection/SelectionStack.hpp>
13class ScenarioInterface;
14class ScenarioDocumentModel;
72SCORE_DECLARE_ACTION(SelectAll,
"&Select All",
Scenario, QKeySequence::SelectAll)
73SCORE_DECLARE_ACTION(DeselectAll,
"&Deselect All",
Scenario, QKeySequence::Deselect)
75 SelectTop,
"Select &Top",
Scenario, QKeySequence{QObject::tr(
"Ctrl+Shift+T")})
78SCORE_DECLARE_ACTION(Play,
"&Play",
Scenario, Qt::Key_Space)
79SCORE_DECLARE_ACTION(PlayGlobal,
"&Play Root",
Scenario, QKeySequence(
"Shift+Space"))
80SCORE_DECLARE_ACTION(Stop, "&Stop",
Scenario, Qt::Key_Return)
81SCORE_DECLARE_ACTION(GoToStart, "&Go to Start",
Scenario, Qt::Key_Back)
82SCORE_DECLARE_ACTION(GoToEnd, "Go to &End",
Scenario, Qt::Key_Forward)
84 Reinitialize, "&Reinitialize",
Scenario, QKeySequence(QObject::tr("Ctrl+Return")))
85SCORE_DECLARE_ACTION(Record, "&Record",
Scenario, QKeySequence::UnknownKey)
88SCORE_DECLARE_ACTION(SelectTool, "Tool &Select",
Scenario, Qt::Key_S)
89SCORE_DECLARE_ACTION_2S(
90 CreateTool, "Tool &Create",
Scenario, QKeySequence{QObject::tr(
"A")},
91 QKeySequence{QObject::tr(
"Shift+A")})
92SCORE_DECLARE_ACTION(PlayTool,
"Tool &Play",
Scenario, Qt::Key_P)
96SCORE_DECLARE_ACTION(LockMode,
"&Lock",
Scenario, QKeySequence{})
97SCORE_DECLARE_ACTION(Scale,
"&Scale mode",
Scenario, QKeySequence{})
100#
if defined(__APPLE__)
101SCORE_DECLARE_ACTION(RemoveElements,
"&Remove elements",
Scenario, Qt::Key_Backspace)
103SCORE_DECLARE_ACTION(RemoveElements,
"&Remove elements",
Scenario, Qt::Key_Delete)
105SCORE_DECLARE_ACTION(CopyContent,
"C&opy",
Scenario, QKeySequence::Copy)
106SCORE_DECLARE_ACTION(CutContent,
"C&ut",
Scenario, QKeySequence::Cut)
107SCORE_DECLARE_ACTION(PasteElements,
"&Paste (elements)",
Scenario, QKeySequence::Paste)
109 PasteElementsAfter,
"&Paste (after)",
Scenario, QKeySequence::UnknownKey)
111 ElementsToJson,
"Convert to &JSON",
Scenario, QKeySequence::UnknownKey)
114SCORE_DECLARE_ACTION(MergeEvents,
"Merge events",
Scenario, QKeySequence::UnknownKey)
115SCORE_DECLARE_ACTION(AddTrigger,
"&Enable Trigger",
Scenario, Qt::Key_T)
117 RemoveTrigger,
"&Disable Trigger",
Scenario, QKeySequence(QObject::tr(
"Shift+T")))
119SCORE_DECLARE_ACTION(AddCondition, "&Add Condition",
Scenario, Qt::Key_C)
121 RemoveCondition, "&Remove Condition",
Scenario, QKeySequence(QObject::tr("Shift+C")))
124SCORE_DECLARE_ACTION(AddProcess, "&Add a process",
Scenario, QKeySequence::UnknownKey)
126 MergeTimeSyncs, "&Synchronize",
Scenario, QKeySequence(QObject::tr("Shift+M")))
127SCORE_DECLARE_ACTION(ShowRacks, "&Show processes",
Scenario, QKeySequence::UnknownKey)
128SCORE_DECLARE_ACTION(HideRacks, "&Hide processes",
Scenario, QKeySequence::UnknownKey)
131 Encapsulate, "&Encapsulate",
Scenario, QKeySequence(QObject::tr("Ctrl+Alt+E")))
133 Decapsulate, "&Decapsulate",
Scenario, QKeySequence(QObject::tr("Ctrl+Alt+D")))
135 FoldIntervals, "Fold intervals",
Scenario, QKeySequence(QObject::tr("Ctrl+Alt+F")))
137 UnfoldIntervals, "Unfold intervals",
Scenario,
138 QKeySequence(QObject::tr("Ctrl+Alt+U")))
140 LevelUp, "Go to parent interval",
Scenario, QKeySequence(QObject::tr("Ctrl+Alt+Up")))
143 Duplicate, "&Duplicate",
Scenario, QKeySequence(QObject::tr("Alt+D")))
146 ShowCables, "&Show cables", Dataflow, QKeySequence(QObject::tr("Alt+Shift+G")))
149 AutoScroll, "&Auto-scroll", Dataflow, QKeySequence(QObject::tr("Alt+Shift+A")))
152SCORE_DECLARE_ACTION(MoveUp, "&Move up",
Scenario, Qt::UpArrow)
153SCORE_DECLARE_ACTION(MoveDown, "&Move down",
Scenario, Qt::DownArrow)
154SCORE_DECLARE_ACTION(MoveLeft, "&Move left",
Scenario, Qt::LeftArrow)
155SCORE_DECLARE_ACTION(MoveRight, "&Move right",
Scenario, Qt::RightArrow)
157 GoToParent, "&Go to parent",
Scenario, QKeySequence(QObject::tr("Ctrl+Up")))
160SCORE_PROCESS_DECLARE_CONTEXT_MENU(
161 SCORE_PLUGIN_SCENARIO_EXPORT, ScenarioObjectContextMenu)
162SCORE_PROCESS_DECLARE_CONTEXT_MENU(
163 SCORE_PLUGIN_SCENARIO_EXPORT, ScenarioModelContextMenu)
164SCORE_PROCESS_DECLARE_CONTEXT_MENU(SCORE_PLUGIN_SCENARIO_EXPORT, IntervalContextMenu)
165SCORE_PROCESS_DECLARE_CONTEXT_MENU(SCORE_PLUGIN_SCENARIO_EXPORT, EventContextMenu)
166SCORE_PROCESS_DECLARE_CONTEXT_MENU(SCORE_PLUGIN_SCENARIO_EXPORT, StateContextMenu)
#define SCORE_DECLARE_DOCUMENT_CONDITION(Type)
Definition Action.hpp:415
#define SCORE_DECLARE_SELECTED_OBJECT_CONDITION(Type)
Definition Action.hpp:312
Only events, nodes, states.
Definition ScenarioActions.hpp:36
Anything in a scenario interface.
Definition ScenarioActions.hpp:48
Anything in a scenario model.
Definition ScenarioActions.hpp:24
Definition EventModel.hpp:36
Definition IntervalModel.hpp:50
The core hierarchical and temporal process of score.
Definition ScenarioModel.hpp:37
Definition ScenarioDocumentModel.hpp:29
Definition ScenarioInterface.hpp:20
Definition StateModel.hpp:63
Definition TimeSyncModel.hpp:34
The ActionManager class.
Definition ActionManager.hpp:19
Main plug-in of score.
Definition score-plugin-dataflow/Dataflow/PortItem.hpp:13
The ActionCondition struct.
Definition Action.hpp:166
Definition DocumentContext.hpp:18