Sayonara Player
InfoDialogContainer.h
1 #ifndef INFO_DIALOG_CONTAINER_H_
2 #define INFO_DIALOG_CONTAINER_H_
3 
4 #include "Helper/MetaData/MetaDataList.h"
5 
6 class GUI_InfoDialog;
7 
17 {
18  public:
20  virtual ~InfoDialogContainer();
21 
25  void show_info();
26 
30  void show_lyrics();
31 
35  void show_edit();
36 
41  void info_dialog_closed();
42 
43  private:
44  GUI_InfoDialog* _info_dialog=nullptr;
45 
46  private:
47  void check_info_dialog();
48  bool init_dialog();
49 
50  protected:
57  virtual MetaDataList::Interpretation get_metadata_interpretation() const=0;
58 
64  virtual MetaDataList get_data_for_info_dialog() const=0;
65 };
66 
67 #endif
The GUI_InfoDialog class.
Definition: GUI_InfoDialog.h:44
void show_lyrics()
Show the Info dialogs' lyrics tab.
An interface used to abstract the usage of the info dialog. An implementing class has to return the i...
Definition: InfoDialogContainer.h:16
virtual MetaDataList::Interpretation get_metadata_interpretation() const =0
get the interpretation for the metadata. Maybe a list of metadata should be intrepeted as albums whil...
virtual MetaDataList get_data_for_info_dialog() const =0
get the metadata that should be used for the info dialog So for lists, the selected tracks are used h...
Definition: MetaDataList.h:44
void show_edit()
Show the tag editor.
void show_info()
Show the Info dialogs' info tab.
void info_dialog_closed()
this function should not be called from outside. This function is triggered when the info dialog was ...