Sayonara Player
HistoryContainer.h
1 #ifndef HISTORYCONTAINER_H
2 #define HISTORYCONTAINER_H
3 
4 #include "Gui/Library/LibraryContainer.h"
5 #include "Utils/Pimpl.h"
6 
7 namespace Session
8 {
9  class Manager;
10 }
11 
13  public Library::Container
14 {
15  Q_OBJECT
16  PIMPL(HistoryContainer)
17 
18  public:
19  HistoryContainer(Session::Manager* sessionManager, QObject* parent = nullptr);
20  ~HistoryContainer() override;
21 
22  // Container interface
23  public:
24  QString name() const override;
25  QString displayName() const override;
26  QWidget* widget() const override;
27  QFrame* header() const override;
28  QIcon icon() const override;
29 
30  // ContainerImpl interface
31  protected:
32  void initUi() override;
33 };
34 
35 #endif // HISTORYCONTAINER_H
Definition: HistoryContainer.h:14
QString displayName() const override
Should return the translated name displayed in the library view combobox.
QString name() const override
Should return an untranslated name used for identifying this widget.
void initUi() override
Should initialize the ui. The ui constructor should be called within this function.
QIcon icon() const override
Every library should show a icon in the combo box.
QWidget * widget() const override
Should return the UI for the library view.
QFrame * header() const override
this is a frame at the top left of the container where the combo box will be located
Definition: LibraryContainer.h:40
Definition: Session.h:37