code moved to autogenpb

This commit is contained in:
Jeff Carr 2025-03-05 13:33:27 -06:00
parent eea1747f44
commit 9ab1afbe14
1 changed files with 2 additions and 12 deletions

View File

@ -1,9 +1,6 @@
package zoopb
import (
"fmt"
"go.wit.com/lib/protobuf/guipb"
"go.wit.com/log"
)
@ -32,21 +29,13 @@ func (mt *MachinesTable) GetUuid() string {
return mt.pb.Uuid
}
func (t *MachinesTable) AddButtonFunc(title string, f func(*Machine) string) {
t.pb.Order = append(t.pb.Order, title)
sf := new(machineButtonFunc)
sf.title = title
sf.f = f
t.buttonFuncs = append(t.buttonFuncs, sf)
}
type machineButtonFunc struct {
title string
f func(*Machine) string
Custom func(*Machine)
}
/*
func (mt *MachinesTable) doButtonFunc(name string) bool {
for _, sf := range mt.buttonFuncs {
if sf.title != name {
@ -68,6 +57,7 @@ func (mt *MachinesTable) doButtonFunc(name string) bool {
}
return false
}
*/
func (it *MachinesIterator) Cur() int {
return it.index