Implemented multi-select functionality and basic context-menu for session table.

This commit is contained in:
Jakob Friedl
2025-09-09 22:55:43 +02:00
parent 2320b705d3
commit 5f131ae916
3 changed files with 136 additions and 56 deletions

View File

@@ -19,6 +19,15 @@ proc main() =
views["Listeners"] = addr showListeners
views["Eventlog"] = addr showEventlog
# Create components
var
dockspace = Dockspace()
sessionsTable = SessionsTable("Sessions [Table View]")
sessionsGraph = SessionsTable("Sessions [Graph View]")
listenersTable = ListenersTable("Listeners")
eventlog = Eventlog("Eventlog")
let io = igGetIO()
# main loop
@@ -30,13 +39,11 @@ proc main() =
continue
newFrame()
# UI components/views
Dockspace().draw(addr showConquest, views)
if showSessionsTable: SessionsTable("Sessions [Table View]").draw(addr showSessionsTable)
if showSessionsGraph: SessionsTable("Sessions [Graph View]").draw(addr showSessionsGraph)
if showListeners: ListenersTable("Listeners").draw(addr showListeners)
if showEventlog:Eventlog("Eventlog").draw(addr showEventlog)
# Draw/update UI components/views
dockspace.draw(addr showConquest, views)
if showSessionsTable: sessionsTable.draw(addr showSessionsTable)
if showListeners: listenersTable.draw(addr showListeners)
if showEventlog: eventlog.draw(addr showEventlog)
igShowDemoWindow(nil)