filepick

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilePicker

type FilePicker struct {
	*gtk.FileChooser
	// contains filtered or unexported fields
}

FilePicker is the file chooser.

func New

func New(ctx context.Context, title string, action gtk.FileChooserAction, accept, cancel string) *FilePicker

New creates a new file chooser.

func NewLocalize

func NewLocalize(ctx context.Context, title message.Reference, action gtk.FileChooserAction, accept, cancel message.Reference) *FilePicker

NewLocalize creates a new file chooser using the given message reference strings localized using the given context.

func NewWithWindow

func NewWithWindow(parent *gtk.Window, title string, action gtk.FileChooserAction, accept, cancel string) *FilePicker

NewWithWindow creates a file chooser with the given parent window.

func (*FilePicker) ConnectAccept

func (p *FilePicker) ConnectAccept(f func())

ConnectAccept connects to the dialog's Accept response.

func (*FilePicker) ConnectResponse

func (p *FilePicker) ConnectResponse(f func(gtk.ResponseType))

ConnectResponse connects to the dialog's response signal.

func (*FilePicker) Show

func (p *FilePicker) Show()

Show shows the dialog.

Jump to

Keyboard shortcuts

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