comparison framework/MainWindowBase.h @ 450:d9d132c0e240 alignment_view

Merge from default branch
author Chris Cannam
date Mon, 20 Apr 2015 09:21:32 +0100
parents a9141963b580 72c662fe7ea3
children 74d575708e06
comparison
equal deleted inserted replaced
430:adfb2948fabf 450:d9d132c0e240
112 112
113 virtual bool saveSessionFile(QString path); 113 virtual bool saveSessionFile(QString path);
114 virtual bool saveSessionTemplate(QString path); 114 virtual bool saveSessionTemplate(QString path);
115 115
116 /// Implementation of FrameTimer interface method 116 /// Implementation of FrameTimer interface method
117 virtual int getFrame() const; 117 virtual sv_frame_t getFrame() const;
118 118
119 void setDefaultFfwdRwdStep(RealTime step) { 119 void setDefaultFfwdRwdStep(RealTime step) {
120 m_defaultFfwdRwdStep = step; 120 m_defaultFfwdRwdStep = step;
121 } 121 }
122 122
214 214
215 virtual void playLoopToggled(); 215 virtual void playLoopToggled();
216 virtual void playSelectionToggled(); 216 virtual void playSelectionToggled();
217 virtual void playSoloToggled(); 217 virtual void playSoloToggled();
218 218
219 virtual void sampleRateMismatch(int, int, bool) = 0; 219 virtual void sampleRateMismatch(sv_samplerate_t, sv_samplerate_t, bool) = 0;
220 virtual void audioOverloadPluginDisabled() = 0; 220 virtual void audioOverloadPluginDisabled() = 0;
221 virtual void audioTimeStretchMultiChannelDisabled() = 0; 221 virtual void audioTimeStretchMultiChannelDisabled() = 0;
222 222
223 virtual void playbackFrameChanged(int); 223 virtual void playbackFrameChanged(sv_frame_t);
224 virtual void globalCentreFrameChanged(int); 224 virtual void globalCentreFrameChanged(sv_frame_t);
225 virtual void viewCentreFrameChanged(View *, int); 225 virtual void viewCentreFrameChanged(View *, sv_frame_t);
226 virtual void viewZoomLevelChanged(View *, int, bool); 226 virtual void viewZoomLevelChanged(View *, int, bool);
227 virtual void outputLevelsChanged(float, float) = 0; 227 virtual void outputLevelsChanged(float, float) = 0;
228 228
229 virtual void currentPaneChanged(Pane *); 229 virtual void currentPaneChanged(Pane *);
230 virtual void currentLayerChanged(Pane *, Layer *); 230 virtual void currentLayerChanged(Pane *, Layer *);
237 237
238 virtual void cut(); 238 virtual void cut();
239 virtual void copy(); 239 virtual void copy();
240 virtual void paste(); 240 virtual void paste();
241 virtual void pasteAtPlaybackPosition(); 241 virtual void pasteAtPlaybackPosition();
242 virtual void pasteRelative(int offset); 242 virtual void pasteRelative(sv_frame_t offset);
243 virtual void deleteSelected(); 243 virtual void deleteSelected();
244 244
245 virtual void insertInstant(); 245 virtual void insertInstant();
246 virtual void insertInstantAt(int); 246 virtual void insertInstantAt(sv_frame_t);
247 virtual void insertInstantsAtBoundaries(); 247 virtual void insertInstantsAtBoundaries();
248 virtual void insertItemAtSelection(); 248 virtual void insertItemAtSelection();
249 virtual void insertItemAt(int, int); 249 virtual void insertItemAt(sv_frame_t, sv_frame_t);
250 virtual void renumberInstants(); 250 virtual void renumberInstants();
251 251
252 virtual void documentModified(); 252 virtual void documentModified();
253 virtual void documentRestored(); 253 virtual void documentRestored();
254 254
369 PaneCallback(MainWindowBase *mw) : m_mw(mw) { } 369 PaneCallback(MainWindowBase *mw) : m_mw(mw) { }
370 virtual Pane *addPane() { return m_mw->addPaneToStack(); } 370 virtual Pane *addPane() { return m_mw->addPaneToStack(); }
371 virtual void setWindowSize(int width, int height) { 371 virtual void setWindowSize(int width, int height) {
372 m_mw->resizeConstrained(QSize(width, height)); 372 m_mw->resizeConstrained(QSize(width, height));
373 } 373 }
374 virtual void addSelection(int start, int end) { 374 virtual void addSelection(sv_frame_t start, sv_frame_t end) {
375 m_mw->m_viewManager->addSelectionQuietly(Selection(start, end)); 375 m_mw->m_viewManager->addSelectionQuietly(Selection(start, end));
376 } 376 }
377 protected: 377 protected:
378 MainWindowBase *m_mw; 378 MainWindowBase *m_mw;
379 }; 379 };