ui

package
v0.0.0-...-8924cf8 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoLogWindow

func GoLogWindow() error

gologWindow creates the main window and begins processing of user input

func MsgError

func MsgError(p walk.Form, err error)

MsgError displays dialog to user with error details

func MsgInformation

func MsgInformation(p walk.Form, info string)

MsgInformation displays dialog to user with non-error information

func NewSourceFileModel

func NewSourceFileModel() *sourceFileModel

func OpenFilePicker

func OpenFilePicker(parent walk.Form, title, filters string) (*string, error)

OpenFilePicker presents the open file dialog for the user to choose a file

func OpenFilePickerWithInitialDir

func OpenFilePickerWithInitialDir(parent walk.Form, title, filters string, initialdirpath string) (*string, error)

OpenFilePicker presents the open file dialog for the user to choose a file

func OpenFolderPicker

func OpenFolderPicker(parent walk.Form, title string) (*string, error)

OpenFolderPicker presents the browse for folder dialog for the user to choose a folder

func OptionsWindow

func OptionsWindow(parent *walk.MainWindow) error

func SaveFilePicker

func SaveFilePicker(parent walk.Form, title, filters string) (*string, error)

SaveFilePicker presents the save file dialog for the user to choose a file

Types

type BandListModel

type BandListModel struct {
	walk.BindingValueProvider
	walk.ListModelBase
	// contains filtered or unexported fields
}

func NewBandListModel

func NewBandListModel() *BandListModel

func (*BandListModel) BindingValue

func (m *BandListModel) BindingValue(index int) interface{}

func (*BandListModel) ItemCount

func (m *BandListModel) ItemCount() int

func (*BandListModel) RefreshItems

func (m *BandListModel) RefreshItems()

func (*BandListModel) Value

func (m *BandListModel) Value(index int) interface{}

type BandLookupModel

type BandLookupModel struct {
	walk.ReflectTableModelBase
	walk.ItemChecker
	walk.SorterBase
	// contains filtered or unexported fields
}

func NewBandLookupModel

func NewBandLookupModel() *BandLookupModel

func (*BandLookupModel) Checked

func (m *BandLookupModel) Checked(index int) bool

func (*BandLookupModel) GetBands

func (m *BandLookupModel) GetBands() []config.Band

func (*BandLookupModel) Merge

func (m *BandLookupModel) Merge(bands []config.Band)

func (*BandLookupModel) RowCount

func (m *BandLookupModel) RowCount() int

func (*BandLookupModel) SetChecked

func (m *BandLookupModel) SetChecked(index int, checked bool) error

func (*BandLookupModel) Sort

func (m *BandLookupModel) Sort(col int, order walk.SortOrder) error

func (*BandLookupModel) Value

func (m *BandLookupModel) Value(row, col int) interface{}

type DXClusterModel

type DXClusterModel struct {
	walk.TableModelBase
	walk.SorterBase
	// contains filtered or unexported fields
}

DXClusterModel is used to display cluster spots in the main windows TableView

func NewDXClusterModel

func NewDXClusterModel() *DXClusterModel

func (*DXClusterModel) ResetRows

func (m *DXClusterModel) ResetRows()

ResetRows loads Spots from the database

func (*DXClusterModel) RowCount

func (m *DXClusterModel) RowCount() int

RowCount is called by the TableView from SetModel and every time the model publishes a RowsReset event

func (*DXClusterModel) Sort

func (m *DXClusterModel) Sort(col int, order walk.SortOrder) error

Sort is called by the TableView to sort the model always sorted by ID so latest spots are on top

func (*DXClusterModel) Value

func (m *DXClusterModel) Value(row, col int) interface{}

Value is called by the TableView when it needs the text to display for a given cell

type ModeListModel

type ModeListModel struct {
	walk.BindingValueProvider
	walk.ListModelBase
	// contains filtered or unexported fields
}

func NewModeListModel

func NewModeListModel() *ModeListModel

func (*ModeListModel) BindingValue

func (m *ModeListModel) BindingValue(index int) interface{}

func (*ModeListModel) ItemCount

func (m *ModeListModel) ItemCount() int

func (*ModeListModel) RefreshItems

func (m *ModeListModel) RefreshItems()

func (*ModeListModel) Value

func (m *ModeListModel) Value(index int) interface{}

type ModeLookupModel

type ModeLookupModel struct {
	walk.ReflectTableModelBase
	walk.ItemChecker
	walk.SorterBase
	// contains filtered or unexported fields
}

func NewModeLookupModel

func NewModeLookupModel() *ModeLookupModel

func (*ModeLookupModel) Checked

func (m *ModeLookupModel) Checked(index int) bool

func (*ModeLookupModel) GetModes

func (m *ModeLookupModel) GetModes() []config.Mode

func (*ModeLookupModel) Merge

func (m *ModeLookupModel) Merge(modes []config.Mode)

func (*ModeLookupModel) RowCount

func (m *ModeLookupModel) RowCount() int

func (*ModeLookupModel) SetChecked

func (m *ModeLookupModel) SetChecked(index int, checked bool) error

func (*ModeLookupModel) Sort

func (m *ModeLookupModel) Sort(col int, order walk.SortOrder) error

func (*ModeLookupModel) Value

func (m *ModeLookupModel) Value(row, col int) interface{}

type QSOModel

type QSOModel struct {
	walk.TableModelBase
	walk.SorterBase
	// contains filtered or unexported fields
}

QSOModel is used to display QSOs in the main windows TableView

func NewQSOModel

func NewQSOModel() *QSOModel

func (*QSOModel) ClearSearch

func (m *QSOModel) ClearSearch()

ClearSearch clears the selection criteria in the model

func (*QSOModel) Export

func (m *QSOModel) Export()

Export generates an adif with the items in the model

func (*QSOModel) ResetRows

func (m *QSOModel) ResetRows()

ResetRows loads QSOs from the database

func (*QSOModel) RowCount

func (m *QSOModel) RowCount() int

RowCount is called by the TableView from SetModel and every time the model publishes a RowsReset event

func (*QSOModel) Search

func (m *QSOModel) Search(date, time, call, band, mode, rstrcvd, rstsent string)

Search establishes the selection criteria in the model

func (*QSOModel) Sort

func (m *QSOModel) Sort(col int, order walk.SortOrder) error

Sort is called by the TableView to sort the model

func (*QSOModel) Value

func (m *QSOModel) Value(row, col int) interface{}

Value is called by the TableView when it needs the text to display for a given cell

Jump to

Keyboard shortcuts

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