ui

package
v0.0.1-test1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SettingPublicName  = "public_name"
	SettingMaxDiskSize = "max_disk_size"
	SettingNumBlocks   = "num_blocks"
	SettingAutoStart   = "auto_start"
	//SettingThreshold     = "threshold"
	SettingStopOnProcess = "process_names"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	fyne.App
	Window fyne.Window

	Options *petalsserver.RunOptions
	// contains filtered or unexported fields
}

App is the main application of FlowerPot.

func NewApp

func NewApp(id string) *App

NewApp creates a new application

func (*App) DesktopIntegration

func (app *App) DesktopIntegration()

DesktopIntegration sets the desktop integration for the app.

func (*App) InstallAutoStart

func (app *App) InstallAutoStart() error

InstallAutoStart installs the app to auto start at login.

func (*App) InstallView

func (a *App) InstallView()

InstallView shows the installation progress.

func (*App) IsAutoStarted

func (app *App) IsAutoStarted() bool

IsAutoStarted checks if the app is set to auto start at login.

func (*App) MainView

func (app *App) MainView()

func (*App) PresentationView

func (a *App) PresentationView()

PresentationView shows the welcome message. It is the first view if the application is launched for the first time (no petals server installtion found).

func (*App) Quit

func (app *App) Quit()

func (*App) Run

func (app *App) Run()

Run the application

func (*App) Save

func (app *App) Save() error

Save the preferences.

func (*App) ServerLoop

func (app *App) ServerLoop()

func (*App) SetMenuEntry

func (app *App) SetMenuEntry(label string, action func())

func (*App) SetupSystray

func (app *App) SetupSystray()

func (*App) StartIfNeeded

func (app *App) StartIfNeeded()

func (*App) StartServer

func (app *App) StartServer() error

func (*App) StopServer

func (app *App) StopServer()

func (*App) StopServerIfNeeded

func (app *App) StopServerIfNeeded()

func (*App) UninstallAutoStart

func (app *App) UninstallAutoStart() error

UninstallAutoStart uninstalls the app from auto start at login.

func (*App) UpdateView

func (a *App) UpdateView()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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