|
CaptureMoment 0.1.0
Free and open-source non-destructive photo editor
|
Central manager for QML context setup. More...
#include <qml_context_setup.h>
Static Public Member Functions | |
| static bool | setupContext (QQmlContext *context) |
| Setup complete QML context with all objects. | |
| static void | setSerializerController (std::unique_ptr< Serializer::SerializerController > ui_serializer_controller) |
| Sets the SerializerController instance to be registered with the QML context. This must be called before setupContext. | |
| static bool | registerSerializerToQml (QQmlContext *context) |
| Registers the SerializerController (if set) to the QML context. | |
| static std::shared_ptr< Controller::ImageControllerBase > | getControllerMainScene () |
| Getter for the main ImageControllerBase instance. | |
| static Serializer::SerializerController * | getSerializerController () |
| Getter for the UISerializerManager instance. | |
Central manager for QML context setup.
Responsibilities:
Definition at line 33 of file qml_context_setup.h.
|
static |
Setup complete QML context with all objects.
Creates:
Registers to QML:
| context | The QML context to setup |
Definition at line 23 of file qml_context_setup.cpp.
References registerSerializerToQml().
Referenced by main().
|
static |
Sets the SerializerController instance to be registered with the QML context. This must be called before setupContext.
| ui_serializer_controller | A unique pointer to the SerializerController instance. |
Definition at line 112 of file qml_context_setup.cpp.
|
static |
Registers the SerializerController (if set) to the QML context.
| context | Pointer to the QQmlContext. |
Definition at line 118 of file qml_context_setup.cpp.
Referenced by setupContext().
|
inlinestatic |
Getter for the main ImageControllerBase instance.
Definition at line 67 of file qml_context_setup.h.
|
inlinestatic |
Getter for the UISerializerManager instance.
Definition at line 73 of file qml_context_setup.h.