Documentation
¶
Index ¶
- type CWClient
- type Keyer
- func (k *Keyer) EnterPattern(index int, pattern string)
- func (k *Keyer) EnterSpeed(speed int)
- func (k *Keyer) GetPattern(index int) string
- func (k *Keyer) GetText(index int) (string, error)
- func (k *Keyer) KeyerSettings() core.KeyerSettings
- func (k *Keyer) Notify(listener any)
- func (k *Keyer) Save()
- func (k *Keyer) SelectPreset(name string)
- func (k *Keyer) Send(index int)
- func (k *Keyer) SendQuestion(q string)
- func (k *Keyer) SetSettings(settings core.KeyerSettings)
- func (k *Keyer) SetValues(values KeyerValueProvider)
- func (k *Keyer) SetView(view View)
- func (k *Keyer) SetWriter(writer Writer)
- func (k *Keyer) StationChanged(station core.Station)
- func (k *Keyer) Stop()
- func (k *Keyer) WorkmodeChanged(workmode core.Workmode)
- type KeyerValueProvider
- type View
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keyer ¶
type Keyer struct {
// contains filtered or unexported fields
}
func New ¶
func New(settings core.Settings, client CWClient, keyerSettings core.KeyerSettings, workmode core.Workmode, presets []core.KeyerPreset) *Keyer
New returns a new Keyer that has no patterns or templates defined yet.
func (*Keyer) EnterPattern ¶
func (*Keyer) EnterSpeed ¶
func (*Keyer) GetPattern ¶
func (*Keyer) KeyerSettings ¶ added in v0.6.0
func (k *Keyer) KeyerSettings() core.KeyerSettings
func (*Keyer) SelectPreset ¶ added in v0.12.0
func (*Keyer) SendQuestion ¶
func (*Keyer) SetSettings ¶ added in v0.15.0
func (k *Keyer) SetSettings(settings core.KeyerSettings)
func (*Keyer) SetValues ¶
func (k *Keyer) SetValues(values KeyerValueProvider)
func (*Keyer) StationChanged ¶ added in v0.6.0
func (*Keyer) WorkmodeChanged ¶ added in v0.6.0
type KeyerValueProvider ¶
type KeyerValueProvider func() core.KeyerValues
KeyerValueProvider provides the variable values for the Keyer templates on demand.
type View ¶
type View interface {
ShowMessage(...interface{})
SetPattern(int, string)
SetSpeed(int)
SetPresetNames([]string)
SetPreset(string)
}
View represents the visual parts of the keyer.
type Writer ¶ added in v0.6.0
type Writer interface {
WriteKeyer(core.KeyerSettings) error
}
Click to show internal directories.
Click to hide internal directories.