changeset 10724:f0236b444356

Allow set(h) to work if the handle includes color properties
author David Bateman <dbateman@free.fr>
date Wed, 23 Jun 2010 11:44:21 +0200
parents e5a80597792b
children 3c59ce262c66
files src/ChangeLog src/graphics.h.in
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Wed Jun 23 11:37:22 2010 +0200
+++ b/src/ChangeLog	Wed Jun 23 11:44:21 2010 +0200
@@ -10,6 +10,8 @@
 	(void root_figure::reset_default_properties (void),
 	void figure::reset_default_properties (void),
 	void figure::reset_default_properties (void)): Declarations.
+	(std::string color_property::values_as_string (void) const,
+	Cell color_property::values_as_cell (void) const): New functions.
 
 2010-06-21  Rik <octave@nomad.inbox5.com>
 
--- a/src/graphics.h.in	Wed Jun 23 11:37:22 2010 +0200
+++ b/src/graphics.h.in	Wed Jun 23 11:44:21 2010 +0200
@@ -970,6 +970,10 @@
 
   base_property* clone (void) const { return new color_property (*this); }
 
+  std::string values_as_string (void) const { return radio_val.values_as_string (); }
+
+  Cell values_as_cell (void) const { return radio_val.values_as_cell (); }
+      
 protected:
   OCTINTERP_API bool do_set (const octave_value& newval);