[easytag/wip/application-window: 1/11] Add GSettings schema



commit 830cfe75ae6117102c6782084c1d67c75d1dab66
Author: David King <amigadave amigadave com>
Date:   Sat Feb 16 22:52:59 2013 +0000

    Add GSettings schema
    
    Leave the keys that depend on enums and flags commented for now, as the
    enum values need to be generated with glib-mkenums.

 .gitignore                         |    1 +
 Makefile.am                        |    5 +
 configure.ac                       |    2 +
 data/org.gnome.EasyTAG.gschema.xml |  813 ++++++++++++++++++++++++++++++++++++
 po/POTFILES.in                     |    1 +
 5 files changed, 822 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 05b7419..b52ee2e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,6 +19,7 @@ configure
 /doc/easytag.1
 /doc/version.xml
 /doc/easytag.1
+/data/org.gnome.EasyTAG.gschema.valid
 /doc/version.xml
 /easytag
 /easytag-*.tar.xz
diff --git a/Makefile.am b/Makefile.am
index 4d15cdc..2154b30 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -180,6 +180,10 @@ desktop_in_files = data/easytag.desktop.in
 $(desktop_in_files:.desktop.in=.desktop): data/.dstamp
 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
 
+gsettings_SCHEMAS = data/org.gnome.EasyTAG.gschema.xml
+data/org.gnome.EasyTAG.gschema.valid: data/.dstamp
+ GSETTINGS_RULES@
+
 if ENABLE_MAN
 doc/easytag.1: doc/easytag.xml Makefile
        $(AM_V_GEN)$(XSLTPROC) --nonet --param man.charmap.use.subset 0 \
@@ -252,6 +256,7 @@ uninstall-update-icon-cache:
 dist_noinst_DATA = \
        $(appdata_in_files) \
        $(desktop_in_files) \
+       $(gsettings_SCHEMAS) \
        $(easytag_headers) \
        src/id3lib/patch_id3lib_3.8.3_UTF16_writing_bug.diff \
        src/libapetag/COPYING.LGPL \
diff --git a/configure.ac b/configure.ac
index 7c5e5c3..ebc7d90 100644
--- a/configure.ac
+++ b/configure.ac
@@ -365,6 +365,8 @@ dnl Checks for library functions.
 dnl -------------------------------
 AC_CHECK_FUNCS([ftruncate mkstemp truncate])
 
