blob: 4449ffccfec035f14c3200b2f4f212a6b1ea60fa (
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
|
#ifndef WEFFECTKNOBCOMPOSED_H
#define WEFFECTKNOBCOMPOSED_H
#include "widget/wknobcomposed.h"
#include "effects/effectparameterslot.h"
// This is used for effect parameter knobs with dynamic
// tooltips, if the knob value is displayed by rotating a
// single SVG image.
// For more complex transitions you may consider to use
// WEffectParameterKnob, which displays one of e.g. 64
// pixmaps
class WEffectParameterKnobComposed : public WKnobComposed {
Q_OBJECT
public:
WEffectParameterKnobComposed(QWidget* pParent, EffectsManager* pEffectsManager) :
WKnobComposed(pParent),
m_pEffectsManager(pEffectsManager) {
};
void setupEffectParameterSlot(const ConfigKey& configKey);
private slots:
void parameterUpdated();
private:
// Set the EffectParameterSlot that should be monitored by this
// WEffectKnobComposed.
void setEffectParameterSlot(EffectParameterSlotPointer pParameterSlot);
EffectsManager* m_pEffectsManager;
EffectParameterSlotBasePointer m_pEffectParameterSlot;
};
#endif // WEFFECTKNOBCOMPOSED_H
|