From: toshinagata1964 Date: Thu, 13 Mar 2014 05:56:37 +0000 (+0000) Subject: Exporting ORTEP drawing to TIFF is supported X-Git-Tag: v1.0.2~177 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=efbb1a8332589fd136c1390c59914219840e621f;p=molby%2FMolby.git Exporting ORTEP drawing to TIFF is supported git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/molby/trunk@462 a2be9bc6-48de-4e38-9406-05402d4bc13c --- diff --git a/Scripts/crystal.rb b/Scripts/crystal.rb index ac6578f..2f977a2 100755 --- a/Scripts/crystal.rb +++ b/Scripts/crystal.rb @@ -1531,12 +1531,12 @@ def cmd_show_ortep on_export = lambda { |it| basename = (mol.path ? File.basename(mol.path, ".*") : mol.name) fname = Dialog.save_panel("Export ORTEP file:", mol.dir, basename + ".eps", - "Encapsulated PostScript (*.eps)|*.eps|PNG (*.png)|*.png|ORTEP Instruction (*.tep)|*.tep|All files|*.*") + "Encapsulated PostScript (*.eps)|*.eps|PNG (*.png)|*.png|TIFF (*.tif)|*.tif|ORTEP Instruction (*.tep)|*.tep|All files|*.*") return if !fname ext = File.extname(fname).downcase if ext == ".eps" on_export_eps.call(fname) - elsif ext == ".png" + elsif ext == ".png" || ext == ".tif" || ext == ".tiff" on_export_bitmap.call(fname) elsif ext == ".tep" filecopy("#{tmp}/TEP.IN", fname)