SpectMorph
smmorphplancontrol.hh
1 // Licensed GNU LGPL v3 or later: http://www.gnu.org/licenses/lgpl.html
2 
3 #ifndef SPECTMORPH_MORPH_PLAN_CONTROL_HH
4 #define SPECTMORPH_MORPH_PLAN_CONTROL_HH
5 
6 #include "smmorphplan.hh"
7 #include "smled.hh"
8 
9 #include <QGroupBox>
10 #include <QLabel>
11 #include <QSlider>
12 
13 namespace SpectMorph
14 {
15 
16 class MorphPlanControl : public QFrame
17 {
18  Q_OBJECT
19 
20  MorphPlanPtr morph_plan;
21  QLabel *volume_value_label;
22  QSlider *volume_slider;
23  Led *midi_led;
24  QLabel *inst_status;
25 
26 public:
27  enum Features {
28  ALL_WIDGETS,
29  NO_VOLUME
30  };
31  MorphPlanControl (MorphPlanPtr plan, Features f = ALL_WIDGETS);
32 
33  void set_volume (double volume);
34  void set_led (bool on);
35 
36 signals:
37  void volume_changed (double volume);
38 
39 public slots:
40  void on_index_changed();
41  void on_volume_changed (int new_volume);
42 };
43 
44 }
45 
46 #endif
An LED widget.
Definition: smled.hh:50
Definition: smmorphplancontrol.hh:16
Definition: smalignedarray.cc:7