2024-06-08 01:34:33 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/ying32/govcl/vcl"
|
|
|
|
)
|
|
|
|
|
|
|
|
// loadedDatabase is a DB-agnostic interface for each loaded database.
|
|
|
|
type loadedDatabase interface {
|
|
|
|
DisplayName() string
|
2024-06-14 23:43:24 +00:00
|
|
|
DriverName() string
|
2024-06-08 01:34:33 +00:00
|
|
|
RootElement() *vcl.TTreeNode
|
|
|
|
RenderForNav(f *TMainForm, ndata *navData)
|
|
|
|
NavChildren(ndata *navData) ([]string, error)
|
|
|
|
Keepalive(ndata *navData)
|
|
|
|
}
|
|
|
|
|
|
|
|
// navData is the .Data() pointer for each TTreeNode in the left-hand tree.
|
|
|
|
type navData struct {
|
|
|
|
ld loadedDatabase
|
|
|
|
childrenLoaded bool
|
|
|
|
bucketPath []string
|
|
|
|
}
|