score::GUIApplicationContext Struct Reference

Specializes ApplicationContext with the QMainWindow. More...

Inheritance diagram for score::GUIApplicationContext:
score::ApplicationContext

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
 
ApplicationContextoperator= (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::DocumentContextcurrentDocument () const noexcept
 

Public Attributes

DocumentManagerdocManager
 
MenuManagermenus
 
ToolbarManagertoolbars
 
ActionManageractions
 
QMainWindow * mainWindow {}
 
QWidget * documentTabWidget {}
 
- Public Attributes inherited from score::ApplicationContext
const score::ApplicationSettingsapplicationSettings
 Access to start-up command-line settings.
 
const score::ApplicationComponentscomponents
 
DocumentListdocuments
 

Member Function Documentation

◆ applicationPlugin()

template<typename T >
T& score::GUIApplicationContext::applicationPlugin ( ) const
inline

Access a specific application plug-in instance.

See also
score::GUIApplicationPlugin

◆ applicationPlugins()

const auto& score::GUIApplicationContext::applicationPlugins ( ) const
inline

List of all the application-wide plug-ins.

See also
score::GUIApplicationPlugin

◆ guiApplicationPlugin()

template<typename T >
T& score::GUIApplicationContext::guiApplicationPlugin ( ) const
inline

Access a specific gui application plug-in instance.

See also
score::GUIApplicationPlugin

◆ guiApplicationPlugins()

const auto& score::GUIApplicationContext::guiApplicationPlugins ( ) const
inline

List of all the gui application-wide plug-ins.

See also
score::GUIApplicationPlugin

◆ panel()

template<typename T >
T& score::GUIApplicationContext::panel ( ) const
inline

Access to a specific PanelDelegate.

See also
score::PanelDelegate

◆ panels()

auto score::GUIApplicationContext::panels ( ) const
inline

List of the available GUI panels.

See also
score::PanelDelegate

The documentation for this struct was generated from the following files: