filedialog

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: GPL-3.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

View Source
const (
	Dir int = iota
	File
)

Variables

This section is empty.

Functions

func GetOpenFileName

func GetOpenFileName(parent ui.GoObject, openPath string, label string) (action int, selectedPath string)

func GetSaveFileName

func GetSaveFileName(parent ui.GoObject, savePath string, label string) (action int, selectedPath string)

Types

type GoFileDialogObj

type GoFileDialogObj struct {
	ui.GioObject
	ui.GioWidget

	ActionBar  *ui.GoLayoutObj
	FileLayout *ui.GoLayoutObj
	CommandBar *ui.GoLayoutObj
	FilePath   *ui.GoLayoutObj
	// contains filtered or unexported fields
}

func GoOpenFile

func GoOpenFile(parent ui.GoObject, openPath string, label string, rootPath string) (hObj *GoFileDialogObj)

GoOpenFile creates an open file dialog.

func GoSaveFile

func GoSaveFile(parent ui.GoObject, savePath string, label string, rootPath string) (hObj *GoFileDialogObj)

GoOpenFile creates an open file dialog.

func (*GoFileDialogObj) ActionCancelDialog

func (ob *GoFileDialogObj) ActionCancelDialog()

func (*GoFileDialogObj) ActionOpenDialog

func (ob *GoFileDialogObj) ActionOpenDialog()

func (*GoFileDialogObj) ActionSelectionBack

func (ob *GoFileDialogObj) ActionSelectionBack()

func (*GoFileDialogObj) ActionSelectionForward

func (ob *GoFileDialogObj) ActionSelectionForward()

func (*GoFileDialogObj) ActionSelectionUp

func (ob *GoFileDialogObj) ActionSelectionUp()

func (*GoFileDialogObj) DirViewItem_Clicked added in v0.0.7

func (ob *GoFileDialogObj) DirViewItem_Clicked(nodeId []int)

func (*GoFileDialogObj) DirViewItem_DoubleClicked added in v0.0.7

func (ob *GoFileDialogObj) DirViewItem_DoubleClicked(nodeId []int)

func (*GoFileDialogObj) Draw

func (*GoFileDialogObj) FileViewItem_Clicked added in v0.0.7

func (ob *GoFileDialogObj) FileViewItem_Clicked(nodeId []int)

func (*GoFileDialogObj) FileViewItem_DoubleClicked added in v0.0.7

func (ob *GoFileDialogObj) FileViewItem_DoubleClicked(nodeId []int)

func (*GoFileDialogObj) Layout

func (*GoFileDialogObj) ObjectType

func (ob *GoFileDialogObj) ObjectType() string

func (*GoFileDialogObj) ShowHiddenFiles

func (ob *GoFileDialogObj) ShowHiddenFiles(show bool)

func (*GoFileDialogObj) Widget

func (ob *GoFileDialogObj) Widget() *ui.GioWidget

Jump to

Keyboard shortcuts

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