dialogs

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: GPL-3.0 Imports: 31 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 AddToPlaylistDialog

type AddToPlaylistDialog struct {
	widget.BaseWidget

	OnCanceled func()
	OnSubmit   func(playlistChoice int, newPlaylistName string)
	// contains filtered or unexported fields
}

func NewAddToPlaylistDialog

func NewAddToPlaylistDialog(title string, existingPlaylistNames []string, selectedIdx int) *AddToPlaylistDialog

func (*AddToPlaylistDialog) CreateRenderer

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

func (*AddToPlaylistDialog) MinSize

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

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 {
	widget.BaseWidget

	OnDismiss    func()
	OnNavigateTo func(mediaprovider.ContentType, string)

	SearchEntry fyne.Focusable // exported so it can be focused by the Controller
	// contains filtered or unexported fields
}

func NewQuickSearch added in v0.7.0

func (*QuickSearch) CreateRenderer added in v0.7.0

func (q *QuickSearch) CreateRenderer() fyne.WidgetRenderer

func (*QuickSearch) MinSize added in v0.7.0

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

type SettingsDialog

type SettingsDialog struct {
	widget.BaseWidget

	OnReplayGainSettingsChanged    func()
	OnAudioExclusiveSettingChanged func()
	OnAudioDeviceSettingChanged    func()
	OnThemeSettingChanged          func()
	OnDismiss                      func()
	OnEqualizerSettingsChanged     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 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