Basic GUI client, login dialog, various comments fixes after copypaste.
Some checks failed
Linting and tests / Linting (push) Failing after 6s
Some checks failed
Linting and tests / Linting (push) Failing after 6s
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user