diff options
| author | Jeff Carr <[email protected]> | 2025-02-22 14:33:18 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-22 14:33:18 -0600 |
| commit | 30cc0f0918f4699a354ab4ffdb465f69f26441d8 (patch) | |
| tree | 2a5095fec213e0d265d0e315e5b666dbdca9fd8a /table.go | |
| parent | d5e9b8a3f26a7b188ef93199d1c8a05cd2264bde (diff) | |
rm garbagev0.22.33
Diffstat (limited to 'table.go')
| -rw-r--r-- | table.go | 56 |
1 files changed, 2 insertions, 54 deletions
@@ -12,60 +12,6 @@ import ( "google.golang.org/protobuf/types/known/anypb" ) -// should this be a gadget or in here with the widget primatives? -// a table is a group of widgets. Then again, Grid & Box 'widgets' are -// really groups of widgets also - -/* -mytable := NewTable(5) // make a table with 5 things - -type mytable struct { - first TableRow(1, Widget.TextBox, "First Name") - song TableRow(2, Widget.Label, "Favorite Song") - -func (t *Table) NewRow() *TableRow { - r := new(myRow) - r.first = - r.Cell1 = whatever widget type first is - r.Cell2 = whatever widget type song is - - -type songTable TableDef { - first TableCell `default:string` - song TableCell - GuiPlugin string `arg:"Label" header:"Favorite Song"` -} - -func makeSongTable() { - tb := NewTable(5) - -func Show() { - for each row { - for loop all strings() - is string button? - for loop all ints() - for loop all times() - for loop all bools() - - }s - -func RefreshTime(t *time.Duration) { -} -*/ - -// shortcut. makes a window with just a grid in it -func NewTableWindow(title string) *NodeTable { - t := new(NodeTable) - /* - t.pb = new(guipb.Table) - t.pb.Title = title - */ - t.tb = me.rootNode.newNode(title, widget.Table) - t.tb.label = title - - return t -} - // makes a grid inside an existing Widget func (n *Node) NewTable(title string) *NodeTable { t := new(NodeTable) @@ -89,6 +35,7 @@ type NodeTable struct { Custom func() } +/* func ShowTable(pb *guipb.Table) { // make a new action and populate the current node state a := getNewAction(me.rootNode, widget.Show) @@ -106,6 +53,7 @@ func ShowTable(pb *guipb.Table) { sendActionToPlugin(a) } +*/ func (parent *Node) ShowTable(pb *guipb.Table) { // make a new action and populate the current node state |
