app

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2026 License: MIT Imports: 36 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 {
	LogDirectory() string
	HamDXMapPort() int
	Station() core.Station
	Contest() core.Contest
	KeyerSettings() core.KeyerSettings
	KeyerPresets() []core.KeyerPreset
	SpotLifetime() time.Duration
	SpotSources() []core.SpotSource
	Radios() []core.Radio
	Keyers() []core.Keyer
}

Configuration provides read access to the configuration data.

type Controller

type Controller struct {
	VFO                      *vfo.VFO
	Logbook                  *logbook.Logbook
	QSOList                  *logbook.QSOList
	QTCList                  *logbook.QTCList
	Entry                    *entry.Controller
	ScoreController          *score.Controller
	Workmode                 *workmode.Controller
	Radio                    *radio.Controller
	Keyer                    *keyer.Keyer
	Callinfo                 *callinfo.Callinfo
	Rate                     *rate.Counter
	ServiceStatus            *ServiceStatus
	NewContestController     *newcontest.Controller
	SummaryController        *summary.Controller
	ExportCabrilloController *cabrillo.Controller
	QTCController            *qtc.Controller
	Settings                 *settings.Settings
	Bandmap                  *bandmap.Bandmap
	Clusters                 *cluster.Clusters
	Parrot                   *parrot.Parrot
	// contains filtered or unexported fields
}

func NewController

func NewController(version string, clock core.Clock, quitter Quitter, asyncRunner core.AsyncRunner, configuration Configuration, sponsors string) *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) ESMEnabled added in v1.0.0

func (c *Controller) ESMEnabled() bool

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) ExportSummary added in v1.1.0

func (c *Controller) ExportSummary()

func (*Controller) GotoEntryFields added in v0.5.0

func (c *Controller) GotoEntryFields()

func (*Controller) GotoHighestValueSpot added in v0.18.0

func (c *Controller) GotoHighestValueSpot()

func (*Controller) GotoNearestSpot added in v0.13.0

func (c *Controller) GotoNearestSpot()

func (*Controller) GotoNextSpotDown added in v0.13.0

func (c *Controller) GotoNextSpotDown()

func (*Controller) GotoNextSpotUp added in v0.13.0

func (c *Controller) GotoNextSpotUp()

func (*Controller) LogQSO added in v0.5.0

func (c *Controller) LogQSO()

func (*Controller) MarkInBandmap added in v0.13.0

func (c *Controller) MarkInBandmap()

func (*Controller) New

func (c *Controller) New()

func (*Controller) OfferQTC added in v1.1.0

func (c *Controller) OfferQTC()

func (*Controller) Open

func (c *Controller) Open()

func (*Controller) OpenConfigurationFile added in v0.15.0

func (c *Controller) OpenConfigurationFile()

func (*Controller) OpenContestRulesPage added in v0.15.0

func (c *Controller) OpenContestRulesPage()

func (*Controller) OpenContestUploadPage added in v0.15.0

func (c *Controller) OpenContestUploadPage()

func (*Controller) OpenSettings added in v0.6.0

func (c *Controller) OpenSettings()

func (*Controller) OpenWiki added in v0.16.0

func (c *Controller) OpenWiki()

func (*Controller) Quit

func (c *Controller) Quit()

func (*Controller) Refresh

func (c *Controller) Refresh()

func (*Controller) RefreshPrediction added in v0.19.0

func (c *Controller) RefreshPrediction()

func (*Controller) RequestQTC added in v1.1.0

func (c *Controller) RequestQTC()

func (*Controller) RunScript added in v0.22.0

func (c *Controller) RunScript(ctx context.Context, script Script)

func (*Controller) SaveAs

func (c *Controller) SaveAs()

func (*Controller) SelectKeyer added in v0.15.0

func (c *Controller) SelectKeyer(name string)

func (*Controller) SelectRadio added in v0.15.0

func (c *Controller) SelectRadio(name string)

func (*Controller) SendSpotsToTci added in v0.13.0

func (c *Controller) SendSpotsToTci() bool

func (*Controller) SetESMEnabled added in v1.0.0

func (c *Controller) SetESMEnabled(enabled bool)

func (*Controller) SetSendSpotsToTci added in v0.13.0

func (c *Controller) SetSendSpotsToTci(sendSpotsToTci bool)

func (*Controller) SetSpotSourceEnabled added in v0.13.0

func (c *Controller) SetSpotSourceEnabled(name string, enabled bool)

func (*Controller) SetView

func (c *Controller) SetView(view View)

func (*Controller) SetXITActive added in v0.22.2

func (c *Controller) SetXITActive(active bool)

func (*Controller) ShowError added in v0.22.0

func (c *Controller) ShowError(format string, args ...any)

func (*Controller) ShowInfo added in v0.22.0

func (c *Controller) ShowInfo(format string, args ...any)

func (*Controller) ShowQuestion added in v0.22.0

func (c *Controller) ShowQuestion(format string, args ...any) bool

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) ShowSpots added in v0.13.0

func (c *Controller) ShowSpots()

func (*Controller) Shutdown

func (c *Controller) Shutdown()

func (*Controller) Sponsors added in v0.17.0

func (c *Controller) Sponsors()

func (*Controller) StartParrot added in v0.21.0

func (c *Controller) StartParrot()

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()

func (*Controller) XITActive added in v0.22.2

func (c *Controller) XITActive() bool

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 Script added in v0.22.0

type Script interface {
	Step(ctx context.Context, app *Controller, ui func(func())) bool
}

Script can be used to automate things

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(title string, dir string, patterns ...string) (string, bool, error)
	SelectSaveFile(title string, dir string, filename string, patterns ...string) (string, bool, error)
	ShowInfoDialog(string, ...any)
	ShowQuestionDialog(string, ...any) bool
	ShowErrorDialog(string, ...any)
}

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