Sayonara Player
Public Slots | Signals | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
GUI_ControlsBase Class Referenceabstract
Inheritance diagram for GUI_ControlsBase:
Gui::Widget InfoDialogContainer Gui::WidgetTemplate< QWidget > Gui::WidgetTemplateParent GUI_Controls GUI_ControlsNew

Public Slots

void changeVolumeByDelta (int val)
 

Signals

void sigShown ()
 
void sigClosed ()
 

Public Member Functions

 GUI_ControlsBase (QWidget *parent=nullptr)
 
virtual void init ()
 
virtual QLabel * labSayonara () const =0
 
virtual QLabel * labTitle () const =0
 
virtual QLabel * labVersion () const =0
 
virtual QLabel * labAlbum () const =0
 
virtual QLabel * labArtist () const =0
 
virtual QLabel * labWrittenBy () const =0
 
virtual QLabel * labBitrate () const =0
 
virtual QLabel * labFilesize () const =0
 
virtual QLabel * labCopyright () const =0
 
virtual QLabel * labCurrentTime () const =0
 
virtual QLabel * labMaxTime () const =0
 
virtual Gui::RatingEditorlabRating () const
 
virtual QWidget * widgetDetails () const =0
 
virtual Gui::SearchSlidersliProgress () const =0
 
virtual Gui::SearchSlidersliVolume () const =0
 
virtual QPushButton * btnMute () const =0
 
virtual QPushButton * btnPlay () const =0
 
virtual QPushButton * btnRecord () const =0
 
virtual QPushButton * btnPrevious () const =0
 
virtual QPushButton * btnNext () const =0
 
virtual QPushButton * btnStop () const =0
 
virtual Gui::CoverButtonbtnCover () const =0
 
virtual QSize buttonSize () const final
 
virtual bool isExternResizeAllowed () const =0
 
Dialog * boxIntoDialog ()
 
void infoDialogClosed ()
 this function should not be called from outside. This function is triggered when the info dialog was closed.
 

Protected Types

enum  EditTab {
  TabText,
  TabCover,
  TabTagsFromPath
}
 

Protected Member Functions

MD::Interpretation metadataInterpretation () const override
 get the interpretation for the metadata. Maybe a list of metadata should be intrepeted as albums while others should be considered as tracks More...
 
MetaDataList infoDialogData () const override
 get the metadata that should be used for the info dialog So for lists, the selected tracks are used here More...
 
void resizeEvent (QResizeEvent *e) override
 
void showEvent (QShowEvent *e) override
 
void contextMenuEvent (QContextMenuEvent *e) override
 
void skinChanged () override
 
virtual void closeEvent (QCloseEvent *e) override
 
virtual void languageChanged ()
 
virtual bool hasMetadata () const
 returns, if the widget can provide metadata instantly If false, the info dialog will the pathlist More...
 
virtual QStringList pathlist () const
 Returns a list of paths. This is only used if has_metadata() returns false. More...
 
virtual void showInfo ()
 Show the Info dialogs' info tab.
 
virtual void showLyrics ()
 Show the Info dialogs' lyrics tab.
 
virtual void showEdit ()
 Show the tag editor.
 
virtual void showCoverEdit ()
 Show the cover tab withing the tag editor.
 

Protected Attributes

Dialog * mBoxedDialog =nullptr
 

Member Function Documentation

◆ hasMetadata()

virtual bool InfoDialogContainer::hasMetadata ( ) const
protectedvirtualinherited

returns, if the widget can provide metadata instantly If false, the info dialog will the pathlist

Returns
true in the basic implementation

Reimplemented in Directory::FileListView, and Directory::TreeView.

◆ infoDialogData()

MetaDataList GUI_ControlsBase::infoDialogData ( ) const
overrideprotectedvirtual

get the metadata that should be used for the info dialog So for lists, the selected tracks are used here

Returns
MetaDataList

Implements InfoDialogContainer.

◆ metadataInterpretation()

MD::Interpretation GUI_ControlsBase::metadataInterpretation ( ) const
overrideprotectedvirtual

get the interpretation for the metadata. Maybe a list of metadata should be intrepeted as albums while others should be considered as tracks

Returns
interpretation of metadata

Implements InfoDialogContainer.

◆ pathlist()

virtual QStringList InfoDialogContainer::pathlist ( ) const
protectedvirtualinherited

Returns a list of paths. This is only used if has_metadata() returns false.

Returns

Reimplemented in Directory::FileListView, and Directory::TreeView.