From 0c805f5ebe57a56c7b5208d319e6485d84a7ae0c Mon Sep 17 00:00:00 2001
From: Colin Clark
Date: Tue, 2 Oct 2018 13:01:06 +0100
Subject: [PATCH] Simplify OSD settings in Preferences
Move Overlay Screen Display settings in Preferences from the Windows tab
to its own tab.
Allow preformatted tags to be set by button click or drag-and-drop.
---
doc/docbook/GuideOptionsMain.xml | 1 +
doc/docbook/GuideOptionsOSD.xml | 237 +++++++++
doc/docbook/GuideOptionsWindow.xml | 232 ---------
src/preferences.c | 231 ++++++++-
web/help/GuideIndex.html | 21 +-
web/help/GuideMainWindowImagePane.html | 2 +-
web/help/GuideOptionsBehavior.html | 17 +-
web/help/GuideOptionsColor.html | 1 +
web/help/GuideOptionsFiltering.html | 13 +-
web/help/GuideOptionsGeneral.html | 1 +
web/help/GuideOptionsImage.html | 7 +-
web/help/GuideOptionsKeyboard.html | 1 +
web/help/GuideOptionsKeywords.html | 9 +-
web/help/GuideOptionsMain.html | 22 +-
web/help/GuideOptionsMetadata.html | 25 +-
web/help/GuideOptionsOSD.html | 688 +++++++++++++++++++++++++
web/help/GuideOptionsStereo.html | 1 +
web/help/GuideOptionsToolbar.html | 1 +
web/help/GuideOptionsWindow.html | 239 +--------
web/help/GuideReferenceLua.html | 4 +-
20 files changed, 1219 insertions(+), 534 deletions(-)
create mode 100644 doc/docbook/GuideOptionsOSD.xml
create mode 100644 web/help/GuideOptionsOSD.html
diff --git a/doc/docbook/GuideOptionsMain.xml b/doc/docbook/GuideOptionsMain.xml
index 16ac3610..9b927ddc 100644
--- a/doc/docbook/GuideOptionsMain.xml
+++ b/doc/docbook/GuideOptionsMain.xml
@@ -23,6 +23,7 @@
+
diff --git a/doc/docbook/GuideOptionsOSD.xml b/doc/docbook/GuideOptionsOSD.xml
new file mode 100644
index 00000000..c90203cf
--- /dev/null
+++ b/doc/docbook/GuideOptionsOSD.xml
@@ -0,0 +1,237 @@
+
+
+ OverlayScreen Display
+ This section describes the options presented under the OSD Tab of the preferences dialog.
+
+ Overlay Screen Display
+ The contents of the Overlay Screen Display is defined by the Image Overlay Template. This template is easily customised to display a wide range of data.
+
+ The format of each entry is:
+ %tag[:max_length][:extra]%
+
+
+
+
+
+
+ Tag
+
+
+ Replaced by
+
+
+
+ name
+ Filename of the picture
+
+
+ collection
+ Name of the collection
+
+
+ number
+ Current number of image in the list
+
+
+ total
+ Total number of images
+
+
+ date
+ File date
+
+
+ size
+ File size
+
+
+ width
+ Image width
+
+
+ height
+ Image height
+
+
+ res
+ Image resolution
+
+
+ keywords
+ Image keywords from metadata
+
+
+ comment
+ Image comment from XMP metadata
+
+
+ imagecomment
+ JPEG image comment
+
+
+ rating
+ Image rating
+
+
+ <meta_tag>
+ The Exif, XMP, or IPTC tag from metadata
+
+
+ lua/<lua_script>/
+ The output of a Lua script file
+
+
+ lua//<lua_command>
+ The output of a Lua command
+
+
+
+
+
+ As an aide, in addition to standard metadata tags, Geeqie provides a number of
+ pre-formatted tags
+ .
+
+ Examples of usage are:
+
+
+ %keywords%
+ %Exif.Photo.DateTimeOriginal%
+ %lua/jpeg_comment.lua/:12%
+ %lua//return(os.date())%
+
+
+
+ Refer to
+ Lua Extensions
+ for further information.
+
+
+ The length of displayed data can be limited by using the
+ :max_length
+ parameter. The following example will truncate the displayed data to 20 characters and will add 3 dots at the end to denote the truncation.
+ %formatted.Camera:20%
+
+
+ If two or more variables are connected with the
+ |
+ character, the variables are displayed with a separator. For example::
+ %formatted.ShutterSpeed%|%formatted.ISOSpeedRating%|%formatted.FocalLength%
+ could show:
+ "1/20s - 400 - 80 mm"
+ Or, if there is no ISO information in the Exif data:
+ "1/200 - 80 mm"
+
+ If there is no data for a requested tag, the line is not displayed.
+
+ The
+ :extra
+ parameter may be used to format the output by prepending and appending a text string to the displayed item.
+
+
+ The special character
+ *
+ is used to mark the position of the Tag data item. If no
+ *
+ is present, the extra string is just appended to the standard data displayed. Any "\n" is replaced by a newline on display.
+ Pango mark up
+ is accepted in both left and right parts. If the data item is empty, nothing will be displayed.
+
+ Examples:
+
+
+
+
+
+
+
+
+
+
+ Font
+ ,
+
+
+
+
+
+ Text
+ ,
+
+
+
+
+
+ Background
+
+ The font used for the Overlay Screen Display, as well as the font colour and background colour, may be set via these buttons. Colour transparency can also be set.
+
+
+
+
+
+
+
+
+
+
+ Help
+
+
+ Show syntax help
+
+
+
+
+
+
+ Defaults
+
+
+ Restore default image overlay template
+
+
+
+
+
diff --git a/doc/docbook/GuideOptionsWindow.xml b/doc/docbook/GuideOptionsWindow.xml
index b99c86a1..ce0f97ba 100644
--- a/doc/docbook/GuideOptionsWindow.xml
+++ b/doc/docbook/GuideOptionsWindow.xml
@@ -145,236 +145,4 @@
-
- Overlay Screen Display
- The contents of the Overlay Screen Display is defined by the Image Overlay Template. This template is easily customised to display a wide range of data.
-
- The format of each entry is:
- %tag[:max_length][:extra]%
-
-
-
-
-
-
- Tag
-
-
- Replaced by
-
-
-
- name
- Filename of the picture
-
-
- collection
- Name of the collection
-
-
- number
- Current number of image in the list
-
-
- total
- Total number of images
-
-
- date
- File date
-
-
- size
- File size
-
-
- width
- Image width
-
-
- height
- Image height
-
-
- res
- Image resolution
-
-
- keywords
- Image keywords from metadata
-
-
- comment
- Image comment from XMP metadata
-
-
- imagecomment
- JPEG image comment
-
-
- rating
- Image rating
-
-
- <meta_tag>
- The Exif, XMP, or IPTC tag from metadata
-
-
- lua/<lua_script>/
- The output of a Lua script file
-
-
- lua//<lua_command>
- The output of a Lua command
-
-
-
-
-
- As an aide, in addition to standard metadata tags, Geeqie provides a number of
- pre-formatted tags
- .
-
- Examples of usage are:
-
-
- %keywords%
- %Exif.Photo.DateTimeOriginal%
- %lua/jpeg_comment.lua/:12%
- %lua//return(os.date())%
-
-
-
- Refer to
- Lua Extensions
- for further information.
-
-
- The length of displayed data can be limited by using the
- :max_length
- parameter. The following example will truncate the displayed data to 20 characters and will add 3 dots at the end to denote the truncation.
- %formatted.Camera:20%
-
-
- If two or more variables are connected with the
- |
- character, the variables are displayed with a separator. For example::
- %formatted.ShutterSpeed%|%formatted.ISOSpeedRating%|%formatted.FocalLength%
- could show:
- "1/20s - 400 - 80 mm"
- Or, if there is no ISO information in the Exif data:
- "1/200 - 80 mm"
-
- If there is no data for a requested tag, the line is not displayed.
-
- The
- :extra
- parameter may be used to format the output by prepending and appending a text string to the displayed item.
-
-
- The special character
- *
- is used to mark the position of the Tag data item. If no
- *
- is present, the extra string is just appended to the standard data displayed. Any "\n" is replaced by a newline on display.
- Pango mark up
- is accepted in both left and right parts. If the data item is empty, nothing will be displayed.
-
- Examples:
-
Show hidden files or folders
@@ -518,7 +519,7 @@ dd.answer div.label { float: left; }
-
11.5.2.âGrouping sidecar extensions
+
11.6.2.âGrouping sidecar extensions
This field defines which extensions will lead to file grouping. Grouped files will appear as a single entry in file views. This is useful, for example, when browsing directories containing two files for the same image (such as raw+jpeg files generated by some cameras).
The group is represented by the first extension in the list for which a file exists.
This list contains the image formats that are understood by Geeqie. To disable a specific file type from being displayed, uncheck it's corresponding check-box. Filters can be edited by first selecting the line containing the item to be changed, then clicking the filter or description field, making any changes, then pressing
Enter
diff --git a/web/help/GuideOptionsGeneral.html b/web/help/GuideOptionsGeneral.html
index c31fedfa..d9aa53d9 100644
--- a/web/help/GuideOptionsGeneral.html
+++ b/web/help/GuideOptionsGeneral.html
@@ -431,6 +431,7 @@ dd.answer div.label { float: left; }
Preferences
The contents of the Overlay Screen Display is defined by the Image Overlay Template. This template is easily customised to display a wide range of data.
+
+ The format of each entry is:
+
%tag[:max_length][:extra]%
+
+
+
+
+ Tag
+
+
+ Replaced by
+
+
+
+
name
+
Filename of the picture
+
+
+
collection
+
Name of the collection
+
+
+
number
+
Current number of image in the list
+
+
+
total
+
Total number of images
+
+
+
date
+
File date
+
+
+
size
+
File size
+
+
+
width
+
Image width
+
+
+
height
+
Image height
+
+
+
res
+
Image resolution
+
+
+
keywords
+
Image keywords from metadata
+
+
+
comment
+
Image comment from XMP metadata
+
+
+
imagecomment
+
JPEG image comment
+
+
+
rating
+
Image rating
+
+
+
<meta_tag>
+
The Exif, XMP, or IPTC tag from metadata
+
+
+
lua/<lua_script>/
+
The output of a Lua script file
+
+
+
lua//<lua_command>
+
The output of a Lua command
+
+
+
+ As an aide, in addition to standard metadata tags, Geeqie provides a number of
+ pre-formatted tags
+ .
+
+ Refer to
+ Lua Extensions
+ for further information.
+
+
+ The length of displayed data can be limited by using the
+ :max_length
+ parameter. The following example will truncate the displayed data to 20 characters and will add 3 dots at the end to denote the truncation.
+
%formatted.Camera:20%
+
+
+ If two or more variables are connected with the
+ |
+ character, the variables are displayed with a separator. For example::
+
+ Or, if there is no ISO information in the Exif data:
+
"1/200 - 80 mm"
+
+
If there is no data for a requested tag, the line is not displayed.
+
+ The
+ :extra
+ parameter may be used to format the output by prepending and appending a text string to the displayed item.
+
+
+ The special character
+ *
+ is used to mark the position of the Tag data item. If no
+ *
+ is present, the extra string is just appended to the standard data displayed. Any "\n" is replaced by a newline on display.
+ Pango mark up
+ is accepted in both left and right parts. If the data item is empty, nothing will be displayed.
+
The font used for the Overlay Screen Display, as well as the font colour and background colour, may be set via these buttons. Colour transparency can also be set.