Basic GUI client, login dialog, various comments fixes after copypaste.
Some checks failed
Linting and tests / Linting (push) Failing after 6s

This commit is contained in:
2025-09-13 09:23:47 +05:00
parent 91bc3acb08
commit 0c37f46b53
24 changed files with 507 additions and 56 deletions

View File

@@ -3,8 +3,9 @@ package core
import (
"errors"
"bunker/client/internal/services/core/mainwindow/dto"
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/container"
)
// ServiceNameMainWindow is a name for main window service.
@@ -20,11 +21,18 @@ var (
// MainWindow is an interface for main window service.
type MainWindow interface {
// AddTab adds tab in main window.
AddTab(tab *container.TabItem)
AddTab(tab *dto.Tab)
// MainWindow returns main window instance (e.g. for using as parent with dialogs).
MainWindow() fyne.Window
// RegisterAboutWindowSysInfoHandler registers handler for System Info tab in About dialog.
RegisterAboutWindowSysInfoHandler(name string, hndl SysInfoHandler) error
// SetStatusProgressBarCurrentValue sets current value for progressbar in status bar.
SetStatusProgressBarCurrentValue(current float64)
// SetStatusProgressBarMaxValue sets maximum value for progressbar in status bar.
SetStatusProgressBarMaxValue(current float64)
// SetStatus sets text in status bar. If non-empty text is passed - then progress bar is also shown, and hidden
// if passed text is empty.
SetStatus(status string)
}
// SysInfoHandler is a function signature for registering with additional system information handler for About dialog.