Documentation ¶
Index ¶
- func Clear(minX, minY, maxX, maxY int, fg, bg termbox.Attribute)
- func DrawRunes(x, y int, text []rune, fg, bg termbox.Attribute)
- func DrawText(x, y int, text string, fg, bg termbox.Attribute)
- func DrawTextPad(x, y int, text string, pad int, fg, bg termbox.Attribute)
- func InputBool(c Controller, msg string) (bool, bool)
- func InputChoice(c Controller, msg string, choices []string) (string, bool)
- func InputInteger(c Controller, msg string) (int, bool)
- func InputString(c Controller, msg string) (string, bool)
- func Splash(title, text string)
- func YesNoQuestion(msg string) bool
- type BookmarkList
- type Button
- type ComboBox
- func (c *ComboBox) AddItem(t string)
- func (c *ComboBox) Focus(b bool)
- func (c *ComboBox) HandleEvent(key input.Key)
- func (c *ComboBox) Redraw()
- func (c *ComboBox) SetController(cn Controller)
- func (c *ComboBox) SetSelected(text string)
- func (c *ComboBox) Value() string
- func (c *ComboBox) Width() int
- type Command
- type CommandList
- type Controller
- type CustomField
- type FocusController
- type Focusable
- type Label
- type List
- type ListSource
- type MainController
- func (c *MainController) AddCommand(key input.Key, fn func())
- func (c *MainController) AddWidget(w Widget)
- func (c *MainController) HandleEvent(key input.Key) bool
- func (c *MainController) Redraw()
- func (c *MainController) RefreshEvery(duration time.Duration)
- func (c *MainController) Shutdown()
- func (c *MainController) Theme() Theme
- type MenuBar
- type Messages
- type PanelController
- type QSO
- func (q *QSO) Band() string
- func (q *QSO) Call() string
- func (q *QSO) Focus(b bool)
- func (q *QSO) Frequency() string
- func (q *QSO) FrequencyValue() float64
- func (q *QSO) GetRecord() adif.Record
- func (q *QSO) Grid() string
- func (q *QSO) HandleEvent(key input.Key)
- func (q *QSO) HasRig() bool
- func (q *QSO) Height() int
- func (q *QSO) IsValid() bool
- func (q *QSO) Mode() string
- func (q *QSO) Name() string
- func (q *QSO) Redraw()
- func (q *QSO) ResetDateTime()
- func (q *QSO) SetController(c Controller)
- func (q *QSO) SetDefaults()
- func (q *QSO) SetFrequency(f float64)
- func (q *QSO) SetOperatorGrid(grid string)
- func (q *QSO) SetRecord(r adif.Record)
- type QSOList
- func (q *QSOList) Focus(b bool)
- func (q *QSOList) HandleEvent(key input.Key)
- func (q *QSOList) OnSelect(fn func(r adif.Record))
- func (q *QSOList) Redraw()
- func (q *QSOList) SelectedIndex() int
- func (q *QSOList) SelectedRecord() adif.Record
- func (q *QSOList) SetController(c Controller)
- func (q *QSOList) SetMaxLines(m int)
- func (q *QSOList) SetOperatorGrid(grid string)
- type SpotRecord
- type SpottingList
- type StatusBar
- type TextEdit
- func (t *TextEdit) Focus(b bool)
- func (t *TextEdit) HandleEvent(key input.Key)
- func (t *TextEdit) OnChange(fn func(t string))
- func (t *TextEdit) OnLostFocus(f func())
- func (t *TextEdit) Redraw()
- func (t *TextEdit) SetAllowedCharacterSet(regex string)
- func (t *TextEdit) SetController(c Controller)
- func (t *TextEdit) SetForceUpperCase(b bool)
- func (t *TextEdit) SetValue(s string)
- func (t *TextEdit) SetWidth(n int)
- func (t *TextEdit) Value() string
- func (t *TextEdit) Width() int
- type Theme
- type Widget
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clear ¶
Clear clears the cells in the range [minX, minY], [maxX, maxY] to the specified foreground and background colors.
func InputChoice ¶
func InputChoice(c Controller, msg string, choices []string) (string, bool)
func InputInteger ¶
func InputInteger(c Controller, msg string) (int, bool)
func InputString ¶
func InputString(c Controller, msg string) (string, bool)
func Splash ¶
func Splash(title, text string)
Splash draws a message in the center of the screen that can be dismissed with the escape key
func YesNoQuestion ¶
Types ¶
type BookmarkList ¶
type BookmarkList struct { List // contains filtered or unexported fields }
func NewBookmarkList ¶
func NewBookmarkList(yPos int, bm *ham.Bookmarks, maxLines int, theme Theme) *BookmarkList
func (*BookmarkList) DrawItem ¶
func (b *BookmarkList) DrawItem(idx, yPos int, fg, bg termbox.Attribute)
func (*BookmarkList) Length ¶
func (b *BookmarkList) Length() int
type Button ¶
type Button struct {
// contains filtered or unexported fields
}
func (*Button) HandleEvent ¶
func (*Button) SetController ¶
func (b *Button) SetController(c Controller)
type ComboBox ¶
type ComboBox struct {
// contains filtered or unexported fields
}
func NewComboBox ¶
func (*ComboBox) HandleEvent ¶
func (*ComboBox) SetController ¶
func (c *ComboBox) SetController(cn Controller)
func (*ComboBox) SetSelected ¶
type CommandList ¶
type CommandList struct { List // contains filtered or unexported fields }
func NewCommandList ¶
func NewCommandList(yPos int, cmds []Command, maxLines int, theme Theme) *CommandList
func (*CommandList) DrawItem ¶
func (c *CommandList) DrawItem(idx, yPos int, fg, bg termbox.Attribute)
func (*CommandList) Length ¶
func (c *CommandList) Length() int
type Controller ¶
type CustomField ¶
type FocusController ¶
type FocusController struct {
// contains filtered or unexported fields
}
func (*FocusController) Focus ¶
func (c *FocusController) Focus(w Focusable)
func (*FocusController) FocusNext ¶
func (c *FocusController) FocusNext() bool
func (*FocusController) FocusPrevious ¶
func (c *FocusController) FocusPrevious() bool
func (*FocusController) Unfocus ¶
func (p *FocusController) Unfocus()
type Label ¶
type Label struct {
// contains filtered or unexported fields
}
func (*Label) SetController ¶
func (l *Label) SetController(c Controller)
type List ¶
type List struct {
// contains filtered or unexported fields
}
func (*List) HandleEvent ¶
func (*List) SetController ¶
func (d *List) SetController(c Controller)
type ListSource ¶
type MainController ¶
type MainController struct { FocusController // contains filtered or unexported fields }
func NewController ¶
func NewController(thm Theme) *MainController
func (*MainController) AddCommand ¶
func (c *MainController) AddCommand(key input.Key, fn func())
func (*MainController) AddWidget ¶
func (c *MainController) AddWidget(w Widget)
func (*MainController) HandleEvent ¶
func (c *MainController) HandleEvent(key input.Key) bool
func (*MainController) Redraw ¶
func (c *MainController) Redraw()
func (*MainController) RefreshEvery ¶
func (c *MainController) RefreshEvery(duration time.Duration)
func (*MainController) Shutdown ¶
func (c *MainController) Shutdown()
func (*MainController) Theme ¶
func (c *MainController) Theme() Theme
type Messages ¶
type Messages struct {
// contains filtered or unexported fields
}
func (*Messages) AddMessage ¶
func (*Messages) HandleEvent ¶
func (*Messages) SetController ¶
func (m *Messages) SetController(cn Controller)
type PanelController ¶
type PanelController struct { FocusController // contains filtered or unexported fields }
func NewPanelController ¶
func NewPanelController(theme Theme) *PanelController
func (*PanelController) AddWidget ¶
func (p *PanelController) AddWidget(w Widget)
func (*PanelController) FocusIndex ¶
func (p *PanelController) FocusIndex(idx int)
func (*PanelController) HandleEvent ¶
func (p *PanelController) HandleEvent(key input.Key)
func (*PanelController) Redraw ¶
func (p *PanelController) Redraw()
func (*PanelController) Theme ¶
func (c *PanelController) Theme() Theme
type QSO ¶
type QSO struct {
// contains filtered or unexported fields
}
QSO is the qso editor
func NewQSO ¶
func NewQSO(yPos int, theme Theme, lookup callsigns.Lookup, customFields []CustomField, rig *rig.RigCache) *QSO
NewQSO constructs a new QSO editor
func (*QSO) FrequencyValue ¶
func (*QSO) HandleEvent ¶
func (*QSO) ResetDateTime ¶
func (q *QSO) ResetDateTime()
func (*QSO) SetController ¶
func (q *QSO) SetController(c Controller)
func (*QSO) SetDefaults ¶
func (q *QSO) SetDefaults()
func (*QSO) SetFrequency ¶
func (*QSO) SetOperatorGrid ¶
type QSOList ¶
type QSOList struct {
// contains filtered or unexported fields
}
func (*QSOList) HandleEvent ¶
func (*QSOList) SelectedIndex ¶
func (*QSOList) SelectedRecord ¶
func (*QSOList) SetController ¶
func (q *QSOList) SetController(c Controller)
func (*QSOList) SetMaxLines ¶
func (*QSOList) SetOperatorGrid ¶
type SpotRecord ¶
type SpottingList ¶
type SpottingList struct {
// contains filtered or unexported fields
}
func NewSpottingList ¶
func (*SpottingList) AddSpot ¶
func (d *SpottingList) AddSpot(msg SpotRecord)
func (*SpottingList) Focus ¶
func (d *SpottingList) Focus(b bool)
func (*SpottingList) HandleEvent ¶
func (d *SpottingList) HandleEvent(key input.Key)
func (*SpottingList) OnTune ¶
func (d *SpottingList) OnTune(fn func(freq float64))
func (*SpottingList) Redraw ¶
func (d *SpottingList) Redraw()
func (*SpottingList) SetController ¶
func (d *SpottingList) SetController(c Controller)
type StatusBar ¶
type StatusBar struct {
// contains filtered or unexported fields
}
func NewStatusBar ¶
NewStatusBar constructs a new status bar at a given y position. If Y is negative, it represents lines from the bottom of the screen so -1 means the very last line onscreen
func (*StatusBar) AddFunction ¶
func (*StatusBar) HandleEvent ¶
func (*StatusBar) SetController ¶
func (s *StatusBar) SetController(c Controller)
type TextEdit ¶
type TextEdit struct {
// contains filtered or unexported fields
}
func NewTextEdit ¶
func (*TextEdit) HandleEvent ¶
func (*TextEdit) OnLostFocus ¶
func (t *TextEdit) OnLostFocus(f func())
func (*TextEdit) SetAllowedCharacterSet ¶
func (*TextEdit) SetController ¶
func (t *TextEdit) SetController(c Controller)
func (*TextEdit) SetForceUpperCase ¶
type Widget ¶
type Widget interface { Redraw() SetController(c Controller) }
Click to show internal directories.
Click to hide internal directories.