Skip to content

Plugin DiagramΒ #17

@AbbyGi

Description

@AbbyGi

Using this issue to document the interactions between pieces of code. Code to reproduce the diagram with plantuml:

@startuml
participant QTiledBrowser
participant TiledSelector

== Initialization ==
QTiledBrowser -> QTiledBrowser: init
note over QTiledBrowser
**init**
- sets model
- creates layout
- connects to model signals and slots
- initializes values
end note

QTiledBrowser -> TiledSelector: self.model
note over TiledSelector
**init**
- sets url/client/validators if provided
- sets signals
end note

== Connecting to Tiled client ==

QTiledBrowser -> TiledSelector: self.model.on_connect_clicked()
TiledSelector -> TiledSelector: connect_client()
TiledSelector -> QTiledBrowser: client_connected.emit(client uri and api_url)
TiledSelector -> TiledSelector: reset_client_view()
TiledSelector -> QTiledBrowser: table_changed.emit(node_path_parts)
QTiledBrowser -> QTiledBrowser: populate table,\nset current path layout/label

== Selecting data ==

note over QTiledBrowser
Single click on row
end note
QTiledBrowser -> TiledSelector: self.model.on_item_selected(child_node_path)


note over QTiledBrowser
Double click on row or press `Open` button
end note
QTiledBrowser -> QTiledBrowser: self._on_item_double_click/self._on_load
QTiledBrowser -> TiledSelector: self.model.open_node(child_node_path)

note over TiledSelector
Plot or enter node
end note
TiledSelector -> TiledSelector: self.enter_node(child_node_path) +\ntable_changed.emit(node_path_parts)

@enduml
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions