comparison layer/SingleColourLayer.h @ 919:a5488775f880 osx-retina

Pass proxy to layer for painting
author Chris Cannam
date Wed, 18 Mar 2015 13:52:07 +0000
parents 8b614632568c
children a34a2a25907c
comparison
equal deleted inserted replaced
918:4fe7a09be0fe 919:a5488775f880
69 virtual void toXml(QTextStream &stream, QString indent = "", 69 virtual void toXml(QTextStream &stream, QString indent = "",
70 QString extraAttributes = "") const; 70 QString extraAttributes = "") const;
71 71
72 virtual void setProperties(const QXmlAttributes &attributes); 72 virtual void setProperties(const QXmlAttributes &attributes);
73 73
74 virtual void setDefaultColourFor(View *v); 74 virtual void setDefaultColourFor(LayerGeometryProvider *v);
75 75
76 protected: 76 protected:
77 SingleColourLayer(); 77 SingleColourLayer();
78 virtual ~SingleColourLayer(); 78 virtual ~SingleColourLayer();
79 79
80 virtual QColor getBaseQColor() const; 80 virtual QColor getBaseQColor() const;
81 virtual QColor getBackgroundQColor(View *v) const; 81 virtual QColor getBackgroundQColor(LayerGeometryProvider *v) const;
82 virtual QColor getForegroundQColor(View *v) const; 82 virtual QColor getForegroundQColor(LayerGeometryProvider *v) const;
83 std::vector<QColor> getPartialShades(View *v) const; 83 std::vector<QColor> getPartialShades(LayerGeometryProvider *v) const;
84 84
85 virtual void flagBaseColourChanged() { } 85 virtual void flagBaseColourChanged() { }
86 virtual int getDefaultColourHint(bool /* darkBackground */, 86 virtual int getDefaultColourHint(bool /* darkBackground */,
87 bool & /* impose */) { return -1; } 87 bool & /* impose */) { return -1; }
88 88