Sayonara Player
Signals | Public Member Functions | Public Slots | Protected Types | Protected Member Functions | Protected Attributes | List of all members
GUI_ControlsBase Class Referenceabstract

Signals

void sig_shown ()
 
void sig_closed ()
 

Public Member Functions

 GUI_ControlsBase (QWidget *parent=nullptr)
 
virtual void init ()
 
virtual QLabel * lab_sayonara () const =0
 
virtual QLabel * lab_title () const =0
 
virtual QLabel * lab_version () const =0
 
virtual QLabel * lab_album () const =0
 
virtual QLabel * lab_artist () const =0
 
virtual QLabel * lab_writtenby () const =0
 
virtual QLabel * lab_bitrate () const =0
 
virtual QLabel * lab_filesize () const =0
 
virtual QLabel * lab_copyright () const =0
 
virtual QLabel * lab_current_time () const =0
 
virtual QLabel * lab_max_time () const =0
 
virtual RatingLabellab_rating () const
 
virtual QWidget * widget_details () const =0
 
virtual SearchSlidersli_progress () const =0
 
virtual SearchSlidersli_volume () const =0
 
virtual Gui::ProgressBarsli_buffer () const =0
 
virtual QPushButton * btn_mute () const =0
 
virtual QPushButton * btn_play () const =0
 
virtual QPushButton * btn_rec () const =0
 
virtual QPushButton * btn_bwd () const =0
 
virtual QPushButton * btn_fwd () const =0
 
virtual QPushButton * btn_stop () const =0
 
virtual CoverButtonbtn_cover () const =0
 
virtual void toggle_buffer_mode (bool buffering)=0
 
virtual bool is_resizable () const =0
 
void file_info_changed ()
 
void sr_active_changed ()
 
Dialog * box_into_dialog ()
 
void info_dialog_closed ()
 this function should not be called from outside. This function is triggered when the info dialog was closed.
 

Public Slots

void change_volume_by_tick (int val)
 

Protected Types

enum  EditTab {
  TabText,
  TabCover,
  TabTagsFromPath
}
 

Protected Member Functions

void resizeEvent (QResizeEvent *e) override
 
void showEvent (QShowEvent *e) override
 
void contextMenuEvent (QContextMenuEvent *e) override
 
void skin_changed () override
 
MD::Interpretation metadata_interpretation () 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 info_dialog_data () const override
 get the metadata that should be used for the info dialog So for lists, the selected tracks are used here More...
 
virtual void closeEvent (QCloseEvent *e)
 
virtual void language_changed ()
 
virtual void show_info ()
 Show the Info dialogs' info tab.
 
virtual void show_lyrics ()
 Show the Info dialogs' lyrics tab.
 
virtual void show_edit ()
 Show the tag editor.
 

Protected Attributes

Dialog * _boxed_dialog =nullptr
 
Settings_settings =nullptr
 

Member Function Documentation

◆ info_dialog_data()

MetaDataList GUI_ControlsBase::info_dialog_data ( ) 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.

◆ metadata_interpretation()

MD::Interpretation GUI_ControlsBase::metadata_interpretation ( ) 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.

Inheritance diagram for GUI_ControlsBase:
Gui::Widget ShortcutWidget InfoDialogContainer Gui::WidgetTemplate< QWidget > Gui::WidgetTemplateParent SayonaraClass GUI_Controls GUI_ControlsNew