settings

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 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 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 DefaultsOpener

type DefaultsOpener func()

type Settings

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

func New

func New(defaultsOpener DefaultsOpener, browserOpener BrowserOpener, 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) ContestDirty

func (s *Settings) ContestDirty() bool

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 interface{})

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

func (s *Settings) OpenDefaults()

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

func (*Settings) SetContest

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

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)
	SetContestPagesAvailable(bool, bool)
	SelectContestIdentifier(string)

	SetContestExchangeFields([]core.ExchangeField)
	SetContestExchangeValue(index int, value string)
	SetContestGenerateSerialExchange(active bool, sensitive bool)
	SetContestGenerateReport(active bool, sensitive 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