comparison layer/Layer.h @ 363:6167a28d25fc sv1-v1.2pre3

* line up overview widget nicely with main pane (at least on first startup) * fix #1878396 renaming layer seems to have no visible effect * comment out some debug output
author Chris Cannam
date Wed, 06 Feb 2008 17:40:53 +0000
parents d58701996fae
children e1a9e478b7f2
comparison
equal deleted inserted replaced
362:a9dfa2d6d5ac 363:6167a28d25fc
90 } 90 }
91 91
92 virtual QString getPropertyContainerIconName() const; 92 virtual QString getPropertyContainerIconName() const;
93 93
94 virtual QString getPropertyContainerName() const { 94 virtual QString getPropertyContainerName() const {
95 return objectName(); 95 if (m_presentationName != "") return m_presentationName;
96 } 96 else return objectName();
97 }
98
99 virtual void setPresentationName(QString name);
97 100
98 virtual QString getLayerPresentationName() const; 101 virtual QString getLayerPresentationName() const;
99 virtual QPixmap getLayerPresentationPixmap(QSize) const { return QPixmap(); } 102 virtual QPixmap getLayerPresentationPixmap(QSize) const { return QPixmap(); }
100 103
101 virtual int getVerticalScaleWidth(View *, QPainter &) const { return 0; } 104 virtual int getVerticalScaleWidth(View *, QPainter &) const { return 0; }
543 MeasureRectSet::const_iterator findFocusedMeasureRect(QPoint) const; 546 MeasureRectSet::const_iterator findFocusedMeasureRect(QPoint) const;
544 547
545 void paintMeasurementRect(View *v, QPainter &paint, 548 void paintMeasurementRect(View *v, QPainter &paint,
546 const MeasureRect &r, bool focus) const; 549 const MeasureRect &r, bool focus) const;
547 550
551 QString m_presentationName;
552
548 private: 553 private:
549 mutable QMutex m_dormancyMutex; 554 mutable QMutex m_dormancyMutex;
550 mutable std::map<const void *, bool> m_dormancy; 555 mutable std::map<const void *, bool> m_dormancy;
551 }; 556 };
552 557