Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
eb2c879
content: unrelated use of a more efficient quaternion ToEuler method,…
rcoreilly Jan 29, 2026
3f15769
content: add tests for quat ToEuler and ToAxisAngle
rcoreilly Jan 29, 2026
2b9ca60
content: new infrastructure and successful impl on web for ctrl+click…
rcoreilly Jan 30, 2026
495062d
content: per-tab history -- basically working but there are issues --…
rcoreilly Jan 31, 2026
03b7061
content: history mostly working
rcoreilly Feb 1, 2026
31170c2
content: Tabs SelectIndex does Update outside of lock, so that other …
rcoreilly Feb 5, 2026
3c9e0a4
content: select toc node -- history seems all good now!
rcoreilly Feb 5, 2026
b4a2cfe
content: add NewTabFunc to Tabs, to populate a newly-created tab
rcoreilly Feb 5, 2026
491e610
content: better docs example for actual content.
rcoreilly Feb 5, 2026
8694503
content: functional tabs mostly working -- needs to detect tab deleti…
rcoreilly Feb 6, 2026
8198dbd
content: add Tabs.CloseFunc for when a tab is closed.
rcoreilly Feb 6, 2026
8e167c0
content: add docs for getting the toolbar from Parent, e.g. for TopBar
rcoreilly Feb 6, 2026
3edceee
content: history, tabs etc all working
rcoreilly Feb 7, 2026
ea95503
content: start on text search: highlighting in text added, basic find…
rcoreilly Feb 7, 2026
a88468f
content: basic navigation of search results working
rcoreilly Feb 8, 2026
547c3a1
content: new search interface -- much cleaner and allows container-ba…
rcoreilly Feb 9, 2026
186565c
content: new search interface working with lists and tables -- huge i…
rcoreilly Feb 9, 2026
e94f152
content: tree search working, should be done with search for now.
rcoreilly Feb 9, 2026
5ac5351
content: yaegi
rcoreilly Feb 9, 2026
c3e1f7a
content: tree select passes original event so modifiers are there. we…
rcoreilly Feb 9, 2026
7366d2c
content: multi-select of text widgets working
rcoreilly Feb 10, 2026
b4ab38f
content: add search to context menu
rcoreilly Feb 10, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 16 additions & 11 deletions content/buttons.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,31 +38,36 @@ func (ct *Content) MakeToolbar(p *tree.Plan) {
w.SetIcon(icons.Icon(core.AppIcon))
w.SetTooltip("Home")
w.OnClick(func(e events.Event) {
ct.Open("")
ct.OpenEvent("", e)
})
})
// Superseded by browser navigation on web.
if core.TheApp.Platform() != system.Web {
tree.Add(p, func(w *core.Button) {
ct.toolbar = w.Parent.(*core.Toolbar)
w.SetIcon(icons.ArrowBack).SetKey(keymap.HistPrev)
w.SetTooltip("Back")
w.Updater(func() {
w.SetEnabled(ct.historyIndex > 0)
w.SetEnabled(ct.historyHasBack())
})
w.OnClick(func(e events.Event) {
ct.historyIndex--
ct.open(ct.history[ct.historyIndex].URL, false) // do not add to history while navigating history
ct.historyBack()
if ct.toolbar != nil {
ct.toolbar.Update()
}
})
})
tree.Add(p, func(w *core.Button) {
w.SetIcon(icons.ArrowForward).SetKey(keymap.HistNext)
w.SetTooltip("Forward")
w.Updater(func() {
w.SetEnabled(ct.historyIndex < len(ct.history)-1)
w.SetEnabled(ct.historyHasForward())
})
w.OnClick(func(e events.Event) {
ct.historyIndex++
ct.open(ct.history[ct.historyIndex].URL, false) // do not add to history while navigating history
ct.historyForward()
if ct.toolbar != nil {
ct.toolbar.Update()
}
})
})
}
Expand All @@ -73,7 +78,7 @@ func (ct *Content) MakeToolbar(p *tree.Plan) {
s.Padding.Right.Em(5)
})
w.OnClick(func(e events.Event) {
ct.Scene.MenuSearchDialog("Search", "Search "+core.TheApp.Name())
core.Search(ct, core.LastSearch, core.LastUseCase)
})
})
}
Expand Down Expand Up @@ -105,12 +110,12 @@ func (ct *Content) MenuSearch(items *[]core.ChooserItem) {

// makeBottomButtons makes the previous and next buttons if relevant.
func (ct *Content) makeBottomButtons(p *tree.Plan) {
if len(ct.currentPage.Categories) == 0 {
if len(ct.current.Page.Categories) == 0 {
return
}
cat := ct.currentPage.Categories[0]
cat := ct.current.Page.Categories[0]
pages := ct.pagesByCategory[cat]
idx := slices.Index(pages, ct.currentPage)
idx := slices.Index(pages, ct.current.Page)

ct.prevPage, ct.nextPage = nil, nil

Expand Down
Loading
Loading