From a28b1cc53a283ee58680332f075534e14281c063 Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 13 May 2010 08:13:37 +0000 Subject: [PATCH] FS#11243 - The %VI (capital i) WPS tag is not described in the manual. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25987 a1c6a512-1295-4272-9138-f99709370657 --- manual/advanced_topics/main.tex | 18 ++++++++++++++++++ manual/appendix/wps_tags.tex | 7 +++++++ 2 files changed, 25 insertions(+) diff --git a/manual/advanced_topics/main.tex b/manual/advanced_topics/main.tex index a8c5b8e4b..7241de2ae 100644 --- a/manual/advanced_topics/main.tex +++ b/manual/advanced_topics/main.tex @@ -283,6 +283,24 @@ with one \%Vd line. \note{The tag to display conditional viewports must come before the tag to preload the viewport in the \fname{.wps} file.} + +\subsection{Info Viewport (SBS only)} +As mentioned above, it is possible to set a UI viewport via the theme +\fname{.cfg} file. It is also possible to set the UI viewport through the SBS +file, and to conditionally select different UI viewports. + + \begin{itemize} + \item {\config{\%Vi{\textbar}'label'{\textbar}\dots{\textbar}}} + This viewport is used as Custom UI Viewport in the case that the theme + doesn't have a ui viewport set in the theme \fname{.cfg} file. Having this + is strongly recommended since it makes you able to use the SBS + with other themes. If label is set this viewport can be selectivly used as the + Info Viewport using the \%VI tag. The '\dots' parameters use the same logic as + the \config{\%V} tag explained above. + + \item {\config{\%VI'label'}} Set the Info Viewport to use the viewport called + label, as declared with the previous tag. + \end{itemize} } \subsubsection{Conditional Tags} diff --git a/manual/appendix/wps_tags.tex b/manual/appendix/wps_tags.tex index 89c6a0ce0..3e2e50c07 100644 --- a/manual/appendix/wps_tags.tex +++ b/manual/appendix/wps_tags.tex @@ -54,6 +54,13 @@ show the information for the next song to be played. \config{\%Vd'identifier'} & Display the `identifier' viewport. E.g. \config{\%?C{\textless}\%Vda{\textbar}\%Vdb{\textgreater}} will show viewport `a' if album art is found, and `b' if it isn't.\\ + + \config{\%Vi{\textbar}'label'{\textbar}\dots{\textbar}} & + Declare a Custom UI Viewport. The '\dots' parameters use the same logic as + the \config{\%V} tag explained above. See section \ref{ref:Viewports}.\\ + + \config{\%VI'label'} & Set the Info Viewport to use the viewport called + label, as declared with the previous tag.\\ \end{tagmap} } -- 2.11.4.GIT