comparison data/model/AggregateWaveModel.h @ 1732:87b4c596c0ef by-id

Experiment updating AggregateWaveModel
author Chris Cannam
date Fri, 21 Jun 2019 14:35:38 +0100
parents 78fe29adfd16
children 2e2497cba59e
comparison
equal deleted inserted replaced
1731:601851995f4b 1732:87b4c596c0ef
26 Q_OBJECT 26 Q_OBJECT
27 27
28 public: 28 public:
29 struct ModelChannelSpec 29 struct ModelChannelSpec
30 { 30 {
31 ModelChannelSpec(RangeSummarisableTimeValueModel *m, int c) : 31 ModelChannelSpec(ModelId m, int c) : model(m), channel(c) { }
32 model(m), channel(c) { } 32 ModelId model;
33 RangeSummarisableTimeValueModel *model;
34 int channel; 33 int channel;
35 }; 34 };
36 35
37 typedef std::vector<ModelChannelSpec> ChannelSpecList; 36 typedef std::vector<ModelChannelSpec> ChannelSpecList;
38 37
82 81
83 signals: 82 signals:
84 void modelChanged(); 83 void modelChanged();
85 void modelChangedWithin(sv_frame_t, sv_frame_t); 84 void modelChangedWithin(sv_frame_t, sv_frame_t);
86 void completionChanged(); 85 void completionChanged();
87 void modelInvalidated();
88 86
89 protected slots: 87 protected slots:
88 //!!! hm, these were never connected up anyway!
90 void componentModelChanged(); 89 void componentModelChanged();
91 void componentModelChangedWithin(sv_frame_t, sv_frame_t); 90 void componentModelChangedWithin(sv_frame_t, sv_frame_t);
92 void componentModelCompletionChanged(); 91 void componentModelCompletionChanged();
93 void componentModelAboutToBeDeleted();
94 92
95 protected: 93 protected:
96 ChannelSpecList m_components; 94 ChannelSpecList m_components;
97 static PowerOfSqrtTwoZoomConstraint m_zoomConstraint; 95 static PowerOfSqrtTwoZoomConstraint m_zoomConstraint;
98 bool m_invalidated; // because one of its component models is aboutToBeDeleted
99 }; 96 };
100 97
101 #endif 98 #endif
102 99