diff layer/TimeRulerLayer.h @ 271:1a49bd0d8375

* 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 34bbbcb3c01f
children cd2492c5fe45
line wrap: on
line diff
--- a/layer/TimeRulerLayer.h	Tue Jun 26 14:57:29 2007 +0000
+++ b/layer/TimeRulerLayer.h	Thu Jun 28 14:50:58 2007 +0000
@@ -44,6 +44,8 @@
     void setLabelHeight(LabelHeight h) { m_labelHeight = h; }
     LabelHeight getLabelHeight() const { return m_labelHeight; }
 
+    virtual bool snapToFeatureFrame(View *, int &, size_t &, SnapType) const;
+
     virtual PropertyList getProperties() const;
     virtual QString getPropertyLabel(const PropertyName &) const;
     virtual PropertyType getPropertyType(const PropertyName &) const;
@@ -66,6 +68,8 @@
     Model *m_model;
     QColor m_colour;
     LabelHeight m_labelHeight;
+
+    int getMajorTickSpacing(View *, bool &quarterTicks) const;
 };
 
 #endif