Sayonara Player
Loading...
Searching...
No Matches
src
Gui
History
GUI_History.h
1
/* GUI_History.h
2
*
3
* Copyright (C) 2011-2024 Michael Lugmair
4
*
5
* This file is part of sayonara player
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
#ifndef GUI_HISTORY_H
22
#define GUI_HISTORY_H
23
24
#include "Gui/Utils/Widgets/Dialog.h"
25
#include "Utils/Session/SessionUtils.h"
26
#include "Utils/Pimpl.h"
27
28
class
QFrame;
29
class
QDate;
30
31
UI_FWD(
GUI_History
)
32
33
namespace
Session
34
{
35
class
Manager;
36
}
37
38
class
LibraryPlaylistInteractor
;
39
class
GUI_History
:
40
public
Gui::Dialog
41
{
42
Q_OBJECT
43
PIMPL(
GUI_History
)
44
UI_CLASS_SHARED_PTR(
GUI_History
)
45
46
public
:
47
GUI_History
(
LibraryPlaylistInteractor
* libraryPlaylistInteractor,
48
Session::Manager
* sessionManager,
49
QWidget* parent =
nullptr
);
50
~GUI_History
()
override
;
51
52
[[nodiscard]] QFrame* header()
const
;
53
54
private
:
55
void
initShortcuts();
56
void
requestData(
int
index);
57
void
assureOneTable();
58
void
loadSelectedDateRange();
59
60
private
slots:
// NOLINT(readability-redundant-access-specifiers)
61
void
scrollToTop();
62
void
scrollToBottom();
63
void
loadMore();
64
void
dateRangeClicked();
65
void
clearRangeClicked();
66
void
calendarFinished();
67
void
clearAllHistoryClicked();
68
void
clearOldHistoryClicked();
69
70
protected
:
71
void
languageChanged()
override
;
72
};
73
74
#endif
// GUI_HISTORY_H
GUI_History
Definition
GUI_History.h:41
Gui::Dialog
Dialog with Settings connection. Also contains triggers for language_changed() and skin_changed()....
Definition
Dialog.h:37
LibraryPlaylistInteractor
Definition
LibraryPlaylistInteractor.h:34
Session::Manager
Definition
Session.h:37
Generated on Mon May 6 2024 00:00:00 for Sayonara Player by
1.9.7