mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-07 03:22:33 +01:00
Add app class documentation
This commit is contained in:
parent
8747280d39
commit
aef91ce983
@ -13,7 +13,11 @@ ScreenPlay consists of 5 projects:
|
|||||||
|
|
||||||
![ProjectOverview.png](ProjectOverview.png)
|
![ProjectOverview.png](ProjectOverview.png)
|
||||||
|
|
||||||
### ScreenPlay classes
|
### ScreenPlay App Class
|
||||||
|
ScreenPlay wrapps all classes into a App.h and App.cpp class. This is easier for unit test integration (not implemented yet!). The main app class is used for owning [all other classes via Q_PROPERTY](https://gitlab.com/kelteseth/ScreenPlay/-/blob/master/ScreenPlay/app.h#L39) to be easily accessible in the GUI/QML. We use the [constructor](https://gitlab.com/kelteseth/ScreenPlay/-/blob/master/ScreenPlay/app.cpp#L44) of the App class to initialize all Qt register types, fonts and to check if another ScreenPlay instance is running. The [init()](https://gitlab.com/kelteseth/ScreenPlay/-/blob/master/ScreenPlay/app.cpp#L103) method is used to initialize all other c++ classes in a certain order! It also sets up some events [signal/slots](https://doc.qt.io/qt-5/signalsandslots.html) like when the user changes the UI language.
|
||||||
|
|
||||||
|
For all other class documentation please visit [ScreenPlayDeveloperDocs](https://kelteseth.gitlab.io/ScreenPlayDeveloperDocs/)
|
||||||
|
|
||||||
``` mermaid
|
``` mermaid
|
||||||
graph TD
|
graph TD
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user