diff --git a/canvas/canvas.go b/canvas/canvas.go index 4deeaf7f..1485a61a 100644 --- a/canvas/canvas.go +++ b/canvas/canvas.go @@ -210,7 +210,7 @@ func (cv *Canvas) OpenDrawing(fnm core.Filename) error { //types:add cv.SetTitle() tv := cv.Tree() tv.CloseAll() - tv.ReSync() + tv.Resync() cv.SetStatus("Opened: " + string(cv.Filename)) tv.CloseAll() sv.backgroundGridEff = 0 @@ -621,7 +621,7 @@ func (vv *Canvas) UpdateDisp() { func (vv *Canvas) UpdateTree() { tv := vv.Tree() - tv.ReSync() + tv.Resync() } func (vv *Canvas) SetDefaultStyle() { diff --git a/canvas/tree.go b/canvas/tree.go index a5386794..230ec1f0 100644 --- a/canvas/tree.go +++ b/canvas/tree.go @@ -29,7 +29,7 @@ func (gv *Canvas) SelectNodeInTree(kn tree.Node, mode events.SelectModes) { tvn := tv.FindSyncNode(kn) if tvn != nil { tvn.OpenParents() - tvn.SelectAction(mode) + tvn.SelectEvent(mode) } } @@ -64,10 +64,10 @@ func (gv *Canvas) DuplicateSelected() { //types:add tv := gv.Tree() // tv.SetFullReRender() for _, tvi := range tvl { - tvi.AsCoreTree().DuplicateSync() + tvi.Duplicate() } gv.SetStatus("Duplicated selected items") - tv.ReSync() // todo: should not be needed + tv.Resync() // todo: should not be needed gv.ChangeMade() } @@ -100,7 +100,7 @@ func (gv *Canvas) CutSelected() { //types:add tv.SetSelectedViews(tvl) tvl[0].Cut() // operates on first element in selection gv.SetStatus("Cut selected items") - tv.ReSync() // todo: should not be needed + tv.Resync() // todo: should not be needed sv.UpdateSelSprites() gv.ChangeMade() } @@ -126,7 +126,7 @@ func (gv *Canvas) PasteClip() { //types:add // } // par.PasteChildren(md, dnd.DropCopy) gv.SetStatus("Pasted items from clipboard") - tv.ReSync() // todo: should not be needed + tv.Resync() // todo: should not be needed gv.ChangeMade() } @@ -147,7 +147,7 @@ func (gv *Canvas) DeleteSelected() { // tvi.SrcDelete() // } gv.SetStatus("Deleted selected items") - tv.ReSync() // todo: should not be needed + tv.Resync() // todo: should not be needed sv.UpdateSelSprites() gv.ChangeMade() } diff --git a/code/symbolspanel.go b/code/symbolspanel.go index 07fd4fbc..e9b918d1 100644 --- a/code/symbolspanel.go +++ b/code/symbolspanel.go @@ -102,7 +102,7 @@ func (sv *SymbolsPanel) UpdateSymbols() { } else { sv.OpenFile() } - tv.ReSync() + tv.Resync() tv.OpenAll() } diff --git a/code/texteditor.go b/code/texteditor.go index 020202f5..d35d8062 100644 --- a/code/texteditor.go +++ b/code/texteditor.go @@ -222,7 +222,7 @@ func (ed *TextEditor) ContextMenu(m *core.Scene) { fn := ed.Code.FileNodeForFile(string(ed.Buffer.Filename), false) if fn != nil { - fn.SelectAction(events.SelectOne) + fn.SelectEvent(events.SelectOne) fn.VCSContextMenu(m) }