blob: fc9045e8e4a0a3e7ad654f71c89204f5d170a637 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
#ifndef DLGRECORDING_H
#define DLGRECORDING_H
#include "preferences/usersettings.h"
#include "library/browse/browsetablemodel.h"
#include "library/libraryview.h"
#include "library/proxytrackmodel.h"
#include "library/library.h"
#include "library/trackcollection.h"
#include "controllers/keyboard/keyboardeventfilter.h"
#include "recording/recordingmanager.h"
#include "track/track.h"
#include "library/recording/ui_dlgrecording.h"
class PlaylistTableModel;
class QSqlTableModel;
class WTrackTableView;
class DlgRecording : public QWidget, public Ui::DlgRecording, public virtual LibraryView {
Q_OBJECT
public:
DlgRecording(QWidget *parent, UserSettingsPointer pConfig,
Library* pLibrary,
RecordingManager* pRecManager, KeyboardEventFilter* pKeyboard);
~DlgRecording() override;
void onSearch(const QString& text) override;
void onShow() override;
bool hasFocus() const override;
void loadSelectedTrack() override;
void slotAddToAutoDJBottom() override;
void slotAddToAutoDJTop() override;
void slotAddToAutoDJReplace() override;
void loadSelectedTrackToGroup(QString group, bool play) override;
void moveSelection(int delta) override;
inline const QString currentSearch() { return m_proxyModel.currentSearch(); }
public slots:
void toggleRecording(bool toggle);
void slotRecordingEnabled(bool);
void slotBytesRecorded(int);
void refreshBrowseModel();
void slotRestoreSearch();
void slotDurationRecorded(QString durationRecorded);
signals:
void loadTrack(TrackPointer tio);
void loadTrackToPlayer(TrackPointer tio, QString group, bool play);
void restoreSearch(QString search);
private:
UserSettingsPointer m_pConfig;
WTrackTableView* m_pTrackTableView;
BrowseTableModel m_browseModel;
ProxyTrackModel m_proxyModel;
QString m_recordingDir;
void refreshLabel();
QString m_bytesRecordedStr;
QString m_durationRecordedStr;
RecordingManager* m_pRecordingManager;
};
#endif //DLGRECORDING_H
|