Documentation
¶
Index ¶
- type Configuration
- type Controller
- func (c *Controller) About()
- func (c *Controller) ExportADIF()
- func (c *Controller) ExportCSV()
- func (c *Controller) ExportCabrillo()
- func (c *Controller) New()
- func (c *Controller) Open()
- func (c *Controller) Quit()
- func (c *Controller) Refresh()
- func (c *Controller) SaveAs()
- func (c *Controller) SetView(view View)
- func (c *Controller) ShowCallinfo()
- func (c *Controller) ShowScore()
- func (c *Controller) Shutdown()
- func (c *Controller) Startup()
- type Quitter
- type View
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration interface {
MyCall() callsign.Callsign
MyLocator() locator.Locator
EnterTheirNumber() bool
EnterTheirXchange() bool
CabrilloQSOTemplate() string
AllowMultiBand() bool
AllowMultiMode() bool
KeyerHost() string
KeyerPort() int
KeyerWPM() int
KeyerSPMacros() []string
KeyerRunMacros() []string
HamlibAddress() string
}
Configuration provides read access to the configuration data.
type Controller ¶
type Controller struct {
Logbook *logbook.Logbook
QSOList *logbook.QSOList
Entry *entry.Controller
Workmode *workmode.Controller
Keyer *keyer.Keyer
Callinfo *callinfo.Callinfo
Score *score.Counter
OnLogbookChanged func()
// contains filtered or unexported fields
}
func NewController ¶
func NewController(version string, clock core.Clock, quitter Quitter, configuration Configuration) *Controller
NewController returns a new instance of the AppController interface.
func (*Controller) About ¶
func (c *Controller) About()
func (*Controller) ExportADIF ¶
func (c *Controller) ExportADIF()
func (*Controller) ExportCSV ¶
func (c *Controller) ExportCSV()
func (*Controller) ExportCabrillo ¶
func (c *Controller) ExportCabrillo()
func (*Controller) New ¶
func (c *Controller) New()
func (*Controller) Open ¶
func (c *Controller) Open()
func (*Controller) Quit ¶
func (c *Controller) Quit()
func (*Controller) Refresh ¶
func (c *Controller) Refresh()
func (*Controller) SaveAs ¶
func (c *Controller) SaveAs()
func (*Controller) SetView ¶
func (c *Controller) SetView(view View)
func (*Controller) ShowCallinfo ¶
func (c *Controller) ShowCallinfo()
func (*Controller) ShowScore ¶ added in v0.2.0
func (c *Controller) ShowScore()
func (*Controller) Shutdown ¶
func (c *Controller) Shutdown()
func (*Controller) Startup ¶
func (c *Controller) Startup()
type Quitter ¶
type Quitter interface {
Quit()
}
Quitter allows to quit the application. This interfaces is used to call the actual application framework to quit.
type View ¶
type View interface {
BringToFront()
ShowFilename(string)
SelectOpenFile(string, ...string) (string, bool, error)
SelectSaveFile(string, ...string) (string, bool, error)
ShowInfoDialog(string, ...interface{})
ShowErrorDialog(string, ...interface{})
}
View defines the visual functionality of the main application window.
Click to show internal directories.
Click to hide internal directories.