comparison layer/ImageLayer.h @ 316:c0b9eec70639

* Make XmlExportable::toXml the function that is universally overridden (and pure virtual) instead of toXmlString. Tidies up some classes, notably the model classes, significantly. Closes #1794561.
author Chris Cannam
date Thu, 18 Oct 2007 10:15:07 +0000
parents 6de6f78b13a1
children e9fe3923bdf4
comparison
equal deleted inserted replaced
315:c30a7cd29f4a 316:c0b9eec70639
87 virtual int getCompletion(View *) const { return m_model->getCompletion(); } 87 virtual int getCompletion(View *) const { return m_model->getCompletion(); }
88 88
89 virtual bool getValueExtents(float &min, float &max, 89 virtual bool getValueExtents(float &min, float &max,
90 bool &logarithmic, QString &unit) const; 90 bool &logarithmic, QString &unit) const;
91 91
92 virtual QString toXmlString(QString indent = "", 92 virtual void toXml(QTextStream &stream, QString indent = "",
93 QString extraAttributes = "") const; 93 QString extraAttributes = "") const;
94 94
95 virtual void setLayerDormant(const View *v, bool dormant); 95 virtual void setLayerDormant(const View *v, bool dormant);
96 96
97 void setProperties(const QXmlAttributes &attributes); 97 void setProperties(const QXmlAttributes &attributes);
98 98