forked from mixxxdj/mixxx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdlganalysis.h
66 lines (58 loc) · 2.08 KB
/
dlganalysis.h
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
66
#ifndef DLGANALYSIS_H
#define DLGANALYSIS_H
#include <QItemSelection>
#include "ui_dlganalysis.h"
#include "configobject.h"
#include "library/libraryview.h"
#include "library/trackcollection.h"
#include "library/analysislibrarytablemodel.h"
class AnalysisLibraryTableModel;
class WAnalysisLibraryTableView;
class DlgAnalysis : public QWidget, public Ui::DlgAnalysis, public virtual LibraryView {
Q_OBJECT
public:
DlgAnalysis(QWidget *parent,
ConfigObject<ConfigValue>* pConfig,
TrackCollection* pTrackCollection);
virtual ~DlgAnalysis();
virtual void onSearch(const QString& text);
virtual void onShow();
virtual void loadSelectedTrack();
virtual void loadSelectedTrackToGroup(QString group, bool play);
virtual void slotSendToAutoDJ();
virtual void slotSendToAutoDJTop();
virtual void moveSelection(int delta);
inline const QString currentSearch() {
return m_pAnalysisLibraryTableModel->currentSearch();
}
int getNumTracks();
public slots:
void tableSelectionChanged(const QItemSelection& selected,
const QItemSelection& deselected);
void selectAll();
void analyze();
void trackAnalysisFinished(int size);
void trackAnalysisProgress(int progress);
void trackAnalysisStarted(int size);
void showRecentSongs();
void showAllSongs();
void installEventFilter(QObject* pFilter);
void analysisActive(bool bActive);
signals:
void loadTrack(TrackPointer pTrack);
void loadTrackToPlayer(TrackPointer pTrack, QString player);
void analyzeTracks(QList<int> trackIds);
void stopAnalysis();
void trackSelected(TrackPointer pTrack);
private:
//Note m_pTrackTablePlaceholder is defined in the .ui file
ConfigObject<ConfigValue>* m_pConfig;
TrackCollection* m_pTrackCollection;
bool m_bAnalysisActive;
QButtonGroup m_songsButtonGroup;
WAnalysisLibraryTableView* m_pAnalysisLibraryTableView;
AnalysisLibraryTableModel* m_pAnalysisLibraryTableModel;
int m_tracksInQueue;
int m_currentTrack;
};
#endif //DLGTRIAGE_H