ui

package
v0.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2025 License: MIT Imports: 49 Imported by: 0

Documentation

Overview

Package ui contains the code for rendering the UI.

Index

Constants

View Source
const (
	SettingLogLevel        = "logLevel"
	SettingLogLevelDefault = "warning"
)

Settings

Variables

This section is empty.

Functions

func LogLevelName2Level added in v0.10.0

func LogLevelName2Level(s string) slog.Level

func LogLevelNames added in v0.10.0

func LogLevelNames() []string

func NewConfirmDialog added in v0.6.0

func NewConfirmDialog(title, message, confirm string, callback func(bool), parent fyne.Window) *dialog.ConfirmDialog

NewConfirmDialog returns a new pre-configured confirm dialog.

func NewErrorDialog added in v0.6.0

func NewErrorDialog(message string, err error, parent fyne.Window) dialog.Dialog

NewErrorDialog returns a new custom error dialog.

func SettingKeys added in v0.4.0

func SettingKeys() []string

SettingKeys returns all setting keys. Mostly to know what to delete.

Types

type UI added in v0.5.1

type UI struct {
	CacheService       app.CacheService
	CharacterService   *character.CharacterService
	ESIStatusService   app.ESIStatusService
	EveImageService    app.EveImageService
	EveUniverseService *eveuniverse.EveUniverseService
	StatusCacheService app.StatusCacheService
	// Run the app in offline mode
	IsOffline bool
	// Whether to disable update tickers (useful for debugging)
	IsUpdateTickerDisabled bool
	// Paths to user data (for information only)
	DataPaths map[string]string
	// contains filtered or unexported fields
}

The UI is the root object of the UI and contains all UI areas.

Each UI area holds a pointer of the UI instance, so that areas can call methods on other UI areas and access shared variables in the UI.

func NewUI

func NewUI(fyneApp fyne.App) *UI

NewUI build the UI and returns it.

func (*UI) Init added in v0.5.1

func (u *UI) Init()

func (*UI) NewJumpClonesArea added in v0.5.1

func (u *UI) NewJumpClonesArea() *jumpClonesArea

func (*UI) ShowAndRun added in v0.5.1

func (u *UI) ShowAndRun()

ShowAndRun shows the UI and runs it (blocking).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL