summaryrefslogtreecommitdiffstats
path: root/src/preferences/dialog/dlgprefbeats.h
blob: 97bce343665edc23da778dc847adcafd7206a8e7 (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
//  Created on: 28/apr/2011
//      Author: vittorio


#ifndef DLGPREFBEATS_H
#define DLGPREFBEATS_H

#include <QWidget>
#include <QString>
#include <QList>

#include "analyzer/plugins/analyzerplugin.h"
#include "preferences/beatdetectionsettings.h"
#include "preferences/usersettings.h"
#include "preferences/dlgpreferencepage.h"
#include "preferences/dialog/ui_dlgprefbeatsdlg.h"

class DlgPrefBeats : public DlgPreferencePage, public Ui::DlgBeatsDlg {
    Q_OBJECT
  public:
    DlgPrefBeats(QWidget *parent, UserSettingsPointer _config);
    virtual ~DlgPrefBeats();

    QUrl helpUrl() const override;

  public slots:
    // Apply changes to widget
    void slotApply() override;
    void slotUpdate() override;
    void slotResetToDefaults() override;

  private slots:
    void pluginSelected(int i);
    void analyzerEnabled(int i);
    void fixedtempoEnabled(int i);
    void offsetEnabled(int i);
    void fastAnalysisEnabled(int i);
    void minBpmRangeChanged(int value);
    void maxBpmRangeChanged(int value);
    void slotReanalyzeChanged(int value);
    void slotReanalyzeImportedChanged(int value);

  private:
    void loadSettings();

    BeatDetectionSettings m_bpmSettings;
    QList<mixxx::AnalyzerPluginInfo> m_availablePlugins;
    QString m_selectedAnalyzerId;
    int m_minBpm;
    int m_maxBpm;
    bool m_banalyzerEnabled;
    bool m_bfixedtempoEnabled;
    bool m_boffsetEnabled;
    bool m_FastAnalysisEnabled;
    bool m_bReanalyze;
    bool m_bReanalyzeImported;
};

#endif // DLGPREFBEATS_H