score-plugin-curve/Curve/ApplicationPlugin.hpp
1 #pragma once
2 #include <Curve/Palette/CurveEditionSettings.hpp>
3 
4 #include <score/plugins/application/GUIApplicationPlugin.hpp>
5 
6 namespace Curve
7 {
8 
9 class ApplicationPlugin final
10  : public QObject
12 {
13 public:
15 
16  ~ApplicationPlugin() override;
17 
18  EditionSettings& editionSettings() noexcept { return m_editionSettings; }
19 
20  void on_keyPressEvent(QKeyEvent& event) override;
21  void on_keyReleaseEvent(QKeyEvent& event) override;
22 
23 private:
24  QActionGroup* m_actions{};
25  QAction* m_shiftact{};
26  QAction* m_ctrlact{};
27  QAction* m_altact{};
28  EditionSettings m_editionSettings;
29 };
30 
31 }
Definition: score-plugin-curve/Curve/ApplicationPlugin.hpp:12
void on_keyReleaseEvent(QKeyEvent &event) override
on_keyPressEvent Called with key events in the main document view.
Definition: score-plugin-curve/Curve/ApplicationPlugin.cpp:83
void on_keyPressEvent(QKeyEvent &event) override
on_keyPressEvent Called with key events in the main document view.
Definition: score-plugin-curve/Curve/ApplicationPlugin.cpp:66
Definition: CurveEditionSettings.hpp:34
Used to extend the software with application-wide data.
Definition: GUIApplicationPlugin.hpp:89
Utilities and base classes for 1D curves.
Definition: FocusDispatcher.hpp:12
Specializes ApplicationContext with the QMainWindow.
Definition: GUIApplicationContext.hpp:15