settings

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrowserOpener added in v0.10.0

type BrowserOpener func(string)

type CallHistory added in v0.21.0

type CallHistory interface {
	Activate(filename string)
	Deactivate()
	SelectFieldNames(fieldNames []string)
}

type ConfigurationFileOpener added in v0.15.0

type ConfigurationFileOpener func()

type ContestListener

type ContestListener interface {
	ContestChanged(core.Contest)
}

type ContestListenerFunc

type ContestListenerFunc func(core.Contest)

func (ContestListenerFunc) ContestChanged

func (f ContestListenerFunc) ContestChanged(contest core.Contest)

type ContestPagesListener added in v0.16.0

type ContestPagesListener interface {
	ContestPagesChanged(rulesAvailable bool, uploadAvailable bool)
}

type ContestPagesListenerFunc added in v0.16.0

type ContestPagesListenerFunc func(bool, bool)

func (ContestPagesListenerFunc) ContestPagesChanged added in v0.16.0

func (f ContestPagesListenerFunc) ContestPagesChanged(rulesAvailable bool, uploadAvailable bool)

type Settings

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

func New

func New(configurationFileOpener ConfigurationFileOpener, clock core.Clock, browserOpener BrowserOpener, callHistory CallHistory, station core.Station, contest core.Contest) *Settings

func (*Settings) ClearCallHistory added in v0.10.0

func (s *Settings) ClearCallHistory()

func (*Settings) Contest

func (s *Settings) Contest() core.Contest

func (*Settings) ContestDefinition added in v0.16.0

func (s *Settings) ContestDefinition(contestIdentifier string) *conval.Definition

func (*Settings) ContestDirty

func (s *Settings) ContestDirty() bool

func (*Settings) ContestIdentifiers added in v0.16.0

func (s *Settings) ContestIdentifiers() ([]string, []string)

func (*Settings) EnterContestCallHistoryFieldName added in v0.10.0

func (s *Settings) EnterContestCallHistoryFieldName(field core.EntryField, value string)

func (*Settings) EnterContestCallHistoryFile added in v0.9.0

func (s *Settings) EnterContestCallHistoryFile(value string)

func (*Settings) EnterContestExchangeValue added in v0.10.0

func (s *Settings) EnterContestExchangeValue(field core.EntryField, value string)

func (*Settings) EnterContestGenerateReport added in v0.12.0

func (s *Settings) EnterContestGenerateReport(value bool)

func (*Settings) EnterContestGenerateSerialExchange added in v0.10.0

func (s *Settings) EnterContestGenerateSerialExchange(value bool)

func (*Settings) EnterContestName

func (s *Settings) EnterContestName(value string)

func (*Settings) EnterContestStartTime added in v0.12.0

func (s *Settings) EnterContestStartTime(value string)

func (*Settings) EnterMultisGoal added in v0.11.0

func (s *Settings) EnterMultisGoal(value string)

func (*Settings) EnterPointsGoal added in v0.11.0

func (s *Settings) EnterPointsGoal(value string)

func (*Settings) EnterQSOsGoal added in v0.11.0

func (s *Settings) EnterQSOsGoal(value string)

func (*Settings) EnterStationCallsign

func (s *Settings) EnterStationCallsign(value string)

func (*Settings) EnterStationLocator

func (s *Settings) EnterStationLocator(value string)

func (*Settings) EnterStationOperator

func (s *Settings) EnterStationOperator(value string)

func (*Settings) Notify

func (s *Settings) Notify(listener any)

func (*Settings) OpenCallHistoryArchivePage added in v0.21.0

func (s *Settings) OpenCallHistoryArchivePage()

func (*Settings) OpenConfigurationFile added in v0.15.0

func (s *Settings) OpenConfigurationFile()

func (*Settings) OpenContestRulesPage added in v0.10.0

func (s *Settings) OpenContestRulesPage()

func (*Settings) OpenContestUploadPage added in v0.10.0

func (s *Settings) OpenContestUploadPage()

func (*Settings) ProposeContestName added in v0.16.0

func (s *Settings) ProposeContestName(contestIdentifier string) string

func (*Settings) RefreshView added in v0.22.0

func (s *Settings) RefreshView()

func (*Settings) Reset

func (s *Settings) Reset()

func (*Settings) Save

func (s *Settings) Save()

func (*Settings) SelectContestIdentifier added in v0.10.0

func (s *Settings) SelectContestIdentifier(contestIdentifier string)

func (*Settings) SetAvailableCallHistoryFieldNames added in v0.21.0

func (s *Settings) SetAvailableCallHistoryFieldNames(fieldNames []string)

func (*Settings) SetContest

func (s *Settings) SetContest(contest core.Contest)

func (*Settings) SetContestEnableQTCs added in v1.1.0

func (s *Settings) SetContestEnableQTCs(value bool)

func (*Settings) SetContestStartTimeNow added in v0.12.0

func (s *Settings) SetContestStartTimeNow()

func (*Settings) SetContestStartTimeToday added in v0.12.0

func (s *Settings) SetContestStartTimeToday()

func (*Settings) SetOperationModeSprint added in v0.12.0

func (s *Settings) SetOperationModeSprint(value bool)

func (*Settings) SetStation

func (s *Settings) SetStation(station core.Station)

func (*Settings) SetView

func (s *Settings) SetView(view View)

func (*Settings) SetWriter

func (s *Settings) SetWriter(writer Writer)

func (*Settings) Show

func (s *Settings) Show()

func (*Settings) Station

func (s *Settings) Station() core.Station

func (*Settings) StationDirty

func (s *Settings) StationDirty() bool

type SettingsListener

type SettingsListener interface {
	SettingsChanged(core.Settings)
}

type SettingsListenerFunc

type SettingsListenerFunc func(core.Settings)

func (SettingsListenerFunc) SettingsChanged

func (f SettingsListenerFunc) SettingsChanged(settings core.Settings)

type StationListener

type StationListener interface {
	StationChanged(core.Station)
}

type StationListenerFunc

type StationListenerFunc func(core.Station)

func (StationListenerFunc) StationChanged

func (f StationListenerFunc) StationChanged(station core.Station)

type View

type View interface {
	Show()
	ShowMessage(string)
	HideMessage()
	Ready() bool

	SetStationCallsign(string)
	SetStationOperator(string)
	SetStationLocator(string)

	SetContestIdentifiers(ids []string, texts []string)
	SelectContestIdentifier(string)

	SetContestExchangeFields([]core.ExchangeField)
	SetContestExchangeValue(index int, value string)
	SetContestGenerateSerialExchange(active bool, sensitive bool)
	SetContestGenerateReport(active bool, sensitive bool)
	SetContestEnableQTCs(bool)

	SetContestName(string)
	SetContestStartTime(string)
	SetOperationModeSprint(bool)
	SetContestCallHistoryFile(string)
	SetContestCallHistoryFieldName(i int, value string)
	SetContestAvailableCallHistoryFieldNames([]string)

	SetQSOsGoal(string)
	SetPointsGoal(string)
	SetMultisGoal(string)
}

type Writer

type Writer interface {
	WriteStation(core.Station) error
	WriteContest(core.Contest) error
}

type XchangeRegexpMatcher

type XchangeRegexpMatcher func(*regexp.Regexp, string) (string, bool)

Jump to

Keyboard shortcuts

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