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 "Utils/MetaData/MetaDataFwd.h"
25 #include "Utils/Pimpl.h"
26 
27 class GUI_InfoDialog;
28 
37 {
38  PIMPL(InfoDialogContainer)
39 
40  friend class GUI_InfoDialog;
41 
42  public:
44  virtual ~InfoDialogContainer();
45 
50  void info_dialog_closed();
51 
52  private:
53  void check_info_dialog();
54  bool init_dialog();
55 
56  protected:
57  enum EditTab
58  {
59  TabText,
60  TabCover,
61  TabTagsFromPath
62  };
63 
70  virtual MD::Interpretation metadata_interpretation() const=0;
71 
77  virtual MetaDataList info_dialog_data() const=0;
78 
79 
83  virtual void show_info();
84 
88  virtual void show_lyrics();
89 
93  virtual void show_edit();
94 };
95 
96 #endif
The GUI_InfoDialog class.
Definition: GUI_InfoDialog.h:47
An interface used to abstract the usage of the info dialog. An implementing class has to return the i...
Definition: InfoDialogContainer.h:36
The MetaDataList class.
Definition: MetaDataList.h:38
virtual MD::Interpretation metadata_interpretation() const =0
get the interpretation for the metadata. Maybe a list of metadata should be intrepeted as albums whil...
virtual void show_edit()
Show the tag editor.
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 h...
void info_dialog_closed()
this function should not be called from outside. This function is triggered when the info dialog was ...
virtual void show_info()
Show the Info dialogs' info tab.
virtual void show_lyrics()
Show the Info dialogs' lyrics tab.