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
HistoryContainer::header
QFrame * header() const override
this is a frame at the top left of the container where the combo box will be located
HistoryContainer::icon
QIcon icon() const override
Every library should show a icon in the combo box.
HistoryContainer
Definition: HistoryContainer.h:14
HistoryContainer::initUi
void initUi() override
Should initialize the ui. The ui constructor should be called within this function.
HistoryContainer::displayName
QString displayName() const override
Should return the translated name displayed in the library view combobox.
Library::Container
Definition: LibraryContainer.h:40
HistoryContainer::widget
QWidget * widget() const override
Should return the UI for the library view.
HistoryContainer::name
QString name() const override
Should return an untranslated name used for identifying this widget.
Session::Manager
Definition: Session.h:37