move more view model logic into the files view model

This commit is contained in:
Jesse Duffield
2022-01-30 14:46:46 +11:00
parent 8ea7b7a62e
commit c084abb378
17 changed files with 392 additions and 323 deletions

View File

@@ -81,6 +81,18 @@ type IListContext interface {
Context
}
type IList interface {
IListCursor
GetItemsLength() int
}
type IListCursor interface {
GetSelectedLineIdx() int
SetSelectedLineIdx(value int)
MoveSelectedLine(delta int)
RefreshSelectedIdx()
}
type IListPanelState interface {
SetSelectedLineIdx(int)
GetSelectedLineIdx() int