Sayonara Player
HistoryTableView.h
1 #ifndef HISTORYTABLEVIEW_H
2 #define HISTORYTABLEVIEW_H
3 
4 #include <QTableView>
5 
6 #include "Utils/Pimpl.h"
7 #include "Utils/Session/SessionUtils.h"
8 
9 #include "Gui/Utils/Widgets/WidgetTemplate.h"
10 #include "Gui/Utils/Widgets/Dragable.h"
11 
12 namespace Session
13 {
14  class Manager;
15 }
16 
18  public Gui::WidgetTemplate<QTableView>,
19  public Gui::Dragable
20 {
21  Q_OBJECT
22  PIMPL(HistoryTableView)
23 
24  signals:
25  void sigRowcountChanged();
26 
27  public:
28  explicit HistoryTableView(Session::Manager* sessionManager, Session::Timecode timecode, QWidget* parent=nullptr);
29  ~HistoryTableView() override;
30 
31  int rows() const;
32 
33  private slots:
34  void rowcountChanged();
35 
36  protected:
37  void skinChanged() override;
38 
39  void resizeEvent(QResizeEvent* e) override;
40  void showEvent(QShowEvent* e) override;
41 };
42 
43 #endif // HISTORYTABLEVIEW_H
Gui::WidgetTemplate
Template for Sayonara Widgets. This template is responsible for holding a reference to the settings.
Definition: WidgetTemplate.h:87
Gui::Dragable
The Dragable class.
Definition: Dragable.h:61
HistoryTableView
Definition: HistoryTableView.h:20
Session::Manager
Definition: Session.h:37