window

package
v0.0.0-...-bbad4b4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeAnimationScreen

func MakeAnimationScreen() (fyne.CanvasObject, *fyne.Animation, *fyne.Animation, *widget.Button)

Types

type AddButtonLayout

type AddButtonLayout struct {
}

AddButtonLayout 用于添加按钮的布局设定

func (*AddButtonLayout) Layout

func (c *AddButtonLayout) Layout(objs []fyne.CanvasObject, size fyne.Size)

func (*AddButtonLayout) MinSize

func (c *AddButtonLayout) MinSize(objs []fyne.CanvasObject) fyne.Size

type EtcdClient

type EtcdClient struct {
	ColorBoxAnimation *fyne.Animation
	CheckBoxAnimation *fyne.Animation
	InOutButton       *widget.Button
	// contains filtered or unexported fields
}

type KVConfig

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

type KeeperEdit

type KeeperEdit struct {
	App fyne.App
	Win fyne.Window // 顶层窗口

	Tasks         *TaskApp
	Status        *widget.Label
	LeaseIDStatus *widget.Label

	AddKV KVConfig // 用于实时更新需要Add进ETcd的key value值
	// contains filtered or unexported fields
}

KeeperEdit 不和应用绑定的窗口都放到KeeperEdit里面

func (*KeeperEdit) ConfirmRadioData

func (ke *KeeperEdit) ConfirmRadioData()

func (*KeeperEdit) ConnEtcdForm

func (ke *KeeperEdit) ConnEtcdForm()

func (*KeeperEdit) ConnectUsPage

func (ke *KeeperEdit) ConnectUsPage()

func (*KeeperEdit) CopyImageToClip

func (ke *KeeperEdit) CopyImageToClip()

func (*KeeperEdit) GetEtcdClient

func (ke *KeeperEdit) GetEtcdClient() *keeper.Client

func (*KeeperEdit) GetEtcdClientByIndex

func (ke *KeeperEdit) GetEtcdClientByIndex(idx int) *keeper.Client

func (*KeeperEdit) GetInputButton

func (ke *KeeperEdit) GetInputButton() *widget.Button

func (*KeeperEdit) GetMirrorState

func (ke *KeeperEdit) GetMirrorState() bool

func (*KeeperEdit) LeaseMngForm

func (ke *KeeperEdit) LeaseMngForm()

func (*KeeperEdit) MakeNewMenu

func (ke *KeeperEdit) MakeNewMenu() *fyne.MainMenu

MakeNewMenu 创建菜单 1. 创建命令行菜单 2. 菜单相关控件初始化 3. 辅助信息初始化

func (*KeeperEdit) RegisterShortcuts

func (ke *KeeperEdit) RegisterShortcuts()

RegisterShortcuts adds all the shortcuts and keys FireShotGO listens to. When updating here, please update also the `fs.ShowShortcutsPage()` method to reflect the changes.

func (*KeeperEdit) SetEtcdClientByIndex

func (ke *KeeperEdit) SetEtcdClientByIndex(idx int, cli *keeper.Client)

func (*KeeperEdit) SetMirrorState

func (ke *KeeperEdit) SetMirrorState(state bool)

type TaskApp

type TaskApp struct {
	Ke       *KeeperEdit
	TaskData *TaskList
	// TODO: 记录当前代办事项,会存在多协程调用,需要加锁保护
	Visible []*task

	LeaseTaskData *TaskList
	LeaseVisible  []*task
	// contains filtered or unexported fields
}

func (*TaskApp) MakeUI

func (a *TaskApp) MakeUI() fyne.CanvasObject

func (*TaskApp) NewKeyList

func (a *TaskApp) NewKeyList() *widget.List

func (*TaskApp) NewLeaseDetailShow

func (a *TaskApp) NewLeaseDetailShow() *container.Split

func (*TaskApp) NewLeaseList

func (a *TaskApp) NewLeaseList() *widget.List

func (*TaskApp) NewMirrorSplit

func (a *TaskApp) NewMirrorSplit() *container.Split

func (*TaskApp) NewStatusBar

func (a *TaskApp) NewStatusBar() *fyne.Container

func (*TaskApp) NewToolBar

func (a *TaskApp) NewToolBar() *container.Split

func (*TaskApp) NewValueForm

func (a *TaskApp) NewValueForm() *widget.Form

func (*TaskApp) SetTask

func (a *TaskApp) SetTask(t *task)

SetTask 更新当前界面上的数据信息

func (*TaskApp) UpdateLeaseKv

func (a *TaskApp) UpdateLeaseKv(leaseId int64)

UpdateLeaseKv 更新对应leaseId的所有KV值

func (*TaskApp) UpdateLeaseList

func (a *TaskApp) UpdateLeaseList() bool

func (*TaskApp) UpdateList

func (a *TaskApp) UpdateList()

func (*TaskApp) UpdateTaskList

func (a *TaskApp) UpdateTaskList()

type TaskList

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

TaskList 定义任务链表的切片

func EmptyData

func EmptyData() *TaskList

func (*TaskList) Remaining

func (l *TaskList) Remaining() []*task

Remaining 获取剩余没有完成的任务列表

Jump to

Keyboard shortcuts

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