comparison layer/Layer.h @ 299:5c59c433b358

* Show colour swatch next to layer name in pane (if available) * Fix for incorrect layer name prefix handling (was making some layers appear to have the same model name in cases where the model names differed by the final character only)
author Chris Cannam
date Wed, 05 Sep 2007 15:17:15 +0000
parents cd2492c5fe45
children c0b9eec70639
comparison
equal deleted inserted replaced
298:226cb289bdf4 299:5c59c433b358
22 22
23 #include <QObject> 23 #include <QObject>
24 #include <QRect> 24 #include <QRect>
25 #include <QXmlAttributes> 25 #include <QXmlAttributes>
26 #include <QMutex> 26 #include <QMutex>
27 #include <QPixmap>
27 28
28 #include <map> 29 #include <map>
29 #include <set> 30 #include <set>
30 31
31 class ZoomConstraint; 32 class ZoomConstraint;
93 virtual QString getPropertyContainerName() const { 94 virtual QString getPropertyContainerName() const {
94 return objectName(); 95 return objectName();
95 } 96 }
96 97
97 virtual QString getLayerPresentationName() const; 98 virtual QString getLayerPresentationName() const;
99 virtual QPixmap getLayerPresentationPixmap(QSize) const { return QPixmap(); }
98 100
99 virtual int getVerticalScaleWidth(View *, QPainter &) const { return 0; } 101 virtual int getVerticalScaleWidth(View *, QPainter &) const { return 0; }
100 virtual void paintVerticalScale(View *, QPainter &, QRect) const { } 102 virtual void paintVerticalScale(View *, QPainter &, QRect) const { }
101 103
102 virtual bool getCrosshairExtents(View *, QPainter &, QPoint /* cursorPos */, 104 virtual bool getCrosshairExtents(View *, QPainter &, QPoint /* cursorPos */,