Sayonara Player
InfoDialogContainer.h
1 /* InfoDialogContainer.h */
2 
3 /* Copyright (C) 2011-2019 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/Pimpl.h"
25 
26 class GUI_InfoDialog;
27 
36 {
37  PIMPL(InfoDialogContainer)
38 
39  friend class GUI_InfoDialog;
40 
41  public:
43  virtual ~InfoDialogContainer();
44 
49  void info_dialog_closed();
50 
51  private:
52  void check_info_dialog();
53  bool init_dialog();
54 
55  protected:
56  enum EditTab
57  {
58  TabText,
59  TabCover,
60  TabTagsFromPath
61  };
62 
69  virtual MD::Interpretation metadata_interpretation() const=0;
70 
76  virtual MetaDataList info_dialog_data() const=0;
77 
78 
82  virtual void show_info();
83 
87  virtual void show_lyrics();
88 
92  virtual void show_edit();
93 };
94 
95 #endif
The GUI_InfoDialog class.
Definition: GUI_InfoDialog.h:46
An interface used to abstract the usage of the info dialog. An implementing class has to return the i...
Definition: InfoDialogContainer.h:35
The MetaDataList class.
Definition: MetaDataList.h:37
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&#39; info tab.
virtual void show_lyrics()
Show the Info dialogs&#39; lyrics tab.