entry

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2020 License: MIT Imports: 7 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(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 VFO

type VFO interface {
	SetBand(core.Band)
	SetMode(core.Mode)
}

VFO 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.

Jump to

Keyboard shortcuts

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