Sayonara Player
Public Member Functions | Protected Member Functions | Protected Slots | Protected Attributes | Private Member Functions | Private Attributes | List of all members
GUI_DirectoryWidget Class Reference

Public Member Functions

 GUI_DirectoryWidget (QWidget *parent=0)
 
QComboBox * get_libchooser ()
 
SayonaraDialogbox_into_dialog ()
 
bool is_dark () const
 Returns, if the current skin is dark. More...
 
void show_info ()
 Show the Info dialogs' info tab.
 
void show_lyrics ()
 Show the Info dialogs' lyrics tab.
 
void show_edit ()
 Show the tag editor.
 
void info_dialog_closed ()
 this function should not be called from outside. This function is triggered when the info dialog was closed.
 

Protected Member Functions

MetaDataList::Interpretation get_metadata_interpretation () const
 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 get_data_for_info_dialog () const
 get the metadata that should be used for the info dialog So for lists, the selected tracks are used here More...
 
QString elide_text (const QString &text, QWidget *widget, int max_lines)
 

Protected Slots

virtual void language_changed ()
 
virtual void skin_changed ()
 

Protected Attributes

SayonaraDialog_boxed_dialog =nullptr
 
Settings_settings =nullptr
 

Private Member Functions

void setupUi (QWidget *GUI_DirectoryWidget)
 
void retranslateUi (QWidget *GUI_DirectoryWidget)
 

Private Attributes

QGridLayout * gridLayout
 
DirectoryTreeViewtv_dirs
 
FileListViewlv_files
 
QHBoxLayout * horizontalLayout
 
QComboBox * combo_libchooser
 
QSpacerItem * horizontalSpacer
 
QHBoxLayout * horizontalLayout_2
 
QLineEdit * le_search
 
QPushButton * btn_search
 

Member Function Documentation

◆ get_data_for_info_dialog()

MetaDataList GUI_DirectoryWidget::get_data_for_info_dialog ( ) const
protectedvirtual

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

Returns
MetaDataList

Implements InfoDialogContainer.

◆ get_metadata_interpretation()

MetaDataList::Interpretation GUI_DirectoryWidget::get_metadata_interpretation ( ) const
protectedvirtual

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.

◆ is_dark()

bool SayonaraWidgetTemplate< QWidget >::is_dark ( ) const
inlineinherited

Returns, if the current skin is dark.

Returns
true, if dark. false else
Inheritance diagram for GUI_DirectoryWidget:
SayonaraWidget InfoDialogContainer Ui::GUI_DirectoryWidget SayonaraWidgetTemplate< QWidget > SayonaraClass