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
8class QFrame;
9class QDate;
10
11UI_FWD(GUI_History)
12
13namespace Session
14{
15 class Manager;
16}
17
19 public Gui::Dialog
20{
21 Q_OBJECT
22 PIMPL(GUI_History)
23 UI_CLASS(GUI_History)
24
25public:
26 explicit GUI_History(Session::Manager* sessionManager, QWidget* parent=nullptr);
27 ~GUI_History() override;
28
29 [[nodiscard]] QFrame* header() const;
30
31private:
32 void initShortcuts();
33 void requestData(int index);
34 void loadSelectedDateRange();
35
36private slots:
37 void scrollToTop();
38 void scrollToBottom();
39 void loadMore();
40 void dateRangeClicked();
41 void clearRangeClicked();
42 void calendarFinished();
43
44protected:
45 void languageChanged() override;
46};
47
48#endif // GUI_HISTORY_H
Definition: GUI_History.h:20
Dialog with Settings connection. Also contains triggers for language_changed() and skin_changed()....
Definition: Dialog.h:37
Definition: Session.h:37