app

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2023 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration interface {
	Station() core.Station
	Contest() core.Contest
	Keyer() core.Keyer
	KeyerPresets() []core.KeyerPreset
	KeyerType() core.KeyerType
	KeyerHost() string
	KeyerPort() int
	HamlibAddress() string
	TCIAddress() string
}

Configuration provides read access to the configuration data.

type Controller

type Controller struct {
	Logbook       *logbook.Logbook
	QSOList       *logbook.QSOList
	Entry         *entry.Controller
	Workmode      *workmode.Controller
	Keyer         *keyer.Keyer
	Callinfo      *callinfo.Callinfo
	Score         *score.Counter
	Rate          *rate.Counter
	ServiceStatus *ServiceStatus
	Settings      *settings.Settings

	OnLogbookChanged func()
	// contains filtered or unexported fields
}

func NewController

func NewController(version string, clock core.Clock, quitter Quitter, asyncRunner core.AsyncRunner, configuration Configuration) *Controller

NewController returns a new instance of the AppController interface.

func (*Controller) About

func (c *Controller) About()

func (*Controller) ClearEntryFields added in v0.5.0

func (c *Controller) ClearEntryFields()

func (*Controller) DoubleStop added in v0.9.0

func (c *Controller) DoubleStop()

func (*Controller) EditLastQSO added in v0.5.0

func (c *Controller) EditLastQSO()

func (*Controller) ExportADIF

func (c *Controller) ExportADIF()

func (*Controller) ExportCSV

func (c *Controller) ExportCSV()

func (*Controller) ExportCabrillo

func (c *Controller) ExportCabrillo()

func (*Controller) ExportCallhistory added in v0.9.0

func (c *Controller) ExportCallhistory()

func (*Controller) GotoEntryFields added in v0.5.0

func (c *Controller) GotoEntryFields()

func (*Controller) LogQSO added in v0.5.0

func (c *Controller) LogQSO()

func (*Controller) New

func (c *Controller) New()

func (*Controller) Open

func (c *Controller) Open()

func (*Controller) OpenDefaultConfigurationFile added in v0.6.0

func (c *Controller) OpenDefaultConfigurationFile()

func (*Controller) OpenSettings added in v0.6.0

func (c *Controller) OpenSettings()

func (*Controller) Quit

func (c *Controller) Quit()

func (*Controller) Refresh

func (c *Controller) Refresh()

func (*Controller) SaveAs

func (c *Controller) SaveAs()

func (*Controller) SetView

func (c *Controller) SetView(view View)

func (*Controller) ShowCallinfo

func (c *Controller) ShowCallinfo()

func (*Controller) ShowRate added in v0.3.1

func (c *Controller) ShowRate()

func (*Controller) ShowScore added in v0.2.0

func (c *Controller) ShowScore()

func (*Controller) Shutdown

func (c *Controller) Shutdown()

func (*Controller) Startup

func (c *Controller) Startup()

func (*Controller) Stop added in v0.9.0

func (c *Controller) Stop()

func (*Controller) SwitchToRunWorkmode added in v0.5.0

func (c *Controller) SwitchToRunWorkmode()

func (*Controller) SwitchToSPWorkmode added in v0.5.0

func (c *Controller) SwitchToSPWorkmode()

type Quitter

type Quitter interface {
	Quit()
}

Quitter allows to quit the application. This interface is used to call the actual application framework to quit.

type ServiceStatus added in v0.5.0

type ServiceStatus struct {
	// contains filtered or unexported fields
}

func (*ServiceStatus) Notify added in v0.5.0

func (s *ServiceStatus) Notify(listener interface{})

func (*ServiceStatus) StatusChanged added in v0.5.0

func (s *ServiceStatus) StatusChanged(service core.Service, available bool)

type View

type View interface {
	BringToFront()
	ShowFilename(string)
	SelectOpenFile(string, ...string) (string, bool, error)
	SelectSaveFile(string, string, ...string) (string, bool, error)
	ShowInfoDialog(string, ...interface{})
	ShowErrorDialog(string, ...interface{})
}

View defines the visual functionality of the main application window.

Jump to

Keyboard shortcuts

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