screen

package
v0.0.0-...-0202b1c Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

func NewConfig

func NewConfig(commands chan interface{}, show chan ShowRequest) *Config

func (*Config) Content

func (cf *Config) Content() *fyne.Container

func (*Config) Hide

func (cf *Config) Hide()

func (*Config) Init

func (cf *Config) Init()

func (*Config) Refresh

func (cf *Config) Refresh(state State)

func (*Config) Save

func (cf *Config) Save()

func (*Config) Show

func (cf *Config) Show(_ Task)

type FormField

type FormField struct {
	Label string
	Key   string
	Value binding.String
}

func NewFormField

func NewFormField(key, label string) *FormField

func (*FormField) GetValue

func (ff *FormField) GetValue() string

func (*FormField) SetValue

func (ff *FormField) SetValue(value string)

type Log

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

func NewLog

func NewLog() *Log

func (*Log) Content

func (l *Log) Content() *fyne.Container

func (*Log) Hide

func (l *Log) Hide()

func (*Log) Init

func (l *Log) Init()

func (*Log) Refresh

func (l *Log) Refresh(state State)

func (*Log) Show

func (l *Log) Show(_ Task)

type MarkTaskDoneRequest

type MarkTaskDoneRequest struct {
	ID string
}

type NewTask

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

func NewNewTask

func NewNewTask(commands chan interface{}, show chan ShowRequest) *NewTask

func (*NewTask) Cancel

func (nt *NewTask) Cancel()

func (*NewTask) Content

func (nt *NewTask) Content() *fyne.Container

func (*NewTask) Hide

func (nt *NewTask) Hide()

func (*NewTask) Init

func (nt *NewTask) Init()

func (*NewTask) Refresh

func (nt *NewTask) Refresh(_ State)

func (*NewTask) Save

func (nt *NewTask) Save()

func (*NewTask) Show

func (nt *NewTask) Show(_ Task)

type SaveConfigRequest

type SaveConfigRequest struct {
	Fields map[string]string
}

type SaveNewTaskRequest

type SaveNewTaskRequest struct {
	Fields map[string]string
}

type Screen

type Screen interface {
	Content() *fyne.Container
	Refresh(state State)
	Hide()
	Show(Task)
}

type ScreenSet

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

func NewScreenSet

func NewScreenSet(requests chan interface{}) *ScreenSet

func (*ScreenSet) Content

func (ss *ScreenSet) Content() *fyne.Container

func (*ScreenSet) Refresh

func (ss *ScreenSet) Refresh(state State)

func (*ScreenSet) Run

func (ss *ScreenSet) Run()

type ShowRequest

type ShowRequest struct {
	Screen string
	Task   Task
}

type State

type State struct {
	Status        string
	CurrentScreen string
	Tasks         []Task
	Config        map[string]string
	Logs          []string
}

type SyncTasksRequest

type SyncTasksRequest struct{}

type Task

type Task struct {
	ID     string
	Action string
}

type Tasks

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

func NewTasks

func NewTasks(commands chan interface{}, show chan ShowRequest) *Tasks

func (*Tasks) Content

func (t *Tasks) Content() *fyne.Container

func (*Tasks) Hide

func (t *Tasks) Hide()

func (*Tasks) Init

func (t *Tasks) Init()

func (*Tasks) Refresh

func (t *Tasks) Refresh(state State)

func (*Tasks) Show

func (t *Tasks) Show(_ Task)

type UpdateTask

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

func NewUpdateTask

func NewUpdateTask(commands chan interface{}, show chan ShowRequest) *UpdateTask

func (*UpdateTask) Cancel

func (ut *UpdateTask) Cancel()

func (*UpdateTask) Content

func (ut *UpdateTask) Content() *fyne.Container

func (*UpdateTask) Hide

func (ut *UpdateTask) Hide()

func (*UpdateTask) Init

func (ut *UpdateTask) Init()

func (*UpdateTask) Refresh

func (ut *UpdateTask) Refresh(_ State)

func (*UpdateTask) Save

func (ut *UpdateTask) Save()

func (*UpdateTask) Show

func (ut *UpdateTask) Show(task Task)

type UpdateTaskRequest

type UpdateTaskRequest struct {
	ID  string
	Due string
}

Jump to

Keyboard shortcuts

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