settings

package
v0.0.0-...-1caa4a4 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 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 AccountDataProvider

type AccountDataProvider struct {
	// contains filtered or unexported fields
}

AccountDataProvider implements ext.TableDataProvider and ext.FromDataProvider for interaction with accounts.

func NewAccountDataProvider

func NewAccountDataProvider(service *service.Service, presenter *presenter.Presenter) *AccountDataProvider

NewAccountDataProvider returns new AccountDataProvider.

func (*AccountDataProvider) GetAll

func (d *AccountDataProvider) GetAll() []map[string]string

GetAll returns slice of maps which represents account struct.

func (*AccountDataProvider) GetDropDownOptions

func (d *AccountDataProvider) GetDropDownOptions(label string) []string

GetDropDownOptions returns dropdown obtions for given label.

type CategoryDataProvider

type CategoryDataProvider struct {
	// contains filtered or unexported fields
}

CategoryDataProvider implements ext.TableDataProvider for interaction with categories.

func NewCategoryDataProvider

func NewCategoryDataProvider(service *service.Service, presenter *presenter.Presenter) *CategoryDataProvider

NewCategoryDataProvider returns new CategoryDataProvider.

func (*CategoryDataProvider) GetAll

func (d *CategoryDataProvider) GetAll() []map[string]string

GetAll returns slice of maps which represents category struct.

func (*CategoryDataProvider) GetDropDownOptions

func (d *CategoryDataProvider) GetDropDownOptions(label string) []string

GetDropDownOptions returns dropdown obtions for given label.

type CurrencyDataProvider

type CurrencyDataProvider struct {
	// contains filtered or unexported fields
}

CurrencyDataProvider implements ext.TableDataProvider for interaction with currencies.

func NewCurrencyDataProvider

func NewCurrencyDataProvider(service *service.Service, presenter *presenter.Presenter) *CurrencyDataProvider

NewCurrencyDataProvider returns new CurrencyDataProvider.

func (*CurrencyDataProvider) GetAll

func (d *CurrencyDataProvider) GetAll() []map[string]string

GetAll returns slice of maps which represents currency struct.

func (*CurrencyDataProvider) GetDropDownOptions

func (d *CurrencyDataProvider) GetDropDownOptions(label string) []string

GetDropDownOptions returns dropdown obtions for given label.

type View

type View struct {
	*tview.Pages
	// contains filtered or unexported fields
}

View is a transactions view.

func New

func New(tuiApp *tview.Application, service *service.Service, presenter *presenter.Presenter) *View

New returns new settings view.

func (*View) InputHandler

func (v *View) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))

InputHandler returns the handler for this primitive.

func (*View) ModalHasFocus

func (v *View) ModalHasFocus() bool

ModalHasFocus returns true if any of modal is currently on focus.

func (*View) Table

func (v *View) Table(label string) *ext.Table

Table returns table view by given label.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