Revive the right block of the program

Moved the right part of the program from the old version. Slightly reworked the structure.
This commit is contained in:
2025-06-07 21:27:55 +05:00
parent c60b9f7b0c
commit 57637606c0
7 changed files with 740 additions and 37 deletions

View File

@@ -4,6 +4,7 @@ import (
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/app"
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/internal/application"
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/internal/application/convertor"
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/internal/application/setting"
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/internal/controller"
"git.kor-elf.net/kor-elf/gui-for-ffmpeg/internal/ffmpeg"
@@ -22,7 +23,9 @@ func main() {
progressBarService := application.NewProgressBar()
appSetting := setting.NewSetting(fyneApp)
ffmpegService := ffmpeg.NewUtilities(appSetting)
myApp := application.NewApp(fyneApp, appSetting, progressBarService, ffmpegService)
itemsToConvert := convertor.NewItemsToConvert(ffmpegService)
queue := convertor.NewQueueList()
myApp := application.NewApp(fyneApp, appSetting, progressBarService, ffmpegService, itemsToConvert, queue)
mainController := controller.NewController(myApp)
mainController.Start()
myApp.Run()