diff view/Pane.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 5d3a483856ff
children a859b87162ca
line wrap: on
line diff
--- a/view/Pane.h	Thu Aug 03 15:40:11 2006 +0000
+++ b/view/Pane.h	Fri Aug 04 17:01:37 2006 +0000
@@ -27,6 +27,7 @@
 class QWidget;
 class QPaintEvent;
 class Layer;
+class Thumbwheel;
 
 class Pane : public View
 {
@@ -54,9 +55,14 @@
 
 public slots:
     virtual void toolModeChanged();
+    virtual void zoomWheelsEnabledChanged();
+    virtual void zoomLevelChanged();
 
     virtual void horizontalThumbwheelMoved(int value);
     virtual void verticalThumbwheelMoved(int value);
+    virtual void verticalZoomChanged();
+
+    virtual void propertyContainerSelected(View *, PropertyContainer *pc);
 
 protected:
     virtual void paintEvent(QPaintEvent *e);
@@ -66,6 +72,7 @@
     virtual void mouseDoubleClickEvent(QMouseEvent *e);
     virtual void leaveEvent(QEvent *e);
     virtual void wheelEvent(QWheelEvent *e);
+    virtual void resizeEvent(QResizeEvent *e);
 
     Selection getSelectionAt(int x, bool &closeToLeft, bool &closeToRight) const;
 
@@ -74,6 +81,8 @@
     bool editSelectionEnd(QMouseEvent *e);
     bool selectionIsBeingEdited() const;
 
+    void updateHeadsUpDisplay();
+
     bool m_identifyFeatures;
     QPoint m_identifyPoint;
     QPoint m_clickPos;
@@ -88,6 +97,10 @@
     size_t m_selectionStartFrame;
     Selection m_editingSelection;
     int m_editingSelectionEdge;
+
+    QWidget *m_headsUpDisplay;
+    Thumbwheel *m_hthumb;
+    Thumbwheel *m_vthumb;
 };
 
 #endif