changeset 9778:2364eebcd644

new root figure properties
author John W. Eaton <jwe@octave.org>
date Tue, 03 Nov 2009 16:18:23 -0500
parents 6e6d8ea324bc
children 2941c1daf509
files src/ChangeLog src/graphics.h.in
diffstat 2 files changed, 29 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Tue Nov 03 15:34:40 2009 -0500
+++ b/src/ChangeLog	Tue Nov 03 16:18:23 2009 -0500
@@ -1,3 +1,9 @@
+2009-11-03  John W. Eaton  <jwe@octave.org>
+
+	* graphics.h.in (root_figure): Add commandwindowsize, diary,
+	diaryfile, echo, format, language, monitorpositions,
+	pointerlocation, pointerwindow, and recursionlimit properties.
+
 2009-11-03  David Grundberg  <davidg@cs.umu.se>
 
 	* graphics.h.in (root_figure): Add FormatSpacing property.
--- a/src/graphics.h.in	Tue Nov 03 15:34:40 2009 -0500
+++ b/src/graphics.h.in	Tue Nov 03 16:18:23 2009 -0500
@@ -2203,15 +2203,34 @@
     // See the genprops.awk script for an explanation of the
     // properties declarations.
 
+    // FIXME -- it seems strange to me that the diary, diaryfile,
+    // echo, format, formatspacing, language, and recursionlimit
+    // properties are here.  WTF do they have to do with graphics?
+    // Also note that these properties (and the monitorpositions,
+    // pointerlocation, and pointerwindow properties) are not yet used
+    // by Octave, so setting them will have no effect, and changes
+    // made elswhere (say, the diary or format functions) will not
+    // cause these properties to be updated.
+
     BEGIN_PROPERTIES (root_figure, root)
+      handle_property callbackobject Sr , graphics_handle ()
+      array_property commandwindowsize r , Matrix (1, 2, 0)
       handle_property currentfigure S , graphics_handle ()
-      handle_property callbackobject Sr , graphics_handle ()
+      bool_property diary , "off"
+      string_property diaryfile , "diary"
+      bool_property echo , "off"
+      radio_property format , "+|bank|bit|debug|hex|long|longe|longeng|longg|native-bit|native-hex|rational|{short}|shorte|shorteng|shortg"
+      radio_property formatspacing , "{loose}|compact"
+      string_property language , "ascii"
+      array_value monitorpositions , Matrix (1, 4, 0)
+      array_property pointerlocation , Matrix (1, 2, 0)
+      double_property pointerwindow , 0.0
+      double_property recursionlimit , 256.0
       double_property screendepth r , default_screendepth ()
+      double_property screenpixelsperinch r , default_screenpixelsperinch ()
       array_property screensize r , default_screensize ()
-      double_property screenpixelsperinch r , default_screenpixelsperinch ()
+      bool_property showhiddenhandles , "off"
       radio_property units U , "inches|centimeters|normalized|points|{pixels}"
-      radio_property formatspacing , "{loose}|compact"
-      bool_property showhiddenhandles , "off"
     END_PROPERTIES
 
   private: