Began implementing OSX app-bundle support.
[projects/chimara/chimara.git] / player / org.chimara-if.gschema.xml
index be81e951a12ef006c45048950dfe8fd1200b6c5d..83c521ef5c448166f50f235157f31c70f9d9388a 100644 (file)
@@ -1,10 +1,15 @@
 <schemalist>
-  <schema id="org.chimara-if.chimara-player" path="/">
-    
-    <!-- Keys and key names are subject to change without notice, until we have
-     a spec-->
-    <!-- "b" = boolean; see documentation of GVariantType -->
-    
+  <!-- Keys and key names are subject to change without notice, until we have
+  a spec-->
+  <!-- "b" = boolean; see documentation of GVariantType -->
+
+  <schema id="org.chimara-if.player" path="/org/chimara-if/player/">
+    <child name="preferences" schema="org.chimara-if.player.preferences"/>
+    <child name="state" schema="org.chimara-if.player.state"/>
+  </schema>
+
+  <schema id="org.chimara-if.player.preferences" path="/org/chimara-if/player/preferences/">
+
     <key name="flep" type="b"> 
       <default>false</default>
       <summary>Flepping</summary>
         Whether to flep or not while gronking a bloop.
       </description>
     </key>
-  
+
+    <key name="css-file" type="ms">
+      <default>nothing</default>
+      <summary>CSS style file</summary>
+      <description>
+        The CSS file containing the current theme for the text in the games.
+      </description>
+    </key>
+
+    <key name="resource-path" type="ms">
+      <default>nothing</default>
+      <summary>Resource path</summary>
+      <description>
+        Where to look for Blorb resource files containing graphics and sound;
+        normally, these are part of the story file itself, but they are provided
+        as separate files in some older games.
+      </description>
+    </key>
+
+    <key name="preferred-interpreters" type="a{ss}">
+      <default>{'z5': 'frotz',
+                'z6': 'nitfol',
+                'z8': 'frotz',
+                'zblorb': 'frotz',
+                'glulx': 'glulxe',
+                'gblorb': 'glulxe'}</default>
+      <summary>Preferred interpreters</summary>
+      <description>
+        Preferred interpreters for opening each format of story file.
+      </description>
+    </key>
+
+  </schema>
+
+  <schema id="org.chimara-if.player.state" path="/org/chimara-if/player/state/">
+
+    <key name="last-open-path" type="ms">
+      <default>nothing</default>
+      <summary>Last open path</summary>
+      <description>
+        The path in which a game was last opened. The next Open dialog will
+        start in this path.
+      </description>
+    </key>
+
+    <key name="show-toolbar-default" type="b">
+      <default>true</default>
+      <summary>Show toolbar by default</summary>
+      <description>
+        Whether to show or hide the toolbar by default in new game windows.
+      </description>
+    </key>
+
   </schema>
 </schemalist>
\ No newline at end of file