FactoryInterface_QtInterface.hpp
1 #pragma once
2 #include <score/plugins/Interface.hpp>
3 
4 #include <score_lib_base_export.h>
5 
6 #include <memory>
7 #include <vector>
8 
9 namespace score
10 {
11 struct ApplicationContext;
12 struct GUIApplicationContext;
13 
14 // Reimplement in plug-in if the plug-in offers an IMPLEMENTATION of an
15 // abstract type offered in another plug-in.
16 // Example : the Scenario plug-in provides inspector widget factories
17 // implementations for Interval and event
18 class SCORE_LIB_BASE_EXPORT FactoryInterface_QtInterface
19 {
20 public:
22  virtual std::vector<score::InterfaceBase*>
23  factories(const score::ApplicationContext& ctx, const score::InterfaceKey& key) const;
24  virtual std::vector<score::InterfaceBase*> guiFactories(
25  const score::GUIApplicationContext& ctx, const score::InterfaceKey& key) const;
26 };
27 }
Definition: UuidKey.hpp:343
Definition: FactoryInterface_QtInterface.hpp:19
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Used to access all the application-wide state and structures.
Definition: ApplicationContext.hpp:24
Specializes ApplicationContext with the QMainWindow.
Definition: GUIApplicationContext.hpp:15