diff src/graphics.h.in @ 7176:6525eb2fba0f

[project @ 2007-11-14 20:42:06 by jwe]
author jwe
date Wed, 14 Nov 2007 20:42:07 +0000
parents f345eb60f941
children e8d953d03f6a
line wrap: on
line diff
--- a/src/graphics.h.in	Wed Nov 14 20:36:48 2007 +0000
+++ b/src/graphics.h.in	Wed Nov 14 20:42:07 2007 +0000
@@ -649,11 +649,11 @@
 class base_properties
 {
 public:
-  base_properties (const std::string& t = "unknown",
+  base_properties (const std::string& ty = "unknown",
 		   const graphics_handle& mh = graphics_handle (),
 		   const graphics_handle& p = graphics_handle ())
-    : type (t), __modified__ (true), __myhandle__ (mh), parent (p),
-      children () { }
+    : tag (), type (ty), __modified__ (true), __myhandle__ (mh),
+      parent (p), children () { }
 
   virtual ~base_properties (void) { }
 
@@ -670,6 +670,8 @@
 
   virtual void set (const property_name&, const octave_value&) { }
 
+  std::string get_tag (void) const { return tag; }
+
   graphics_handle get_parent (void) const { return parent; }
 
   void remove_child (const graphics_handle& h);
@@ -681,6 +683,8 @@
     children(n) = h.value ();
   }
 
+  void set_tag (const octave_value& val);
+
   void set_parent (const octave_value& val);
 
   void reparent (const graphics_handle& new_parent) { parent = new_parent; }
@@ -688,6 +692,7 @@
   virtual void delete_children (void);
 
 protected:
+  std::string tag;
   std::string type;
   bool __modified__;
   graphics_handle __myhandle__;