windows

package
v0.0.0-...-804f5dd Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build() MainWindow

func ClearImageViewBackground

func ClearImageViewBackground(container walk.Container)

清空容器中图片组件背景

func ClearWidgets

func ClearWidgets(container walk.Container)

释放及清空容器中绑定组件

func OpenDir

func OpenDir(owner walk.Form, dir string) (string, error)

func RunConfigDialog

func RunConfigDialog(owner walk.Form, cf *config.Config) (int, error)

func RunCreateDirDialog

func RunCreateDirDialog(owner walk.Form, u *string) (int, error)

Types

type Directory

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

func NewDirectory

func NewDirectory(name string, parent *Directory) *Directory

func (*Directory) ChildAt

func (d *Directory) ChildAt(index int) walk.TreeItem

func (*Directory) ChildCount

func (d *Directory) ChildCount() int

func (*Directory) Image

func (d *Directory) Image() interface{}

func (*Directory) Parent

func (d *Directory) Parent() walk.TreeItem

func (*Directory) Path

func (d *Directory) Path() string

func (*Directory) ResetChildren

func (d *Directory) ResetChildren() error

func (*Directory) Text

func (d *Directory) Text() string

type DirectoryTreeModel

type DirectoryTreeModel struct {
	walk.TreeModelBase
	// contains filtered or unexported fields
}

func NewDirectoryTreeModel

func NewDirectoryTreeModel() (*DirectoryTreeModel, error)

func (*DirectoryTreeModel) LazyPopulation

func (*DirectoryTreeModel) LazyPopulation() bool

func (*DirectoryTreeModel) RootAt

func (m *DirectoryTreeModel) RootAt(index int) walk.TreeItem

func (*DirectoryTreeModel) RootCount

func (m *DirectoryTreeModel) RootCount() int

type FileInfo

type FileInfo struct {
	Name     string
	Size     int64
	Modified time.Time
}

type FileInfoModel

type FileInfoModel struct {
	walk.SortedReflectTableModelBase
	// contains filtered or unexported fields
}

func NewFileInfoModel

func NewFileInfoModel() *FileInfoModel

func (*FileInfoModel) Image

func (m *FileInfoModel) Image(row int) interface{}

func (*FileInfoModel) Items

func (m *FileInfoModel) Items() interface{}

func (*FileInfoModel) SetDirPath

func (m *FileInfoModel) SetDirPath(dirPath string) error

type MyMainWindow

type MyMainWindow struct {
	*walk.MainWindow

	ImageName string
	DBSource  map[string]int
	// contains filtered or unexported fields
}

type MyTreeView

type MyTreeView struct {
	*walk.TreeView
}

func (*MyTreeView) AddItem

func (tv *MyTreeView) AddItem(name string, parent *Directory)

func (*MyTreeView) RootChanged

func (tv *MyTreeView) RootChanged(root string) error

Jump to

Keyboard shortcuts

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