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

kapatp at users.sourceforge.net kapatp at users.sourceforge.net
Sat Feb 24 09:53:33 UTC 2007


Revision: 1467
          http://svn.sourceforge.net/rkward/?rev=1467&view=rev
Author:   kapatp
Date:     2007-02-24 01:53:32 -0800 (Sat, 24 Feb 2007)

Log Message:
-----------
Added ghostscript support to Export (new)

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

Modified: trunk/rkward/rkward/plugins/x11device/export_new.php
===================================================================
--- trunk/rkward/rkward/plugins/x11device/export_new.php	2007-02-24 08:48:55 UTC (rev 1466)
+++ trunk/rkward/rkward/plugins/x11device/export_new.php	2007-02-24 09:53:32 UTC (rev 1467)
@@ -4,30 +4,37 @@
 
 function calculate () {
 	$type = getRK_val ("format");
-	$jpegpng = (($type == "jpeg") | ($type == "png"));
 	$file = getRK_val ("file");
 
-	// Does the filename end with .ps/.eps or .pdf or .png or .jpeg/.jpg?
-	// If not, add the appropriate extension.
-	if (getRK_val ("autoextension")) {
-		if ($type == "jpeg") {
-			if (!( ereg("\.jpeg$",$file)|ereg("\.jpg$",$file) )) $file .= ".jpg";
-		} elseif ($type == "postscript") {
-			if (!( ereg("\.ps$",$file)|ereg("\.eps$",$file) )) $file .= ".eps";
-		} else {
-			$ext = "." . $type;
-			if (!ereg($ext."$",$file)) $file .= $ext;
+	if ($type == "gs" ) {
+		$gstype = getRK_val ("gsformat");
+		if ($gstype == "other") $gstype = getRK_val ("gs_specifiedformat");
+	} else {
+		$jpegpng = (($type == "jpeg") | ($type == "png"));
+
+		// Does the filename end with .ps/.eps or .pdf or .png or .jpeg/.jpg?
+		// If not, add the appropriate extension.
+		if (getRK_val ("autoextension")) {
+			if ($type == "jpeg") {
+				if (!( ereg("\.jpeg$",$file)|ereg("\.jpg$",$file) )) $file .= ".jpg";
+			} elseif ($type == "postscript") {
+				if (!( ereg("\.ps$",$file)|ereg("\.eps$",$file) )) $file .= ".eps";
+			} else {
+				$ext = "." . $type;
+				if (!ereg($ext."$",$file)) $file .= $ext;
+			}
 		}
 	}
-
 	$options = "";
 
 	// set $resolution appropriately:
-	if ($jpegpng) {
+	if ($jpegpng || ($type == "gs")) {
 		$autores = getRK_val ("autores");
-		if ($autores) $resolution = 96;
-		else $resolution = getRK_val ("resolution");
-	} else $resolution = 1;
+		if ($autores) {
+			if ($jpegpng) $resolution = 96;
+			else  $resolution = 72;
+		}	else $resolution = getRK_val ("resolution");
+	}
 
 	$autoW = getRK_val ("autowidth");	$autoH = getRK_val ("autoheight");
 
@@ -44,7 +51,7 @@
 
 	// pointsize, resolution and quality parameters:
 	if (!getRK_val ("autopointsize")) $options .= ", pointsize=" . getRK_val ("pointsize");
-	if ($jpegpng && !$autores)	$options .= ", res=" . $resolution;
+	if (($jpegpng && !$autores)	|| ($type == "gs"))  $options .= ", res=" . $resolution;
 	if (($type == "jpeg") && (!getRK_val ("autoquality"))) $options .= ", quality=" . getRK_val ("quality");
 
 	// For ps/pdf: page, pagecentre, horizontal, family, encoding and title parameters:
@@ -63,8 +70,11 @@
 	}
 ?>
 dev.set (<? getRK ("devnum"); ?>)
-dev.print (device=<? echo ($type); ?>, file="<? echo ($file); ?>"<? echo ($options); ?>)
-<?
+<? if ($type == "gs") {?>
+dev2bitmap ("<? echo($file); ?>", type="<? echo ($gstype); ?>"<? echo ($options); ?>);
+<? } else {?>
+dev.print (device=<? echo ($type); ?>, file="<? echo ($file); ?>"<? echo ($options); ?>);
+<? }
 }
 
 function printout () {

Modified: trunk/rkward/rkward/plugins/x11device/export_new.rkh
===================================================================
--- trunk/rkward/rkward/plugins/x11device/export_new.rkh	2007-02-24 08:48:55 UTC (rev 1466)
+++ trunk/rkward/rkward/plugins/x11device/export_new.rkh	2007-02-24 09:53:32 UTC (rev 1467)
@@ -1,40 +1,43 @@
 <!DOCTYPE rkhelp>
 <document>
 	<summary>
-		Export the current contents of a graphics device to a postscript/pdf/png/jpeg file.
+		Export the current contents of a graphics device to a postscript/pdf/png/jpeg file either using the native functions or using ghostscript.
 	</summary>
 	<usage>
-		Chose an exporting function and a filename to save to. Additional options for size and resolution etc. are also available (see below). Exporting is done using <b>dev.print</b>. Most of the exporting parameters are directly sent to the exporting function (<b>postscript</b> or <b>pdf</b> or <b>png</b> or <b>jpeg</b>) by dev.print. Note that there are no 'color' options (like background or foreground color) in this plugin. This is because dev.print simply prints the current graphics (mostly on X11) to the spedified file in the chosen format. To set background (or foreground) colors, these will need to be provided when calling the plotting function, mostly using <b>par</b>().
+		Chose an exporting function and a filename to save to. Additional options for size and resolution etc. are also available (see below). Exporting is done using <b>dev.print</b>. For exporting using ghostscript, <b>dev2bitmap</b> is used, which needs Ghostscript. Most of the exporting parameters are directly sent to the exporting function (<b>postscript</b> or <b>pdf</b> or <b>png</b> or <b>jpeg</b>) by dev.print. Note that there are no 'color' options (like background or foreground color) in this plugin. This is because dev.print simply prints the current graphics (mostly on X11) to the spedified file in the chosen format. To set background (or foreground) colors, these will need to be provided when calling the plotting function, mostly using <b>par</b>(). Note that all the parameters to postscript are also valid parameters to dev2bitmap.
 
 		This plugin is only available in the context of a graphics device.
 	</usage>
 	<settings>
 		<caption id="tab_file_and_type"/>
-		<setting id="file">The filename to save to. By default the file will be saved in the directory from where RKWard was started, which is the user's home directory when started from K-menu. After checking for a proper file extension, this is the <i>file</i> parameter to dev.print.</setting>
-    <setting id="autoextension">Check this box to let RKWard detect the file extension automatically. If the filename specified in the 'File name' box already has a relevant extension, then nothing is done, that is, the specified filename is used. Otherwise a relevant extension is appended to the filename above to construct the full filename.</setting>
-		<setting id="format">Choose whether to use postscript or pdf or png or jpeg for exporting the file. This is the <i>device</i> parameter to dev.print.</setting>
+
+		<caption id="frame_dimensions"/>
+		<setting id="file">The filename to save to. By default the file will be saved in the directory from where RkWard was started, which is the user's home directory when started from K-menu. After checking for a proper file extension, this is the <i>file</i> parameter to dev.print. For exporting via ghostscript provide a suitable extension.</setting>
+    <setting id="autoextension">Check this box to let RKWard detect the file extension automatically. If the filename specified in the 'File name' box already has a relevant extension, then nothing is done, that is, the specified filename is used. Otherwise a relevant extension is appended to the filename above to construct the full filename. This option is disabled for export via ghostscript.</setting>
+		<setting id="format">Choose whether to use postscript or pdf or png or jpeg for exporting the file. This is the <i>device</i> parameter to dev.print. If 'via Ghostscript' is chosen then the output format of the ghostscript device will need to be provided (see below under 'Ghostscript specific options').</setting>
 		<setting id="autowidth">Check this box to let the export function determine the width automatically.</setting>
-<!--		<setting id="autowidth">Check this box to let the export function determine the width from the graphcis device. Uncheck this box to provide a width parameter to the exporting function. For JPEG/PNG formatting, the width is to be provided in pixels and at least one of width or height parameters has to be provided. For Postscript/PDF formatting, the width is provided in inches.
-
-			This determines the <i>width</i> parameter to the exporting function.</setting>-->
 		<setting id="autoheight">This is similar to 'Automatic Width', but for height.</setting>
-		<setting id="width">This is the <i>width</i> parameter to the exporting function. This is specified in inches. For JPEG/PNG exports (which require width in pixels), the actual width is evaluated by multiplying the width value provided in inches with the resolution (in dpi, 'dots per inch'). So, width_pixels = width_inches * resolution_dpi. If resolution is set to 'Default Resolution' (see below under JPEG/PNG), then a value of 96 is used as the default resolution for exporting to jpeg or png. Otherwise the provided resolution value is used. None of these matter for exporting to Postscript/PDF where the width parameter is provided in inches.
+		<setting id="width">This is the <i>width</i> parameter to the exporting function. This is specified in inches. For JPEG/PNG exports (which require width in pixels), the actual width is evaluated by multiplying the width value provided in inches with the resolution (in dpi, 'dots per inch'). So, width_pixels = width_inches * resolution_dpi. If resolution is set to 'Default Resolution', then a value of 96 is used as the default resolution for exporting to jpeg or png and a value of 72 is used for exporting via ghostscript. Otherwise the provided resolution value is used. None of these matter for exporting to Postscript/PDF where the width parameter is provided in inches.
 
 		<b>jpeg</b> or <b>png</b> functions need at least one of width/height to be provided. We override this restriction by reading in the width (in inches) from <b>par("din")[1]</b> and then setting 'par("din")[1] * resolution' as the width (in pixels) parameter value. Again, none of these are required for exporting to Postscript/PDF.</setting>
 		<setting id="height">This is the <i>height</i> parameter to the exporting function. Similar to 'Width'.</setting>
+
+		<caption id="frame_generic_options"/>
 		<setting id="pointsize">This is the <i>pointsize</i> parameter to dev.print.</setting>
+		<setting id="resolution">Available only for PNG/JPEG, this is the <i>res</i> parameter to dev.print. This value is used in converting from width/height in pixels to inches as described above (under 'Width'). The default resolution (when 'Default Resolution' is checked) is 96.</setting>
+		<setting id="quality">Available only for JPEG, this is the <i>quality</i> parameter to <b>jpeg</b>. Sets the quality for JPEG exporting. The default quality is 75.</setting>
 
-		<caption id="tab_pspdf_options"/>
+		<caption id="tab_more_options"/>
 		<setting id="paper">Use this to set the papersize for export. Choose 'Default' to not specify any paper option. Other options are explained in R reference for <b>postscript</b>. This is available only for Postscript/PDF exports. This is the <i>paper</i> option to the exporting function.</setting>
 		<setting id="pagecentre">Uncheck this for NOT centering the image on the page. This is the <i>pagecentre</i> parameter.</setting>
-		<setting id="ps_horiz">Available only for Postscript exporting, this is the <i>horizontal</i> parameter.</setting>
+		<setting id="ps_horiz">Available only for Postscript/Ghostscript exporting, this is the <i>horizontal</i> parameter.</setting>
 		<setting id="family">This is the <i>family</i> parameter to <b>postscript</b>. Be sure to chooe a family that is available on the machine. The 'URW' class of font families require ghostscript. When in doubt leave this as 'Default', the default family (Helvectica) will be used. See the R reference on postscript for more details.</setting>
 		<setting id="encoding">This is the <i>encoding</i> parameter to <b>postscript</b>. Be sure to chooe an encoding compatible with the chosen font family. When in doubt leave this as 'Default', the default encoding (ISOLatin1) will be used. See the R reference on postscript for more details.</setting>
 		<setting id="autotitle">Uncheck this box, to specify a custom title to the graphics file. Note that this is not displayed on the plot, but rather it is embeded inside the grpahics file. This is the <i>title</i> parameter to <b>postscript</b>.</setting>
 
-		<caption id="tab_pngjpeg_options"/>
-		<setting id="resolution">Available only for PNG/JPEG, this is the <i>res</i> parameter to dev.print. This value is used in converting from width/height in pixels to inches as described above (under 'Width'). The default resolution (when 'Default Resolution' is checked) is 96.</setting>
-		<setting id="quality">Available only for JPEG, this is the <i>quality</i> parameter to <b>jpeg</b>. Sets the quality for JPEG exporting. The default quality is 75.</setting>
+		<caption id="frame_gsoptions"/>
+		<setting id="gsformat">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="gs_specifiedformat">Select "Other" in the option above to use this setting. Specify the device identifier as used by ghostscript. Running "ghostscript --help" (or "gs --help") in a terminal should give a list of available devices.</setting>
 	</settings>
 	<related>
 		<ul>
@@ -44,6 +47,7 @@
 			<li><link href="rkward://rhelp/png"/></li>
 			<li><link href="rkward://rhelp/jpeg"/></li>
 			<li><link href="rkward://rhelp/par"/></li>
+			<li><link href="rkward://rhelp/dev2bitmap"/></li>
 		</ul>
 	</related>
 </document>

Modified: trunk/rkward/rkward/plugins/x11device/export_new.xml
===================================================================
--- trunk/rkward/rkward/plugins/x11device/export_new.xml	2007-02-24 08:48:55 UTC (rev 1466)
+++ trunk/rkward/rkward/plugins/x11device/export_new.xml	2007-02-24 09:53:32 UTC (rev 1467)
@@ -7,79 +7,69 @@
 
 		<convert id="isPS" mode="equals" sources="format.string" standard="postscript" />
 		<convert id="isPDF" mode="equals" sources="format.string" standard="pdf" />
-		<convert id="isPSPDF" mode="or" sources="isPS;isPDF" />
 		<convert id="isJPEG" mode="equals" sources="format.string" standard="jpeg" />
 		<convert id="isPNG" mode="equals" sources="format.string" standard="png" />
+		<convert id="isGS" mode="equals" sources="format.string" standard="gs" />
+		<convert id="isPSPDF" mode="or" sources="isPS;isPDF" />
 		<convert id="isJPEGPNG" mode="or" sources="isPNG;isJPEG" />
+		<convert id="isPSPDFGS" mode="or" sources="isPSPDF;isGS" />
+		<convert id="isJPEGPNGGS" mode="or" sources="isJPEGPNG;isGS" />
+		<convert id="isPSGS" mode="or" sources="isPS;isGS" />
+		<convert id="isnotGS" mode="or" sources="isPSPDF;isJPEGPNG" />
 
-		<connect client="tab_pngjpeg_options.enabled" governor="isJPEGPNG" />
-		<connect client="tab_pspdf_options.enabled" governor="isPSPDF" />
+		<connect client="autoextension.state" governor="isnotGS"/>
+		<connect client="autoextension.enabled" governor="isnotGS"/>
 
+		<connect client="tab_more_options.enabled" governor="isPSPDFGS" />
+
 		<connect client="autoquality.enabled" governor="isJPEG" />
-		<connect client="ps_horiz.enabled" governor="isPS"/>
+		<connect client="ps_horiz.enabled" governor="isPSGS"/>
 
 		<convert id="userwidth0" mode="equals" sources="autowidth.state" standard="0" />
 		<connect client="width.enabled" governor="userwidth0"/>
 
-		<!--		<convert id="userwidth_isJPEGPNG" mode="and" sources="userwidth0;isJPEGPNG" />
-		<connect client="width_px.enabled" governor="userwidth_isJPEGPNG"/>
-		<connect client="width_px.visible" governor="isJPEGPNG"/>
-
-		<convert id="userwidth_isPSPDF" mode="and" sources="userwidth0;isPSPDF" />
-		<connect client="width_in.enabled" governor="userwidth_isPSPDF"/>
-		<connect client="width_in.visible" governor="isPSPDF"/>-->
-
 		<convert id="userheight0" mode="equals" sources="autoheight.state" standard="0" />
 		<connect client="height.enabled" governor="userheight0"/>
 
-		<!--		<convert id="userheight_isJPEGPNG" mode="and" sources="userheight0;isJPEGPNG" />
-		<connect client="height_px.enabled" governor="userheight_isJPEGPNG"/>
-		<connect client="height_px.visible" governor="isJPEGPNG"/>
-
-		<convert id="userheight_isPSPDF" mode="and" sources="userheight0;isPSPDF" />
-		<connect client="height_in.enabled" governor="userheight_isPSPDF"/>
-		<connect client="height_in.visible" governor="isPSPDF"/>
-
-		<convert id="userwidth0ORheight0" mode="or" sources="userheight0;userwidth0"/>
-		<convert id="userwidth0ORheight0_isJPEGPNG" mode="and" sources="userwidth0ORheight0;isJPEGPNG"/>
-		<convert id="truestate" mode="or" sources="userwidth0ORheight0_isJPEGPNG;isPS;isPDF" require_true="true"/>
-		<convert id="wh_both1" mode="and" sources="autoheight.state;autowidth.state;isJPEGPNG" />
-		<convert id="wh_both_not1" sources="wh_both1" mode="notequals" standard="true"/>-->
-		<!--		<connect client="wh_txt_2.visible" governor="userwidth0ORheight0"/>-->
-		<!--		<connect client="wh_txt_1.visible" governor="wh_both1"/>
-		<connect client="wh_txt_2.visible" governor="wh_both_not1"/>-->
-
 		<convert id="userpointsize0" mode="equals" sources="autopointsize.state" standard="0" />
 		<connect client="pointsize.enabled" governor="userpointsize0"/>
 
 		<convert id="userres0" mode="equals" sources="autores.state" standard="0" />
-		<convert id="userres" mode="and" sources="userres0;isJPEGPNG" />
+		<convert id="userres" mode="and" sources="userres0;isJPEGPNGGS;autores.enabled" />
 		<connect client="resolution.enabled" governor="userres"/>
+		<connect client="autores.state" governor="isnotGS"/>
 
-		<!-- 		<convert id="userbg0" mode="equals" sources="autobg.state" standard="0" /> -->
-		<!-- 		<convert id="usertransparent0" mode="equals" sources="color_transparent.state" standard="0" /> -->
-		<!--		<convert id="userbg" mode="and" sources="userbg0;isJPEGPNG" />
-		<connect client="color_transparent.enabled" governor="userbg"/>
-		<convert id="userbgtransparent" mode="and" sources="userbg;usertransparent0" />-->
-		<!-- 		<connect client="bg.color_enabled" governor="usertransparent0"/> -->
-		<!-- 		<set id="bg.argument" to=", bg="/> -->
-		<!-- 		<set id="bg.default_color" to="white"/> -->
-
 		<convert id="userquality0" mode="equals" sources="autoquality.state" standard="0" />
 		<convert id="userquality" mode="and" sources="userquality0;autoquality.enabled" />
 		<connect client="quality.enabled" governor="userquality"/>
 
 		<convert id="usertitle0" mode="equals" sources="autotitle.state" standard="0" />
 		<connect client="title.enabled" governor="usertitle0"/>
+
+		<convert id="formatother" mode="equals" sources="gsformat.string" standard="other" />
+		<connect client="gs_specifiedformat.enabled" governor="formatother" />
+		<connect client="frame_gsoptions.enabled" governor="isGS" />
 	</logic>
 
 	<dialog label="Export contents of graphics device to png/jpeg format">
 		<tabbook>
-			<tab id="tab_file_and_type" label="Filename/Type">
+			<tab id="tab_file_and_type" label="Filename and Generic options">
 				<row>
 					<column>
-						<browser type="savefile" id="file" label="File name" initial="Rplot" filter="*.ps *.eps *.pdf *.png *.jpg *.jpeg"/>
+						<browser type="savefile" id="file" label="File name" initial="Rplot" filter="*.ps *.eps *.pdf *.png *.jpg *.jpeg *.bmp" />
 						<checkbox id="autoextension" value="1" value_unchecked="0" checked="true" label="Automatic File extension"/>
+						<frame id="frame_dimensions" label="Dimensions">
+							<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>
 					</column>
 					<column>
 						<radio id="format" label="Output format" >
@@ -87,39 +77,33 @@
 							<option value="pdf" label="PDF" />
 							<option value="png" label="PNG" />
 							<option value="jpeg" label="JPEG" />
+							<option value="gs" label="via Ghostscript" />
 						</radio>
 					</column>
 				</row>
 				<row>
-					<frame id="generic_options" label="Generic Export Options">
-						<!--						<text id="wh_txt_1">Either Width or Height has to be provided for PNG/JPEG export!!</text>
-						<text id="wh_txt_2">                                                               </text>-->
+					<frame id="frame_generic_options" label="Generic Export Options">
 						<row>
 							<column>
-								<checkbox id="autowidth" value="1" value_unchecked="0" checked="true" label="Automatic Width"/>
-								<!--								<spinbox id="width_px" label="Width in pixels" min="20" initial="480" default_precision="1"/>
-								<spinbox id="width_in" label="Width in inches" min="0" initial="6" default_precision="1"/>-->
-								<spinbox id="width" label="Width in inches" min="0" initial="6" default_precision="1"/>
+								<checkbox id="autopointsize" value="1" value_unchecked="0" checked="true" label="Default pointsize"/>
+								<spinbox id="pointsize" label="Point size" min="0" initial="12"  default_precision="1" />
 							</column>
 							<column>
-								<checkbox id="autoheight" value="1" value_unchecked="0" checked="true" label="Automatic Height"/>
-								<!--								<spinbox id="height_px" label="Height in pixels" min="20" initial="480" default_precision="1" />
-								<spinbox id="height_in" label="Height in inches" min="0" initial="6" default_precision="1" />-->
-								<spinbox id="height" label="Height in inches" min="0" initial="6" default_precision="1" />
+								<checkbox id="autores" value="1" value_unchecked="0" checked="true" label="Default Resolution"/>
+								<spinbox id="resolution" label="Resolution (dpi)" type="integer" min="0" initial="96" default_precision="1"/>
 							</column>
 							<column>
-								<checkbox id="autopointsize" value="1" value_unchecked="0" checked="true" label="Default pointsize"/>
-								<spinbox id="pointsize" label="Point size" min="0" initial="12"  default_precision="1" />
+								<checkbox id="autoquality" value="1" value_unchecked="0" checked="true" label="Default Quality"/>
+								<spinbox label="JPEG Quality" id="quality" min="0" max="100" initial="75" default_precision="1"/>
 							</column>
 						</row>
 					</frame>
 				</row>
-				<stretch/>
 			</tab>
 
-			<tab id="tab_pspdf_options" label="Postscript/PDF">
-				<row>
-					<column>
+			<tab id="tab_more_options" label="Postscript/PDF/Ghostscript Options">
+				<frame id="frame_paperprop" label="Paper properties">
+					<row>
 						<dropdown id="paper" label="Paper Size">
 							<option value="" label="Default" checked="true"/>
 							<option value="a4" label="A4"/>
@@ -128,14 +112,12 @@
 							<option value="executive" label="Executive"/>
 							<option value="special" label="Special"/>
 						</dropdown>
-					</column>
-					<column>
-						<frame>
+						<column>
 							<checkbox id="pagecentre" value="1" value_unchecked="0" checked="true" label="Pagecentre"/>
-							<checkbox id="ps_horiz" value="1" value_unchecked="0" checked="true" label="Horizontal (postscript only)"/>
-						</frame>
-					</column>
-				</row>
+							<checkbox id="ps_horiz" value="1" value_unchecked="0" checked="true" label="Horizontal (ps/gs)"/>
+						</column>
+					</row>
+				</frame>
 				<frame id="font_properties" label="Font properties">
 					<row>
 						<dropdown id="family" label="Font family">
@@ -183,20 +165,22 @@
 						</column>
 					</row>
 				</frame>
+				<frame id="frame_gsoptions" label="Ghostscript  specific options">
+					<row>
+						<dropdown id="gsformat" label="GS Output device" >
+							<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 here):" />
+						</dropdown>
+						<input label="Ghostscript device" id="gs_specifiedformat" initial="png16m" size="medium"/>
+					</row>
+				</frame>
 			</tab>
-
-			<tab id="tab_pngjpeg_options" label="PNG/JPEG">
-				<row>
-					<column>
-						<checkbox id="autores" value="1" value_unchecked="0" checked="true" label="Default Resolution"/>
-						<spinbox id="resolution" label="Resolution (dpi)" type="integer" min="0" initial="96" default_precision="1"/>
-					</column>
-					<column>
-						<checkbox id="autoquality" value="1" value_unchecked="0" checked="true" label="Default Quality"/>
-						<spinbox label="JPEG Quality" id="quality" min="0" max="100" initial="75" default_precision="1"/>
-					</column>
-				</row>
-			</tab>
 		</tabbook>
 	</dialog>
 </document>


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