[rkward-cvs] SF.net SVN: rkward: [1601] trunk/rkward/rkward/plugins/x11device

tfry at users.sourceforge.net tfry at users.sourceforge.net
Fri Mar 16 13:25:23 UTC 2007


Revision: 1601
          http://svn.sourceforge.net/rkward/?rev=1601&view=rev
Author:   tfry
Date:     2007-03-16 06:25:22 -0700 (Fri, 16 Mar 2007)

Log Message:
-----------
Prepare moving the new export plugin to be the standard

Modified Paths:
--------------
    trunk/rkward/rkward/plugins/x11device/export_new.xml

Removed Paths:
-------------
    trunk/rkward/rkward/plugins/x11device/export.php
    trunk/rkward/rkward/plugins/x11device/export.rkh
    trunk/rkward/rkward/plugins/x11device/export.xml

Deleted: trunk/rkward/rkward/plugins/x11device/export.php
===================================================================
--- trunk/rkward/rkward/plugins/x11device/export.php	2007-03-16 11:43:02 UTC (rev 1600)
+++ trunk/rkward/rkward/plugins/x11device/export.php	2007-03-16 13:25:22 UTC (rev 1601)
@@ -1,28 +0,0 @@
-<?php
-function preprocess () {
-}
-
-function calculate () {
-	$type = getRK_val ("format");
-	if ($type == "other") {
-		$type = getRK_val ("specifiedformat");
-	}
-
-	$options = "";
-	if (!getRK_val ("autowidth")) $options .= ", width=" . getRK_val ("width");
-	if (!getRK_val ("autoheight")) $options .= ", height=" . getRK_val ("height");
-	$options .= ", res=" . getRK_val ("resolution");
-	if (!getRK_val ("autopointsize")) $options .= ", pointsize=" . getRK_val ("pointsize");
-?>
-dev.set (<? getRK ("devnum"); ?>)
-dev2bitmap ("<? getRK ("file"); ?>", type="<? echo ($type); ?>"<? echo ($options); ?>)
-<?
-}
-
-function printout () {
-}
-
-function cleanup () {
-?><?
-}
-?>
\ No newline at end of file

Deleted: trunk/rkward/rkward/plugins/x11device/export.rkh
===================================================================
--- trunk/rkward/rkward/plugins/x11device/export.rkh	2007-03-16 11:43:02 UTC (rev 1600)
+++ trunk/rkward/rkward/plugins/x11device/export.rkh	2007-03-16 13:25:22 UTC (rev 1601)
@@ -1,29 +0,0 @@
-<!DOCTYPE rkhelp>
-<document>
-	<summary>
-		Export the current contents of a graphics device to a graphics file.
-	</summary>
-	<usage>
-		Chose a filename and filetype to save to. Additional options for size and resolution are available. Exporting is done using ghostscript. You need to have ghostscript installed for this to work.
-
-		This plugin is only available in the context of a graphics device.
-	</usage>
-	<settings>
-		<caption id="file_and_type"/>
-		<setting id="file">The filename to save to.</setting>
-		<setting id="format">File format to use. Only the most common ones are listed, but many more are supported by ghostscript. Select "Other" and see the option below to use these formats.</setting>
-		<setting id="specifiedformat">Select "Other" in the option above to use this setting. Specify the device identifier as used by ghostscript. Running "ghostscript --help" in a terminal should give a list of available devices.</setting>
-		<caption id="size_resolution"/>
-		<setting id="autowidth">Should the width be determined automatically? If yes, and height is specified, the width will be adjusted to keep the current aspect ratio as visible in the device. If yes, and height is also set to automatic, the current size of the device will be used.</setting>
-		<setting id="width">Width in inches. Uncheck the option above to use this.</setting>
-		<setting id="autoheight">See width options above.</setting>
-		<setting id="height">See width options above.</setting>
-		<setting id="resolution">Resolution in dpi (dots per inch). Only meaningful for bitmap file formats.</setting>
-	</settings>
-	<related>
-		<ul>
-			<li><link href="rkward://rhelp/dev2bitmap"/></li>
-		</ul>
-	</related>
-</document>
-

