diff 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
line wrap: on
line diff
--- a/main/MainWindow.h	Tue Jun 26 12:27:47 2007 +0000
+++ b/main/MainWindow.h	Thu Jun 28 14:50:58 2007 +0000
@@ -109,6 +109,9 @@
     void canFfwd(bool);
     void canRewind(bool);
     void canPlaySelection(bool);
+    void canSpeedUpPlayback(bool);
+    void canSlowDownPlayback(bool);
+    void canChangePlaybackSpeed(bool);
     void canSave(bool);
 
 public slots:
@@ -167,6 +170,9 @@
     void playSpeedChanged(int);
     void playSharpenToggled();
     void playMonoToggled();
+    void speedUpPlayback();
+    void slowDownPlayback();
+    void restoreNormalPlayback();
     void sampleRateMismatch(size_t, size_t, bool);
     void audioOverloadPluginDisabled();
 
@@ -266,6 +272,7 @@
     QMenu                   *m_paneMenu;
     QMenu                   *m_layerMenu;
     QMenu                   *m_transformsMenu;
+    QMenu                   *m_playbackMenu;
     QMenu                   *m_existingLayersMenu;
     QMenu                   *m_sliceMenu;
     QMenu                   *m_recentFilesMenu;
@@ -273,6 +280,10 @@
     QMenu                   *m_rightButtonMenu;
     QMenu                   *m_rightButtonLayerMenu;
     QMenu                   *m_rightButtonTransformsMenu;
+    QMenu                   *m_rightButtonPlaybackMenu;
+
+    QAction                 *m_ffwdAction;
+    QAction                 *m_rwdAction;
 
     bool                     m_documentModified;
     bool                     m_openingAudioFile;
@@ -331,6 +342,8 @@
 
     void addPane(const PaneConfiguration &configuration, QString text);
 
+    Layer *getSnapLayer() const;
+
     class PaneCallback : public SVFileReaderPaneCallback
     {
     public: