Expand description
ยงController Module
The controller module acts as the central event handler and coordinator
for the R.E.K.T.A.L. GUI application.
It is responsible for:
- Draining incoming DMX universe stream data and updating universe UI panels.
- Dispatching global UI events (
UiEvent) via channels. - Processing network messages (
TcpServerMessage) received from the kernel server. - Handling UI action events and updating central application states (
ConnectionState,SessionState).
Enumsยง
- UiEvent
- Enum describing global GUI events dispatched across the application.
Functionsยง
- handle_
dmx_ ๐data - Drains incoming DMX universe frame data from the UDP receiver channel and updates the matching Universe panels in the docking tree.
- handle_
events ๐ - Drains and processes all queued
UiEventitems sent from UI interactions or network handlers. - handle_
incoming_ ๐network_ data - Drains incoming network messages (
TcpServerMessage) from the TCP receiver channel and updates UI tabs or triggers connection state changes. - log_
level_ to_ color32 - Maps a common
LogLevelenum variant to a correspondingegui[Color32] for UI rendering. - process_
terminal_ ๐command - Processes a command entered into a terminal tab.
- send_
ui_ event - Thread-safe helper to send a
UiEventinto the global [UI_EVENT_SENDER] channel.