Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
270:61a704654497 | 271:1a49bd0d8375 |
---|---|
42 | 42 |
43 enum LabelHeight { LabelTop, LabelMiddle, LabelBottom }; | 43 enum LabelHeight { LabelTop, LabelMiddle, LabelBottom }; |
44 void setLabelHeight(LabelHeight h) { m_labelHeight = h; } | 44 void setLabelHeight(LabelHeight h) { m_labelHeight = h; } |
45 LabelHeight getLabelHeight() const { return m_labelHeight; } | 45 LabelHeight getLabelHeight() const { return m_labelHeight; } |
46 | 46 |
47 virtual bool snapToFeatureFrame(View *, int &, size_t &, SnapType) const; | |
48 | |
47 virtual PropertyList getProperties() const; | 49 virtual PropertyList getProperties() const; |
48 virtual QString getPropertyLabel(const PropertyName &) const; | 50 virtual QString getPropertyLabel(const PropertyName &) const; |
49 virtual PropertyType getPropertyType(const PropertyName &) const; | 51 virtual PropertyType getPropertyType(const PropertyName &) const; |
50 virtual int getPropertyRangeAndValue(const PropertyName &, | 52 virtual int getPropertyRangeAndValue(const PropertyName &, |
51 int *min, int *max, int *deflt) const; | 53 int *min, int *max, int *deflt) const; |
64 | 66 |
65 protected: | 67 protected: |
66 Model *m_model; | 68 Model *m_model; |
67 QColor m_colour; | 69 QColor m_colour; |
68 LabelHeight m_labelHeight; | 70 LabelHeight m_labelHeight; |
71 | |
72 int getMajorTickSpacing(View *, bool &quarterTicks) const; | |
69 }; | 73 }; |
70 | 74 |
71 #endif | 75 #endif |