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

tfry at users.sourceforge.net tfry at users.sourceforge.net
Wed May 23 08:51:05 UTC 2007


Revision: 1919
          http://svn.sourceforge.net/rkward/?rev=1919&view=rev
Author:   tfry
Date:     2007-05-23 01:51:04 -0700 (Wed, 23 May 2007)

Log Message:
-----------
Add options (max.print)

Modified Paths:
--------------
    trunk/rkward/ChangeLog
    trunk/rkward/TODO
    trunk/rkward/rkward/settings/rksettingsmoduler.cpp
    trunk/rkward/rkward/settings/rksettingsmoduler.h

Modified: trunk/rkward/ChangeLog
===================================================================
--- trunk/rkward/ChangeLog	2007-05-21 12:33:31 UTC (rev 1918)
+++ trunk/rkward/ChangeLog	2007-05-23 08:51:04 UTC (rev 1919)
@@ -1,3 +1,4 @@
+- add max.print option to R-Backend settings dialog
 - syntax highlighting is minimally faster for long outputs
 - graphics export plugin gains option for EPS compatibility
 - fixed: inserting / removing rows in the data editor in the presence of invalid fields in later rows would lead to a crash

Modified: trunk/rkward/TODO
===================================================================
--- trunk/rkward/TODO	2007-05-21 12:33:31 UTC (rev 1918)
+++ trunk/rkward/TODO	2007-05-23 08:51:04 UTC (rev 1919)
@@ -110,6 +110,8 @@
 		- show current wd in <browser>, somewhere
 	- Settings UI:
 		- see http://sourceforge.net/mailarchive/forum.php?thread_name=200703230304.43023.kapatp%40gmail.com&forum_name=rkward-devel
+		- R-Backend-Settings:
+			- the options should gain a "use default" checkbox to cope with changing R option defaults
 	- UI geometry:
 		- see https://sourceforge.net/mailarchive/forum.php?thread_name=200704181922.07780.michellang%40gmail.com&forum_name=rkward-devel
 		- save size/proportions of R script file, R console, Workspace browser...
@@ -207,6 +209,8 @@
 		- find a solution for "pending changes". Currently, if the user enters a value, manually, then presses submit, the old value will be used (the new value is only set, when the focus changes to another widget). Probably the RKSpinbox should emit signals for "pending" and "ready". The plugin spinbox should listen to those and not be satisfied as long as a change is pending. Maybe mark the spinbox in yellow, while a change is pending.
 		- options min_inclusive / max_inclusive for real number spinboxes (defaulting to true)
 	- use SVG device for graphics output
+	- X11->Export:
+		- provide SVG export option
 	- provide context menu / other UI to export to different formats / edit
 	- PHP-backend:
 		- switch to KProcIO for easier logic

Modified: trunk/rkward/rkward/settings/rksettingsmoduler.cpp
===================================================================
--- trunk/rkward/rkward/settings/rksettingsmoduler.cpp	2007-05-21 12:33:31 UTC (rev 1918)
+++ trunk/rkward/rkward/settings/rksettingsmoduler.cpp	2007-05-23 08:51:04 UTC (rev 1919)
@@ -2,7 +2,7 @@
                           rksettingsmoduler  -  description
                              -------------------
     begin                : Wed Jul 28 2004
-    copyright            : (C) 2004 by Thomas Friedrichsmeier
+    copyright            : (C) 2004, 2007 by Thomas Friedrichsmeier
     email                : tfry at users.sourceforge.net
  ***************************************************************************/
 
@@ -40,6 +40,7 @@
 int RKSettingsModuleR::options_width;
 int RKSettingsModuleR::options_warn;
 int RKSettingsModuleR::options_warningslength;
+int RKSettingsModuleR::options_maxprint;
 bool RKSettingsModuleR::options_keepsource;
 bool RKSettingsModuleR::options_keepsourcepkgs;
 int RKSettingsModuleR::options_expressions;
@@ -85,6 +86,12 @@
 	connect (width_input, SIGNAL (valueChanged (int)), this, SLOT (boxChanged (int)));
 	grid->addWidget (width_input, row, 1);
 
