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>
13 class ScenarioInterface;
14 class ScenarioDocumentModel;
72 SCORE_DECLARE_ACTION(SelectAll,
"&Select All",
Scenario, QKeySequence::SelectAll)
73 SCORE_DECLARE_ACTION(DeselectAll,
"&Deselect All",
Scenario, QKeySequence::Deselect)
75 SelectTop,
"Select &Top",
Scenario, QKeySequence{QObject::tr(
"Ctrl+Shift+T")})
78 SCORE_DECLARE_ACTION(Play,
"&Play",
Scenario, Qt::Key_Space)
79 SCORE_DECLARE_ACTION(PlayGlobal,
"&Play Root",
Scenario, QKeySequence(
"Shift+Space"))
80 SCORE_DECLARE_ACTION(Stop, "&Stop",
Scenario, Qt::Key_Return)
81 SCORE_DECLARE_ACTION(GoToStart, "&Go to Start",
Scenario, Qt::Key_Back)
82 SCORE_DECLARE_ACTION(GoToEnd, "Go to &End",
Scenario, Qt::Key_Forward)
84 Reinitialize, "&Reinitialize",
Scenario, QKeySequence(QObject::tr("Ctrl+Return")))
85 SCORE_DECLARE_ACTION(Record, "&Record",
Scenario, QKeySequence::UnknownKey)
88 SCORE_DECLARE_ACTION(SelectTool, "Tool &Select",
Scenario, Qt::Key_S)
89 SCORE_DECLARE_ACTION_2S(
90 CreateTool, "Tool &Create",
Scenario, QKeySequence{QObject::tr(
"A")},
91 QKeySequence{QObject::tr(
"Shift+A")})
92 SCORE_DECLARE_ACTION(PlayTool,
"Tool &Play",
Scenario, Qt::Key_P)
96 SCORE_DECLARE_ACTION(LockMode,
"&Lock",
Scenario, QKeySequence{})
97 SCORE_DECLARE_ACTION(Scale,
"&Scale mode",
Scenario, QKeySequence{})
100 #
if defined(__APPLE__)
101 SCORE_DECLARE_ACTION(RemoveElements,
"&Remove elements",
Scenario, Qt::Key_Backspace)
103 SCORE_DECLARE_ACTION(RemoveElements,
"&Remove elements",
Scenario, Qt::Key_Delete)
105 SCORE_DECLARE_ACTION(CopyContent,
"C&opy",
Scenario, QKeySequence::Copy)
106 SCORE_DECLARE_ACTION(CutContent,
"C&ut",
Scenario, QKeySequence::Cut)
107 SCORE_DECLARE_ACTION(PasteElements,
"&Paste (elements)",
Scenario, QKeySequence::Paste)
108 SCORE_DECLARE_ACTION(
109 PasteElementsAfter,
"&Paste (after)",
Scenario, QKeySequence::UnknownKey)
110 SCORE_DECLARE_ACTION(
111 ElementsToJson,
"Convert to &JSON",
Scenario, QKeySequence::UnknownKey)
114 SCORE_DECLARE_ACTION(MergeEvents,
"Merge events",
Scenario, QKeySequence::UnknownKey)
115 SCORE_DECLARE_ACTION(AddTrigger,
"&Enable Trigger",
Scenario, Qt::Key_T)
116 SCORE_DECLARE_ACTION(
117 RemoveTrigger,
"&Disable Trigger",
Scenario, QKeySequence(QObject::tr(
"Shift+T")))
119 SCORE_DECLARE_ACTION(AddCondition, "&Add Condition",
Scenario, Qt::Key_C)
120 SCORE_DECLARE_ACTION(
121 RemoveCondition, "&Remove Condition",
Scenario, QKeySequence(QObject::tr("Shift+C")))
124 SCORE_DECLARE_ACTION(AddProcess, "&Add a process",
Scenario, QKeySequence::UnknownKey)
125 SCORE_DECLARE_ACTION(
126 MergeTimeSyncs, "&Synchronize",
Scenario, QKeySequence(QObject::tr("Shift+M")))
127 SCORE_DECLARE_ACTION(ShowRacks, "&Show processes",
Scenario, QKeySequence::UnknownKey)
128 SCORE_DECLARE_ACTION(HideRacks, "&Hide processes",
Scenario, QKeySequence::UnknownKey)
130 SCORE_DECLARE_ACTION(
131 Encapsulate, "&Encapsulate",
Scenario, QKeySequence(QObject::tr("Ctrl+Alt+E")))
132 SCORE_DECLARE_ACTION(
133 Decapsulate, "&Decapsulate",
Scenario, QKeySequence(QObject::tr("Ctrl+Alt+D")))
134 SCORE_DECLARE_ACTION(
135 FoldIntervals, "Fold intervals",
Scenario, QKeySequence(QObject::tr("Ctrl+Alt+F")))
136 SCORE_DECLARE_ACTION(
137 UnfoldIntervals, "Unfold intervals",
Scenario,
138 QKeySequence(QObject::tr("Ctrl+Alt+U")))
139 SCORE_DECLARE_ACTION(
140 LevelUp, "Go to parent interval",
Scenario, QKeySequence(QObject::tr("Ctrl+Alt+Up")))
142 SCORE_DECLARE_ACTION(
143 Duplicate, "&Duplicate",
Scenario, QKeySequence(QObject::tr("Alt+D")))
145 SCORE_DECLARE_ACTION(
146 ShowCables, "&Show cables", Dataflow, QKeySequence(QObject::tr("Alt+Shift+G")))
148 SCORE_DECLARE_ACTION(
149 AutoScroll, "&Auto-scroll", Dataflow, QKeySequence(QObject::tr("Alt+Shift+A")))
152 SCORE_DECLARE_ACTION(MoveUp, "&Move up",
Scenario, Qt::UpArrow)
153 SCORE_DECLARE_ACTION(MoveDown, "&Move down",
Scenario, Qt::DownArrow)
154 SCORE_DECLARE_ACTION(MoveLeft, "&Move left",
Scenario, Qt::LeftArrow)
155 SCORE_DECLARE_ACTION(MoveRight, "&Move right",
Scenario, Qt::RightArrow)
156 SCORE_DECLARE_ACTION(
157 GoToParent, "&Go to parent",
Scenario, QKeySequence(QObject::tr("Ctrl+Up")))
160 SCORE_PROCESS_DECLARE_CONTEXT_MENU(
161 SCORE_PLUGIN_SCENARIO_EXPORT, ScenarioObjectContextMenu)
162 SCORE_PROCESS_DECLARE_CONTEXT_MENU(
163 SCORE_PLUGIN_SCENARIO_EXPORT, ScenarioModelContextMenu)
164 SCORE_PROCESS_DECLARE_CONTEXT_MENU(SCORE_PLUGIN_SCENARIO_EXPORT, IntervalContextMenu)
165 SCORE_PROCESS_DECLARE_CONTEXT_MENU(SCORE_PLUGIN_SCENARIO_EXPORT, EventContextMenu)
166 SCORE_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:14
The ActionCondition struct.
Definition: Action.hpp:166
Definition: DocumentContext.hpp:18