Documentation
¶
Index ¶
- func MarshalLibPathElement(e LibraryPathElement) string
- func ShowOutputsDialog(parent gtk.IWindow, c *Connector)
- func ShowPreferencesDialog(parent gtk.IWindow, ...)
- type AlbumLibElement
- func (e *AlbumLibElement) ChildAttributeID() int
- func (e *AlbumLibElement) Icon() string
- func (e *AlbumLibElement) IsFolder() bool
- func (e *AlbumLibElement) IsPlayable() bool
- func (e *AlbumLibElement) Label() string
- func (e *AlbumLibElement) Marshal() string
- func (e *AlbumLibElement) NewChild(value string) LibraryPathElement
- func (e *AlbumLibElement) Prefix() string
- func (e *AlbumLibElement) Unmarshal(data string) error
- type AlbumsLibElement
- func (e *AlbumsLibElement) ChildAttributeID() int
- func (e *AlbumsLibElement) Icon() string
- func (e *AlbumsLibElement) IsFolder() bool
- func (e *AlbumsLibElement) IsPlayable() bool
- func (e *AlbumsLibElement) Label() string
- func (e *AlbumsLibElement) Marshal() string
- func (e *AlbumsLibElement) NewChild(value string) LibraryPathElement
- func (e *AlbumsLibElement) Prefix() string
- func (e *AlbumsLibElement) Unmarshal(string) error
- type ArtistLibElement
- func (e *ArtistLibElement) ChildAttributeID() int
- func (e *ArtistLibElement) Icon() string
- func (e *ArtistLibElement) IsFolder() bool
- func (e *ArtistLibElement) IsPlayable() bool
- func (e *ArtistLibElement) Label() string
- func (e *ArtistLibElement) Marshal() string
- func (e *ArtistLibElement) NewChild(value string) LibraryPathElement
- func (e *ArtistLibElement) Prefix() string
- func (e *ArtistLibElement) Unmarshal(data string) error
- type ArtistsLibElement
- func (e *ArtistsLibElement) ChildAttributeID() int
- func (e *ArtistsLibElement) Icon() string
- func (e *ArtistsLibElement) IsFolder() bool
- func (e *ArtistsLibElement) IsPlayable() bool
- func (e *ArtistsLibElement) Label() string
- func (e *ArtistsLibElement) Marshal() string
- func (e *ArtistsLibElement) NewChild(value string) LibraryPathElement
- func (e *ArtistsLibElement) Prefix() string
- func (e *ArtistsLibElement) Unmarshal(string) error
- type AttributeHolder
- type AttributeHolderParent
- type BaseAttrHolder
- type Builder
- type Connector
- func (c *Connector) ConnectStatus() (bool, bool)
- func (c *Connector) GetPlaylists() []string
- func (c *Connector) IfConnected(funcIfConnected func(client *mpd.Client))
- func (c *Connector) Start(mpdNetwork, mpdAddress, mpdPassword string, stayConnected bool)
- func (c *Connector) Status() mpd.Attrs
- func (c *Connector) Stop()
- type DetailsHolder
- type DirLibElement
- func (e *DirLibElement) Icon() string
- func (e *DirLibElement) IsFolder() bool
- func (e *DirLibElement) IsPlayable() bool
- func (e *DirLibElement) Label() string
- func (e *DirLibElement) Marshal() string
- func (e *DirLibElement) Prefix() string
- func (e *DirLibElement) URI() string
- func (e *DirLibElement) Unmarshal(data string) error
- type FileLibElement
- func (e *FileLibElement) Details() string
- func (e *FileLibElement) Icon() string
- func (e *FileLibElement) IsFolder() bool
- func (e *FileLibElement) IsPlayable() bool
- func (e *FileLibElement) Label() string
- func (e *FileLibElement) Marshal() string
- func (e *FileLibElement) Prefix() string
- func (e *FileLibElement) URI() string
- func (e *FileLibElement) Unmarshal(data string) error
- type FilesystemLibElement
- func (e *FilesystemLibElement) Icon() string
- func (e *FilesystemLibElement) IsFolder() bool
- func (e *FilesystemLibElement) IsPlayable() bool
- func (e *FilesystemLibElement) Label() string
- func (e *FilesystemLibElement) Marshal() string
- func (e *FilesystemLibElement) Prefix() string
- func (e *FilesystemLibElement) URI() string
- func (e *FilesystemLibElement) Unmarshal(string) error
- type GenreLibElement
- func (e *GenreLibElement) ChildAttributeID() int
- func (e *GenreLibElement) Icon() string
- func (e *GenreLibElement) IsFolder() bool
- func (e *GenreLibElement) IsPlayable() bool
- func (e *GenreLibElement) Label() string
- func (e *GenreLibElement) Marshal() string
- func (e *GenreLibElement) NewChild(value string) LibraryPathElement
- func (e *GenreLibElement) Prefix() string
- func (e *GenreLibElement) Unmarshal(data string) error
- type GenresLibElement
- func (e *GenresLibElement) ChildAttributeID() int
- func (e *GenresLibElement) Icon() string
- func (e *GenresLibElement) IsFolder() bool
- func (e *GenresLibElement) IsPlayable() bool
- func (e *GenresLibElement) Label() string
- func (e *GenresLibElement) Marshal() string
- func (e *GenresLibElement) NewChild(value string) LibraryPathElement
- func (e *GenresLibElement) Prefix() string
- func (e *GenresLibElement) Unmarshal(string) error
- type LevelUpLibElement
- func (e *LevelUpLibElement) Icon() string
- func (e *LevelUpLibElement) IsFolder() bool
- func (e *LevelUpLibElement) IsPlayable() bool
- func (e *LevelUpLibElement) Label() string
- func (e *LevelUpLibElement) Marshal() string
- func (e *LevelUpLibElement) Prefix() string
- func (e *LevelUpLibElement) Unmarshal(string) error
- type LibraryPath
- func (p *LibraryPath) Append(e LibraryPathElement)
- func (p *LibraryPath) AsFilter(extraElements ...LibraryPathElement) (result []string)
- func (p *LibraryPath) ElementAt(index int) LibraryPathElement
- func (p *LibraryPath) Elements() []LibraryPathElement
- func (p *LibraryPath) IsRoot() bool
- func (p *LibraryPath) Last() LibraryPathElement
- func (p *LibraryPath) LevelUp()
- func (p *LibraryPath) Marshal() string
- func (p *LibraryPath) SetElements(elements []LibraryPathElement)
- func (p *LibraryPath) SetLength(length int)
- func (p *LibraryPath) Unmarshal(s string) error
- type LibraryPathElement
- func AttrsToElements(attrs []mpd.Attrs, uriPrefix string) []LibraryPathElement
- func NewAlbumLibElement() LibraryPathElement
- func NewAlbumLibElementVal(value string) LibraryPathElement
- func NewAlbumsLibElement() LibraryPathElement
- func NewArtistLibElement() LibraryPathElement
- func NewArtistLibElementVal(value string) LibraryPathElement
- func NewArtistsLibElement() LibraryPathElement
- func NewDirLibElement() LibraryPathElement
- func NewFileLibElement() LibraryPathElement
- func NewFilesystemLibElement() LibraryPathElement
- func NewGenreLibElement() LibraryPathElement
- func NewGenreLibElementVal(value string) LibraryPathElement
- func NewGenresLibElement() LibraryPathElement
- func NewLevelUpLibElement() LibraryPathElement
- func NewPlaylistLibElement() LibraryPathElement
- func NewPlaylistLibElementName(name string) LibraryPathElement
- func NewPlaylistsLibElement() LibraryPathElement
- func NewTrackLibElement() LibraryPathElement
- func NewTrackLibElementVal(value string) LibraryPathElement
- func UnmarshalLibPathElement(data string) (LibraryPathElement, error)
- type MainWindow
- type OutputsDialog
- type PlaylistHolder
- type PlaylistLibElement
- func (e *PlaylistLibElement) Icon() string
- func (e *PlaylistLibElement) IsFolder() bool
- func (e *PlaylistLibElement) IsPlayable() bool
- func (e *PlaylistLibElement) Label() string
- func (e *PlaylistLibElement) Marshal() string
- func (e *PlaylistLibElement) PlaylistName() string
- func (e *PlaylistLibElement) Prefix() string
- func (e *PlaylistLibElement) Unmarshal(data string) error
- type PlaylistsLibElement
- func (e *PlaylistsLibElement) Icon() string
- func (e *PlaylistsLibElement) IsFolder() bool
- func (e *PlaylistsLibElement) IsPlayable() bool
- func (e *PlaylistsLibElement) Label() string
- func (e *PlaylistsLibElement) Marshal() string
- func (e *PlaylistsLibElement) NewChild(name string) LibraryPathElement
- func (e *PlaylistsLibElement) Prefix() string
- func (e *PlaylistsLibElement) Unmarshal(string) error
- type PrefsDialog
- type TrackLibElement
- func (e *TrackLibElement) Icon() string
- func (e *TrackLibElement) IsFolder() bool
- func (e *TrackLibElement) IsPlayable() bool
- func (e *TrackLibElement) Label() string
- func (e *TrackLibElement) Marshal() string
- func (e *TrackLibElement) Prefix() string
- func (e *TrackLibElement) Unmarshal(data string) error
- type URIHolder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalLibPathElement ¶
func MarshalLibPathElement(e LibraryPathElement) string
MarshalLibPathElement serialises a library path element into string form
func ShowOutputsDialog ¶
ShowOutputsDialog creates, shows and disposes of an Outputs dialog instance
func ShowPreferencesDialog ¶
func ShowPreferencesDialog(parent gtk.IWindow, onMpdReconnect, onQueueColumnsChanged, onPlayerSettingChanged func())
ShowPreferencesDialog creates, shows and disposes of a Preferences dialog instance
Types ¶
type AlbumLibElement ¶
type AlbumLibElement struct {
BaseAttrHolder
}
func (*AlbumLibElement) ChildAttributeID ¶
func (e *AlbumLibElement) ChildAttributeID() int
func (*AlbumLibElement) Icon ¶
func (e *AlbumLibElement) Icon() string
func (*AlbumLibElement) IsFolder ¶
func (e *AlbumLibElement) IsFolder() bool
func (*AlbumLibElement) IsPlayable ¶
func (e *AlbumLibElement) IsPlayable() bool
func (*AlbumLibElement) Label ¶
func (e *AlbumLibElement) Label() string
func (*AlbumLibElement) Marshal ¶
func (e *AlbumLibElement) Marshal() string
func (*AlbumLibElement) NewChild ¶
func (e *AlbumLibElement) NewChild(value string) LibraryPathElement
func (*AlbumLibElement) Prefix ¶
func (e *AlbumLibElement) Prefix() string
func (*AlbumLibElement) Unmarshal ¶
func (e *AlbumLibElement) Unmarshal(data string) error
type AlbumsLibElement ¶
type AlbumsLibElement struct{}
func (*AlbumsLibElement) ChildAttributeID ¶
func (e *AlbumsLibElement) ChildAttributeID() int
func (*AlbumsLibElement) Icon ¶
func (e *AlbumsLibElement) Icon() string
func (*AlbumsLibElement) IsFolder ¶
func (e *AlbumsLibElement) IsFolder() bool
func (*AlbumsLibElement) IsPlayable ¶
func (e *AlbumsLibElement) IsPlayable() bool
func (*AlbumsLibElement) Label ¶
func (e *AlbumsLibElement) Label() string
func (*AlbumsLibElement) Marshal ¶
func (e *AlbumsLibElement) Marshal() string
func (*AlbumsLibElement) NewChild ¶
func (e *AlbumsLibElement) NewChild(value string) LibraryPathElement
func (*AlbumsLibElement) Prefix ¶
func (e *AlbumsLibElement) Prefix() string
func (*AlbumsLibElement) Unmarshal ¶
func (e *AlbumsLibElement) Unmarshal(string) error
type ArtistLibElement ¶
type ArtistLibElement struct {
BaseAttrHolder
}
func (*ArtistLibElement) ChildAttributeID ¶
func (e *ArtistLibElement) ChildAttributeID() int
func (*ArtistLibElement) Icon ¶
func (e *ArtistLibElement) Icon() string
func (*ArtistLibElement) IsFolder ¶
func (e *ArtistLibElement) IsFolder() bool
func (*ArtistLibElement) IsPlayable ¶
func (e *ArtistLibElement) IsPlayable() bool
func (*ArtistLibElement) Label ¶
func (e *ArtistLibElement) Label() string
func (*ArtistLibElement) Marshal ¶
func (e *ArtistLibElement) Marshal() string
func (*ArtistLibElement) NewChild ¶
func (e *ArtistLibElement) NewChild(value string) LibraryPathElement
func (*ArtistLibElement) Prefix ¶
func (e *ArtistLibElement) Prefix() string
func (*ArtistLibElement) Unmarshal ¶
func (e *ArtistLibElement) Unmarshal(data string) error
type ArtistsLibElement ¶
type ArtistsLibElement struct{}
func (*ArtistsLibElement) ChildAttributeID ¶
func (e *ArtistsLibElement) ChildAttributeID() int
func (*ArtistsLibElement) Icon ¶
func (e *ArtistsLibElement) Icon() string
func (*ArtistsLibElement) IsFolder ¶
func (e *ArtistsLibElement) IsFolder() bool
func (*ArtistsLibElement) IsPlayable ¶
func (e *ArtistsLibElement) IsPlayable() bool
func (*ArtistsLibElement) Label ¶
func (e *ArtistsLibElement) Label() string
func (*ArtistsLibElement) Marshal ¶
func (e *ArtistsLibElement) Marshal() string
func (*ArtistsLibElement) NewChild ¶
func (e *ArtistsLibElement) NewChild(value string) LibraryPathElement
func (*ArtistsLibElement) Prefix ¶
func (e *ArtistsLibElement) Prefix() string
func (*ArtistsLibElement) Unmarshal ¶
func (e *ArtistsLibElement) Unmarshal(string) error
type AttributeHolder ¶
type AttributeHolder interface { AttributeID() int // Attribute's ID AttributeValue() string // Attribute's value }
AttributeHolder represents an object that possesses an MPD attribute and the corresponding value
type AttributeHolderParent ¶
type AttributeHolderParent interface { ChildAttributeID() int // Child attribute's ID NewChild(value string) LibraryPathElement // Instantiates and returns a new child element with the given value }
AttributeHolderParent represents an object that can be a parent for AttributeHolder
type BaseAttrHolder ¶
type BaseAttrHolder struct {
// contains filtered or unexported fields
}
func (*BaseAttrHolder) AttributeID ¶
func (h *BaseAttrHolder) AttributeID() int
func (*BaseAttrHolder) AttributeValue ¶
func (h *BaseAttrHolder) AttributeValue() string
type Builder ¶
Builder instance capable of finding specific types of widgets
func NewBuilder ¶
NewBuilder creates and returns a new Builder instance
func (*Builder) BindWidgets ¶
BindWidgets binds the builder's widgets to same-named fields in the provided struct. Only exported fields are taken into account
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
Connector encapsulates functionality for connecting to MPD and watch for its changes
func NewConnector ¶
func NewConnector(onStatusChange func(), onHeartbeat func(), onSubsystemChange func(subsystem string)) *Connector
NewConnector creates and returns a new Connector instance
func (*Connector) ConnectStatus ¶
ConnectStatus returns whether there's a connection with MPD and whether it's being established
func (*Connector) GetPlaylists ¶
GetPlaylists queries and returns a slice of playlist names available in MPD
func (*Connector) IfConnected ¶
IfConnected runs MPD client code if there's a connection with MPD
func (*Connector) Start ¶
Start initialises the connector stayConnected: whether the connection must be automatically re-established when lost
type DetailsHolder ¶
type DetailsHolder interface {
Details() string
}
DetailsHolder represents an object that can provide additional details
type DirLibElement ¶
type DirLibElement struct {
// contains filtered or unexported fields
}
func (*DirLibElement) Icon ¶
func (e *DirLibElement) Icon() string
func (*DirLibElement) IsFolder ¶
func (e *DirLibElement) IsFolder() bool
func (*DirLibElement) IsPlayable ¶
func (e *DirLibElement) IsPlayable() bool
func (*DirLibElement) Label ¶
func (e *DirLibElement) Label() string
func (*DirLibElement) Marshal ¶
func (e *DirLibElement) Marshal() string
func (*DirLibElement) Prefix ¶
func (e *DirLibElement) Prefix() string
func (*DirLibElement) URI ¶
func (e *DirLibElement) URI() string
func (*DirLibElement) Unmarshal ¶
func (e *DirLibElement) Unmarshal(data string) error
type FileLibElement ¶
type FileLibElement struct {
// contains filtered or unexported fields
}
func (*FileLibElement) Details ¶
func (e *FileLibElement) Details() string
func (*FileLibElement) Icon ¶
func (e *FileLibElement) Icon() string
func (*FileLibElement) IsFolder ¶
func (e *FileLibElement) IsFolder() bool
func (*FileLibElement) IsPlayable ¶
func (e *FileLibElement) IsPlayable() bool
func (*FileLibElement) Label ¶
func (e *FileLibElement) Label() string
func (*FileLibElement) Marshal ¶
func (e *FileLibElement) Marshal() string
func (*FileLibElement) Prefix ¶
func (e *FileLibElement) Prefix() string
func (*FileLibElement) URI ¶
func (e *FileLibElement) URI() string
func (*FileLibElement) Unmarshal ¶
func (e *FileLibElement) Unmarshal(data string) error
type FilesystemLibElement ¶
type FilesystemLibElement struct{}
func (*FilesystemLibElement) Icon ¶
func (e *FilesystemLibElement) Icon() string
func (*FilesystemLibElement) IsFolder ¶
func (e *FilesystemLibElement) IsFolder() bool
func (*FilesystemLibElement) IsPlayable ¶
func (e *FilesystemLibElement) IsPlayable() bool
func (*FilesystemLibElement) Label ¶
func (e *FilesystemLibElement) Label() string
func (*FilesystemLibElement) Marshal ¶
func (e *FilesystemLibElement) Marshal() string
func (*FilesystemLibElement) Prefix ¶
func (e *FilesystemLibElement) Prefix() string
func (*FilesystemLibElement) URI ¶
func (e *FilesystemLibElement) URI() string
func (*FilesystemLibElement) Unmarshal ¶
func (e *FilesystemLibElement) Unmarshal(string) error
type GenreLibElement ¶
type GenreLibElement struct {
BaseAttrHolder
}
func (*GenreLibElement) ChildAttributeID ¶
func (e *GenreLibElement) ChildAttributeID() int
func (*GenreLibElement) Icon ¶
func (e *GenreLibElement) Icon() string
func (*GenreLibElement) IsFolder ¶
func (e *GenreLibElement) IsFolder() bool
func (*GenreLibElement) IsPlayable ¶
func (e *GenreLibElement) IsPlayable() bool
func (*GenreLibElement) Label ¶
func (e *GenreLibElement) Label() string
func (*GenreLibElement) Marshal ¶
func (e *GenreLibElement) Marshal() string
func (*GenreLibElement) NewChild ¶
func (e *GenreLibElement) NewChild(value string) LibraryPathElement
func (*GenreLibElement) Prefix ¶
func (e *GenreLibElement) Prefix() string
func (*GenreLibElement) Unmarshal ¶
func (e *GenreLibElement) Unmarshal(data string) error
type GenresLibElement ¶
type GenresLibElement struct{}
func (*GenresLibElement) ChildAttributeID ¶
func (e *GenresLibElement) ChildAttributeID() int
func (*GenresLibElement) Icon ¶
func (e *GenresLibElement) Icon() string
func (*GenresLibElement) IsFolder ¶
func (e *GenresLibElement) IsFolder() bool
func (*GenresLibElement) IsPlayable ¶
func (e *GenresLibElement) IsPlayable() bool
func (*GenresLibElement) Label ¶
func (e *GenresLibElement) Label() string
func (*GenresLibElement) Marshal ¶
func (e *GenresLibElement) Marshal() string
func (*GenresLibElement) NewChild ¶
func (e *GenresLibElement) NewChild(value string) LibraryPathElement
func (*GenresLibElement) Prefix ¶
func (e *GenresLibElement) Prefix() string
func (*GenresLibElement) Unmarshal ¶
func (e *GenresLibElement) Unmarshal(string) error
type LevelUpLibElement ¶
type LevelUpLibElement struct{}
func (*LevelUpLibElement) Icon ¶
func (e *LevelUpLibElement) Icon() string
func (*LevelUpLibElement) IsFolder ¶
func (e *LevelUpLibElement) IsFolder() bool
func (*LevelUpLibElement) IsPlayable ¶
func (e *LevelUpLibElement) IsPlayable() bool
func (*LevelUpLibElement) Label ¶
func (e *LevelUpLibElement) Label() string
func (*LevelUpLibElement) Marshal ¶
func (e *LevelUpLibElement) Marshal() string
func (*LevelUpLibElement) Prefix ¶
func (e *LevelUpLibElement) Prefix() string
func (*LevelUpLibElement) Unmarshal ¶
func (e *LevelUpLibElement) Unmarshal(string) error
type LibraryPath ¶
type LibraryPath struct {
// contains filtered or unexported fields
}
LibraryPath holds a series of LibraryPathElement's
func NewLibraryPath ¶
func NewLibraryPath(onChanged func()) *LibraryPath
func (*LibraryPath) Append ¶
func (p *LibraryPath) Append(e LibraryPathElement)
Append extends the current path with the given element
func (*LibraryPath) AsFilter ¶
func (p *LibraryPath) AsFilter(extraElements ...LibraryPathElement) (result []string)
AsFilter converts the path (with optional additions) into a slice of arguments for MPD's filter function
func (*LibraryPath) ElementAt ¶
func (p *LibraryPath) ElementAt(index int) LibraryPathElement
ElementAt returns the element at the given index, or nil if no such element exists
func (*LibraryPath) Elements ¶
func (p *LibraryPath) Elements() []LibraryPathElement
Elements returns the elements slice
func (*LibraryPath) IsRoot ¶
func (p *LibraryPath) IsRoot() bool
IsRoot returns whether the current path represents root
func (*LibraryPath) Last ¶
func (p *LibraryPath) Last() LibraryPathElement
Last returns the last element in the current path, or nil if the path is empty
func (*LibraryPath) LevelUp ¶
func (p *LibraryPath) LevelUp()
LevelUp shifts the current path one level up (by dropping the last element)
func (*LibraryPath) Marshal ¶
func (p *LibraryPath) Marshal() string
Marshal serialises the current path as a string
func (*LibraryPath) SetElements ¶
func (p *LibraryPath) SetElements(elements []LibraryPathElement)
SetElements updates the elements to the given slice
func (*LibraryPath) SetLength ¶
func (p *LibraryPath) SetLength(length int)
SetLength limits the length of the path at the given figure
func (*LibraryPath) Unmarshal ¶
func (p *LibraryPath) Unmarshal(s string) error
Unmarshal deserialises the path from a string
type LibraryPathElement ¶
type LibraryPathElement interface { Icon() string // Icon returns name of the icon for the element Label() string // Label returns display label text for the element IsFolder() bool // IsFolder denotes whether the element can be entered into (eg. by double-clicking it) IsPlayable() bool // IsPlayable denotes whether the element can be played (added to the queue) Marshal() string // Serialises the element into a string Unmarshal(data string) error // Deserialises the element from a string Prefix() string // Returns a string prefix for marshalling }
LibraryPathElement represents one element in the library path
func AttrsToElements ¶
func AttrsToElements(attrs []mpd.Attrs, uriPrefix string) []LibraryPathElement
AttrsToElements converts the provided list of MPD Attributes instances into a slice of elements, stripping the (optional) URI prefix
func NewAlbumLibElement ¶
func NewAlbumLibElement() LibraryPathElement
func NewAlbumLibElementVal ¶
func NewAlbumLibElementVal(value string) LibraryPathElement
func NewAlbumsLibElement ¶
func NewAlbumsLibElement() LibraryPathElement
func NewArtistLibElement ¶
func NewArtistLibElement() LibraryPathElement
func NewArtistLibElementVal ¶
func NewArtistLibElementVal(value string) LibraryPathElement
func NewArtistsLibElement ¶
func NewArtistsLibElement() LibraryPathElement
func NewDirLibElement ¶
func NewDirLibElement() LibraryPathElement
func NewFileLibElement ¶
func NewFileLibElement() LibraryPathElement
func NewFilesystemLibElement ¶
func NewFilesystemLibElement() LibraryPathElement
func NewGenreLibElement ¶
func NewGenreLibElement() LibraryPathElement
func NewGenreLibElementVal ¶
func NewGenreLibElementVal(value string) LibraryPathElement
func NewGenresLibElement ¶
func NewGenresLibElement() LibraryPathElement
func NewLevelUpLibElement ¶
func NewLevelUpLibElement() LibraryPathElement
func NewPlaylistLibElement ¶
func NewPlaylistLibElement() LibraryPathElement
func NewPlaylistLibElementName ¶
func NewPlaylistLibElementName(name string) LibraryPathElement
func NewPlaylistsLibElement ¶
func NewPlaylistsLibElement() LibraryPathElement
func NewTrackLibElement ¶
func NewTrackLibElement() LibraryPathElement
func NewTrackLibElementVal ¶
func NewTrackLibElementVal(value string) LibraryPathElement
func UnmarshalLibPathElement ¶
func UnmarshalLibPathElement(data string) (LibraryPathElement, error)
UnmarshalLibPathElement instantiates and initialises a library path element from the given serialised string form
type MainWindow ¶
type MainWindow struct { // Control widgets AppWindow *gtk.ApplicationWindow // Main window MainStack *gtk.Stack StatusLabel *gtk.Label PositionLabel *gtk.Label PlayPauseButton *gtk.ToolButton RandomButton *gtk.ToggleToolButton RepeatButton *gtk.ToggleToolButton ConsumeButton *gtk.ToggleToolButton VolumeButton *gtk.VolumeButton VolumeAdjustment *gtk.Adjustment PlayPositionScale *gtk.Scale PlayPositionAdjustment *gtk.Adjustment AlbumArtworkImage *gtk.Image // Queue widgets QueueBox *gtk.Box QueueToolbar *gtk.Toolbar QueueInfoLabel *gtk.Label QueueTreeView *gtk.TreeView QueueSortPopoverMenu *gtk.PopoverMenu QueueSavePopoverMenu *gtk.PopoverMenu QueueMenu *gtk.Menu QueueNowPlayingMenuItem *gtk.MenuItem QueueShowAlbumInLibraryMenuItem *gtk.MenuItem QueueShowArtistInLibraryMenuItem *gtk.MenuItem QueueShowGenreInLibraryMenuItem *gtk.MenuItem QueueClearMenuItem *gtk.MenuItem QueueDeleteMenuItem *gtk.MenuItem QueueFilterToolButton *gtk.ToggleToolButton QueueSearchBar *gtk.SearchBar QueueSearchEntry *gtk.SearchEntry QueueFilterLabel *gtk.Label QueueListStore *gtk.ListStore QueueTreeModelFilter *gtk.TreeModelFilter // Queue sort popup QueueSortByComboBox *gtk.ComboBoxText // Queue save popup QueueSavePlaylistComboBox *gtk.ComboBoxText QueueSavePlaylistNameLabel *gtk.Label QueueSavePlaylistNameEntry *gtk.Entry QueueSaveSelectedOnlyCheckButton *gtk.CheckButton // Library widgets LibraryUpdatePopoverMenu *gtk.PopoverMenu LibraryAddToPlaylistPopoverMenu *gtk.PopoverMenu LibraryAddToPlaylistBox *gtk.Box LibraryBox *gtk.Box LibraryPathBox *gtk.Box LibrarySearchBox *gtk.Box LibrarySearchToolButton *gtk.ToggleToolButton LibraryToolStack *gtk.Stack LibrarySearchEntry *gtk.SearchEntry LibrarySearchAttrComboBox *gtk.ComboBoxText LibraryListBox *gtk.ListBox LibraryInfoLabel *gtk.Label LibraryMenu *gtk.Menu LibraryAppendMenuItem *gtk.MenuItem LibraryReplaceMenuItem *gtk.MenuItem LibraryRenameMenuItem *gtk.MenuItem LibraryDeleteMenuItem *gtk.MenuItem LibraryUpdateSelMenuItem *gtk.MenuItem LibraryAddToPlaylistMenuItem *gtk.MenuItem // Streams widgets StreamsBox *gtk.Box StreamsAddToolButton *gtk.ToolButton StreamsEditToolButton *gtk.ToolButton StreamsListBox *gtk.ListBox StreamsInfoLabel *gtk.Label StreamsMenu *gtk.Menu StreamsAppendMenuItem *gtk.MenuItem StreamsReplaceMenuItem *gtk.MenuItem StreamsEditMenuItem *gtk.MenuItem StreamsDeleteMenuItem *gtk.MenuItem // Streams props popup StreamPropsPopoverMenu *gtk.PopoverMenu StreamPropsNameEntry *gtk.Entry StreamPropsUriEntry *gtk.Entry // contains filtered or unexported fields }
MainWindow represents the main application window
func NewMainWindow ¶
func NewMainWindow(application *gtk.Application) (*MainWindow, error)
NewMainWindow creates and returns a new MainWindow instance
func (*MainWindow) Show ¶
func (w *MainWindow) Show()
Show displays the window and all its child widgets
type OutputsDialog ¶
type OutputsDialog struct { OutputsDialog *gtk.Dialog OutputsListBox *gtk.ListBox // contains filtered or unexported fields }
OutputsDialog represents the output selection dialog
type PlaylistHolder ¶
type PlaylistHolder interface {
PlaylistName() string
}
PlaylistHolder represents an object that references a playlist
type PlaylistLibElement ¶
type PlaylistLibElement struct {
// contains filtered or unexported fields
}
func (*PlaylistLibElement) Icon ¶
func (e *PlaylistLibElement) Icon() string
func (*PlaylistLibElement) IsFolder ¶
func (e *PlaylistLibElement) IsFolder() bool
func (*PlaylistLibElement) IsPlayable ¶
func (e *PlaylistLibElement) IsPlayable() bool
func (*PlaylistLibElement) Label ¶
func (e *PlaylistLibElement) Label() string
func (*PlaylistLibElement) Marshal ¶
func (e *PlaylistLibElement) Marshal() string
func (*PlaylistLibElement) PlaylistName ¶
func (e *PlaylistLibElement) PlaylistName() string
func (*PlaylistLibElement) Prefix ¶
func (e *PlaylistLibElement) Prefix() string
func (*PlaylistLibElement) Unmarshal ¶
func (e *PlaylistLibElement) Unmarshal(data string) error
type PlaylistsLibElement ¶
type PlaylistsLibElement struct{}
func (*PlaylistsLibElement) Icon ¶
func (e *PlaylistsLibElement) Icon() string
func (*PlaylistsLibElement) IsFolder ¶
func (e *PlaylistsLibElement) IsFolder() bool
func (*PlaylistsLibElement) IsPlayable ¶
func (e *PlaylistsLibElement) IsPlayable() bool
func (*PlaylistsLibElement) Label ¶
func (e *PlaylistsLibElement) Label() string
func (*PlaylistsLibElement) Marshal ¶
func (e *PlaylistsLibElement) Marshal() string
func (*PlaylistsLibElement) NewChild ¶
func (e *PlaylistsLibElement) NewChild(name string) LibraryPathElement
func (*PlaylistsLibElement) Prefix ¶
func (e *PlaylistsLibElement) Prefix() string
func (*PlaylistsLibElement) Unmarshal ¶
func (e *PlaylistsLibElement) Unmarshal(string) error
type PrefsDialog ¶
type PrefsDialog struct { PreferencesDialog *gtk.Dialog // General page widgets MpdNetworkComboBox *gtk.ComboBoxText MpdPathEntry *gtk.Entry MpdPathLabel *gtk.Label MpdHostEntry *gtk.Entry MpdHostLabel *gtk.Label MpdHostLabelRemark *gtk.Label MpdPortSpinButton *gtk.SpinButton MpdPortLabel *gtk.Label MpdPortAdjustment *gtk.Adjustment MpdPasswordEntry *gtk.Entry MpdAutoConnectCheckButton *gtk.CheckButton MpdAutoReconnectCheckButton *gtk.CheckButton // Interface page widgets QueueToolbarCheckButton *gtk.CheckButton LibraryDefaultReplaceRadioButton *gtk.RadioButton LibraryDefaultAppendRadioButton *gtk.RadioButton PlaylistsDefaultReplaceRadioButton *gtk.RadioButton PlaylistsDefaultAppendRadioButton *gtk.RadioButton StreamsDefaultReplaceRadioButton *gtk.RadioButton StreamsDefaultAppendRadioButton *gtk.RadioButton // Automation page widgets AutomationQueueReplaceSwitchToCheckButton *gtk.CheckButton AutomationQueueReplacePlayCheckButton *gtk.CheckButton // Player page widgets PlayerShowAlbumArtTracksCheckButton *gtk.CheckButton PlayerShowAlbumArtStreamsCheckButton *gtk.CheckButton PlayerAlbumArtSizeAdjustment *gtk.Adjustment PlayerTitleTemplateTextBuffer *gtk.TextBuffer // Columns page widgets ColumnsListBox *gtk.ListBox // contains filtered or unexported fields }
PrefsDialog represents the preferences dialog
type TrackLibElement ¶
type TrackLibElement struct {
BaseAttrHolder
}
func (*TrackLibElement) Icon ¶
func (e *TrackLibElement) Icon() string
func (*TrackLibElement) IsFolder ¶
func (e *TrackLibElement) IsFolder() bool
func (*TrackLibElement) IsPlayable ¶
func (e *TrackLibElement) IsPlayable() bool
func (*TrackLibElement) Label ¶
func (e *TrackLibElement) Label() string
func (*TrackLibElement) Marshal ¶
func (e *TrackLibElement) Marshal() string
func (*TrackLibElement) Prefix ¶
func (e *TrackLibElement) Prefix() string
func (*TrackLibElement) Unmarshal ¶
func (e *TrackLibElement) Unmarshal(data string) error