summaryrefslogtreecommitdiffstats
path: root/src/widget/weffectchain.h
blob: a0c6ebde9992feed90ef89610a61cbafd0b7a9a8 (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 WEFFECTCHAIN_H
#define WEFFECTCHAIN_H

#include <QWidget>
#include <QLabel>
#include <QDomNode>

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

class EffectsManager;

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

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

  private slots:
    void chainUpdated();

  private:
    // Set the EffectChain that should be monitored by this WEffectChain
    void setEffectChainSlot(EffectChainSlotPointer pEffectChainSlot);

    EffectsManager* m_pEffectsManager;
    EffectChainSlotPointer m_pEffectChainSlot;
};

#endif /* WEFFECTCHAIN_H */