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 CoverDataReceiver Gui::WidgetTemplate< QWidget > Gui::WidgetTemplateParent GUI_Controls GUI_ControlsNew

Public Slots

void changeVolumeByDelta (int val)
 
void setCoverData (const QByteArray &coverData, const QString &mimeType) override
 

Signals

void sigShown ()
 
void sigClosed ()
 

Public Member Functions

 GUI_ControlsBase (PlayManager *playManager, CoverDataProvider *coverProvider, 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 bool isExternResizeAllowed () const =0
 
Dialog * boxIntoDialog ()
 

Protected Types

enum  EditTab {
  TabText ,
  TabCover ,
  TabTagsFromPath
}
 

Protected Member Functions

bool isActive () const override
 
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...
 
QWidget * getParentWidget () override
 
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

◆ getParentWidget()

QWidget * GUI_ControlsBase::getParentWidget ( )
overrideprotectedvirtual

Implements InfoDialogContainer.

◆ 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::TreeView, and Directory::FileListView.

◆ 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.

◆ isActive()

bool GUI_ControlsBase::isActive ( ) const
overrideprotectedvirtual

Implements CoverDataReceiver.

◆ 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::TreeView, and Directory::FileListView.

◆ showEvent()

void GUI_ControlsBase::showEvent ( QShowEvent *  e)
overrideprotectedvirtual

Reimplemented from Gui::Widget.

◆ skinChanged()

void GUI_ControlsBase::skinChanged ( )
overrideprotectedvirtual

Reimplemented from Gui::WidgetTemplateParent.