+	// options (max.print)
+	grid->addWidget (new QLabel (i18n ("Maximum number of elements shown in print"), this), ++row, 0);
+	maxprint_input = new KIntSpinBox (100, INT_MAX, 1, options_maxprint, 10, this);
+	connect (maxprint_input, SIGNAL (valueChanged (int)), this, SLOT (boxChanged (int)));
+	grid->addWidget (maxprint_input, row, 1);
+
 	// options (warnings.length)
 	grid->addWidget (new QLabel (i18n ("Maximum length of warnings/errors to print"), this), ++row, 0);
 	warningslength_input = new KIntSpinBox (100, 8192, 1, options_warningslength, 10, this);
@@ -174,6 +181,7 @@
 	options_width = width_input->value ();
 	options_warn = warn_input->currentItem () - 1;
 	options_warningslength = warningslength_input->value ();
+	options_maxprint = maxprint_input->value ();
 	options_keepsource = (keepsource_input->currentItem () == 0);
 	options_keepsourcepkgs = (keepsourcepkgs_input->currentItem () == 0);
 	options_expressions = expressions_input->value ();
@@ -196,6 +204,7 @@
 	list.append ("options (OutDec=\"" + options_outdec.left (1) + "\")\n");
 	list.append ("options (width=" + QString::number (options_width) + ")\n");
 	list.append ("options (warn=" + QString::number (options_warn) + ")\n");
+	list.append ("options (max.print=" + QString::number (options_maxprint) + ")\n");
 	list.append ("options (warnings.length=" + QString::number (options_warningslength) + ")\n");
 	if (options_keepsource) tf = "TRUE"; else tf = "FALSE";
 	list.append ("options (keep.source=" + tf + ")\n");
@@ -224,6 +233,7 @@
 	config->writeEntry ("OutDec", options_outdec);
 	config->writeEntry ("width", options_width);
 	config->writeEntry ("warn", options_warn);
+	config->writeEntry ("maxprint", options_maxprint);
 	config->writeEntry ("warnings.length", options_warningslength);
 	config->writeEntry ("keep.source", options_keepsource);
 	config->writeEntry ("keep.source.pkgs", options_keepsourcepkgs);
@@ -241,6 +251,7 @@
 	options_outdec = config->readEntry ("OutDec", ".");
 	options_width = config->readNumEntry ("width", 80);
 	options_warn = config->readNumEntry ("warn", 0);
+	options_maxprint = config->readNumEntry ("max.print", 99999);
 	options_warningslength = config->readNumEntry ("warnings.length", 1000);
 	options_keepsource = config->readBoolEntry ("keep.source", true);
 	options_keepsourcepkgs = config->readBoolEntry ("keep.source.pkgs", false);

Modified: trunk/rkward/rkward/settings/rksettingsmoduler.h
===================================================================
--- trunk/rkward/rkward/settings/rksettingsmoduler.h	2007-05-21 12:33:31 UTC (rev 1918)
+++ trunk/rkward/rkward/settings/rksettingsmoduler.h	2007-05-23 08:51:04 UTC (rev 1919)
@@ -2,7 +2,7 @@
                           rksettingsmoduler  -  description
                              -------------------
     begin                : Wed Jul 28 2004
-    copyright            : (C) 2004 by Thomas Friedrichsmeier
+    copyright            : (C) 2004, 2007 by Thomas Friedrichsmeier
     email                : tfry at users.sourceforge.net
  ***************************************************************************/
 
@@ -60,6 +60,7 @@
 	KIntSpinBox *width_input;
 	QComboBox *warn_input;
 	KIntSpinBox *warningslength_input;
+	KIntSpinBox *maxprint_input;
 	QComboBox *keepsource_input;
 	QComboBox *keepsourcepkgs_input;
 	KIntSpinBox *expressions_input;
@@ -71,6 +72,7 @@
 	static int options_width;
 	static int options_warn;
 	static int options_warningslength;
+	static int options_maxprint;
 	static bool options_keepsource;
 	static bool options_keepsourcepkgs;
 	static int options_expressions;


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