score::GUIApplicationContext Struct Reference
Specializes ApplicationContext with the QMainWindow. More...
Inheritance diagram for score::GUIApplicationContext:
Detailed Description
Specializes ApplicationContext with the QMainWindow.
We want to keep it separate in case we do a completely different UI not based on Qt widgets in a few years, but instead on QQuickWindow or even a web ui if it has gotten fast enough.
Public Member Functions | |
GUIApplicationContext (const score::ApplicationSettings &a, const ApplicationComponents &b, DocumentManager &c, score::MenuManager &d, score::ToolbarManager &e, score::ActionManager &f, const std::vector< std::unique_ptr< score::SettingsDelegateModel >> &g, QMainWindow *mw) | |
auto | panels () const |
List of the available GUI panels. More... | |
template<typename T > | |
T & | panel () const |
Access to a specific PanelDelegate. More... | |
template<typename T > | |
T * | findPanel () const |
const auto & | applicationPlugins () const |
List of all the application-wide plug-ins. More... | |
const auto & | guiApplicationPlugins () const |
List of all the gui application-wide plug-ins. More... | |
template<typename T > | |
T & | applicationPlugin () const |
Access a specific application plug-in instance. More... | |
template<typename T > | |
T * | findApplicationPlugin () const |
template<typename T > | |
T & | guiApplicationPlugin () const |
Access a specific gui application plug-in instance. More... | |
template<typename T > | |
T * | findGuiApplicationPlugin () const |
Public Member Functions inherited from score::ApplicationContext | |
ApplicationContext (const score::ApplicationSettings &, const ApplicationComponents &, DocumentList &l, const std::vector< std::unique_ptr< score::SettingsDelegateModel >> &) | |
ApplicationContext (const ApplicationContext &)=delete | |
ApplicationContext (ApplicationContext &&)=delete | |
ApplicationContext & | operator= (const ApplicationContext &)=delete |
template<typename T > | |
T & | settings () const |
Access a specific Settings model instance. More... | |
const auto & | addons () const |
List of all the registered addons. More... | |
template<typename T > | |
const T & | interfaces () const |
Access to a specific interface list. More... | |
auto | instantiateUndoCommand (const CommandData &cmd) const |
instantiateUndoCommand Is used to generate a Command from its serialized data. More... | |
const score::DocumentContext * | currentDocument () const noexcept |
Public Attributes | |
DocumentManager & | docManager |
MenuManager & | menus |
ToolbarManager & | toolbars |
ActionManager & | actions |
QMainWindow * | mainWindow {} |
QWidget * | documentTabWidget {} |
Public Attributes inherited from score::ApplicationContext | |
const score::ApplicationSettings & | applicationSettings |
Access to start-up command-line settings. | |
const score::ApplicationComponents & | components |
DocumentList & | documents |
Member Function Documentation
◆ applicationPlugin()
template<typename T >
|
inline |
Access a specific application plug-in instance.
- See also
- score::GUIApplicationPlugin
◆ applicationPlugins()
|
inline |
List of all the application-wide plug-ins.
- See also
- score::GUIApplicationPlugin
◆ guiApplicationPlugin()
template<typename T >
|
inline |
Access a specific gui application plug-in instance.
- See also
- score::GUIApplicationPlugin
◆ guiApplicationPlugins()
|
inline |
List of all the gui application-wide plug-ins.
- See also
- score::GUIApplicationPlugin
◆ panel()
template<typename T >
|
inline |
Access to a specific PanelDelegate.
- See also
- score::PanelDelegate
◆ panels()
|
inline |
List of the available GUI panels.
- See also
- score::PanelDelegate
The documentation for this struct was generated from the following files:
- GUIApplicationContext.hpp
- ApplicationInterface.cpp