Documentation
¶
Index ¶
- Variables
- func GenerateFuncMap(Conn *mpd.Client) map[string]func()
- func GetCell(text string, color config.Color) *tview.TableCell
- func GetProgressGlyph(width, percentage float64, btext string) string
- func InitNotifier()
- func NewMainS() *tview.Table
- func NewSearchBar() *tview.InputField
- func SendNotification(text string)
- func SendNotificationWithChan(text string, close chan time.Time)
- func SendNotificationWithTimer(text string, t time.Duration)
- func SetCurrentView(v View)
- type Application
- type BuffSearchView
- func (s BuffSearchView) AddToPlaylist()
- func (f BuffSearchView) DeleteSongFromPlaylist()
- func (f BuffSearchView) FocusBuffSearchView()
- func (s BuffSearchView) Name() string
- func (s BuffSearchView) Quit()
- func (s BuffSearchView) ShowChildrenContent()
- func (s BuffSearchView) ShowParentContent()
- func (s BuffSearchView) Update(inputTable *tview.Table)
- type FileView
- func (f FileView) AddToPlaylist()
- func (f FileView) DeleteSongFromPlaylist()
- func (f FileView) FocusBuffSearchView()
- func (f FileView) Name() string
- func (f FileView) Quit()
- func (f FileView) ShowChildrenContent()
- func (f FileView) ShowParentContent()
- func (f FileView) Update(inputTable *tview.Table)
- type PlaylistView
- func (p PlaylistView) AddToPlaylist()
- func (p *PlaylistView) DeleteSongFromPlaylist()
- func (p PlaylistView) FocusBuffSearchView()
- func (s PlaylistView) Name() string
- func (p PlaylistView) Quit()
- func (p PlaylistView) ShowChildrenContent()
- func (s PlaylistView) ShowParentContent()
- func (p PlaylistView) Update(inputTable *tview.Table)
- type ProgressBar
- type SearchView
- func (s SearchView) AddToPlaylist()
- func (s SearchView) DeleteSongFromPlaylist()
- func (s SearchView) FocusBuffSearchView()
- func (s SearchView) Name() string
- func (p SearchView) Quit()
- func (s SearchView) ShowChildrenContent()
- func (s SearchView) ShowParentContent()
- func (s SearchView) Update(inputTable *tview.Table)
- type View
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ImgY int ImgW int ImgH int ImgX int Ui *Application )
View Source
var ( CurrentView View BuffSView BuffSearchView SView SearchView FView FileView PView PlaylistView )
View Source
var FuncMap map[string]func()
View Source
var (
PosStack utils.Stack[int]
)
Functions ¶
func GenerateFuncMap ¶
func GetProgressGlyph ¶
func NewSearchBar ¶
func NewSearchBar() *tview.InputField
func SendNotification ¶
func SendNotification(text string)
func SendNotificationWithChan ¶ added in v1.0.3
func SendNotificationWithTimer ¶ added in v1.0.3
func SetCurrentView ¶
func SetCurrentView(v View)
Types ¶
type Application ¶
type Application struct { App *tview.Application MainS *tview.Table SearchBar *tview.InputField ProgressBar *ProgressBar Pages *tview.Pages ImagePreviewer *tview.Box }
func NewApplication ¶
func NewApplication() *Application
type BuffSearchView ¶
type BuffSearchView struct { }
func (BuffSearchView) AddToPlaylist ¶
func (s BuffSearchView) AddToPlaylist()
func (BuffSearchView) DeleteSongFromPlaylist ¶
func (f BuffSearchView) DeleteSongFromPlaylist()
func (BuffSearchView) FocusBuffSearchView ¶
func (f BuffSearchView) FocusBuffSearchView()
func (BuffSearchView) Name ¶
func (s BuffSearchView) Name() string
func (BuffSearchView) Quit ¶
func (s BuffSearchView) Quit()
func (BuffSearchView) ShowChildrenContent ¶
func (s BuffSearchView) ShowChildrenContent()
func (BuffSearchView) ShowParentContent ¶
func (s BuffSearchView) ShowParentContent()
func (BuffSearchView) Update ¶
func (s BuffSearchView) Update(inputTable *tview.Table)
type FileView ¶
type FileView struct { }
func (FileView) AddToPlaylist ¶
func (f FileView) AddToPlaylist()
func (FileView) DeleteSongFromPlaylist ¶
func (f FileView) DeleteSongFromPlaylist()
func (FileView) FocusBuffSearchView ¶
func (f FileView) FocusBuffSearchView()
func (FileView) ShowChildrenContent ¶
func (f FileView) ShowChildrenContent()
func (FileView) ShowParentContent ¶
func (f FileView) ShowParentContent()
type PlaylistView ¶
func (PlaylistView) AddToPlaylist ¶
func (p PlaylistView) AddToPlaylist()
func (*PlaylistView) DeleteSongFromPlaylist ¶
func (p *PlaylistView) DeleteSongFromPlaylist()
func (PlaylistView) FocusBuffSearchView ¶
func (p PlaylistView) FocusBuffSearchView()
func (PlaylistView) Name ¶
func (s PlaylistView) Name() string
func (PlaylistView) Quit ¶
func (p PlaylistView) Quit()
func (PlaylistView) ShowChildrenContent ¶
func (p PlaylistView) ShowChildrenContent()
func (PlaylistView) ShowParentContent ¶
func (s PlaylistView) ShowParentContent()
func (PlaylistView) Update ¶
func (p PlaylistView) Update(inputTable *tview.Table)
type ProgressBar ¶
type ProgressBar struct { *tview.Box BarTitle string BarText string BarTopTitle string // contains filtered or unexported fields }
ProgressBar is a two-lined Box. First line is the BarTitle Second being the actual progress done. Use SetProgressFunc to provide the callback which provides the Fields each time the ProgressBar will be Drawn. The progressFunc must return (BarTitle, BarTopTitle, BarText, percentage) respectively
func NewProgressBar ¶
func NewProgressBar() *ProgressBar
func (*ProgressBar) Draw ¶
func (self *ProgressBar) Draw(screen tcell.Screen)
func (*ProgressBar) SetProgressFunc ¶
func (self *ProgressBar) SetProgressFunc(pfunc func() (string, string, string, float64)) *ProgressBar
type SearchView ¶
type SearchView struct { }
func (SearchView) AddToPlaylist ¶
func (s SearchView) AddToPlaylist()
func (SearchView) DeleteSongFromPlaylist ¶
func (s SearchView) DeleteSongFromPlaylist()
func (SearchView) FocusBuffSearchView ¶
func (s SearchView) FocusBuffSearchView()
func (SearchView) Name ¶
func (s SearchView) Name() string
func (SearchView) Quit ¶
func (p SearchView) Quit()
func (SearchView) ShowChildrenContent ¶
func (s SearchView) ShowChildrenContent()
func (SearchView) ShowParentContent ¶
func (s SearchView) ShowParentContent()
func (SearchView) Update ¶
func (s SearchView) Update(inputTable *tview.Table)
Click to show internal directories.
Click to hide internal directories.