comparison view/ViewManager.h @ 133:9e6b3e239b9d

* Add zoom thumbwheels to Pane. Implement horizontal thumbwheel, and vertical depending on layer type (supported for waveform and spectrogram, though wrong for log-scale spectrogram at the moment). * Add bare bones of a spectrum layer. * Add window icon * Add shortcut for "insert time instant" on laptops without keypad enter (";") * Delete FFT processing thread when it exits (at least, next time we're asked for something interesting) * Get audio file extensions from the file readers, and thus from libsndfile for the wave file reader -- leads to rather a wide combo box in file dialog though * Better refresh order for spectrogram (redraw centre section first)
author Chris Cannam
date Fri, 04 Aug 2006 17:01:37 +0000
parents 33929e0c3c6b
children dbd34ff746c7
comparison
equal deleted inserted replaced
132:5d3a483856ff 133:9e6b3e239b9d
103 AllOverlays 103 AllOverlays
104 }; 104 };
105 void setOverlayMode(OverlayMode mode); 105 void setOverlayMode(OverlayMode mode);
106 OverlayMode getOverlayMode() const { return m_overlayMode; } 106 OverlayMode getOverlayMode() const { return m_overlayMode; }
107 107
108 void setZoomWheelsEnabled(bool enable);
109 bool getZoomWheelsEnabled() const { return m_zoomWheelsEnabled; }
110
108 signals: 111 signals:
109 /** Emitted when a widget pans. The originator identifies the widget. */ 112 /** Emitted when a widget pans. The originator identifies the widget. */
110 void centreFrameChanged(void *originator, unsigned long frame, bool locked); 113 void centreFrameChanged(void *originator, unsigned long frame, bool locked);
111 114
112 /** Emitted when a widget zooms. The originator identifies the widget. */ 115 /** Emitted when a widget zooms. The originator identifies the widget. */
113 void zoomLevelChanged(void *originator, unsigned long zoom, bool locked); 116 void zoomLevelChanged(void *originator, unsigned long zoom, bool locked);
117
118 /** Emitted when a widget zooms. */
119 void zoomLevelChanged();
114 120
115 /** Emitted when the playback frame changes. */ 121 /** Emitted when the playback frame changes. */
116 void playbackFrameChanged(unsigned long frame); 122 void playbackFrameChanged(unsigned long frame);
117 123
118 /** Emitted when the output levels change. Values in range 0.0 -> 1.0. */ 124 /** Emitted when the output levels change. Values in range 0.0 -> 1.0. */
133 /** Emitted when the play selection mode has been changed. */ 139 /** Emitted when the play selection mode has been changed. */
134 void playSelectionModeChanged(); 140 void playSelectionModeChanged();
135 141
136 /** Emitted when the overlay mode has been changed. */ 142 /** Emitted when the overlay mode has been changed. */
137 void overlayModeChanged(); 143 void overlayModeChanged();
144
145 /** Emitted when the zoom wheels have been toggled. */
146 void zoomWheelsEnabledChanged();
138 147
139 protected slots: 148 protected slots:
140 void checkPlayStatus(); 149 void checkPlayStatus();
141 void playStatusChanged(bool playing); 150 void playStatusChanged(bool playing);
142 void considerSeek(void *, unsigned long, bool); 151 void considerSeek(void *, unsigned long, bool);
180 MultiSelection m_oldSelection; 189 MultiSelection m_oldSelection;
181 MultiSelection m_newSelection; 190 MultiSelection m_newSelection;
182 }; 191 };
183 192
184 OverlayMode m_overlayMode; 193 OverlayMode m_overlayMode;
194 bool m_zoomWheelsEnabled;
185 }; 195 };
186 196
187 #endif 197 #endif
188 198