its all events LETS GO - I still need to make it be all events

This commit is contained in:
2026-01-13 21:11:44 +00:00
parent 98e569d9be
commit 306929b8d3
12 changed files with 263 additions and 189 deletions
+43
View File
@@ -0,0 +1,43 @@
package ui
import (
"esdi/tui/internal/models"
"github.com/rivo/tview"
)
// Main controller events
type LogEv struct {
Log string
}
type PrintLogEv struct {
Log string
}
type RedrawEv struct{}
type ChangeFocusEv struct {
Target tview.Primitive
}
// ----------------------------------------------------------------------------
// Layout events
type CreateWindowEv struct {
Window models.Window
}
type WindowCreatedEv struct {
Window models.Window
}
type ErrorCreateWindowEv struct {
Error error
}
type ErrorFormParseEv struct {
Error error
}