Loading...
Searching...
No Matches
ToolMenuActions.hpp
1#pragma once
2
3#include <Process/ExpandMode.hpp>
4
6#include <score/actions/Menu.hpp>
7#include <score/selection/Selection.hpp>
8
9namespace score
10{
11struct GUIElements;
12class Document;
13}
14class QAction;
15class QActionGroup;
16class QMenu;
17class QToolBar;
18namespace Scenario
19{
20class ScenarioApplicationPlugin;
21class ScenarioPresenter;
22class ToolMenuActions final : public QObject
23{
24public:
26
27 void makeGUIElements(score::GUIElements& ref);
28
31
32private:
33 void keyReleased(int key);
34
36 void followModifiers(Qt::KeyboardModifiers mods);
37 bool eventFilter(QObject* watched, QEvent* event) override;
38
39 void setExpandMode(ExpandMode mode);
40
41 ScenarioApplicationPlugin* m_parent{};
42
43 QActionGroup* m_scenarioToolActionGroup{};
44
45 QAction* m_selecttool{};
46 QAction* m_createtool{};
47 QAction* m_playtool{};
48
49 QAction* m_scaleAction{};
50 QAction* m_lockAction{};
51 QAction* m_recordAction{};
52 QAction* m_keepAction{};
53 QMetaObject::Connection m_playedConnection;
54};
55}
Definition ScenarioApplicationPlugin.hpp:42
Definition ToolMenuActions.hpp:23
void setDocument(score::Document *doc)
Enables the keep action while the document has played values.
Definition ToolMenuActions.cpp:316
The Document class is the central part of the software.
Definition Document.hpp:51
Main plug-in of score.
Definition ConnectionsList.hpp:22
Base toolkit upon which the software is built.
Definition Application.cpp:83
What an application plug-in adds to the menus, toolbars and actions.
Definition GUIApplicationPlugin.hpp:32