diff options
Diffstat (limited to '')
-rwxr-xr-x | src/others/mimesh/g3dviewer-0.2.99.4/thumbnailer/gen_schema.sh | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/src/others/mimesh/g3dviewer-0.2.99.4/thumbnailer/gen_schema.sh b/src/others/mimesh/g3dviewer-0.2.99.4/thumbnailer/gen_schema.sh new file mode 100755 index 0000000..9ef6c24 --- /dev/null +++ b/src/others/mimesh/g3dviewer-0.2.99.4/thumbnailer/gen_schema.sh | |||
@@ -0,0 +1,81 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # $Id: gen_schema.sh 59 2006-11-06 09:49:56Z mmmaddd $ | ||
4 | |||
5 | # G3DViewer - 3D object viewer | ||
6 | # | ||
7 | # Copyright (C) 2005, 2006 Markus Dahms <mad@automagically.de> | ||
8 | # | ||
9 | # This program is free software; you can redistribute it and/or modify | ||
10 | # it under the terms of the GNU General Public License as published by | ||
11 | # the Free Software Foundation; either version 2 of the License, or | ||
12 | # (at your option) any later version. | ||
13 | # | ||
14 | # This program is distributed in the hope that it will be useful, | ||
15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
17 | # GNU General Public License for more details. | ||
18 | # | ||
19 | # You should have received a copy of the GNU General Public License | ||
20 | # along with this program; if not, write to the Free Software | ||
21 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
22 | |||
23 | schemafile=g3d-thumbnailer.schema | ||
24 | |||
25 | > $schemafile | ||
26 | |||
27 | add_schema () { | ||
28 | cat >> $schemafile <<EOD | ||
29 | <schema> | ||
30 | <key>/schemas/desktop/gnome/thumbnailers/$1/enable</key> | ||
31 | <applyto>/desktop/gnome/thumbnailers/$1/enable</applyto> | ||
32 | <owner>g3dviewer</owner> | ||
33 | <type>bool</type> | ||
34 | <default>true</default> | ||
35 | <locale name="C"> | ||
36 | <short>Enable thumbnailing of $2 models</short> | ||
37 | <long>Boolean options available, true enables thumbnailing and false disables the creation of new thumbnails</long> | ||
38 | </locale> | ||
39 | </schema> | ||
40 | |||
41 | <schema> | ||
42 | <key>/schemas/desktop/gnome/thumbnailers/$1/command</key> | ||
43 | <applyto>/desktop/gnome/thumbnailers/$1/command</applyto> | ||
44 | <owner>g3dviewer</owner> | ||
45 | <type>string</type> | ||
46 | <default>g3d-thumbnailer %i %o %s</default> | ||
47 | <locale name="C"> | ||
48 | <short>Thumbnail command for $2 models</short> | ||
49 | <long>Valid command plus arguments for the $2 document thumbnailer. See nautilus thumbnailer documentation for more information.</long> | ||
50 | </locale> | ||
51 | </schema> | ||
52 | |||
53 | EOD | ||
54 | } | ||
55 | |||
56 | cat >> $schemafile <<EOD | ||
57 | <gconfschemafile> | ||
58 | <schemalist> | ||
59 | EOD | ||
60 | |||
61 | add_schema "image@x-3dmf" "3DMF" | ||
62 | add_schema "image@x-3ds" "3DS" | ||
63 | add_schema "image@x-ac3d" "AC3D" | ||
64 | add_schema "image@x-cob" "COB" | ||
65 | add_schema "image@x-dxf" "DXF" | ||
66 | add_schema "image@x-iob" "IOB" | ||
67 | add_schema "image@x-vdrift" "VDrift" | ||
68 | add_schema "image@x-lcd" "LCD" | ||
69 | add_schema "image@x-lwo" "LWO" | ||
70 | #add_schema "image@x-lws" "LWS" | ||
71 | add_schema "image@x-md2" "MD2" | ||
72 | add_schema "image@x-md3" "MD3" | ||
73 | add_schema "image@x-nff" "NFF" | ||
74 | add_schema "image@x-obj" "OBJ" | ||
75 | add_schema "image@x-q3d" "Q3D" | ||
76 | add_schema "image@x-vrml" "VRML" | ||
77 | |||
78 | cat >> $schemafile <<EOD | ||
79 | </schemalist> | ||
80 | </gconfschemafile> | ||
81 | EOD | ||