[rkward-cvs] SF.net SVN: rkward: [1284] trunk/rkward

tfry at users.sourceforge.net tfry at users.sourceforge.net
Thu Feb 1 22:22:24 UTC 2007


Revision: 1284
          http://svn.sourceforge.net/rkward/?rev=1284&view=rev
Author:   tfry
Date:     2007-02-01 14:22:24 -0800 (Thu, 01 Feb 2007)

Log Message:
-----------
Now that max_precision no longer limits the range of spinboxes, make it default to something higher (8)

Modified Paths:
--------------
    trunk/rkward/doc/en/writing_plugins_introduction.docbook
    trunk/rkward/rkward/plugin/rkpluginspinbox.cpp

Modified: trunk/rkward/doc/en/writing_plugins_introduction.docbook
===================================================================
--- trunk/rkward/doc/en/writing_plugins_introduction.docbook	2007-02-01 21:19:10 UTC (rev 1283)
+++ trunk/rkward/doc/en/writing_plugins_introduction.docbook	2007-02-01 22:22:24 UTC (rev 1284)
@@ -1455,7 +1455,7 @@
 	</varlistentry>
 	<varlistentry>
 	<term><max_precision></term>
-	<listitem>The maximum number of digits that can be meaningfully represented (optional, defaults to "6")</listitem>
+	<listitem>The maximum number of digits that can be meaningfully represented (optional, defaults to "8")</listitem>
 	</varlistentry>
 	</variablelist></listitem>
 </varlistentry>

Modified: trunk/rkward/rkward/plugin/rkpluginspinbox.cpp
===================================================================
--- trunk/rkward/rkward/plugin/rkpluginspinbox.cpp	2007-02-01 21:19:10 UTC (rev 1283)
+++ trunk/rkward/rkward/plugin/rkpluginspinbox.cpp	2007-02-01 22:22:24 UTC (rev 1284)
@@ -50,7 +50,7 @@
 		double max = xml->getDoubleAttribute (element, "max", FLT_MAX, DL_INFO);
 		double initial = xml->getDoubleAttribute (element, "initial", min, DL_INFO);
 		int default_precision = xml->getIntAttribute (element, "default_precision", 2, DL_INFO);
-		int max_precision = xml->getIntAttribute (element, "max_precision", 4, DL_INFO);
+		int max_precision = xml->getIntAttribute (element, "max_precision", 8, DL_INFO);
 
 		spinbox->setRealMode (min, max, initial, default_precision, max_precision);
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list