Sayonara Player
GUI_History.h
1 #ifndef GUI_HISTORY_H
2 #define GUI_HISTORY_H
3 
4 #include "Gui/Utils/Widgets/Dialog.h"
5 #include "Utils/Session/SessionUtils.h"
6 #include "Utils/Pimpl.h"
7 
8 class QFrame;
9 class QDate;
10 
11 UI_FWD(GUI_History)
12 
13 class GUI_History :
14  public Gui::Dialog
15 {
16  Q_OBJECT
17  PIMPL(GUI_History)
18  UI_CLASS(GUI_History)
19 
20 public:
21  explicit GUI_History(QWidget* parent=nullptr);
22  ~GUI_History() override;
23 
24  [[nodiscard]] QFrame* header() const;
25 
26 private:
27  void initShortcuts();
28  void requestData(int index);
29  void loadSelectedDateRange();
30 
31 private slots:
32  void scrollToTop();
33  void scrollToBottom();
34  void loadMore();
35  void dateRangeClicked();
36  void clearRangeClicked();
37  void calendarFinished();
38 
39 protected:
40  void languageChanged() override;
41 };
42 
43 #endif // GUI_HISTORY_H
GUI_History
Definition: GUI_History.h:15