summaryrefslogtreecommitdiffstats
path: root/src/widget/weffectparameter.h
blob: 272bdb0da0f0f8981c660afc1c2ac449e39e35d8 (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
#ifndef WEFFECTPARAMETER_H
#define WEFFECTPARAMETER_H

#include <QDomNode>

#include "widget/wlabel.h"
#include "effects/effectparameterslot.h"
#include "skin/skincontext.h"

class EffectsManager;

class WEffectParameter : public WLabel {
    Q_OBJECT
  public:
    WEffectParameter(QWidget* pParent, EffectsManager* pEffectsManager);
    virtual ~WEffectParameter();

    void setup(QDomNode node, const SkinContext& context);

  private slots:
    void parameterUpdated();

  private:
    // Set the EffectParameterSlot that should be monitored by this
    // WEffectParameter.
    void setEffectParameterSlot(EffectParameterSlotPointer pEffectParameterSlot);

    EffectsManager* m_pEffectsManager;
    EffectParameterSlotPointer m_pEffectParameterSlot;
};


#endif /* WEFFECTPARAMETER_H */