dialogs

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: GPL-3.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AboutDialog

type AboutDialog struct {
	widget.BaseWidget

	OnDismiss func()
	// contains filtered or unexported fields
}

func NewAboutDialog

func NewAboutDialog(version string) *AboutDialog

func (*AboutDialog) CreateRenderer

func (a *AboutDialog) CreateRenderer() fyne.WidgetRenderer

func (*AboutDialog) MinSize

func (a *AboutDialog) MinSize() fyne.Size

type AddEditServerDialog

type AddEditServerDialog struct {
	widget.BaseWidget

	ServerType backend.ServerType
	Nickname   string
	Host       string
	AltHost    string
	Username   string
	Password   string
	LegacyAuth bool
	OnSubmit   func()
	OnCancel   func()
	// contains filtered or unexported fields
}

func NewAddEditServerDialog

func NewAddEditServerDialog(title string, cancelable bool, prefillServer *backend.ServerConfig, focusHandler func(fyne.Focusable)) *AddEditServerDialog

func (*AddEditServerDialog) CreateRenderer

func (a *AddEditServerDialog) CreateRenderer() fyne.WidgetRenderer

func (*AddEditServerDialog) DisableSubmit

func (a *AddEditServerDialog) DisableSubmit()

func (*AddEditServerDialog) EnableSubmit

func (a *AddEditServerDialog) EnableSubmit()

func (*AddEditServerDialog) MinSize

func (a *AddEditServerDialog) MinSize() fyne.Size

func (*AddEditServerDialog) SetErrorText

func (a *AddEditServerDialog) SetErrorText(text string)

func (*AddEditServerDialog) SetInfoText

func (a *AddEditServerDialog) SetInfoText(text string)

type AlbumInfoDialog added in v0.5.0

type AlbumInfoDialog struct {
	widget.BaseWidget

	OnDismiss func()
	// contains filtered or unexported fields
}

func NewAlbumInfoDialog added in v0.5.0

func NewAlbumInfoDialog(albumInfo *mediaprovider.AlbumInfo, albumName string, albumCover image.Image) *AlbumInfoDialog

func (*AlbumInfoDialog) CreateRenderer added in v0.5.0

func (a *AlbumInfoDialog) CreateRenderer() fyne.WidgetRenderer

func (*AlbumInfoDialog) MinSize added in v0.5.0

func (a *AlbumInfoDialog) MinSize() fyne.Size

type EditPlaylistDialog

type EditPlaylistDialog struct {
	widget.BaseWidget

	OnCanceled       func()
	OnDeletePlaylist func()
	OnUpdateMetadata func()

	IsPublic    bool
	Name        string
	Description string
	// contains filtered or unexported fields
}

func NewEditPlaylistDialog

func NewEditPlaylistDialog(playlist *mediaprovider.Playlist, showPublicCheck bool) *EditPlaylistDialog

func (*EditPlaylistDialog) CreateRenderer

func (e *EditPlaylistDialog) CreateRenderer() fyne.WidgetRenderer

func (*EditPlaylistDialog) MinSize

func (e *EditPlaylistDialog) MinSize() fyne.Size

type GraphicEqualizer added in v0.4.0

type GraphicEqualizer struct {
	widget.BaseWidget

	OnChanged       func(band int, gain float64)
	OnPreampChanged func(gain float64)
	// contains filtered or unexported fields
}

func NewGraphicEqualizer added in v0.4.0

func NewGraphicEqualizer(preamp float64, bandFreqs []string, bandGains []float64) *GraphicEqualizer

func (*GraphicEqualizer) CreateRenderer added in v0.4.0

func (g *GraphicEqualizer) CreateRenderer() fyne.WidgetRenderer

type LoginDialog

type LoginDialog struct {
	widget.BaseWidget

	OnSubmit       func(server *backend.ServerConfig, password string)
	OnEditServer   func(server *backend.ServerConfig)
	OnDeleteServer func(server *backend.ServerConfig)
	OnNewServer    func()
	// contains filtered or unexported fields
}

func NewLoginDialog

func NewLoginDialog(servers []*backend.ServerConfig, pwFetch PasswordFetchFunc) *LoginDialog

func (*LoginDialog) CreateRenderer

func (l *LoginDialog) CreateRenderer() fyne.WidgetRenderer

func (*LoginDialog) DisableSubmit

func (l *LoginDialog) DisableSubmit()

func (*LoginDialog) EnableSubmit

func (l *LoginDialog) EnableSubmit()

func (*LoginDialog) MinSize

func (l *LoginDialog) MinSize() fyne.Size

func (*LoginDialog) SetErrorText

func (l *LoginDialog) SetErrorText(text string)

func (*LoginDialog) SetInfoText

func (l *LoginDialog) SetInfoText(text string)

func (*LoginDialog) SetServers

func (l *LoginDialog) SetServers(servers []*backend.ServerConfig)

type PasswordFetchFunc

type PasswordFetchFunc func(serverID uuid.UUID) (string, error)

type QuickSearch added in v0.7.0

type QuickSearch struct {
	SearchDialog *SearchDialog
	// contains filtered or unexported fields
}

func NewQuickSearch added in v0.7.0

func (*QuickSearch) GetSearchEntry added in v0.11.0

func (q *QuickSearch) GetSearchEntry() fyne.Focusable

