blob: 1cb6e074f2682e550dd2812b8291e58170c39952 (
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
/***************************************************************************
dlgprefcontrols.h - description
-------------------
begin : Sat Jul 5 2003
copyright : (C) 2003 by Tue & Ken Haste Andersen
email : haste@diku.dk
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef DLGPREFCONTROLS_H
#define DLGPREFCONTROLS_H
#include <QWidget>
#include "ui_dlgprefcontrolsdlg.h"
#include "configobject.h"
#include "preferences/dlgpreferencepage.h"
class ControlObjectSlave;
class ControlObjectThread;
class ControlPotmeter;
class SkinLoader;
class PlayerManager;
class MixxxMainWindow;
class ControlObject;
/**
*@author Tue & Ken Haste Andersen
*/
class DlgPrefControls : public DlgPreferencePage, public Ui::DlgPrefControlsDlg {
Q_OBJECT
public:
DlgPrefControls(QWidget *parent, MixxxMainWindow *mixxx,
SkinLoader* pSkinLoader, PlayerManager* pPlayerManager,
ConfigObject<ConfigValue> *pConfig);
virtual ~DlgPrefControls();
public slots:
void slotUpdate();
void slotApply();
void slotResetToDefaults();
void slotSetRateRange(int pos);
void slotSetRateDir(int pos);
void slotKeylockMode(int pos);
void slotSetRateTempLeft(double);
void slotSetRateTempRight(double);
void slotSetRatePermLeft(double);
void slotSetRatePermRight(double);
void slotSetTooltips(int pos);
void slotSetSkin(int);
void slotSetScheme(int);
void slotUpdateSchemes();
void slotSetPositionDisplay(int);
void slotSetPositionDisplay(double);
void slotSetAllowTrackLoadToPlayingDeck(int);
void slotSetCueDefault(int);
void slotSetCueRecall(int);
void slotSetRateRamp(bool);
void slotSetRateRampSensitivity(int);
void slotSetLocale(int);
void slotSetStartInFullscreen(int index);
void slotNumDecksChanged(double);
void slotNumSamplersChanged(double);
void slotUpdateSpeedAutoReset(int);
private:
void notifyRebootNecessary();
bool checkSkinResolution(QString skin);
// Because the CueDefault list is out of order, we have to set the combo
// box using the user data, not the index. Returns the index of the item
// that has the corresponding userData. If the userdata is not in the list,
// returns zero.
int cueDefaultIndexByData(int userData) const;
ConfigObject<ConfigValue>* m_pConfig;
ControlObject* m_pControlPositionDisplay;
ControlObjectSlave* m_pNumDecks;
ControlObjectSlave* m_pNumSamplers;
QList<ControlObjectThread*> m_cueControls;
QList<ControlObjectThread*> m_rateControls;
QList<ControlObjectThread*> m_rateDirControls;
QList<ControlObjectThread*> m_rateRangeControls;
QList<ControlObjectThread*> m_keylockModeControls;
MixxxMainWindow *m_mixxx;
SkinLoader* m_pSkinLoader;
PlayerManager* m_pPlayerManager;
int m_iNumConfiguredDecks;
int m_iNumConfiguredSamplers;
int m_speedAutoReset;
int m_keylockMode;
};
#endif
|