1# This file is free software; the Free Software Foundation
2# gives unlimited permission to copy, distribute and modify it.
3
4# insert your options to start dune here
5
6#define(DUNEOPTIONS,` ')
7
8#the following line is a comment wit a example
9
10
11# insert the installpath for dune here
12
13
14# do not edit: m4 command to untouch ftr include commands
15
16# FTR File, only for IRIX 6.2
17
18TYPE X3d
19   LEGEND X3D XML File
20   SETVAR "DefaultExtension"      xml
21   MATCH glob("*.xml");
22
23TYPE VRML97
24   LEGEND VRML97 Data file for white_dune, cosmoplayer and other VRML tools
25   SETVAR "DefaultExtension"      wrl
26# match #VRML V2.0 [Uu][Tt][Ff]8[\n\r]
27   MATCH (string(0,11)=="#VRML V2.0 ") && ((uchar(11)==85)||(uchar(11)==117)) && ((uchar(12)==84)||(uchar(12)==116)) && ((uchar(13)==70)||(uchar(13)==102)) && uchar(14)==56 && ((uchar(15)==10)||(uchar(15)==13));
28   SUPERTYPE Vrml2.0 Vrml2.0File Vrml2.0DataFile X3d
29   CMD OPEN /usr/freeware/bin/dune $LEADER -xinput spaceball -allxyz=160,800,,0.00000002 -allrot=80,400,,0.00000002 $REST
30   CMD ALTOPEN $WINEDITOR $LEADER $REST
31   MENUCMD "Netscape/Cosmoplayer" netscape $LEADER
32   MENUCMD :458:"Edit" $WINEDITOR $LEADER $REST
33   MENUCMD "cosmoworlds" cosmoworlds $LEADER
34   MENUCMD "FreeWRL" freewrl $LEADER
35   MENUCMD "lookat" lookat $LEADER
36   MENUCMD "xj3d" xj3d $LEADER
37   MENUCMD "cover" cover $LEADER
38   MENUCMD "nostereodune" /usr/freeware/bin/nostereodune $LEADER -xinput spaceball -allxyz=160,800,,0.00000002 -allrot=80,400,,0.00000002 $REST
39   ICON  {
40             if (opened) {
41                 include("iconlib/Dunebackground.fti");
42                 include("iconlib/Dune.open.fti");
43             } else {
44                 include("iconlib/Dunebackground.fti");
45                 include("iconlib/Dune.fti");
46             }
47         }
48
49TYPE white_dune_vrml_editor
50   LEGEND white_dune executable (stereoscopic view enabled on a stereo visual) "dune -xinput spaceball -allxyz=160,800,,0.00000002 -allrot=80,400,,0.00000002"
51   MATCH tag==0x00ff1a00;
52   SUPERTYPE Executable
53   DROPIF VRML97 Vrml2.0 Vrml2.0File Vrml2.0DataFile X3d
54   CMD OPEN $LEADER -xinput spaceball -allxyz=160,800,,0.00000002 -allrot=80,400,,0.00000002 $REST
55   CMD DROP $TARGET -xinput spaceball -allxyz=160,800,,0.00000002 -allrot=80,400,,0.00000002 $SELECTED
56   ICON  {
57             if (opened) {
58                 include("iconlib/Dunebackground.fti");
59                 include("iconlib/Dune.open.fti");
60             } else {
61                 include("iconlib/Dunebackground.fti");
62                 include("iconlib/Dune.fti");
63             }
64         }
65
66TYPE white_dune_vrml_editor_no_stereo
67   LEGEND script to start white_dune with stereoscopic view disabled: "dune -xinput spaceball -allxyz=160,800,,0.00000002 -allrot=80,400,,0.00000002"
68   MATCH tag==0x00ff1a01;
69   SUPERTYPE Script
70   DROPIF VRML97 Vrml2.0 Vrml2.0File Vrml2.0DataFile
71   CMD OPEN $LEADER -nostereo -xinput spaceball -allxyz=160,800,,0.00000002 -allrot=80,400,,0.00000002 $REST
72   CMD DROP $TARGET -xinput spaceball -allxyz=160,800,,0.00000002 -allrot=80,400,,0.00000002 $SELECTED
73   ICON  {
74             if (opened) {
75                 include("iconlib/Dunebackground.fti");
76                 include("iconlib/nostereoDune.open.fti");
77             } else {
78                 include("iconlib/Dunebackground.fti");
79                 include("iconlib/nostereoDune.fti");
80             }
81         }
82
83TYPE fm_cosmo2vrml97
84   LEGEND script to convert cosmoworldsfiles to $HOME/.cosmo2vrml97 and open a filemanager
85   MATCH tag==0x00ff1a02;
86   SUPERTYPE Script
87   DROPIF CosmoWorlds1.0Data
88   CMD OPEN $LEADER $REST
89   CMD DROP $TARGET $SELECTED
90   ICON  {
91             if (opened) {
92                 include("iconlib/Dune.open.fti");
93                 include("/usr/lib/filetype/iconlib/generic.script.fti");
94                 include("/usr/lib/filetype/iconlib/generic.exec.open.fti");
95                 include("/usr/lib/filetype/install/iconlib/cosmoworlds.open.fti");
96             } else {
97                  include("/usr/lib/filetype/install/iconlib/cosmoworlds.closed.fti");
98                  include("/usr/lib/filetype/iconlib/generic.script.fti");
99                 include("iconlib/Dune.fti");
100             }
101         }
102
103# senseless, conversion only works for printing 8-(
104#
105#CONVERT CosmoWorlds1.0Data white_dune_vrml_editor
106## Cost per fileconvert(1): 300 (Noticable data loss)
107#        COST 300
108#	FILTER /usr/freeware/bin/cosmo2vrml97filter
109
110#CONVERT CosmoWorlds1.0Data white_dune_vrml_editor_no_stereo
111## Cost per fileconvert(1): 300 (Noticable data loss)
112#        COST 300
113#	FILTER /usr/freeware/bin/cosmo2vrml97filter
114
115
116