DiffEditorDialog opens a dialog for displaying diff between two files as line-strings
(ctx core.Widget, title string, astr, bstr []string, afile, bfile, arev, brev string)
| 87 | |
| 88 | // DiffEditorDialog opens a dialog for displaying diff between two files as line-strings |
| 89 | func DiffEditorDialog(ctx core.Widget, title string, astr, bstr []string, afile, bfile, arev, brev string) *DiffEditor { |
| 90 | d := core.NewBody("Diff editor") |
| 91 | d.SetTitle(title) |
| 92 | |
| 93 | dv := NewDiffEditor(d) |
| 94 | dv.SetFileA(afile).SetFileB(bfile).SetRevisionA(arev).SetRevisionB(brev) |
| 95 | dv.DiffStrings(astr, bstr) |
| 96 | d.AddAppBar(dv.MakeToolbar) |
| 97 | d.NewWindow().SetContext(ctx).SetNewWindow(true).Run() |
| 98 | return dv |
| 99 | } |
| 100 | |
| 101 | // TextDialog opens a dialog for displaying text string |
| 102 | func TextDialog(ctx core.Widget, title, text string) *Editor { |
no test coverage detected