diff 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
line wrap: on
line diff
--- a/base/View.h	Mon Mar 13 17:55:19 2006 +0000
+++ b/base/View.h	Wed Mar 15 18:11:23 2006 +0000
@@ -43,12 +43,8 @@
 
 public:
     /**
-     * Deleting a View deletes all its views.  However, it is
-     * also acceptable for the views to be deleted by other code (in
-     * which case they will remove themselves from this View
-     * automatically), or to be removed explicitly without deleting
-     * using removeLayer.
-     **!!!!!!
+     * Deleting a View does not delete any of its layers.  They should
+     * be managed elsewhere (e.g. by the Document).
      */
     virtual ~View();
 
@@ -169,6 +165,13 @@
     virtual void setLightBackground(bool lb) { m_lightBackground = lb; }
     virtual bool hasLightBackground() const { return m_lightBackground; }
 
+    enum TextStyle {
+	BoxedText,
+	OutlinedText
+    };
+
+    virtual void drawVisibleText(int x, int y, QString text, TextStyle style);
+
     virtual bool shouldIlluminateLocalFeatures(const Layer *, QPoint &) const {
 	return false;
     }