comparison layer/TimeRulerLayer.h @ 918:4fe7a09be0fe osx-retina

Many fixes for the previous stuff
author Chris Cannam
date Tue, 17 Mar 2015 16:56:03 +0000
parents 94e4952a6774
children e3c7da3d896e
comparison
equal deleted inserted replaced
917:77a1d42353ce 918:4fe7a09be0fe
39 39
40 enum LabelHeight { LabelTop, LabelMiddle, LabelBottom }; 40 enum LabelHeight { LabelTop, LabelMiddle, LabelBottom };
41 void setLabelHeight(LabelHeight h) { m_labelHeight = h; } 41 void setLabelHeight(LabelHeight h) { m_labelHeight = h; }
42 LabelHeight getLabelHeight() const { return m_labelHeight; } 42 LabelHeight getLabelHeight() const { return m_labelHeight; }
43 43
44 virtual bool snapToFeatureFrame(View *, sv_frame_t &, int &, SnapType) const; 44 virtual bool snapToFeatureFrame(LayerGeometryProvider *, sv_frame_t &, int &, SnapType) const;
45 45
46 virtual ColourSignificance getLayerColourSignificance() const { 46 virtual ColourSignificance getLayerColourSignificance() const {
47 return ColourIrrelevant; 47 return ColourIrrelevant;
48 } 48 }
49 49
51 return false; 51 return false;
52 } 52 }
53 53
54 virtual QString getLayerPresentationName() const; 54 virtual QString getLayerPresentationName() const;
55 55
56 virtual int getVerticalScaleWidth(View *, bool, QPainter &) const { return 0; } 56 virtual int getVerticalScaleWidth(LayerGeometryProvider *, bool, QPainter &) const { return 0; }
57 57
58 virtual void toXml(QTextStream &stream, QString indent = "", 58 virtual void toXml(QTextStream &stream, QString indent = "",
59 QString extraAttributes = "") const; 59 QString extraAttributes = "") const;
60 60
61 void setProperties(const QXmlAttributes &attributes); 61 void setProperties(const QXmlAttributes &attributes);
64 Model *m_model; 64 Model *m_model;
65 LabelHeight m_labelHeight; 65 LabelHeight m_labelHeight;
66 66
67 virtual int getDefaultColourHint(bool dark, bool &impose); 67 virtual int getDefaultColourHint(bool dark, bool &impose);
68 68
69 int getMajorTickSpacing(View *, bool &quarterTicks) const; 69 int getMajorTickSpacing(LayerGeometryProvider *, bool &quarterTicks) const;
70 }; 70 };
71 71
72 #endif 72 #endif