Mercurial > hg > sonic-visualiser
comparison main/MainWindow.h @ 155:7310316bf74b
* Change a number of keyboard shortcuts -- get rid of all the Alt+ shortcuts
and introduce a few more Ctrl+ ones instead, as well as a number of plain
single keypresses
* Add Playback menu
* Add time-ruler support for snap to feature, use it in ffwd/rewind
(rewind still needs fixing)
* restore layer hierarchy window prior to making it work correctly
author | Chris Cannam |
---|---|
date | Thu, 28 Jun 2007 14:50:58 +0000 |
parents | 152619d379e0 |
children | 9c9bce6440f5 |
comparison
equal
deleted
inserted
replaced
154:f6ce5febc07f | 155:7310316bf74b |
---|---|
107 void canScroll(bool); | 107 void canScroll(bool); |
108 void canPlay(bool); | 108 void canPlay(bool); |
109 void canFfwd(bool); | 109 void canFfwd(bool); |
110 void canRewind(bool); | 110 void canRewind(bool); |
111 void canPlaySelection(bool); | 111 void canPlaySelection(bool); |
112 void canSpeedUpPlayback(bool); | |
113 void canSlowDownPlayback(bool); | |
114 void canChangePlaybackSpeed(bool); | |
112 void canSave(bool); | 115 void canSave(bool); |
113 | 116 |
114 public slots: | 117 public slots: |
115 void preferenceChanged(PropertyContainer::PropertyName); | 118 void preferenceChanged(PropertyContainer::PropertyName); |
116 | 119 |
165 void playLoopToggled(); | 168 void playLoopToggled(); |
166 void playSelectionToggled(); | 169 void playSelectionToggled(); |
167 void playSpeedChanged(int); | 170 void playSpeedChanged(int); |
168 void playSharpenToggled(); | 171 void playSharpenToggled(); |
169 void playMonoToggled(); | 172 void playMonoToggled(); |
173 void speedUpPlayback(); | |
174 void slowDownPlayback(); | |
175 void restoreNormalPlayback(); | |
170 void sampleRateMismatch(size_t, size_t, bool); | 176 void sampleRateMismatch(size_t, size_t, bool); |
171 void audioOverloadPluginDisabled(); | 177 void audioOverloadPluginDisabled(); |
172 | 178 |
173 void playbackFrameChanged(unsigned long); | 179 void playbackFrameChanged(unsigned long); |
174 void globalCentreFrameChanged(unsigned long); | 180 void globalCentreFrameChanged(unsigned long); |
264 | 270 |
265 bool m_mainMenusCreated; | 271 bool m_mainMenusCreated; |
266 QMenu *m_paneMenu; | 272 QMenu *m_paneMenu; |
267 QMenu *m_layerMenu; | 273 QMenu *m_layerMenu; |
268 QMenu *m_transformsMenu; | 274 QMenu *m_transformsMenu; |
275 QMenu *m_playbackMenu; | |
269 QMenu *m_existingLayersMenu; | 276 QMenu *m_existingLayersMenu; |
270 QMenu *m_sliceMenu; | 277 QMenu *m_sliceMenu; |
271 QMenu *m_recentFilesMenu; | 278 QMenu *m_recentFilesMenu; |
272 QMenu *m_recentTransformsMenu; | 279 QMenu *m_recentTransformsMenu; |
273 QMenu *m_rightButtonMenu; | 280 QMenu *m_rightButtonMenu; |
274 QMenu *m_rightButtonLayerMenu; | 281 QMenu *m_rightButtonLayerMenu; |
275 QMenu *m_rightButtonTransformsMenu; | 282 QMenu *m_rightButtonTransformsMenu; |
283 QMenu *m_rightButtonPlaybackMenu; | |
284 | |
285 QAction *m_ffwdAction; | |
286 QAction *m_rwdAction; | |
276 | 287 |
277 bool m_documentModified; | 288 bool m_documentModified; |
278 bool m_openingAudioFile; | 289 bool m_openingAudioFile; |
279 bool m_abandoning; | 290 bool m_abandoning; |
280 | 291 |
328 void setupToolbars(); | 339 void setupToolbars(); |
329 | 340 |
330 Pane *addPaneToStack(); | 341 Pane *addPaneToStack(); |
331 | 342 |
332 void addPane(const PaneConfiguration &configuration, QString text); | 343 void addPane(const PaneConfiguration &configuration, QString text); |
344 | |
345 Layer *getSnapLayer() const; | |
333 | 346 |
334 class PaneCallback : public SVFileReaderPaneCallback | 347 class PaneCallback : public SVFileReaderPaneCallback |
335 { | 348 { |
336 public: | 349 public: |
337 PaneCallback(MainWindow *mw) : m_mw(mw) { } | 350 PaneCallback(MainWindow *mw) : m_mw(mw) { } |