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

Public Slots

void changeVolumeByDelta (int val)
 

Signals

void sigShown ()
 
void sigClosed ()
 

Public Member Functions

 GUI_ControlsNew (QWidget *parent=nullptr)
 
QLabel * labSayonara () const override
 
QLabel * labTitle () const override
 
QLabel * labVersion () const override
 
QLabel * labAlbum () const override
 
QLabel * labArtist () const override
 
QLabel * labWrittenBy () const override
 
QLabel * labBitrate () const override
 
QLabel * labFilesize () const override
 
QLabel * labCopyright () const override
 
QLabel * labCurrentTime () const override
 
QLabel * labMaxTime () const override
 
QWidget * widgetDetails () const override
 
Gui::RatingEditorlabRating () const override
 
Gui::SearchSlidersliProgress () const override
 
Gui::SearchSlidersliVolume () const override
 
QPushButton * btnMute () const override
 
QPushButton * btnPlay () const override
 
QPushButton * btnRecord () const override
 
QPushButton * btnPrevious () const override
 
QPushButton * btnNext () const override
 
QPushButton * btnStop () const override
 
Gui::CoverButtonbtnCover () const override
 
void ratingChangedHere (bool save)
 
bool isExternResizeAllowed () const override
 
virtual void init ()
 
virtual QSize buttonSize () const final
 
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

void languageChanged () 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...
 
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 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
overrideprotectedvirtualinherited

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
overrideprotectedvirtualinherited

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.