TransportActions.hpp
1 #pragma once
2 
3 #include <score/selection/Selection.hpp>
4 
5 #include <score_plugin_scenario_export.h>
6 namespace score
7 {
8 struct GUIApplicationContext;
9 struct GUIElements;
10 }
11 class QAction;
12 class QMenu;
13 class QToolBar;
14 
15 namespace Scenario
16 {
17 class SCORE_PLUGIN_SCENARIO_EXPORT TransportActions final : public QObject
18 {
19 public:
22 
23  void makeGUIElements(score::GUIElements& ref);
24 
25  void onPlayLocal();
26  void onPlayGlobal();
27  void onPause();
28  void onStop();
29 
30 private:
31  void onPlay(bool b);
32  const score::GUIApplicationContext& m_context;
33 
34  QAction* m_play{};
35  QAction* m_playGlobal{};
36  QAction* m_stop{};
37  // QAction* m_goToStart{};
38  // QAction* m_goToEnd{};
39  QAction* m_stopAndInit{};
40  // QAction* m_record{};
41 };
42 }
Definition: TransportActions.hpp:18
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Specializes ApplicationContext with the QMainWindow.
Definition: GUIApplicationContext.hpp:15
Definition: GUIApplicationPlugin.hpp:24