[gnome-games] chess: Install GSetting schema
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] chess: Install GSetting schema
- Date: Mon, 21 Feb 2011 00:37:45 +0000 (UTC)
commit 7ca2245465419a94e860d5d5459eac1992dc60e7
Author: Robert Ancell <robert ancell canonical com>
Date: Mon Feb 21 11:37:29 2011 +1100
chess: Install GSetting schema
glchess/data/Makefile.am | 5 +
glchess/data/org.gnome.glchess.gschema.xml | 135 -------------------------
glchess/data/org.gnome.glchess.gschema.xml.in | 135 +++++++++++++++++++++++++
po/POTFILES.in | 2 +-
4 files changed, 141 insertions(+), 136 deletions(-)
---
diff --git a/glchess/data/Makefile.am b/glchess/data/Makefile.am
index 51a9169..86caf35 100644
--- a/glchess/data/Makefile.am
+++ b/glchess/data/Makefile.am
@@ -5,9 +5,14 @@ ui_DATA = \
glchess.ui \
preferences.ui
+gsettings_SCHEMAS = org.gnome.glchess.gschema.xml
+ INTLTOOL_XML_NOMERGE_RULE@
+ GSETTINGS_RULES@
+
man_MANS = glchess.6
EXTRA_DIST = engines.conf \
+ org.gnome.glchess.gschema.xml.in \
$(man_MANS) \
$(ui_DATA)
diff --git a/glchess/data/org.gnome.glchess.gschema.xml.in b/glchess/data/org.gnome.glchess.gschema.xml.in
new file mode 100644
index 0000000..c105b33
--- /dev/null
+++ b/glchess/data/org.gnome.glchess.gschema.xml.in
@@ -0,0 +1,135 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schemalist>
+ <enum id="org.gnome.glchess.PieceType">
+ <value value="0" nick="pawn"/>
+ <value value="1" nick="rook"/>
+ <value value="2" nick="knight"/>
+ <value value="3" nick="bishop"/>
+ <value value="4" nick="queen"/>
+ <value value="5" nick="king"/>
+ </enum>
+
+ <enum id="org.gnome.glchess.MoveFormat">
+ <value value="0" nick="human"/>
+ <value value="1" nick="san"/>
+ <value value="2" nick="fan"/>
+ <value value="3" nick="lan"/>
+ </enum>
+
+ <enum id="org.gnome.glchess.BoardSide">
+ <value value="0" nick="white"/>
+ <value value="1" nick="black"/>
+ <value value="2" nick="human"/>
+ <value value="3" nick="current"/>
+ <value value="4" nick="facetoface"/>
+ </enum>
+
+ <enum id="org.gnome.glchess.Difficulty">
+ <value value="0" nick="easy"/>
+ <value value="1" nick="normal"/>
+ <value value="2" nick="hard"/>
+ </enum>
+
+ <schema id="org.gnome.glchess.Settings" path="/apps/glchess/" gettext-domain="gnome-games">
+ <key name="width" type="i">
+ <default>500</default>
+ <_summary>The width of the window</_summary>
+ <_description>The width of the main window in pixels.</_description>
+ </key>
+ <key name="height" type="i">
+ <default>550</default>
+ <_summary>The height of the window</_summary>
+ <_description>The height of the main window in pixels.</_description>
+ </key>
+ <key name="maximised" type="b">
+ <default>false</default>
+ <_summary>A flag to enable maximised mode</_summary>
+ <_description>A flag to enable maximised mode</_description>
+ </key>
+ <key name="fullscreen" type="b">
+ <default>false</default>
+ <_summary>A flag to enable fullscreen mode</_summary>
+ <_description>A flag to enable fullscreen mode</_description>
+ </key>
+ <key name="promotion-type" enum="org.gnome.glchess.PieceType">
+ <default>'queen'</default>
+ <_summary>The piece to promote pawns to</_summary>
+ <_description>The piece to promote to when a human player moves a pawn to the far rank</_description>
+ </key>
+ <key name="show-3d" type="b">
+ <default>false</default>
+ <_summary>A flag to enable 3D mode</_summary>
+ <_description>A flag to enable 3D mode</_description>
+ </key>
+ <key name="show-3d-smooth" type="b">
+ <default>false</default>
+ <_summary>A flag to smooth (anti-alias) the 3D display</_summary>
+ <_description>A flag to smooth (anti-alias) the 3D display</_description>
+ </key>
+ <key name="piece-theme" type="s">
+ <default>'simple'</default>
+ <_summary>The piece theme to use</_summary>
+ <_description>The piece theme to use</_description>
+ </key>
+ <key name="show-move-hints" type="b">
+ <default>true</default>
+ <_summary>A flag to enable move hints</_summary>
+ <_description>A flag to enable move hints</_description>
+ </key>
+ <key name="show-numbering" type="b">
+ <default>false</default>
+ <_summary>A flag to enable board numbering</_summary>
+ <_description>A flag to enable board numbering</_description>
+ </key>
+ <key name="show-history" type="b">
+ <default>true</default>
+ <_summary>A flag to enable the move history browser</_summary>
+ <_description>A flag to enable the move history browser</_description>
+ </key>
+ <key name="show-toolbar" type="b">
+ <default>false</default>
+ <_summary>A flag to enable the toolbar</_summary>
+ <_description>A flag to enable the toolbar</_description>
+ </key>
+ <key name="save-directory" type="s">
+ <default>''</default>
+ <_summary>The directory to open the save game dialog in</_summary>
+ <_description>The directory to open the save game dialog in</_description>
+ </key>
+ <key name="load-directory" type="s">
+ <default>''</default>
+ <_summary>The directory to open the load game dialog in</_summary>
+ <_description>The directory to open the load game dialog in</_description>
+ </key>
+ <key name="move-format" enum="org.gnome.glchess.MoveFormat">
+ <default>'human'</default>
+ <_summary>The format to display moves in</_summary>
+ <_description>The format to display moves in</_description>
+ </key>
+ <key name="board-side" enum="org.gnome.glchess.BoardSide">
+ <default>'human'</default>
+ <_summary>The side of the board that is in the foreground</_summary>
+ <_description>The side of the board that is in the foreground</_description>
+ </key>
+ <key name="duration" type="i">
+ <default>0</default>
+ <_summary>The duration of a game in seconds (0 for no limit)</_summary>
+ <_description>The duration of a game in seconds (0 for no limit)</_description>
+ </key>
+ <key name="play-as-white" type="b">
+ <default>true</default>
+ <_summary>true if the human player is playing white</_summary>
+ <_description>true if the human player is playing white</_description>
+ </key>
+ <key name="opponent" type="s">
+ <default>''</default>
+ <_summary>The opponent player</_summary>
+ <_description>Can be 'human' (play against another human player), '' (use the first available chess engine) or the name of a specific engine to play against</_description>
+ </key>
+ <key name="difficulty" enum="org.gnome.glchess.Difficulty">
+ <default>'easy'</default>
+ <_summary>Difficulty of the opponent chess engine</_summary>
+ <_description>Difficulty of the opponent chess engine</_description>
+ </key>
+ </schema>
+</schemalist>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 82e1776..9144fa4 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -103,7 +103,7 @@ aisleriot/rules/yield.scm
aisleriot/rules/yukon.scm
aisleriot/rules/zebra.scm
glchess/gnuchess/getopt.c
-glchess/data/org.gnome.glchess.gschema.xml
+glchess/data/org.gnome.glchess.gschema.xml.in
[type: gettext/glade]glchess/data/glchess.ui
[type: gettext/glade]glchess/data/preferences.ui
glchess/glchess.desktop.in.in
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]