func (*QuickSearch) MinSize added in v0.7.0

func (q *QuickSearch) MinSize() fyne.Size

func (*QuickSearch) SetOnDismiss added in v0.11.0

func (q *QuickSearch) SetOnDismiss(onDismiss func())

func (*QuickSearch) SetOnNavigateTo added in v0.11.0

func (q *QuickSearch) SetOnNavigateTo(onNavigateTo func(mediaprovider.ContentType, string))

type SearchDialog added in v0.11.0

type SearchDialog struct {
	widget.BaseWidget

	PlaceholderText string

	// Additional item that can be placed to the left
	// of the dismiss buttons
	ActionItem fyne.CanvasObject

	OnDismiss    func()
	OnNavigateTo func(mediaprovider.ContentType, string)
	OnSearched   func(string) []*mediaprovider.SearchResult
	// contains filtered or unexported fields
}

SearchDialog is a base widget to be built upon for creating custom search dialogs

func NewSearchDialog added in v0.11.0

func NewSearchDialog(im util.ImageFetcher, title, dismissBtn string, onSearched func(string) []*mediaprovider.SearchResult) *SearchDialog

func (*SearchDialog) CreateRenderer added in v0.11.0

func (sd *SearchDialog) CreateRenderer() fyne.WidgetRenderer

func (*SearchDialog) GetSearchEntry added in v0.11.0

func (sd *SearchDialog) GetSearchEntry() fyne.Focusable

GetSearchEntry returns the search Entry widget for focusing

func (*SearchDialog) MinSize added in v0.11.0

func (sd *SearchDialog) MinSize() fyne.Size

func (*SearchDialog) Refresh added in v0.11.0

func (sd *SearchDialog) Refresh()

func (*SearchDialog) SearchQuery added in v0.11.0

func (sd *SearchDialog) SearchQuery() string

SearchQuery returns the current search query entered by the user

func (*SearchDialog) Show added in v0.11.0

func (sd *SearchDialog) Show()

type SelectPlaylist added in v0.11.0

type SelectPlaylist struct {
	SearchDialog *SearchDialog

	SkipDuplicates bool
	// contains filtered or unexported fields
}

func NewSelectPlaylistDialog added in v0.11.0

func NewSelectPlaylistDialog(mp mediaprovider.MediaProvider, im util.ImageFetcher, loggedInUser string, skipDups bool) *SelectPlaylist

func (*SelectPlaylist) GetSearchEntry added in v0.11.0

func (sp *SelectPlaylist) GetSearchEntry() fyne.Focusable

func (*SelectPlaylist) MinSize added in v0.11.0

func (sp *SelectPlaylist) MinSize() fyne.Size

func (*SelectPlaylist) SetOnDismiss added in v0.11.0

func (sp *SelectPlaylist) SetOnDismiss(onDismiss func())

func (*SelectPlaylist) SetOnNavigateTo added in v0.11.0

func (sp *SelectPlaylist) SetOnNavigateTo(onNavigateTo func(mediaprovider.ContentType, string))

type SettingsDialog

type SettingsDialog struct {
	widget.BaseWidget

	OnReplayGainSettingsChanged    func()
	OnAudioExclusiveSettingChanged func()
	OnAudioDeviceSettingChanged    func()
	OnThemeSettingChanged          func()
	OnDismiss                      func()
	OnEqualizerSettingsChanged     func()
	OnPageNeedsRefresh             func()
	// contains filtered or unexported fields
}

func NewSettingsDialog

func NewSettingsDialog(
	config *backend.Config,
	audioDeviceList []mpv.AudioDevice,
	themeFileList map[string]string,
	equalizerBands []string,
	clientDecidesScrobble bool,
	isLocalPlayer bool,
	isReplayGainPlayer bool,
	isEqualizerPlayer bool,
	canSavePlayQueue bool,
	window fyne.Window,
) *SettingsDialog

TODO: having this depend on the mpv package for the AudioDevice type is kinda gross. Refactor.

func (*SettingsDialog) CreateRenderer

func (s *SettingsDialog) CreateRenderer() fyne.WidgetRenderer

type TrackInfoDialog added in v0.13.0

type TrackInfoDialog struct {
	widget.BaseWidget

	OnDismiss          func()
	OnNavigateToArtist func(artistID string)
	OnNavigateToAlbum  func(albumID string)
	OnNavigateToGenre  func(genre string)
	OnCopyFilePath     func()
	// contains filtered or unexported fields
}

func NewTrackInfoDialog added in v0.13.0

func NewTrackInfoDialog(track *mediaprovider.Track) *TrackInfoDialog

func (*TrackInfoDialog) CreateRenderer added in v0.13.0

func (t *TrackInfoDialog) CreateRenderer() fyne.WidgetRenderer

type WhatsNewDialog added in v0.7.0

type WhatsNewDialog struct {
	widget.BaseWidget
}

func NewWhatsNewDialog added in v0.7.0

func NewWhatsNewDialog() *WhatsNewDialog

func (*WhatsNewDialog) CreateRenderer added in v0.7.0

func (w *WhatsNewDialog) CreateRenderer() fyne.WidgetRenderer

func (*WhatsNewDialog) MinSize added in v0.7.0

func (w *WhatsNewDialog) MinSize() fyne.Size

Jump to

Keyboard shortcuts

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