+GLIB_GSETTINGS
+
 AC_CONFIG_FILES([ Makefile
                   doc/version.xml
                   help/Makefile
diff --git a/data/org.gnome.EasyTAG.gschema.xml b/data/org.gnome.EasyTAG.gschema.xml
new file mode 100644
index 0000000..7fb6bfb
--- /dev/null
+++ b/data/org.gnome.EasyTAG.gschema.xml
@@ -0,0 +1,813 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schemalist>
+
+  <schema id="org.gnome.EasyTAG" path="/org/gnome/easytag/">
+    <key name="load-on-startup" type="b">
+      <summary>Load on startup</summary>
+      <description>Whether to load the default path (or the path passed as an
+      argument) on application startup</description>
+      <default>true</default>
+    </key>
+
+    <key name="default-path" type="s">
+      <summary>Default path</summary>
+      <description>The default path to search for music files</description>
+      <default>''</default>
+    </key>
+
+    <key name="browse-subdir" type="b">
+      <summary>Browse subdirectories</summary>
+      <description>Whether to search subdirectories for audio files when
+      reading a path in the browser</description>
+      <default>true</default>
+    </key>
+
+    <key name="browse-show-hidden" type="b">
+      <summary>Show hidden directories while browsing</summary>
+      <description>Whether to show hidden directories when showing a path in
+      the browser</description>
+      <default>false</default>
+    </key>
+
+    <key name="browse-expand-children" type="b">
+      <summary>Expand the subdirectories of the selected path</summary>
+      <description>Whether to expand the subdirectories of a node in the
+      directory browser when selecting it</description>
+      <default>true</default>
+    </key>
+
+    <key name="browse-show-subdir" type="b">
+      <summary>Show subdirectories while browsing</summary>
+      <description>Whether to show subdirectories for audio files when
+      showing a path in the browser</description>
+      <default>true</default>
+    </key>
+
+    <key name="cddb-automatic-search-hostname" type="s">
+      <summary>CDDB server hostname for automatic search</summary>
+      <description>The CDDB server to use for the automatic
+      search</description>
+      <default>'freedb.freedb.org'</default>
+    </key>
+
+    <key name="cddb-automatic-search-port" type="u">
+      <summary>CDDB server port for automatic search</summary>
+      <description>The CDDB server port to use for the automatic
+      search</description>
+      <default>80</default>
+      <range min="0" max="65535" />
+    </key>
+
+    <key name="cddb-automatic-search-path" type="s">
+      <summary>CDDB server path for automatic search</summary>
+      <description>The CDDB server path to use for the automatic
+      search</description>
+      <default>'/~cddb/cddb.cgi'</default>
+    </key>
+
+    <key name="cddb-automatic-search-hostname2" type="s">
+      <summary>CDDB server hostname for automatic search</summary>
+      <description>The CDDB server to use for the automatic
+      search</description>
+      <default>'freedb.musicbrainz.org'</default>
+    </key>
+
+    <key name="cddb-automatic-search-port2" type="u">
+      <summary>CDDB server port for automatic search</summary>
+      <description>The CDDB server port to use for the automatic
+      search</description>
+      <default>80</default>
+      <range min="0" max="65535" />
+    </key>
+
+    <key name="cddb-automatic-search-path2" type="s">
+      <summary>CDDB server path for automatic search</summary>
+      <description>The CDDB server path to use for the automatic
+      search</description>
+      <default>'/~cddb/cddb.cgi'</default>
+    </key>
+
+    <key name="cddb-manual-search-hostname" type="s">
+      <summary>CDDB server hostname for manual search</summary>
+      <description>The CDDB server to use for a manual search</description>
+      <default>'www.gnudb.org'</default>
+    </key>
+
+    <key name="cddb-manual-search-port" type="u">
+      <summary>CDDB server port for manual search</summary>
+      <description>The CDDB server port to use for a manual
+      search</description>
+      <default>80</default>
+      <range min="0" max="65535" />
+    </key>
+
+    <key name="cddb-manual-search-path" type="s">
+      <summary>CDDB server path for manual search</summary>
+      <description>The CDDB server path to use for a manual
+      search</description>
+      <default>'/~cddb/cddb.cgi'</default>
+    </key>
+
+    <key name="cddb-dlm-enabled" type="b">
+      <summary>Use DLM to match CDDB results to files</summary>
+      <description>Whether to use the DLM algorithm to match CDDB results to
+      files</description>
+      <default>false</default>
+    </key>
+
+    <key name="cddb-follow-file" type="b">
+      <summary>Select the file with the position which matches the position of
+      the CDDB result</summary>
+      <description>Whether to select the file in the file list which matches
+      the position in the CDDB results list</description>
+      <default>true</default>
+    </key>
+
+    <key name="cddb-local" type="b">
+      <summary>Use local CDDB</summary>
+      <description>Whether to use a locally-stored copy of the
+      CDDB</description>
+      <default>false</default>
+    </key>
+
+    <key name="cddb-local-path" type="s">
+      <summary>Path to local CDDB</summary>
+      <description>A path to a locally-stored copy of the CDDB</description>
+      <default>''</default>
+    </key>
+
+    <key name="cddb-proxy-enabled" type="b">
+      <summary>Enable proxy for remote CDDB</summary>
+      <description>Whether to access remote CDDB through a proxy</description>
+      <default>false</default>
+    </key>
+
+    <key name="cddb-proxy-hostname" type="s">
+      <summary>CDDB proxy hostname</summary>
+      <description>Hostname for a proxy to access remote CDDB</description>
+      <default>''</default>
+    </key>
+
+    <key name="cddb-proxy-port" type="u">
+      <summary>CDDB proxy port</summary>
+      <description>Port for a proxy to access remote CDDB</description>
+      <default>8080</default>
+      <range min="0" max="65535" />
+    </key>
+
+    <key name="cddb-proxy-username" type="s">
+      <summary>CDDB proxy username</summary>
+      <description>Username for a proxy to access remote CDDB</description>
+      <default>''</default>
+    </key>
+
+    <key name="cddb-proxy-password" type="s">
+      <summary>CDDB proxy password</summary>
+      <description>Password for a proxy to access remote CDDB</description>
+      <default>''</default>
+    </key>
+
+    <key name="cddb-run-scanner" type="b">
+      <summary>Run the scanner on CDDB results</summary>
+      <description>Whether to run the tag scanner, with the current settings,
+      on the CDDB results</description>
+      <default>false</default>
+    </key>
+
+    <key name="cddb-search-all-fields" type="b">
+      <summary>Search in all fiels of CDDB results</summary>
+      <description>Whether to search for matches in all fields of the returned
+      CDDB results</description>
+      <default>false</default>
+    </key>
+
+    <key name="cddb-search-all-categories" type="b">
+      <summary>Search in all categories of CDDB results</summary>
+      <description>Whether to search for matches in all categories of the
+      returned CDDB results</description>
+      <default>false</default>
+    </key>
+
+    <key name="cddb-search-show-categories" type="b">
+      <summary>Show the categories list in the CDDB manual search</summary>
+      <description>Whether to show the list of categories which can be searched
+      with a manual CDDB query</description>
+      <default>false</default>
+    </key>
+
+    <key name="file-preserve-modification-time" type="b">
+      <summary>Preserve modification time when writing files</summary>
+      <description>Whether to preserve the existing modification time when
+      editing files</description>
+      <default>false</default>
+    </key>
+
+    <key name="file-update-parent-modification-time" type="b">
+      <summary>Update parent directory modification time when writing
+      files</summary>
+      <description>Whether to update the modification time on the parent
+      directory when editing files</description>
+      <default>true</default>
+    </key>
+
+    <key name="file-show-header" type="b">
+      <summary>Show audio file header summary</summary>
+      <description>Whether to show header information, such as bitrate and
+      duration, for audio files</description>
+      <default>true</default>
+    </key>
+
+    <key name="file-changed-bold" type="b">
+      <summary>Show changed files in bold</summary>
+      <description>Whether to highlight changed files in the file list by
+      making them bold, or alternatively by making them red</description>
+      <default>true</default>
+    </key>
+
+    <key name="sort-case-sensitive" type="b">
+      <summary>Sort files case-sensitively</summary>
+      <description>Whether file sorting is case-sensitive</description>
+      <default>true</default>
+    </key>
+
+    <!-- TODO: Generate enums with glib-mkenums.
+    <key name="sort-mode" enum="org.gnome.EasyTAG.EtSortMode">
+      <summary>How to sort audio files in the file list</summary>
+      <description>Sort files in ascending or descending order for the selected
+      type</description>
+      <default>'ascending-track-number'</default>
+    </key>
+    -->
+
+    <key name="log-lines" type="u">
+      <summary>Number of log lines</summary>
+      <description>The maximum number of lines to keep in the log</description>
+      <default>50</default>
+      <range min="10" max="1500" />
+    </key>
+
+    <key name="log-show" type="b">
+      <summary>Show the log</summary>
+      <description>Whether to show the log in the main window</description>
+      <default>true</default>
+    </key>
+
+    <key name="id3-override-read-encoding" type="b">
+      <summary>Use a non-standard character encoding when reading ID3
+      tags</summary>
+      <description>Whether to use a non-standard character encoding when
+      reading ID3 tags</description>
+      <default>false</default>
+    </key>
+
+    <key name="id3-strip-empty" type="b">
+      <summary>Strip ID3 tags if all ID3 tags are empty</summary>
+      <description>Whether to remove the ID3 tag from the audio file if all the
+      individual tag fields are empty</description>
+      <default>true</default>
+    </key>
+
+    <key name="id3v1-enabled" type="b">
+      <summary>Write ID3v1 tags</summary>
+      <description>Whether to write ID3v1 tags when writing ID3 tags into audio
+      files</description>
+      <default>true</default>
+    </key>
+
+    <!-- TODO: Generate enums with glib-mkenums.
+    <key name="id3v1-charset" enum="org.gnome.EasyTAG.EtCharset">
+      <summary>The character set for writing ID3v1 tags</summary>
+      <description>Choose the character set to be used when writing ID3v1
+      tags</description>
+      <default>'ISO-8859-1'</default>
+    </key>
+
+    <key name="id3v1-encoding-option" enum="org.gnome.EasyTAG.EtTagEncoding">
+      <summary>Encoding options when writing ID3v1 tags</summary>
+      <description>Additional options to pass to iconv() when converting
+      between encodings when writing ID3v1 tags</description>
+      <default>'none'</default>
+    </key>
+    -->
+
+    <key name="id3v2-enabled" type="b">
+      <summary>Write ID3v2 tags</summary>
+      <description>Whether to write ID3v2 tags when writing ID3 tags into audio
+      files</description>
+      <default>true</default>
+    </key>
+
+    <key name="id3v2-version-4" type="b">
+      <summary>Enable ID3v2.4 support</summary>
+      <description>Whether to write ID3v2.4 tags when ID3v2 support is
+      enabled</description>
+      <default>true</default>
+    </key>
+
+    <key name="id3v2-convert-old" type="b">
+      <summary>Convert old ID3 tag versions to new ones</summary>
+      <description>Whether to convert ID3 tags written against old version of
+      the specification, such as ID3v2.2, to newer ones, such as
+      ID3v2.3 or ID3v2.4</description>
+      <default>true</default>
+    </key>
+
+    <key name="id3v2-compression" type="b">
+      <summary>Compress data in ID3v2 tags</summary>
+      <description>Whether to compress data in ID3v2 tags</description>
+      <default>false</default>
+    </key>
+
+    <key name="id3v2-crc32" type="b">
+      <summary>Use CRC-32 in ID3v2 tags</summary>
+      <description>Whether to embed a CRC-32 checksum of the audio file data in
+      ID3v2 tags</description>
+      <default>true</default>
+    </key>
+
+    <key name="id3v2-text-only-genre" type="b">
+      <summary>Use text-only genre in ID3v2 tags</summary>
+      <description>Whether to use only a string, and not the integer-base ID3v1
+      genre field, when writing a genre field to ID3v2 tags</description>
+      <default>false</default>
+    </key>
+
+    <key name="id3v2-enable-unicode" type="b">
+      <summary>Use Unicode character encoding in ID3v2 tags</summary>
+      <description>Whether to use a Unicode character set when writing ID3v2
+      tags</description>
+      <default>true</default>
+    </key>
+
+    <key name="id3v2-unicode-charset" type="s">
+      <summary>The Unicode character set for writing ID3v2 tags</summary>
+      <description>Choose the Unicode character set to be used when writing
+      ID3v2 tags</description>
+      <choices>
+        <choice value="UTF-8" />
+        <choice value="UTF-16" />
+      </choices>
+      <default>'UTF-8'</default>
+    </key>
+
+    <!-- TODO: Generate enums with glib-mkenums.
+    <key name="id3v2-no-unicode-charset" enum="org.gnome.EasyTAG.EtCharset">
+      <summary>The character set for writing ID3v2 tags</summary>
+      <description>Override the typical Unicode character set to be used when
+      writing ID3v2 tags</description>
+      <default>'ISO-8859-1'</default>
+    </key>
+
+    <key name="id3v2-encoding-option" enum="org.gnome.EasyTAG.EtTagEncoding">
+      <summary>Encoding options when writing ID3v2 tags</summary>
+      <description>Additional options to pass to iconv() when converting
+      between encodings when writing ID3v2 tags</description>
+      <default>'none'</default>
+    </key>
+    -->
+
+    <key name="tag-date-autocomplete" type="b">
+      <summary>Automatically complete the date</summary>
+      <description>Whether to automatically complete the date tag</description>
+      <default>true</default>
+    </key>
+
+    <key name="tag-number-padded" type="b">
+      <summary>Pad the track number tag field</summary>
+      <description>Whether the track number tag field should be padded with
+      leading zeroes</description>
+      <default>true</default>
+    </key>
+
+    <key name="tag-number-length" type="u">
+      <summary>The length of the track number field</summary>
+      <description>The length of the track number field, which controls if the
+      field is padded with leading zeroes</description>
+      <default>2</default>
+      <range min="0" max="6" />
+    </key>
+
+    <key name="tag-preserve-focus" type="b">
+      <summary>Preserve the tag field focus</summary>
+      <description>Whether to preserve focus on the current tag field when
+      switching file</description>
+      <default>true</default>
+    </key>
+
+    <key name="audio-file-player" type="s">
+      <summary>Audio file player</summary>
+      <description>The audio file player command-line</description>
+      <default>'xdg-open'</default>
+    </key>
+
+    <!-- TODO: Generate enums with glib-mkenums.
+    <key name="fill-convert-spaces" enum="org.gnome.EasyTAG.EtConvertSpaces">
+      <summary>Convert spaces and underscores when filling tag fields</summary>
+      <description>Whether to convert to spaces (and %20) or underscores when
+      filling tag fields from filenames</description>
+      <default>'spaces'</default>
+    </key>
+    -->
+
+    <key name="fill-overwrite-tag-fields" type="b">
+      <summary>Overwrite tag field</summary>
+      <description>Whether to overwrite the tag field values when filling
+      tags. Otherwise, only blank tag fields will be filled</description>
+      <default>true</default>
+    </key>
+
+    <key name="fill-set-default-comment" type="b">
+      <summary>Set the default comment</summary>
+      <description>Whether to set the comment tag field to the provided
+      default value when filling tags</description>
+      <default>true</default>
+    </key>
+
+    <key name="fill-default-comment" type="s">
+      <summary>Default comment for filling tags</summary>
+      <description>The default comment to use when fillings tags</description>
+      <default>'Encoded by EasyTAG'</default>
+    </key>
+
+    <key name="fill-crc32-comment" type="b">
+      <summary>Use the CRC-32 as the default comment</summary>
+      <description>Whether to use the CRC-32 of the audio file data as the
+      default comment, for files with ID3 tags only</description>
+      <default>false</default>
+    </key>
+
+    <key name="confirm-quit" type="b">
+      <summary>Confirm before quitting the application</summary>
+      <description>Whether to ask for confirmation from the user before
+      quitting the application</description>
+      <default>false</default>
+    </key>
+
+    <key name="confirm-write-tags" type="b">
+      <summary>Confirm before writing tags</summary>
+      <description>Whether to ask for confirmation from the user before
+      writing tags to audio files</description>
+      <default>false</default>
+    </key>
+
+    <key name="confirm-rename-file" type="b">
+      <summary>Confirm before renaming a file</summary>
+      <description>Whether to ask for confirmation from the user before
+      renaming a file</description>
+      <default>false</default>
+    </key>
+
+    <key name="confirm-write-playlist" type="b">
+      <summary>Confirm before writing a playlist</summary>
+      <description>Whether to ask for confirmation from the user before
+      writing a playlist</description>
+      <default>false</default>
+    </key>
+
+    <key name="confirm-delete-file" type="b">
+      <summary>Confirm before deleting a file</summary>
+      <description>Whether to ask for confirmation from the user before
+      deleting a file</description>
+      <default>true</default>
+    </key>
+
+    <key name="confirm-when-unsaved-files" type="b">
+      <summary>Confirm before losing unsaved changes to files</summary>
+      <description>Whether to ask for confirmation from the user before
+      performing an operation that would lose unsaved changes on
+      files</description>
+      <default>true</default>
+    </key>
+
+    <key name="load-filenames-run-scanner" type="b">
+      <summary>Run the current scanner when loading filenames from a
+      file</summary>
+      <description>Whether to run the current scanner on files loaded from a
+      text file</description>
+      <default>false</default>
+    </key>
+
+    <!-- TODO: Generate enums and flags with glib-mkenums.
+    <key name="process-fields" flags="org.gnome.EasyTAG.EtProcessField">
+      <summary>Process these tag fields</summary>
+      <description>The tag fields to process when using the
+      scanner</description>
+      
<default>['title','artist','album-artist','album','genre','comment','composer','original-artist','copyright','url','encoded-by']</default>
+    </key>
+
+    <key name="process-convert-spaces" enum="org.gnome.EasyTAG.EtConvertSpaces">
+      <summary>Convert spaces and underscores in tags</summary>
+      <description>Whether to convert to spaces (and %20) or underscores when
+      processing tag fields</description>
+      <default>'spaces'</default>
+    </key>
+    -->
+
+    <key name="process-convert-characters" type="b">
+      <summary>Convert characters in tags</summary>
+      <description>Whether to convert characters of the tag from one value to
+      another when processing tag fields</description>
+      <default>false</default>
+    </key>
+
+    <key name="process-convert-characters-from" type="s">
+      <summary>Convert characters in tags</summary>
+      <description>Convert the following characters when processing tag
+      fields</description>
+      <default>''</default>
+    </key>
+
+    <key name="process-convert-characters-to" type="s">
+      <summary>Convert characters in tags</summary>
+      <description>Replace any matched sequence of characters with this string
+      when processing tag fields</description>
+      <default>''</default>
+    </key>
+
+    <key name="process-lowercase-all" type="b">
+      <summary>Lower-case all characters</summary>
+      <description>Whether to lower-case all characters of the tag when
+      processing tag fields</description>
+      <default>false</default>
+    </key>
+
+    <key name="process-uppercase-all" type="b">
+      <summary>Upper-case all characters</summary>
+      <description>Whether to upper-case all characters of the tag when
+      processing tag fields</description>
+      <default>false</default>
+    </key>
+
+    <key name="process-uppercase-first-letter" type="b">
+      <summary>Upper-case the first letter of the tag</summary>
+      <description>Whether to upper-case the first letter of the tag when
+      processing tag fields</description>
+      <default>false</default>
+    </key>
+
+    <key name="process-uppercase-first-letters" type="b">
+      <summary>Upper-case the first letter of each word</summary>
+      <description>Whether to upper-case the first letter of each word when
+      processing tag fields</description>
+      <default>true</default>
+    </key>
+
+    <key name="process-uppercase-prepositions" type="b">
+      <summary>Upper-case prepositions</summary>
+      <description>Whether to upper-case the first letter of prepositions and
+      some other short words such as "feat." when processing tag
+      fields</description>
+      <default>false</default>
+    </key>
+
+    <key name="process-detect-roman-numerals" type="b">
+      <summary>Detect roman numerals</summary>
+      <description>Whether to detect Roman numerals when applying upper-case
+      conversions while processing tag fields</description>
+      <default>true</default>
+    </key>
+
+    <key name="process-remove-spaces" type="b">
+      <summary>Remove spaces</summary>
+      <description>Whether to remove all spaces when processing tag
+      fields</description>
+      <default>false</default>
+    </key>
+
+    <key name="process-insert-capital-spaces" type="b">
+      <summary>Insert spaces before capital letters</summary>
+      <description>Whether to insert spaces before capital letters when
+      processing tag fields</description>
+      <default>false</default>
+    </key>
+
+    <key name="process-remove-duplicate-spaces" type="b">
+      <summary>Remove duplicate spaces</summary>
+      <description>Whether to remove duplicate spaces and underscores when
+      processing tag fields</description>
+      <default>true</default>
+    </key>
+
+    <key name="playlist-filename-mask" type="s">
+      <summary>Playlist filename mask</summary>
+      <description>The default filename mask to use for a new
+      playlist</description>
+      <default>'playlist_%a_-_%b'</default>
+    </key>
+
+    <key name="playlist-use-mask" type="b">
+      <summary>Use a filename mask when generating a playlist</summary>
+      <description>Whether to use a filename mask when creating
+      playlists</description>
+      <default>false</default>
+    </key>
+
+    <key name="playlist-selected-only" type="b">
+      <summary>Create playlists with only the selected files</summary>
+      <description>Whether to use only the selected files or all files when
+      creating playlists</description>
+      <default>false</default>
+    </key>
+
+    <key name="playlist-relative" type="b">
+      <summary>Use relative paths when creating playlists</summary>
+      <description>Whether to use relative paths for files when creating
+      playlists</description>
+      <default>false</default>
+    </key>
+
+    <key name="playlist-parent-directory" type="b">
+      <summary>Create the playlist in the parent directory</summary>
+      <description>Whether to create the playlist in the parent
+      directory</description>
+      <default>false</default>
+    </key>
+
+    <key name="playlist-dos-separator" type="b">
+      <summary>Use DOS separators for playlists</summary>
+      <description>Whether to use DOS path separators when generating
+      playlists</description>
+      <default>false</default>
+    </key>
+
+    <!-- TODO: Generate enums with glib-mkenums.
+    <key name="playlist-content" enum="org.gnome.EasyTAG.EtPlaylistContent">
+      <summary>Content of generated playlists</summary>
+      <description>Write a plain list of files, include extended information
+      from the filename or extended information using a supplied
+      mask</description>
+      <default>'extended'</default>
+    </key>
+    -->
+
+    <key name="playlist-default-mask" type="s">
+      <summary>Playlist default mask</summary>
+      <description>The default mask to use for files in a playlist</description>
+      <default>'%n/%l - %a - %b - %t'</default>
+    </key>
+
+    <key name="search-case-sensitive" type="b">
+      <summary>Search for files case-sensitively</summary>
+      <description>Whether matches when searching for files are
+      case-sensitive</description>
+      <default>true</default>
+    </key>
+
+    <key name="search-filename" type="b">
+      <summary>Search in filenames</summary>
+      <description>Perform the search on filenames</description>
+      <default>true</default>
+    </key>
+
+    <key name="search-tag" type="b">
+      <summary>Search in tags</summary>
+      <description>Perform the search on tags</description>
+      <default>true</default>
+    </key>
+
+    <key name="scan-tag-default-mask" type="s">
+      <summary>Mask for filling tags from filenames</summary>
+      <description>The default mask to use when automatically filling tags
+      with information from filenames</description>
+      <default>'%b/%a - %t'</default>
+    </key>
+
+    <key name="rename-file-default-mask" type="s">
+      <summary>Mask for renaming files</summary>
+      <description>The default mask to use when renaming files</description>
+      <default>'%a - %t'</default>
+    </key>
+
+    <key name="rename-directory-default-mask" type="s">
+      <summary>Mask for renaming directories</summary>
+      <description>The default mask to use when renaming
+      directories</description>
+      <default>'%b'</default>
+    </key>
+
+    <key name="rename-directory-with-mask" type="b">
+      <summary>Use a mask when renaming directories</summary>
+      <description>Whether to use a mask when renaming directories</description>
+      <default>true</default>
+    </key>
+
+    <!-- TODO: Generate enums with glib-mkenums.
+    <key name="rename-convert-spaces" enum="org.gnome.EasyTAG.EtConvertSpaces">
+      <summary>Convert spaces and underscores when renaming files</summary>
+      <description>Whether to convert to spaces or underscores when renaming
+      files</description>
+      <default>'spaces'</default>
+    </key>
+
+    <key name="rename-extension-mode" enum="org.gnome.EasyTAG.EtFilenameExtensionMode">
+      <summary>How to modify filename extensions when renaming</summary>
+      <description>Change the file extension to all lower-case, all upper-case
+      or do not change it</description>
+      <default>'lower-case'</default>
+    </key>
+
+    <key name="rename-encoding" enum="org.gnome.EasyTAG.EtRenameEncoding">
+      <summary>Encoding options when renaming files</summary>
+      <description>If the encoding of the filename does not match the
+      filesystem encoding, choose whether to try another encoding, approximate
+      the filesystem encoding with transliteration or discard the offending
+      characters</description>
+      <default>'try-alternative'</default>
+    </key>
+    -->
+
+    <key name="rename-replace-illegal-chars" type="b">
+      <summary>Replace illegal characters when renaming</summary>
+      <description>Whether to replace illegal characters in a filename when
+      using the rename function. TODO</description>
+      <default>true</default>
+    </key>
+
+    <key name="scan-mask-editor-show" type="b">
+      <summary>Show the scanner mask editor</summary>
+      <description>Whether to show the scanner mask editor in the tag
+      scanner</description>
+      <default>false</default>
+    </key>
+
+    <key name="scan-legend-show" type="b">
+      <summary>Show the scanner legend</summary>
+      <description>Whether to show the scanner legend in the tag
+      scanner</description>
+      <default>true</default>
+    </key>
+
+    <key name="scan-startup" type="b">
+      <summary>Show the scanner window on startup</summary>
+      <description>Whether to show the scanner window on application
+      startup</description>
+      <default>false</default>
+    </key>
+
+    <!-- TODO: Generate enums with glib-mkenums.
+    <key name="scan-mode" enum="org.gnome.EasyTAG.EtScanMode">
+      <summary>The scan mode</summary>
+      <description>Which type of scan to show in the scanner</description>
+      <default>'rename-file'</default>
+    </key>
+    -->
+
+    <key name="ogg-split-title" type="b">
+      <summary>Split Ogg title fields</summary>
+      <description>Whether to split title fields at a " - " separator in Ogg
+      comments</description>
+      <default>false</default>
+    </key>
+
+    <key name="ogg-split-artist" type="b">
+      <summary>Split Ogg artist fields</summary>
+      <description>Whether to split artist fields at a " - " separator in Ogg
+      comments</description>
+      <default>false</default>
+    </key>
+
+    <key name="ogg-split-album" type="b">
+      <summary>Split Ogg album fields</summary>
+      <description>Whether to split album fields at a " - " separator in Ogg
+      comments</description>
+      <default>false</default>
+    </key>
+
+    <key name="ogg-split-genre" type="b">
+      <summary>Split Ogg genre fields</summary>
+      <description>Whether to split genre fields at a " - " separator in Ogg
+      comments</description>
+      <default>false</default>
+    </key>
+
+    <key name="ogg-split-comment" type="b">
+      <summary>Split Ogg comment fields</summary>
+      <description>Whether to split comment fields at a " - " separator in Ogg
+      comments</description>
+      <default>false</default>
+    </key>
+
+    <key name="ogg-split-composer" type="b">
+      <summary>Split Ogg composer fields</summary>
+      <description>Whether to split composer fields at a " - " separator in Ogg
+      comments</description>
+      <default>false</default>
+    </key>
+
+    <key name="ogg-split-original-artist" type="b">
+      <summary>Split Ogg original artist fields</summary>
+      <description>Whether to split original artist fields at a " - " separator
+      in Ogg comments</description>
+      <default>false</default>
+    </key>
+
+    <key name="preferences-page" type="u">
+      <summary>Page to show in the preferences dialog</summary>
+      <description>The page in the notebook of the preferences
+      dialog</description>
+      <default>0</default>
+      <range min="0" max="7" />
+    </key>
+
+  </schema>
+</schemalist>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index c3ca057..3051162 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,5 +1,6 @@
 data/easytag.appdata.xml.in
 data/easytag.desktop.in
+data/org.gnome.EasyTAG.gschema.xml
 src/about.c
 src/ape_tag.c
 src/application.c


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]