Documentation
¶
Index ¶
- type Bandmap
- type Callinfo
- type Controller
- func (c *Controller) Activate()
- func (c *Controller) CallinfoFrameChanged(frame core.CallinfoFrame)
- func (c *Controller) Clear()
- func (c *Controller) ContestChanged(contest core.Contest)
- func (c *Controller) CurrentQSOState() (callsign.Callsign, core.QSODataState)
- func (c *Controller) CurrentValues() core.KeyerValues
- func (c *Controller) ESMEnabled() bool
- func (c *Controller) EditLastQSO()
- func (c *Controller) Enter(text string)
- func (c *Controller) EnterPressed()
- func (c *Controller) EntrySelected(entry core.BandmapEntry)
- func (c *Controller) GotoNextField() core.EntryField
- func (c *Controller) GotoNextPlaceholder()
- func (c *Controller) Log()
- func (c *Controller) LogbookLoaded()
- func (c *Controller) MarkInBandmap()
- func (c *Controller) NextESMStep()
- func (c *Controller) Notify(listener any)
- func (c *Controller) ParrotActive(active bool)
- func (c *Controller) ParrotTimeLeft(timeLeft time.Duration)
- func (c *Controller) QSOSelected(qso core.QSO)
- func (c *Controller) RefreshPrediction()
- func (c *Controller) RefreshView()
- func (c *Controller) RepeatLastTransmission()
- func (c *Controller) SelectBestMatchOnFrequency()
- func (c *Controller) SelectMatch(index int)
- func (c *Controller) SendQuestion()
- func (c *Controller) SetActiveField(field core.EntryField)
- func (c *Controller) SetCallinfo(callinfo Callinfo)
- func (c *Controller) SetESMEnabled(enabled bool)
- func (c *Controller) SetESMView(esmView ESMView)
- func (c *Controller) SetKeyer(keyer Keyer)
- func (c *Controller) SetVFO(vfo core.VFO)
- func (c *Controller) SetView(view View)
- func (c *Controller) SetXITActive(active bool)
- func (c *Controller) StartAutoRefresh()
- func (c *Controller) StationChanged(station core.Station)
- func (c *Controller) StopTX()
- func (c *Controller) VFOBandChanged(band core.Band)
- func (c *Controller) VFOFrequencyChanged(frequency core.Frequency)
- func (c *Controller) VFOModeChanged(mode core.Mode)
- func (c *Controller) VFOPTTChanged(active bool)
- func (c *Controller) VFOXITChanged(active bool, offset core.Frequency)
- func (c *Controller) WorkmodeChanged(workmode core.Workmode)
- func (c *Controller) XITActiveChanged(active bool)
- type ESMListener
- type ESMListenerFunc
- type ESMView
- type Keyer
- type Logbook
- type QSOList
- type View
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Callinfo ¶
type Callinfo interface {
InputChanged(call string, band core.Band, mode core.Mode, exchange []string)
}
Callinfo functionality used for QSO entry.
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(settings core.Settings, clock core.Clock, logbook Logbook, qsoList QSOList, bandmap Bandmap, asyncRunner core.AsyncRunner) *Controller
NewController returns a new entry controller.
func (*Controller) Activate ¶ added in v0.5.0
func (c *Controller) Activate()
func (*Controller) CallinfoFrameChanged ¶ added in v0.22.0
func (c *Controller) CallinfoFrameChanged(frame core.CallinfoFrame)
func (*Controller) Clear ¶ added in v0.5.0
func (c *Controller) Clear()
func (*Controller) ContestChanged ¶ added in v0.6.0
func (c *Controller) ContestChanged(contest core.Contest)
func (*Controller) CurrentQSOState ¶ added in v1.1.0
func (c *Controller) CurrentQSOState() (callsign.Callsign, core.QSODataState)
func (*Controller) CurrentValues ¶
func (c *Controller) CurrentValues() core.KeyerValues
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) Enter ¶
func (c *Controller) Enter(text string)
func (*Controller) EnterPressed ¶ added in v1.0.0
func (c *Controller) EnterPressed()
func (*Controller) EntrySelected ¶ added in v0.13.0
func (c *Controller) EntrySelected(entry core.BandmapEntry)
func (*Controller) GotoNextField ¶
func (c *Controller) GotoNextField() core.EntryField
func (*Controller) GotoNextPlaceholder ¶ added in v0.13.0
func (c *Controller) GotoNextPlaceholder()
func (*Controller) Log ¶
func (c *Controller) Log()
func (*Controller) LogbookLoaded ¶ added in v1.1.0
func (c *Controller) LogbookLoaded()
func (*Controller) MarkInBandmap ¶ added in v0.13.0
func (c *Controller) MarkInBandmap()
func (*Controller) NextESMStep ¶ added in v1.0.0
func (c *Controller) NextESMStep()
func (*Controller) Notify ¶ added in v0.13.0
func (c *Controller) Notify(listener any)
func (*Controller) ParrotActive ¶ added in v0.22.4
func (c *Controller) ParrotActive(active bool)
func (*Controller) ParrotTimeLeft ¶ added in v0.22.4
func (c *Controller) ParrotTimeLeft(timeLeft time.Duration)
func (*Controller) QSOSelected ¶
func (c *Controller) QSOSelected(qso core.QSO)
func (*Controller) RefreshPrediction ¶ added in v0.19.0
func (c *Controller) RefreshPrediction()
func (*Controller) RefreshView ¶ added in v0.22.0
func (c *Controller) RefreshView()
func (*Controller) RepeatLastTransmission ¶ added in v1.0.0
func (c *Controller) RepeatLastTransmission()
func (*Controller) SelectBestMatchOnFrequency ¶ added in v0.22.0
func (c *Controller) SelectBestMatchOnFrequency()
func (*Controller) SelectMatch ¶ added in v0.20.0
func (c *Controller) SelectMatch(index int)
func (*Controller) SendQuestion ¶
func (c *Controller) SendQuestion()
func (*Controller) SetActiveField ¶
func (c *Controller) SetActiveField(field core.EntryField)
func (*Controller) SetCallinfo ¶
func (c *Controller) SetCallinfo(callinfo Callinfo)
func (*Controller) SetESMEnabled ¶ added in v1.0.0
func (c *Controller) SetESMEnabled(enabled bool)
func (*Controller) SetESMView ¶ added in v1.0.0
func (c *Controller) SetESMView(esmView ESMView)
func (*Controller) SetKeyer ¶
func (c *Controller) SetKeyer(keyer Keyer)
func (*Controller) SetVFO ¶
func (c *Controller) SetVFO(vfo core.VFO)
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) StartAutoRefresh ¶ added in v0.5.0
func (c *Controller) StartAutoRefresh()
func (*Controller) StationChanged ¶ added in v0.6.0
func (c *Controller) StationChanged(station core.Station)
func (*Controller) StopTX ¶ added in v0.5.0
func (c *Controller) StopTX()
func (*Controller) VFOBandChanged ¶ added in v0.13.0
func (c *Controller) VFOBandChanged(band core.Band)
func (*Controller) VFOFrequencyChanged ¶ added in v0.13.0
func (c *Controller) VFOFrequencyChanged(frequency core.Frequency)
func (*Controller) VFOModeChanged ¶ added in v0.13.0
func (c *Controller) VFOModeChanged(mode core.Mode)
func (*Controller) VFOPTTChanged ¶ added in v0.22.4
func (c *Controller) VFOPTTChanged(active bool)
func (*Controller) VFOXITChanged ¶ added in v0.22.2
func (c *Controller) VFOXITChanged(active bool, offset core.Frequency)
func (*Controller) WorkmodeChanged ¶ added in v0.13.0
func (c *Controller) WorkmodeChanged(workmode core.Workmode)
func (*Controller) XITActiveChanged ¶ added in v0.22.2
func (c *Controller) XITActiveChanged(active bool)
type ESMListener ¶ added in v1.0.0
type ESMListener interface {
ESMEnabled(enabled bool)
}
type ESMListenerFunc ¶ added in v1.0.0
type ESMListenerFunc func(enabled bool)
func (ESMListenerFunc) ESMEnabled ¶ added in v1.0.0
func (f ESMListenerFunc) ESMEnabled(enabled bool)
type Keyer ¶
type Keyer interface {
SendQuestion(q string)
GetText(workmode core.Workmode, index int) (string, error)
SendText(text string, args ...any)
Repeat()
Stop()
}
Keyer functionality used for QSO entry.
type Logbook ¶
type Logbook interface {
NextQSONumber() core.QSONumber
LastBand() core.Band
LastMode() core.Mode
LastExchange() []string
AddQSO(core.QSO)
UpdateQSO(core.QSO)
FindDuplicateQSOs(callsign.Callsign, core.Band, core.Mode) []core.QSO
}
Logbook functionality used for QSO entry.
type View ¶
type View interface {
SetUTC(string)
SetMyCall(string)
SetFrequency(core.Frequency)
SetCallsign(string)
SetBand(text string)
SetMode(text string)
SetXITActive(active bool)
SetXIT(active bool, offset core.Frequency)
SetTXState(ptt bool, parrotActive bool, parrotTimeLeft time.Duration)
SetMyExchange(int, string)
SetTheirExchange(int, string)
SetMyExchangeFields([]core.ExchangeField)
SetTheirExchangeFields([]core.ExchangeField)
SetActiveField(core.EntryField)
SelectText(core.EntryField, string)
SetDuplicateMarker(bool)
SetEditingMarker(bool)
ShowMessage(...any)
ClearMessage()
}
View represents the visual part of the QSO data entry.
Click to show internal directories.
Click to hide internal directories.