Documentation ¶
Index ¶
- Variables
- type AddButtonLayout
- type Edit
- func (ke *Edit) ConfirmRadioData()
- func (ke *Edit) ConnEtcdForm()
- func (ke *Edit) ConnectUsPage()
- func (ke *Edit) CopyImageToClip()
- func (ke *Edit) GetInputButton() *widget.Button
- func (ke *Edit) GetMirrorState() bool
- func (ke *Edit) LeaseMngForm()
- func (ke *Edit) MakeNewMenu() *fyne.MainMenu
- func (ke *Edit) RegisterShortcuts()
- func (ke *Edit) SetMirrorState(state bool)
- type EtcdClient
- type KVConfig
- type NetUtils
- 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) UpdateList()
- func (a *TaskApp) UpdateTaskList()
- type TaskList
- type Tutorial
- type UtilsData
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Tutorials defines the metadata for each tutorial Tutorials = map[string]Tutorial{ "HttpStat": {"HttpStat", "", httpStat}, "welcome": {"Welcome", "", welcomeScreen}, "canvas": {"Canvas", "See the canvas capabilities.", canvasScreen, }, "animations": {"Animations", "See how to animate components.", makeAnimationScreen, }, "icons": {"Theme Icons", "Browse the embedded icons.", iconScreen, }, "containers": {"Containers", "Containers group other widgets and canvas objects, organising according to their layout.\n" + "Standard containers are illustrated in this section, but developers can also provide custom " + "layouts using the fyne.NewContainerWithLayout() constructor.", containerScreen, }, "apptabs": {"AppTabs", "A container to help divide up an application into functional areas.", makeAppTabsTab, }, "border": {"Border", "A container that positions items around a central content.", makeBorderLayout, }, "box": {"Box", "A container arranges items in horizontal or vertical list.", makeBoxLayout, }, "center": {"Center", "A container to that centers child elements.", makeCenterLayout, }, "grid": {"Grid", "A container that arranges all items in a grid.", makeGridLayout, }, "split": {"Split", "A split container divides the container in two pieces that the user can resize.", makeSplitTab, }, "scroll": {"Scroll", "A container that provides scrolling for it's content.", makeScrollTab, }, "widgets": {"Widgets", "In this section you can see the features available in the toolkit widget set.\n" + "Expand the tree on the left to browse the individual tutorial elements.", widgetScreen, }, "accordion": {"Accordion", "Expand or collapse content panels.", makeAccordionTab, }, "button": {"Button", "Simple widget for user tap handling.", makeButtonTab, }, "card": {"Card", "Group content and widgets.", makeCardTab, }, "entry": {"Entry", "Different ways to use the entry widget.", makeEntryTab, }, "form": {"Form", "Gathering input widgets for data submission.", makeFormTab, }, "input": {"Input", "A collection of widgets for user input.", makeInputTab, }, "text": {"Text", "Text handling widgets.", makeTextTab, }, "toolbar": {"Toolbar", "A row of shortcut icons for common tasks.", makeToolbarTab, }, "progress": {"Progress", "Show duration or the need to wait for a task.", makeProgressTab, }, "collections": {"Collections", "Collection widgets provide an efficient way to present lots of content.\n" + "The List, Table, and Tree provide a cache and re-use mechanism that make it possible to scroll through thousands of elements.\n" + "Use this for large data sets or for collections that can expand as users scroll.", collectionScreen, }, "list": {"List", "A vertical arrangement of cached elements with the same styling.", makeListTab, }, "table": {"Table", "A two dimensional cached collection of cells.", makeTableTab, }, "tree": {"Tree", "A tree based arrangement of cached elements with the same styling.", makeTreeTab, }, "dialogs": {"Dialogs", "Work with dialogs.", dialogScreen, }, "window": {"Windows", "Window function demo.", windowScreen, }, "binding": {"Data Binding", "Connecting widgets to a data source.", bindingScreen}, "advanced": {"Advanced", "Debug and advanced information.", advancedScreen, }, } // TutorialIndex defines how our tutorials should be laid out in the index tree TutorialIndex = map[string][]string{ "": {"HttpStat", "welcome", "canvas", "animations", "icons", "widgets", "collections", "containers", "dialogs", "window", "binding", "advanced"}, "collections": {"list", "table", "tree"}, "containers": {"apptabs", "border", "box", "center", "grid", "split", "scroll"}, "widgets": {"accordion", "button", "card", "entry", "form", "input", "text", "toolbar", "progress"}, } )
Functions ¶
This section is empty.
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 Edit ¶
type Edit 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 }
Edit 不和应用绑定的窗口都放到Edit里面
func (*Edit) ConfirmRadioData ¶
func (ke *Edit) ConfirmRadioData()
func (*Edit) ConnEtcdForm ¶
func (ke *Edit) ConnEtcdForm()
func (*Edit) ConnectUsPage ¶
func (ke *Edit) ConnectUsPage()
func (*Edit) CopyImageToClip ¶
func (ke *Edit) CopyImageToClip()
CopyImageToClip 将主窗口的画布转换成Image,并复制到剪贴板
func (*Edit) GetInputButton ¶
func (*Edit) GetMirrorState ¶
func (*Edit) LeaseMngForm ¶
func (ke *Edit) LeaseMngForm()
func (*Edit) MakeNewMenu ¶
func (ke *Edit) MakeNewMenu() *fyne.MainMenu
MakeNewMenu 创建菜单 1. 创建命令行菜单 2. 菜单相关控件初始化 3. 辅助信息初始化
func (*Edit) RegisterShortcuts ¶
func (ke *Edit) 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 (*Edit) SetMirrorState ¶
type EtcdClient ¶
type NetUtils ¶
type NetUtils struct {
// contains filtered or unexported fields
}
func NewNetUtils ¶
func NewNetUtils() *NetUtils
func (*NetUtils) NewStatusBar ¶
func (nu *NetUtils) NewStatusBar() *fyne.Container
type TaskApp ¶
type TaskApp struct { Ke *Edit 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) UpdateList ¶
func (a *TaskApp) UpdateList()
func (*TaskApp) UpdateTaskList ¶
func (a *TaskApp) UpdateTaskList()
type TaskList ¶
type TaskList struct {
// contains filtered or unexported fields
}
TaskList 定义任务链表的切片
Click to show internal directories.
Click to hide internal directories.