Documentation
¶
Index ¶
- func MakeAnimationScreen() (fyne.CanvasObject, *fyne.Animation, *fyne.Animation, *widget.Button)
- type AddButtonLayout
- type EtcdClient
- type KVConfig
- type KeeperEdit
- func (ke *KeeperEdit) ConfirmRadioData()
- func (ke *KeeperEdit) ConnEtcdForm()
- func (ke *KeeperEdit) ConnectUsPage()
- func (ke *KeeperEdit) CopyImageToClip()
- func (ke *KeeperEdit) GetEtcdClient() *keeper.Client
- func (ke *KeeperEdit) GetEtcdClientByIndex(idx int) *keeper.Client
- func (ke *KeeperEdit) GetInputButton() *widget.Button
- func (ke *KeeperEdit) GetMirrorState() bool
- func (ke *KeeperEdit) LeaseMngForm()
- func (ke *KeeperEdit) MakeNewMenu() *fyne.MainMenu
- func (ke *KeeperEdit) RegisterShortcuts()
- func (ke *KeeperEdit) SetEtcdClientByIndex(idx int, cli *keeper.Client)
- func (ke *KeeperEdit) SetMirrorState(state bool)
- type TaskApp
- func (a *TaskApp) MakeUI() fyne.CanvasObject
- func (a *TaskApp) NewKeyList() *widget.List
- func (a *TaskApp) NewLeaseDetailShow() *container.Split
- func (a *TaskApp) NewLeaseList() *widget.List
- func (a *TaskApp) NewMirrorSplit() *container.Split
- func (a *TaskApp) NewStatusBar() *fyne.Container
- func (a *TaskApp) NewToolBar() *container.Split
- func (a *TaskApp) NewValueForm() *widget.Form
- func (a *TaskApp) SetTask(t *task)
- func (a *TaskApp) UpdateLeaseKv(leaseId int64)
- func (a *TaskApp) UpdateLeaseList() bool
- func (a *TaskApp) UpdateList()
- func (a *TaskApp) UpdateTaskList()
- type TaskList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeAnimationScreen ¶
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 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) NewKeyList ¶
func (*TaskApp) NewLeaseDetailShow ¶
func (*TaskApp) NewLeaseList ¶
func (*TaskApp) NewMirrorSplit ¶
func (*TaskApp) NewStatusBar ¶
func (a *TaskApp) NewStatusBar() *fyne.Container
func (*TaskApp) NewToolBar ¶
func (*TaskApp) NewValueForm ¶
func (*TaskApp) UpdateLeaseKv ¶
UpdateLeaseKv 更新对应leaseId的所有KV值
func (*TaskApp) UpdateLeaseList ¶
func (*TaskApp) UpdateList ¶
func (a *TaskApp) UpdateList()
func (*TaskApp) UpdateTaskList ¶
func (a *TaskApp) UpdateTaskList()
Click to show internal directories.
Click to hide internal directories.