]> git.lyx.org Git - features.git/commitdiff
Improve documentation of LFUN_BUFFER_ZOOM_{IN,OUT}
authorScott Kostyshak <skostysh@lyx.org>
Tue, 19 Jul 2016 06:11:27 +0000 (02:11 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Tue, 19 Jul 2016 06:11:27 +0000 (02:11 -0400)
The default for ZOOM_OUT is -20 from a user perspective. That is,
the following are equivalent:

  buffer-zoom-out -20
  buffer-zoom-out

The reason for this is that the argument to ZOOM_OUT is treated the
exact same way as ZOOM_IN. The only way they differ is how the
default case is handled.

This commit also clarifies that (1) the argument may be positive or
negative and that (2) the argument is interpreted as percentage
points, not percent.

lib/doc/LFUNs.lyx
src/LyXAction.cpp

index f2cf36ffc7c9de78fb2efa0de01986a2c46a3fc1..7cc1775f6eb69d091a8c193d19a322894fac2e11 100644 (file)
@@ -5908,7 +5908,7 @@ Syntax buffer-zoom-in [<ZOOM>]
 \end_layout
 
 \begin_layout Description
-Params <ZOOM>: The zoom in %, the default is 20.
+Params <ZOOM>: The zoom in % points (neg. or pos.), the default is 20.
 \end_layout
 
 \begin_layout Description
@@ -5928,7 +5928,7 @@ Syntax buffer-zoom-out [<ZOOM>]
 \end_layout
 
 \begin_layout Description
-Params <ZOOM>: The zoom in %, the default is 20.
+Params <ZOOM>: The zoom in % points (neg. or pos.), the default is -20.
 \end_layout
 
 \begin_layout Description
index 24687c79f0c201c5b40df085afba8c66290f81e3..77864db8c1e6b5695e29eb5976df7f02c4f77137 100644 (file)
@@ -3739,7 +3739,7 @@ void LyXAction::init()
  * \var lyx::FuncCode lyx::LFUN_BUFFER_ZOOM_IN
  * \li Action: Increases the zoom of the screen fonts.
  * \li Syntax: buffer-zoom-in [<ZOOM>]
- * \li Params: <ZOOM>: The zoom in %, the default is 20.
+ * \li Params: <ZOOM>: The zoom in % points (neg. or pos.), the default is 20.
  * \li Origin: vfr, 30 Mar 2009
  * \endvar
  */
@@ -3749,7 +3749,7 @@ void LyXAction::init()
  * \var lyx::FuncCode lyx::LFUN_BUFFER_ZOOM_OUT
  * \li Action: Decreases the zoom of the screen fonts.
  * \li Syntax: buffer-zoom-out [<ZOOM>]
- * \li Params: <ZOOM>: The zoom in %, the default is 20.
+ * \li Params: <ZOOM>: The zoom in % points (neg. or pos.), the default is -20.
  * \li Origin: vfr, 30 Mar 2009
  * \endvar
  */