-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmainApp.go
30 lines (25 loc) · 1.05 KB
/
mainApp.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package main
import (
"aigen/aigenUi"
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/container"
)
// mainApp is the main function that creates the tabs and the input box container
// It returns the tabs and the input box container
// The input box container is the container that contains the input box, send button, and voice chat button
// This is where All the fun happens :)
func mainApp(mapungubwe fyne.App) (*container.AppTabs, *container.Split) {
chat, aiGen := ChatTab()
settingsTab := aigenUi.GenSettings(mapungubwe)
// extendAI := aigenUi.Extensions(mapungubwe)
chatMediaTab := aigenUi.UserMedia()
//developerMode := aigenUi.Developer()
audioSettingsTab := aigenUi.AudioSettingsTab()
multiModels := aigenUi.MultiModelSettings(mapungubwe)
//Create the tabs container and add the tabs to it
//removed extendAI which was meant for extensions, may be restored.
tabs := container.NewAppTabs(aiGen, //financeTab,
multiModels, chatMediaTab, settingsTab, audioSettingsTab)
inputBoxContainer := SignInHandler(chat, tabs, aiGen)
return tabs, inputBoxContainer
}