Deleted: trunk/rkward/rkward/plugins/x11device/export.xml
===================================================================
--- trunk/rkward/rkward/plugins/x11device/export.xml	2007-03-16 11:43:02 UTC (rev 1600)
+++ trunk/rkward/rkward/plugins/x11device/export.xml	2007-03-16 13:25:22 UTC (rev 1601)
@@ -1,61 +0,0 @@
-<!DOCTYPE rkplugin>
-<document>
-	<code file="export.php" />
-	<help file="export.rkh" />
-	<logic>
-		<external id="devnum"/>
-		
-		<convert id="formatother" mode="equals" sources="format.string" standard="other" />
-		<connect client="specifiedformat.enabled" governor="formatother" />
-
-		<convert id="userwidth" mode="equals" sources="autowidth.state" standard="0" />
-		<connect client="width.enabled" governor="userwidth"/>
-
-		<convert id="userheight" mode="equals" sources="autoheight.state" standard="0" />
-		<connect client="height.enabled" governor="userheight"/>
-
-		<convert id="userpointsize" mode="equals" sources="autopointsize.state" standard="0" />
-		<connect client="pointsize.enabled" governor="userpointsize"/>
-	</logic>
-	<dialog label="Export contents of graphics device">
-		<tabbook>
-			<tab id="file_and_type" label="Filename / Type">
-				<text>The export functionality uses ghostscript internally. You need to have ghostscript installed.</text>
-				<browser size="small" id="file" label="File name" initial="Rplot.pdf" />
-				<dropdown id="format" label="Output format" >
-					<option value="pdfwrite" label="PDF" />
-					<option value="pswrite" label="PostScript" />
-					<option value="pngmono" label="PNG (b/w)" />
-					<option value="pnggray" label="PNG (grayscale)" />
-					<option value="png256" label="PNG (256 colors)" />
-					<option value="png16m" label="PNG (16M colors)" />
-					<option value="jpeg" label="JPEG" />
-					<option value="other" label="Other (specify below):" />
-				</dropdown>
-				<input label="Ghostscript format id" id="specifiedformat" initial="png16m" size="medium"/>
-			</tab>
-			<tab id="size_resolution" label="Size / Resolution">
-				<frame id="width_height" label="Size">
-					<row>
-						<column>
-							<checkbox id="autowidth" value="1" value_unchecked="0" checked="true" label="Automatic Width"/>
-							<spinbox id="width" label="Width in inches" min="0" initial="6" default_precision="1"/>
-						</column>
-						<column>
-							<checkbox id="autoheight" value="1" value_unchecked="0" checked="true" label="Automatic Height"/>
-							<spinbox id="height" label="Height in inches" min="0" initial="6" default_precision="1" />
-						</column>
-					</row>
-				</frame>
-				<frame>
-					<checkbox id="autopointsize" value="1" value_unchecked="0" checked="true" label="Automatic Font size"/>
-					<spinbox id="pointsize" label="Point size" min="0" initial="12"  default_precision="1"/>
-				</frame>
-				<frame>
-					<text>Resolution is only meaningful for bitmap formats</text>
-					<spinbox id="resolution" label="Resolution (dpi)" min="0" initial="72" default_precision="1"/>
-				</frame>
-			</tab>
-		</tabbook>
-	</dialog>
-</document>

Modified: trunk/rkward/rkward/plugins/x11device/export_new.xml
===================================================================
--- trunk/rkward/rkward/plugins/x11device/export_new.xml	2007-03-16 11:43:02 UTC (rev 1600)
+++ trunk/rkward/rkward/plugins/x11device/export_new.xml	2007-03-16 13:25:22 UTC (rev 1601)
@@ -1,7 +1,7 @@
 <!DOCTYPE rkplugin>
 <document>
-	<code file="export_new.php" />
-	<help file="export_new.rkh" />
+	<code file="export.php" />
+	<help file="export.rkh" />
 	<logic>
 		<external id="devnum"/>
 


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