ui

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: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	COLUMN_SPACING = 5
	ROW_SPACING    = 5
	MARGIN         = 3
)
View Source
const AppID = "ft.hellocontest"
View Source
const RateWindowID = "rate"
View Source
const ScoreWindowID = "score"
View Source
const SpotsWindowID = "spots"

Variables

This section is empty.

Functions

func Run

func Run(version string, sponsors string, startupScript Script, args []string)

Run the application

Types

type AcceptFocusFunc added in v0.17.0

type AcceptFocusFunc func(bool)

type ESMController added in v1.0.0

type ESMController interface {
	SetESMEnabled(enabled bool)
}

type EntryController

type EntryController interface {
	GotoNextField() core.EntryField
	GotoNextPlaceholder()
	SetActiveField(core.EntryField)

	Enter(string)
	SelectMatch(int)
	SelectBestMatchOnFrequency()
	SendQuestion()
	RepeatLastTransmission()
	StopTX()
	SetXITActive(bool)

	EnterPressed()
	Log()
	Clear()
}

EntryController controls the entry of QSO data.

type ExportCabrilloController added in v0.22.0

type ExportCabrilloController interface {
	Categories() []string
	CategoryBands() []string
	CategoryModes() []string
	CategoryOperators() []string
	CategoryPowers() []string
	CategoryAssisted() []string
	CategoryStations() []string
	CategoryTransmitters() []string
	CategoryOverlays() []string
	CategoryTimes() []string

	SetCategory(string)
	SetCategoryBand(string)
	SetCategoryMode(string)
	SetCategoryOperator(string)
	SetCategoryPower(string)
	SetCategoryAssisted(string)
	SetCategoryStation(string)
	SetCategoryTransmitter(string)
	SetCategoryOverlay(string)
	SetCategoryTime(string)
	SetName(string)
	SetEmail(string)
	SetLocation(string)
	SetAddressText(string)
	SetAddressCity(string)
	SetAddressPostalCode(string)
	SetAddressStateProvince(string)
	SetAddressCountry(string)
	SetClub(string)
	SetSpecific(string)
	SetCertificate(bool)
	SetSoapBox(string)
	SetOpenUploadAfterExport(bool)
	SetOpenAfterExport(bool)
}

type KeyerController

type KeyerController interface {
	Send(int)
	Stop()
	EnterSpeed(int)
	Save()
	OpenKeyerSettings()
}

KeyerController controls the keyer.

type KeyerSettingsController added in v0.20.0

type KeyerSettingsController interface {
	EnterLabel(core.Workmode, int, string)
	EnterMacro(core.Workmode, int, string)
	SelectPreset(string)
	EnterParrotIntervalSeconds(int)
	Save()
}
type MainMenuController interface {
	OpenWiki()
	Sponsors()
	About()
	New()
	Open()
	SaveAs()
	ExportSummary()
	ExportCabrillo()
	ExportADIF()
	ExportCSV()
	ExportCallhistory()
	OpenContestRulesPage()
	OpenContestUploadPage()
	OpenSettings()
	OpenConfigurationFile()
	Quit()
	ShowScore()
	ShowRate()
	ShowSpots()
	ClearEntryFields()
	GotoEntryFields()
	EditLastQSO()
	RefreshPrediction()
	LogQSO()
	StartParrot()
	SetESMEnabled(enabled bool)
	SwitchToSPWorkmode()
	SwitchToRunWorkmode()
	OfferQTC()
	RequestQTC()
	SetXITActive(active bool)
	MarkInBandmap()
	GotoHighestValueSpot()
	GotoNearestSpot()
	GotoNextSpotUp()
	GotoNextSpotDown()
	SendSpotsToTci() bool
	SetSendSpotsToTci(bool)
}

MainMenuController provides the functionality for the main menu.

type NewContestController added in v0.16.0

type NewContestController interface {
	SelectContestIdentifier(string)
	EnterContestName(string)
}

type QSOListController added in v1.1.0

type QSOListController interface {
	GetExchangeFields() ([]core.ExchangeField, []core.ExchangeField)
	SelectRow(int)
}

QSOListController represents the logbook controller.

type QTCController added in v1.1.0

type QTCController interface {
	StartAction()
	ConfirmStart()
	HeaderAction()
	ConfirmHeader()
	DataAction()
	ConfirmData()

	DoAction()
	DoConfirm()
	RepeatLastTransmission()

	Enter(string)
	GotoNextField()
	SetActiveField(core.QTCField)

	CompleteQTCSeries()
	AbortQTCSeries()

	Stop()
	DoubleStop()
}

type RadioMenuController added in v0.15.0

type RadioMenuController interface {
	SelectRadio(name string)
	SelectKeyer(name string)
}

type Script added in v0.22.0

type Script interface {
	app.Script
	Now() time.Time
}

type SettingsController added in v0.6.0

type SettingsController interface {
	Save()
	Reset()
	OpenConfigurationFile()

	EnterStationCallsign(string)
	EnterStationOperator(string)
	EnterStationLocator(string)

	SelectContestIdentifier(string)
	OpenContestRulesPage()
	OpenContestUploadPage()
	OpenCallHistoryArchivePage()
	ClearCallHistory()

	EnterContestExchangeValue(core.EntryField, string)
	EnterContestGenerateSerialExchange(bool)
	EnterContestGenerateReport(bool)

	EnterContestName(string)
	EnterContestStartTime(string)
	SetContestStartTimeToday()
	SetContestStartTimeNow()
	SetOperationModeSprint(bool)
	SetContestEnableQTCs(bool)
	EnterContestCallHistoryFile(string)
	EnterContestCallHistoryFieldName(core.EntryField, string)
	EnterQSOsGoal(string)
	EnterPointsGoal(string)
	EnterMultisGoal(string)
}

type SpotSourceMenuController added in v0.13.0

type SpotSourceMenuController interface {
	SetSpotSourceEnabled(string, bool)
}

type SpotsController added in v0.13.0

type SpotsController interface {
	SetVisibleBand(core.Band)
	SetActiveBand(core.Band)

	SelectEntry(core.BandmapEntryID)
}

type StopKeyController added in v0.9.0

type StopKeyController interface {
	Stop()
	DoubleStop()
}

type SummaryController added in v1.1.0

type SummaryController interface {
	OperatorModes() []string
	Overlays() []string
	PowerModes() []string

	SetOperatorMode(string)
	SetOverlay(string)
	SetPowerMode(string)
	SetAssisted(bool)

	SetOpenAfterExport(bool)
}

type WorkmodeController

type WorkmodeController interface {
	SetWorkmode(core.Workmode)
}

WorkmodeController controls the workmode handling.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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