comparison base/View.h @ 45:b11edc8b8ea0

* Restore proper channel selection support for new layers * Use binary mode for SV file I/O on Windows * Commands for selection
author Chris Cannam
date Wed, 15 Mar 2006 18:11:23 +0000
parents 701404725897
children 5364a9d338a2
comparison
equal deleted inserted replaced
44:701404725897 45:b11edc8b8ea0
41 { 41 {
42 Q_OBJECT 42 Q_OBJECT
43 43
44 public: 44 public:
45 /** 45 /**
46 * Deleting a View deletes all its views. However, it is 46 * Deleting a View does not delete any of its layers. They should
47 * also acceptable for the views to be deleted by other code (in 47 * be managed elsewhere (e.g. by the Document).
48 * which case they will remove themselves from this View
49 * automatically), or to be removed explicitly without deleting
50 * using removeLayer.
51 **!!!!!!
52 */ 48 */
53 virtual ~View(); 49 virtual ~View();
54 50
55 /** 51 /**
56 * Retrieve the first visible sample frame on the widget. 52 * Retrieve the first visible sample frame on the widget.
166 virtual void setFollowGlobalZoom(bool f); 162 virtual void setFollowGlobalZoom(bool f);
167 virtual bool getFollowGlobalZoom() const { return m_followZoom; } 163 virtual bool getFollowGlobalZoom() const { return m_followZoom; }
168 164
169 virtual void setLightBackground(bool lb) { m_lightBackground = lb; } 165 virtual void setLightBackground(bool lb) { m_lightBackground = lb; }
170 virtual bool hasLightBackground() const { return m_lightBackground; } 166 virtual bool hasLightBackground() const { return m_lightBackground; }
167
168 enum TextStyle {
169 BoxedText,
170 OutlinedText
171 };
172
173 virtual void drawVisibleText(int x, int y, QString text, TextStyle style);
171 174
172 virtual bool shouldIlluminateLocalFeatures(const Layer *, QPoint &) const { 175 virtual bool shouldIlluminateLocalFeatures(const Layer *, QPoint &) const {
173 return false; 176 return false;
174 } 177 }
175 virtual bool shouldIlluminateLocalSelection(QPoint &, bool &, bool &) const { 178 virtual bool shouldIlluminateLocalSelection(QPoint &, bool &, bool &) const {