MixerPanel.hpp
1 #pragma once
2 #include <score/plugins/panel/PanelDelegate.hpp>
3 #include <score/plugins/panel/PanelDelegateFactory.hpp>
4 
5 namespace Dataflow
6 {
7 class PortItem;
8 }
9 namespace Mixer
10 {
11 class MixerPanel;
12 class PanelDelegate final : public score::PanelDelegate
13 {
14 public:
16 
17  QWidget* widget() override;
18 
19 private:
20  const score::PanelStatus& defaultPanelStatus() const override;
21 
22  void on_modelChanged(score::MaybeDocument oldm, score::MaybeDocument newm) override;
23 
24  QWidget* m_widget{};
25  MixerPanel* m_cur{};
26 };
27 
29 {
30  SCORE_CONCRETE("b7f7bf9f-3742-4c52-a6aa-41511a09e4a5")
31 
32  std::unique_ptr<score::PanelDelegate>
33  make(const score::GUIApplicationContext& ctx) override;
34 };
35 }
Definition: MixerPanel.cpp:290
Definition: MixerPanel.hpp:29
Definition: MixerPanel.hpp:13
QWidget * widget() override
widget The widget of the panel.
Definition: MixerPanel.cpp:523
Reimplement this interface to register new panels.
Definition: PanelDelegateFactory.hpp:10
The PanelDelegate class.
Definition: PanelDelegate.hpp:50
Definition: DocumentContext.hpp:18
Specializes ApplicationContext with the QMainWindow.
Definition: GUIApplicationContext.hpp:15
The PanelStatus struct.
Definition: PanelDelegate.hpp:24