feat(README): UML Diagram
This commit is contained in:
parent
cfc9aa8a44
commit
58e390d3a0
73
README.md
73
README.md
|
@ -24,6 +24,12 @@ cmake --build build
|
||||||
### UML Diagram
|
### UML Diagram
|
||||||
|
|
||||||
```plantuml
|
```plantuml
|
||||||
|
@startuml
|
||||||
|
allowmixing
|
||||||
|
set namespaceSeparator none
|
||||||
|
skinparam ranksep 10
|
||||||
|
|
||||||
|
package C++ <<Frame>> {
|
||||||
class Application {
|
class Application {
|
||||||
QGuiApplication app
|
QGuiApplication app
|
||||||
QmlComponent component
|
QmlComponent component
|
||||||
|
@ -38,7 +44,9 @@ class SportModel {
|
||||||
parseData()
|
parseData()
|
||||||
}
|
}
|
||||||
|
|
||||||
class FilterModel {}
|
class FilterModel {
|
||||||
|
void setFilterFixedString(String)
|
||||||
|
}
|
||||||
|
|
||||||
class EventInfo {
|
class EventInfo {
|
||||||
String eventName
|
String eventName
|
||||||
|
@ -50,12 +58,75 @@ class Competitor {
|
||||||
String code
|
String code
|
||||||
String noc
|
String noc
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
package QML <<Frame>> {
|
||||||
|
|
||||||
|
component EventInfoPage {
|
||||||
|
component [Page] as EIPage {
|
||||||
|
component [ToolBar] as EIToolBar
|
||||||
|
component [ListView] as EILisView
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
EIToolBar -[hidden]- EILisView
|
||||||
|
|
||||||
|
component EventsPage {
|
||||||
|
component [Page] as EPage {
|
||||||
|
component [ToolBar] as EToolBar
|
||||||
|
component [Column] as EColumn {
|
||||||
|
component [Row] as ERow {
|
||||||
|
component [ComboBox] as EComboBox
|
||||||
|
component [TextField] as ETextField
|
||||||
|
}
|
||||||
|
component [ListView] as EListView
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
EToolBar -[hidden]- EColumn
|
||||||
|
ERow -[hidden]- EListView
|
||||||
|
|
||||||
|
component application.qml {
|
||||||
|
component ApplicationWindow {
|
||||||
|
component StackView
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
'application.qml -u- a
|
||||||
|
'Application -r- a
|
||||||
|
|
||||||
Application *-- "1" SportModel
|
Application *-- "1" SportModel
|
||||||
Application *-- "1" FilterModel
|
Application *-- "1" FilterModel
|
||||||
|
|
||||||
|
FilterModel "1" o-- "1" SportModel
|
||||||
|
|
||||||
SportModel *-- "0..*" EventInfo
|
SportModel *-- "0..*" EventInfo
|
||||||
EventInfo *-- "0..*" Competitor
|
EventInfo *-- "0..*" Competitor
|
||||||
|
|
||||||
|
Application <.l. application.qml
|
||||||
|
StackView <.. EventInfoPage
|
||||||
|
StackView <.. EventsPage
|
||||||
|
|
||||||
|
EComboBox "request()" .> SportModel
|
||||||
|
|
||||||
|
EComboBox -[hidden]u- ETextField
|
||||||
|
|
||||||
|
SportModel "View" .> EListView
|
||||||
|
FilterModel "View" .> EListView
|
||||||
|
ETextField "Control" .r.> FilterModel
|
||||||
|
|
||||||
|
EILisView <. "View" Competitor
|
||||||
|
|
||||||
|
cloud api.olympics.com
|
||||||
|
() REST
|
||||||
|
REST - api.olympics.com
|
||||||
|
|
||||||
|
SportModel -( REST
|
||||||
|
|
||||||
|
application.qml -[hidden]u- Application
|
||||||
|
@enduml
|
||||||
```
|
```
|
||||||
|
|
||||||
## Authors
|
## Authors
|
||||||
|
|
Loading…
Reference in a new issue