Sayonara Player
InfoDialogContainer.h
1 /* InfoDialogContainer.h */
2 
3 /* Copyright (C) 2011-2017 Lucio Carreras
4  *
5  * This file is part of sayonara player
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11 
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16 
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef INFO_DIALOG_CONTAINER_H_
22 #define INFO_DIALOG_CONTAINER_H_
23 
24 #include "Helper/MetaData/MetaDataFwd.h"
25 
26 class GUI_InfoDialog;
27 
36 {
37  public:
39  virtual ~InfoDialogContainer();
40 
44  void show_info();
45 
49  void show_lyrics();
50 
54  void show_edit();
55 
60  void info_dialog_closed();
61 
62  private:
63  GUI_InfoDialog* _info_dialog=nullptr;
64 
65  private:
66  void check_info_dialog();
67  bool init_dialog();
68 
69  protected:
76  virtual MD::Interpretation get_metadata_interpretation() const=0;
77 
83  virtual MetaDataList get_data_for_info_dialog() const=0;
84 };
85 
86 #endif
The GUI_InfoDialog class.
Definition: GUI_InfoDialog.h:41
void show_lyrics()
Show the Info dialogs&#39; lyrics tab.
An interface used to abstract the usage of the info dialog. An implementing class has to return the i...
Definition: InfoDialogContainer.h:35
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:39
void show_edit()
Show the tag editor.
void show_info()
Show the Info dialogs&#39; info tab.
void info_dialog_closed()
this function should not be called from outside. This function is triggered when the info dialog was ...
virtual MD::Interpretation get_metadata_interpretation() const =0
get the interpretation for the metadata. Maybe a list of metadata should be intrepeted as albums whil...