SpectMorph
smmorphplanview.hh
1 // Licensed GNU LGPL v3 or later: http://www.gnu.org/licenses/lgpl.html
2 
3 #ifndef SPECTMORPH_MORPH_PLAN_VIEW_HH
4 #define SPECTMORPH_MORPH_PLAN_VIEW_HH
5 
6 #include <QWidget>
7 #include <QVBoxLayout>
8 
9 #include "smmorphplan.hh"
10 #include "smmoveindicator.hh"
11 
12 namespace SpectMorph
13 {
14 
15 class MorphPlanWindow;
16 class MorphPlanView : public QWidget
17 {
18  Q_OBJECT
19 
20  MorphPlan *morph_plan;
21  MorphPlanWindow *morph_plan_window;
22 
23  QVBoxLayout *vbox;
24 
25  std::vector<MorphOperatorView *> m_op_views;
26  std::vector<MoveIndicator *> move_indicators;
27  std::vector<QWidget *> control_widgets;
28 
29  int old_structure_version;
30 public:
31  MorphPlanView (MorphPlan *morph_plan, MorphPlanWindow *morph_plan_window);
32 
33  const std::vector<MorphOperatorView *>& op_views();
34  void add_control_widget (QWidget *widget);
35 
36 public slots:
37  void on_plan_changed();
38  void on_move_indication (MorphOperator *op);
39 };
40 
41 }
42 
43 #endif
Definition: smmorphplanwindow.hh:25
Definition: smmorphplan.hh:14
Definition: smmorphoperator.hh:19
Definition: smmorphplanview.hh:16
Definition: smaudio.hh:15