OSDN Git Service

Exporting ORTEP drawing to TIFF is supported
authortoshinagata1964 <toshinagata1964@a2be9bc6-48de-4e38-9406-05402d4bc13c>
Thu, 13 Mar 2014 05:56:37 +0000 (05:56 +0000)
committertoshinagata1964 <toshinagata1964@a2be9bc6-48de-4e38-9406-05402d4bc13c>
Thu, 13 Mar 2014 05:56:37 +0000 (05:56 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/molby/trunk@462 a2be9bc6-48de-4e38-9406-05402d4bc13c

Scripts/crystal.rb

index ac6578f..2f977a2 100755 (executable)
@@ -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)