Sayonara Player
Friends | Public Member Functions | Protected Member Functions | List of all members
InfoDialogContainer Class Referenceabstract

#include <InfoDialogContainer.h>

Detailed Description

An interface used to abstract the usage of the info dialog. An implementing class has to return the interpretation of a MetaDataList and the MetaDataList itself. The implementing class may call the show functions to open the info dialog at its specific tab.

Friends

class GUI_InfoDialog
 

Public Member Functions

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

virtual MD::Interpretation metadata_interpretation () const =0
 get the interpretation for the metadata. Maybe a list of metadata should be intrepeted as albums while others should be considered as tracks More...
 
virtual MetaDataList info_dialog_data () const =0
 get the metadata that should be used for the info dialog So for lists, the selected tracks are used here More...
 

Member Function Documentation

◆ info_dialog_data()

virtual MetaDataList InfoDialogContainer::info_dialog_data ( ) const
protectedpure virtual

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

Returns
MetaDataList

Implemented in GUI_Controls, Library::ItemView, and GUI_DirectoryWidget.

◆ metadata_interpretation()

virtual MD::Interpretation InfoDialogContainer::metadata_interpretation ( ) const
protectedpure virtual

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

Implemented in GUI_Controls, Library::ItemView, and GUI_DirectoryWidget.

Inheritance diagram for InfoDialogContainer:
GUI_Controls GUI_DirectoryWidget Library::ItemView PlaylistView Library::CoverView Library::TableView Library::AlbumView Library::ArtistView Library::TrackView