entry

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callinfo

type Callinfo interface {
	ShowInfo(call string, band core.Band, mode core.Mode, xchange 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, qsoList QSOList, asyncRunner core.AsyncRunner) *Controller

NewController returns a new entry controller.

func (*Controller) Activate added in v0.5.0

func (c *Controller) Activate()

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

func (c *Controller) CurrentValues() core.KeyerValues

func (*Controller) EditLastQSO added in v0.5.0

func (c *Controller) EditLastQSO()

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

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

type Keyer

type Keyer interface {
	SendQuestion(q string)
	Stop()
}

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 VFO

type VFO interface {
	Active() bool
	SetFrequency(core.Frequency)
	SetBand(core.Band)
	SetMode(core.Mode)
}

VFO functionality used for QSO entry.

type View

type View interface {
	SetUTC(string)
	SetMyCall(string)
	SetFrequency(core.Frequency)
	SetCallsign(string)
	SetTheirReport(string)
	SetTheirNumber(string)
	SetTheirXchange(string)
	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.

Jump to

Keyboard shortcuts

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