Documentation
¶
Index ¶
- type Callinfo
- type Controller
- func (c *Controller) CurrentValues() core.KeyerValues
- func (c *Controller) Enter(text string)
- func (c *Controller) GotoNextField() core.EntryField
- func (c *Controller) Log()
- func (c *Controller) QSOSelected(qso core.QSO)
- func (c *Controller) Reset()
- func (c *Controller) SendQuestion()
- func (c *Controller) SetActiveField(field core.EntryField)
- func (c *Controller) SetBand(band core.Band)
- func (c *Controller) SetCallinfo(callinfo Callinfo)
- func (c *Controller) SetFrequency(frequency core.Frequency)
- func (c *Controller) SetKeyer(keyer Keyer)
- func (c *Controller) SetLogbook(logbook Logbook)
- func (c *Controller) SetMode(mode core.Mode)
- func (c *Controller) SetVFO(vfo VFO)
- func (c *Controller) SetView(view View)
- type Keyer
- type Logbook
- type QSOList
- type VFO
- type View
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(clock core.Clock, qsoList QSOList, enableTheirNumberField, enableTheirXchangeField bool) *Controller
NewController returns a new entry controller.
func (*Controller) CurrentValues ¶
func (c *Controller) CurrentValues() core.KeyerValues
func (*Controller) Enter ¶
func (c *Controller) Enter(text string)
func (*Controller) GotoNextField ¶
func (c *Controller) GotoNextField() core.EntryField
func (*Controller) Log ¶
func (c *Controller) Log()
func (*Controller) QSOSelected ¶
func (c *Controller) QSOSelected(qso core.QSO)
func (*Controller) Reset ¶
func (c *Controller) Reset()
func (*Controller) SendQuestion ¶
func (c *Controller) SendQuestion()
func (*Controller) SetActiveField ¶
func (c *Controller) SetActiveField(field core.EntryField)
func (*Controller) SetBand ¶
func (c *Controller) SetBand(band core.Band)
func (*Controller) SetCallinfo ¶
func (c *Controller) SetCallinfo(callinfo Callinfo)
func (*Controller) SetFrequency ¶ added in v0.4.0
func (c *Controller) SetFrequency(frequency core.Frequency)
func (*Controller) SetKeyer ¶
func (c *Controller) SetKeyer(keyer Keyer)
func (*Controller) SetLogbook ¶
func (c *Controller) SetLogbook(logbook Logbook)
func (*Controller) SetMode ¶
func (c *Controller) SetMode(mode core.Mode)
func (*Controller) SetVFO ¶
func (c *Controller) SetVFO(vfo VFO)
func (*Controller) SetView ¶
func (c *Controller) SetView(view View)
type Keyer ¶
type Keyer interface {
SendQuestion(q string)
}
Keyer functionality used for QSO entry.
type Logbook ¶
type Logbook interface {
NextNumber() core.QSONumber
LastBand() core.Band
LastMode() core.Mode
LastXchange() string
Log(core.QSO)
}
Logbook functionality used for QSO entry.
type QSOList ¶
type QSOList interface {
Find(callsign.Callsign, core.Band, core.Mode) []core.QSO
FindDuplicateQSOs(callsign.Callsign, core.Band, core.Mode) []core.QSO
SelectQSO(core.QSO)
SelectLastQSO()
}
QSOList functionality used for QSO entry.
type View ¶
type View interface {
SetCallsign(string)
SetTheirReport(string)
SetTheirNumber(string)
SetTheirXchange(string)
SetFrequency(core.Frequency)
SetBand(text string)
SetMode(text string)
SetMyReport(string)
SetMyNumber(string)
SetMyXchange(string)
EnableExchangeFields(bool, bool)
SetActiveField(core.EntryField)
SetDuplicateMarker(bool)
SetEditingMarker(bool)
ShowMessage(...interface{})
ClearMessage()
}
View represents the visual part of the QSO data entry.
Click to show internal directories.
Click to hide internal directories.