Mercurial > hg > svapp
comparison framework/MainWindowBase.h @ 435:618d5816b04d cxx11
More type fixes
author | Chris Cannam |
---|---|
date | Tue, 10 Mar 2015 13:22:10 +0000 |
parents | 71b21d6e66be |
children | 72c662fe7ea3 |
comparison
equal
deleted
inserted
replaced
434:dee4aceb131c | 435:618d5816b04d |
---|---|
109 | 109 |
110 virtual bool saveSessionFile(QString path); | 110 virtual bool saveSessionFile(QString path); |
111 virtual bool saveSessionTemplate(QString path); | 111 virtual bool saveSessionTemplate(QString path); |
112 | 112 |
113 /// Implementation of FrameTimer interface method | 113 /// Implementation of FrameTimer interface method |
114 virtual int getFrame() const; | 114 virtual sv_frame_t getFrame() const; |
115 | 115 |
116 void setDefaultFfwdRwdStep(RealTime step) { | 116 void setDefaultFfwdRwdStep(RealTime step) { |
117 m_defaultFfwdRwdStep = step; | 117 m_defaultFfwdRwdStep = step; |
118 } | 118 } |
119 | 119 |
215 | 215 |
216 virtual void sampleRateMismatch(int, int, bool) = 0; | 216 virtual void sampleRateMismatch(int, int, bool) = 0; |
217 virtual void audioOverloadPluginDisabled() = 0; | 217 virtual void audioOverloadPluginDisabled() = 0; |
218 virtual void audioTimeStretchMultiChannelDisabled() = 0; | 218 virtual void audioTimeStretchMultiChannelDisabled() = 0; |
219 | 219 |
220 virtual void playbackFrameChanged(int); | 220 virtual void playbackFrameChanged(sv_frame_t); |
221 virtual void globalCentreFrameChanged(int); | 221 virtual void globalCentreFrameChanged(sv_frame_t); |
222 virtual void viewCentreFrameChanged(View *, int); | 222 virtual void viewCentreFrameChanged(View *, sv_frame_t); |
223 virtual void viewZoomLevelChanged(View *, int, bool); | 223 virtual void viewZoomLevelChanged(View *, int, bool); |
224 virtual void outputLevelsChanged(float, float) = 0; | 224 virtual void outputLevelsChanged(float, float) = 0; |
225 | 225 |
226 virtual void currentPaneChanged(Pane *); | 226 virtual void currentPaneChanged(Pane *); |
227 virtual void currentLayerChanged(Pane *, Layer *); | 227 virtual void currentLayerChanged(Pane *, Layer *); |
234 | 234 |
235 virtual void cut(); | 235 virtual void cut(); |
236 virtual void copy(); | 236 virtual void copy(); |
237 virtual void paste(); | 237 virtual void paste(); |
238 virtual void pasteAtPlaybackPosition(); | 238 virtual void pasteAtPlaybackPosition(); |
239 virtual void pasteRelative(int offset); | 239 virtual void pasteRelative(sv_frame_t offset); |
240 virtual void deleteSelected(); | 240 virtual void deleteSelected(); |
241 | 241 |
242 virtual void insertInstant(); | 242 virtual void insertInstant(); |
243 virtual void insertInstantAt(int); | 243 virtual void insertInstantAt(sv_frame_t); |
244 virtual void insertInstantsAtBoundaries(); | 244 virtual void insertInstantsAtBoundaries(); |
245 virtual void insertItemAtSelection(); | 245 virtual void insertItemAtSelection(); |
246 virtual void insertItemAt(int, int); | 246 virtual void insertItemAt(sv_frame_t, sv_frame_t); |
247 virtual void renumberInstants(); | 247 virtual void renumberInstants(); |
248 | 248 |
249 virtual void documentModified(); | 249 virtual void documentModified(); |
250 virtual void documentRestored(); | 250 virtual void documentRestored(); |
251 | 251 |
364 PaneCallback(MainWindowBase *mw) : m_mw(mw) { } | 364 PaneCallback(MainWindowBase *mw) : m_mw(mw) { } |
365 virtual Pane *addPane() { return m_mw->addPaneToStack(); } | 365 virtual Pane *addPane() { return m_mw->addPaneToStack(); } |
366 virtual void setWindowSize(int width, int height) { | 366 virtual void setWindowSize(int width, int height) { |
367 m_mw->resizeConstrained(QSize(width, height)); | 367 m_mw->resizeConstrained(QSize(width, height)); |
368 } | 368 } |
369 virtual void addSelection(int start, int end) { | 369 virtual void addSelection(sv_frame_t start, sv_frame_t end) { |
370 m_mw->m_viewManager->addSelectionQuietly(Selection(start, end)); | 370 m_mw->m_viewManager->addSelectionQuietly(Selection(start, end)); |
371 } | 371 } |
372 protected: | 372 protected: |
373 MainWindowBase *m_mw; | 373 MainWindowBase *m_mw; |
374 }; | 374 }; |