score_plugin_js.hpp
1 #pragma once
2 #include <score/application/ApplicationContext.hpp>
3 #include <score/command/Command.hpp>
5 #include <score/plugins/Interface.hpp>
6 #include <score/plugins/qt_interfaces/CommandFactory_QtInterface.hpp>
7 #include <score/plugins/qt_interfaces/FactoryInterface_QtInterface.hpp>
8 #include <score/plugins/qt_interfaces/GUIApplicationPlugin_QtInterface.hpp>
9 #include <score/plugins/qt_interfaces/PluginRequirements_QtInterface.hpp>
10 
11 #include <utility>
12 #include <vector>
13 #include <verdigris>
14 
15 class score_plugin_js final
20 {
21  SCORE_PLUGIN_METADATA(1, "0eb1db4b-a532-4961-ba1c-d9edbf08ef07")
22 public:
24  virtual ~score_plugin_js();
25 
26 private:
28  make_guiApplicationPlugin(const score::GUIApplicationContext& app) override;
29 
30  // Process & inspector
31  std::vector<score::InterfaceBase*> factories(
32  const score::ApplicationContext& ctx,
33  const score::InterfaceKey& factoryName) const override;
34 
35  // CommandFactory_QtInterface interface
36  std::pair<const CommandGroupKey, CommandGeneratorMap> make_commands() override;
37 };
Definition: UuidKey.hpp:343
Definition: GUIApplicationPlugin_QtInterface.hpp:12
Definition: CommandFactory_QtInterface.hpp:12
Definition: FactoryInterface_QtInterface.hpp:19
Used to extend the software with application-wide data.
Definition: GUIApplicationPlugin.hpp:89
Definition: PluginRequirements_QtInterface.hpp:18
Definition: score_plugin_js.hpp:20
Used to access all the application-wide state and structures.
Definition: ApplicationContext.hpp:24
Specializes ApplicationContext with the QMainWindow.
Definition: GUIApplicationContext.hpp:15