r24149 by jghali - #16298: sentToLayer() should be called sendToLayer()

scribus-commit scribus-commit at lists.scribus.net
Sun Nov 1 21:16:43 UTC 2020


Author: jghali
Date: Sun Nov  1 21:16:42 2020
New Revision: 24149

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24149
Log:
#16298: sentToLayer() should be called sendToLayer()

Modified:
    trunk/Scribus/doc/de/scripterapi-layer.html
    trunk/Scribus/doc/en/scripterapi-layer.html
    trunk/Scribus/doc/fr/scripterapi-layer.html
    trunk/Scribus/doc/it/scripterapi-layer.html
    trunk/Scribus/doc/ru/scripterapi-layer.html
    trunk/Scribus/scribus/plugins/scriptplugin/cmdmisc.cpp
    trunk/Scribus/scribus/plugins/scriptplugin/cmdmisc.h
    trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp
    trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdmisc.cpp
    trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdmisc.h
    trunk/Scribus/scribus/plugins/scriptplugin_py2x/scriptplugin.cpp

Modified: trunk/Scribus/doc/de/scripterapi-layer.html
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24149&path=/trunk/Scribus/doc/de/scripterapi-layer.html
==============================================================================
--- trunk/Scribus/doc/de/scripterapi-layer.html	(original)
+++ trunk/Scribus/doc/de/scripterapi-layer.html	Sun Nov  1 21:16:42 2020
@@ -13,7 +13,7 @@
 
 <dt><a name="-createLayer"><strong>createLayer</strong></a>(...)</dt>
 <dd><code>createLayer(layer)</code>
-<p>Creates a new layer with the name "name".</p>
+<p>Creates a new layer with the name "name". Note that when you create a layer, you will automatically be editing on that layer. In other words, this new layer becomes the active layer.</p>
 <p>May raise ValueError if the layer name isn't acceptable.</p></dd>
 
 <dt><a name="-deleteLayer"><strong>deleteLayer</strong></a>(...)</dt>
@@ -62,10 +62,14 @@
 <p>Returns whether the layer "layer" is visible or not, a value of True means that the layer "layer" is visible, a value of False means that the layer "layer" is invisible.</p>
 <p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
 
+<dt><a name="-sendToLayer"><strong>sendToLayer</strong></a>(...)</dt>
+<dd><code>sendToLayer("layer" [, "name"])</code>
+<p>Sends the object "name" to the layer "layer". The layer must exist. If "name" is not given the currently selected item is used.</p>
+<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
+
 <dt><a name="-sentToLayer"><strong>sentToLayer</strong></a>(...)</dt>
 <dd><code>sentToLayer("layer" [, "name"])</code>
-<p>Sends the object "name" to the layer "layer". The layer must exist. If "name" is not given the currently selected item is used.</p>
-<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
+<p>Obsolete. Use sendToLayer() instead.</p></dd>
 
 <dt><a name="-setActiveLayer"><strong>setActiveLayer</strong></a>(...)</dt>
 <dd><code>setActiveLayer("name")</code>

Modified: trunk/Scribus/doc/en/scripterapi-layer.html
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24149&path=/trunk/Scribus/doc/en/scripterapi-layer.html
==============================================================================
--- trunk/Scribus/doc/en/scripterapi-layer.html	(original)
+++ trunk/Scribus/doc/en/scripterapi-layer.html	Sun Nov  1 21:16:42 2020
@@ -62,10 +62,14 @@
 <p>Returns whether the layer "layer" is visible or not, a value of True means that the layer "layer" is visible, a value of False means that the layer "layer" is invisible.</p>
 <p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
 
+<dt><a name="-sendToLayer"><strong>sendToLayer</strong></a>(...)</dt>
+<dd><code>sendToLayer("layer" [, "name"])</code>
+<p>Sends the object "name" to the layer "layer". The layer must exist. If "name" is not given the currently selected item is used.</p>
+<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
+
 <dt><a name="-sentToLayer"><strong>sentToLayer</strong></a>(...)</dt>
 <dd><code>sentToLayer("layer" [, "name"])</code>
-<p>Sends the object "name" to the layer "layer". The layer must exist. If "name" is not given the currently selected item is used.</p>
-<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
+<p>Obsolete. Use sendToLayer() instead.</p></dd>
 
 <dt><a name="-setActiveLayer"><strong>setActiveLayer</strong></a>(...)</dt>
 <dd><code>setActiveLayer("name")</code>

Modified: trunk/Scribus/doc/fr/scripterapi-layer.html
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24149&path=/trunk/Scribus/doc/fr/scripterapi-layer.html
==============================================================================
--- trunk/Scribus/doc/fr/scripterapi-layer.html	(original)
+++ trunk/Scribus/doc/fr/scripterapi-layer.html	Sun Nov  1 21:16:42 2020
@@ -36,10 +36,14 @@
 <p>Indique si le "calque" est visible ou non; une valeur True signifie que le "calque" est visible et une valeur False, que le "calque" est invisible.</p>
 <p>Peut générer <a href="scripterapi.html#NotFoundError">NotFoundError</a> si le calque est introuvable. Peut générer ValueError si le nom du calque n'est pas valide.</p></dd>
 
+<dt><a name="-sendToLayer"><strong>sendToLayer</strong></a>(...)</dt>
+<dd><code>sendToLayer("calque" [, "nom"])</code>
+<p>Envoie l'objet "nom" au calque "calque". Le calque doit exister. Si "nom" n'est pas fourni, l'élément sélectionné est utilisé. </p>
+<p>Peut générer <a href="scripterapi.html#NotFoundError">NotFoundError</a> si le calque est introuvable. Peut générer ValueError si le nom du calque n'est pas valide.</p></dd>
+
 <dt><a name="-sentToLayer"><strong>sentToLayer</strong></a>(...)</dt>
 <dd><code>sentToLayer("calque" [, "nom"])</code>
-<p>Envoie l'objet "nom" au calque "calque". Le calque doit exister. Si "nom" n'est pas fourni, l'élément sélectionné est utilisé. </p>
-<p>Peut générer <a href="scripterapi.html#NotFoundError">NotFoundError</a> si le calque est introuvable. Peut générer ValueError si le nom du calque n'est pas valide.</p></dd>
+<p>Oboslète. Veuillez utiliser sendToLayer() en lieu et place.</p></dd>
 
 <dt><a name="-setActiveLayer"><strong>setActiveLayer</strong></a>(...)</dt>
 <dd><code>setActiveLayer("nom")</code>

Modified: trunk/Scribus/doc/it/scripterapi-layer.html
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24149&path=/trunk/Scribus/doc/it/scripterapi-layer.html
==============================================================================
--- trunk/Scribus/doc/it/scripterapi-layer.html	(original)
+++ trunk/Scribus/doc/it/scripterapi-layer.html	Sun Nov  1 21:16:42 2020
@@ -1,109 +1,116 @@
-<html>
-<head>
-	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
-	<title>Layer related Commands</title>
-</head>
-<body>
-<h2>Layer related Commands</h2>
-
-<dl>
-
-<dt><a name="-createLayer"><strong>createLayer</strong></a>(...)</dt>
-<dd><code>createLayer(layer)</code>
-<p>Creates a new layer with the name "name".</p>
-<p>May raise ValueError if the layer name isn't acceptable.</p></dd>
-
-<dt><a name="-deleteLayer"><strong>deleteLayer</strong></a>(...)</dt>
-<dd><code>deleteLayer("layer")</code>
-<p>Deletes the layer with the name "layer". Nothing happens if the layer doesn't exists or if it's the only layer in the document.</p>
-<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
-
-<dt><a name="-getActiveLayer"><strong>getActiveLayer</strong></a>(...)</dt>
-<dd><code>getActiveLayer() -> string</code>
-<p>Returns the name of the current active layer.</p></dd>
-
-<dt><a name="-getLayers"><strong>getLayers</strong></a>(...)</dt>
-<dd><code>getLayers() -> list</code>
-<p>Returns a list with the names of all defined layers.</p></dd>
-
-<dt><a name="-getLayerBlendmode"><strong>getLayerBlendmode</strong>(...)</a></dt>
-<dd><code>getLayerBlendmode("layer") -> int</code>
-<p>Returns the "layer" layer blendmode, May raise NotFoundError if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
-
-<dt><a name="-isLayerFlow"><strong>isLayerFlow</strong>(...)</a></dt>
-<dd><code>isLayerFlow("layer") -> bool</code>
-<p>Returns whether text flows around objects on layer "layer", a value of True means that text flows around, a value of False means that the text does not flow around.</p>
-<p>May raise NotFoundError if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
-
-<dt><a name="-isLayerLocked"><strong>isLayerLocked</strong>(...)</a></dt>
-<dd><code>isLayerLocked("layer") -> bool</code>
-<p>Returns whether the layer "layer" is locked or not, a value of True means that the layer "layer" is editable, a value of False means that the layer "layer" is locked.</p>
-<p>May raise NotFoundError if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
-
-<dt><a name="-getLayerTransparency"><strong>getLayerTransparency</strong>(...)</a></dt>
-<dd><code>getLayerTransparency("layer") -> float</code>
-<p>Returns the "layer" layer transparency, May raise NotFoundError if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
-
-<dt><a name="-isLayerOutlined"><strong>isLayerOutlined</strong>(...)</a></dt>
-<dd><code>isLayerOutlined("layer") -> bool</code>
-<p>Returns whether the layer "layer" is outlined or not, a value of True means that the layer "layer" is outlined, a value of False means that the layer "layer" is normal.</p>
-<p>May raise NotFoundError if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
-
-<dt><a name="-isLayerPrintable"><strong>isLayerPrintable</strong></a>(...)</dt>
-<dd><code>isLayerPrintable("layer") -> bool</code>
-<p>Returns whether the layer "layer" is printable or not, a value of True means that the layer "layer" can be printed, a value of False means that printing the layer "layer" is disabled.</p>
-<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
-
-<dt><a name="-isLayerVisible"><strong>isLayerVisible</strong></a>(...)</dt>
-<dd><code>isLayerVisible("layer") -> bool</code>
-<p>Returns whether the layer "layer" is visible or not, a value of True means that the layer "layer" is visible, a value of False means that the layer "layer" is invisible.</p>
-<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
-
-<dt><a name="-sentToLayer"><strong>sentToLayer</strong></a>(...)</dt>
-<dd><code>sentToLayer("layer" [, "name"])</code>
-<p>Sends the object "name" to the layer "layer". The layer must exist. If "name" is not given the currently selected item is used.</p>
-<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
-
-<dt><a name="-setActiveLayer"><strong>setActiveLayer</strong></a>(...)</dt>
-<dd><code>setActiveLayer("name")</code>
-<p>Sets the active layer to the layer named "name".</p>
-<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
-
-<dt><a name="-setLayerBlendmode"><strong>setLayerBlendmode</strong>(...)</a></dt>
-<dd><code>setLayerBlendmode"layer", blend)</code>
-<p>Sets the layers "layer" blendmode to blend. May raise NotFoundError if the layer can't be found.</p>
-<p>May raise ValueError if the layer name isn't acceptable.</p></dd>
-
-<dt><a name="-setLayerFlow"><strong>setLayerFlow</strong>(...)</a></dt>
-<dd><code>setLayerFlow"layer", flow)</code>
-<p>Sets the layers "layer" flowcontrol to flow. If flow is set to true text in layers above this one will flow around objects on this layer.</p>
-<p>May raise NotFoundError if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
-
-<dt><a name="-setLayerLocked"><strong>setLayerLocked</strong>(...)</a></dt>
-<dd><code>setLayerLocked("layer", locked)</code>
-<p>Sets the layer "layer" to be locked or not. If locked is set to true the layer will be locked.</p>
-<p>May raise NotFoundError if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
-
-<dt><a name="-setLayerOutlined"><strong>setLayerOutlined</strong>(...)</a></dt>
-<dd><code>setLayerOutlined"layer", outline)</code>
-<p>Sets the layer "layer" to be locked or not. If outline is set to true the layer will be displayed outlined.</p>
-<p>May raise NotFoundError if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
-
-<dt><a name="-setLayerPrintable"><strong>setLayerPrintable</strong></a>(...)</dt>
-<dd><code>setLayerPrintable("layer", printable)</code>
-<p>Sets the layer "layer" to be printable or not. If is the printable set to false the layer won't be printed.</p>
-<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
-
-<dt><a name="-setLayerTransparency"><strong>setLayerTransparency</strong>(...)</a></dt>
-<dd><code>setLayerTransparency"layer", trans)</code>
-<p>Sets the layers "layer" transparency to trans.</p>
-<p>May raise NotFoundError if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
-
-<dt><a name="-setLayerVisible"><strong>setLayerVisible</strong></a>(...)</dt>
-<dd><code>setLayerVisible("layer", visible)</code>
-<p>Sets the layer "layer" to be visible or not. If is the visible set to false the layer is invisible.</p>
-<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
-
-</dl>
-</body>
-</html>
+<html>
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+	<title>Layer related Commands</title>
+</head>
+<style>
+ at import "manual.css";
+</style>
+<body>
+<h2>Layer related Commands</h2>
+
+<dl>
+
+<dt><a name="-createLayer"><strong>createLayer</strong></a>(...)</dt>
+<dd><code>createLayer(layer)</code>
+<p>Creates a new layer with the name "name". Note that when you create a layer, you will automatically be editing on that layer. In other words, this new layer becomes the active layer.</p>
+<p>May raise ValueError if the layer name isn't acceptable.</p></dd>
+
+<dt><a name="-deleteLayer"><strong>deleteLayer</strong></a>(...)</dt>
+<dd><code>deleteLayer("layer")</code>
+<p>Deletes the layer with the name "layer". Nothing happens if the layer doesn't exists or if it's the only layer in the document.</p>
+<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
+
+<dt><a name="-getActiveLayer"><strong>getActiveLayer</strong></a>(...)</dt>
+<dd><code>getActiveLayer() -> string</code>
+<p>Returns the name of the current active layer.</p></dd>
+
+<dt><a name="-getLayers"><strong>getLayers</strong></a>(...)</dt>
+<dd><code>getLayers() -> list</code>
+<p>Returns a list with the names of all defined layers.</p></dd>
+
+<dt><a name="-getLayerBlendmode"><strong>getLayerBlendmode</strong>(...)</a></dt>
+<dd><code>getLayerBlendmode("layer") -> int</code>
+<p>Returns the "layer" layer blendmode, May raise NotFoundError if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
+
+<dt><a name="-isLayerFlow"><strong>isLayerFlow</strong>(...)</a></dt>
+<dd><code>isLayerFlow("layer") -> bool</code>
+<p>Returns whether text flows around objects on layer "layer", a value of True means that text flows around, a value of False means that the text does not flow around.</p>
+<p>May raise NotFoundError if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
+
+<dt><a name="-isLayerLocked"><strong>isLayerLocked</strong>(...)</a></dt>
+<dd><code>isLayerLocked("layer") -> bool</code>
+<p>Returns whether the layer "layer" is locked or not, a value of True means that the layer "layer" is editable, a value of False means that the layer "layer" is locked.</p>
+<p>May raise NotFoundError if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
+
+<dt><a name="-getLayerTransparency"><strong>getLayerTransparency</strong>(...)</a></dt>
+<dd><code>getLayerTransparency("layer") -> float</code>
+<p>Returns the "layer" layer transparency, May raise NotFoundError if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
+
+<dt><a name="-isLayerOutlined"><strong>isLayerOutlined</strong>(...)</a></dt>
+<dd><code>isLayerOutlined("layer") -> bool</code>
+<p>Returns whether the layer "layer" is outlined or not, a value of True means that the layer "layer" is outlined, a value of False means that the layer "layer" is normal.</p>
+<p>May raise NotFoundError if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
+
+<dt><a name="-isLayerPrintable"><strong>isLayerPrintable</strong></a>(...)</dt>
+<dd><code>isLayerPrintable("layer") -> bool</code>
+<p>Returns whether the layer "layer" is printable or not, a value of True means that the layer "layer" can be printed, a value of False means that printing the layer "layer" is disabled.</p>
+<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
+
+<dt><a name="-isLayerVisible"><strong>isLayerVisible</strong></a>(...)</dt>
+<dd><code>isLayerVisible("layer") -> bool</code>
+<p>Returns whether the layer "layer" is visible or not, a value of True means that the layer "layer" is visible, a value of False means that the layer "layer" is invisible.</p>
+<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
+
+<dt><a name="-sendToLayer"><strong>sendToLayer</strong></a>(...)</dt>
+<dd><code>sendToLayer("layer" [, "name"])</code>
+<p>Sends the object "name" to the layer "layer". The layer must exist. If "name" is not given the currently selected item is used.</p>
+<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
+
+<dt><a name="-sentToLayer"><strong>sentToLayer</strong></a>(...)</dt>
+<dd><code>sentToLayer("layer" [, "name"])</code>
+<p>Obsolete. Use sendToLayer() instead.</p></dd>
+
+<dt><a name="-setActiveLayer"><strong>setActiveLayer</strong></a>(...)</dt>
+<dd><code>setActiveLayer("name")</code>
+<p>Sets the active layer to the layer named "name".</p>
+<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
+
+<dt><a name="-setLayerBlendmode"><strong>setLayerBlendmode</strong>(...)</a></dt>
+<dd><code>setLayerBlendmode"layer", blend)</code>
+<p>Sets the layers "layer" blendmode to blend. May raise NotFoundError if the layer can't be found.</p>
+<p>May raise ValueError if the layer name isn't acceptable.</p></dd>
+
+<dt><a name="-setLayerFlow"><strong>setLayerFlow</strong>(...)</a></dt>
+<dd><code>setLayerFlow"layer", flow)</code>
+<p>Sets the layers "layer" flowcontrol to flow. If flow is set to true text in layers above this one will flow around objects on this layer.</p>
+<p>May raise NotFoundError if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
+
+<dt><a name="-setLayerLocked"><strong>setLayerLocked</strong>(...)</a></dt>
+<dd><code>setLayerLocked("layer", locked)</code>
+<p>Sets the layer "layer" to be locked or not. If locked is set to true the layer will be locked.</p>
+<p>May raise NotFoundError if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
+
+<dt><a name="-setLayerOutlined"><strong>setLayerOutlined</strong>(...)</a></dt>
+<dd><code>setLayerOutlined"layer", outline)</code>
+<p>Sets the layer "layer" to be locked or not. If outline is set to true the layer will be displayed outlined.</p>
+<p>May raise NotFoundError if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
+
+<dt><a name="-setLayerPrintable"><strong>setLayerPrintable</strong></a>(...)</dt>
+<dd><code>setLayerPrintable("layer", printable)</code>
+<p>Sets the layer "layer" to be printable or not. If is the printable set to false the layer won't be printed.</p>
+<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
+
+<dt><a name="-setLayerTransparency"><strong>setLayerTransparency</strong>(...)</a></dt>
+<dd><code>setLayerTransparency"layer", trans)</code>
+<p>Sets the layers "layer" transparency to trans.</p>
+<p>May raise NotFoundError if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
+
+<dt><a name="-setLayerVisible"><strong>setLayerVisible</strong></a>(...)</dt>
+<dd><code>setLayerVisible("layer", visible)</code>
+<p>Sets the layer "layer" to be visible or not. If is the visible set to false the layer is invisible.</p>
+<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
+
+</dl>
+</body>
+</html>

Modified: trunk/Scribus/doc/ru/scripterapi-layer.html
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24149&path=/trunk/Scribus/doc/ru/scripterapi-layer.html
==============================================================================
--- trunk/Scribus/doc/ru/scripterapi-layer.html	(original)
+++ trunk/Scribus/doc/ru/scripterapi-layer.html	Sun Nov  1 21:16:42 2020
@@ -62,10 +62,14 @@
 <p>Returns whether the layer "layer" is visible or not, a value of True means that the layer "layer" is visible, a value of False means that the layer "layer" is invisible.</p>
 <p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
 
+<dt><a name="-sendToLayer"><strong>sendToLayer</strong></a>(...)</dt>
+<dd><code>sendToLayer("layer" [, "name"])</code>
+<p>Sends the object "name" to the layer "layer". The layer must exist. If "name" is not given the currently selected item is used.</p>
+<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
+
 <dt><a name="-sentToLayer"><strong>sentToLayer</strong></a>(...)</dt>
 <dd><code>sentToLayer("layer" [, "name"])</code>
-<p>Sends the object "name" to the layer "layer". The layer must exist. If "name" is not given the currently selected item is used.</p>
-<p>May raise <a href="scripterapi.html#NotFoundError">NotFoundError</a> if the layer can't be found. May raise ValueError if the layer name isn't acceptable.</p></dd>
+<p>Obsolete. Use sendToLayer() instead.</p></dd>
 
 <dt><a name="-setActiveLayer"><strong>setActiveLayer</strong></a>(...)</dt>
 <dd><code>setActiveLayer("name")</code>

Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdmisc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24149&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdmisc.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdmisc.cpp	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdmisc.cpp	Sun Nov  1 21:16:42 2020
@@ -204,7 +204,7 @@
 	Py_RETURN_NONE;
 }
 
-PyObject *scribus_senttolayer(PyObject* /* self */, PyObject* args)
+PyObject *scribus_sendtolayer(PyObject* /* self */, PyObject* args)
 {
 	char *Name = const_cast<char*>("");
 	char *Layer = const_cast<char*>("");
@@ -828,7 +828,7 @@
 	  << scribus_readpdfoptions__doc__
 	  << scribus_renderfont__doc__
 	  << scribus_savepdfoptions__doc__
-	  << scribus_senttolayer__doc__
+	  << scribus_sendtolayer__doc__
 	  << scribus_setactivelayer__doc__
 	  << scribus_setlayerblendmode__doc__
 	  << scribus_setlayerflow__doc__ 

Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdmisc.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24149&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdmisc.h
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdmisc.h	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdmisc.h	Sun Nov  1 21:16:42 2020
@@ -112,8 +112,8 @@
 PyObject *scribus_raiseactivelayer(PyObject * /*self*/);
 
 /*! docstring */
-PyDoc_STRVAR(scribus_senttolayer__doc__,
-QT_TR_NOOP("sentToLayer(\"layer\" [, \"name\"])\n\
+PyDoc_STRVAR(scribus_sendtolayer__doc__,
+QT_TR_NOOP("sendToLayer(\"layer\" [, \"name\"])\n\
 \n\
 Sends the object \"name\" to the layer \"layer\". The layer must exist.\n\
 If \"name\" is not given the currently selected item is used.\n\
@@ -122,7 +122,7 @@
 May raise ValueError if the layer name isn't acceptable.\n\
 "));
 /*! Move object from one layer to other one */
-PyObject *scribus_senttolayer(PyObject * /*self*/, PyObject* args);
+PyObject *scribus_sendtolayer(PyObject * /*self*/, PyObject* args);
 
 /*! docstring */
 PyDoc_STRVAR(scribus_setlayervisible__doc__,

Modified: trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24149&path=/trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp	Sun Nov  1 21:16:42 2020
@@ -492,7 +492,8 @@
 	{const_cast<char*>("selectObject"), scribus_selectobject, METH_VARARGS, tr(scribus_selectobject__doc__)},
 	{const_cast<char*>("selectText"), scribus_selecttext, METH_VARARGS, tr(scribus_selecttext__doc__)},
 	{const_cast<char*>("selectionCount"), (PyCFunction)scribus_selectioncount, METH_NOARGS, tr(scribus_selectioncount__doc__)},
-	{const_cast<char*>("sentToLayer"), scribus_senttolayer, METH_VARARGS, tr(scribus_senttolayer__doc__)},
+	{const_cast<char*>("sendToLayer"), scribus_sendtolayer, METH_VARARGS, tr(scribus_sendtolayer__doc__)},
+	{const_cast<char*>("sentToLayer"), scribus_sendtolayer, METH_VARARGS, tr(scribus_sendtolayer__doc__)}, // Deprecated, alias to sentToLayer
 	{const_cast<char*>("setActiveLayer"), scribus_setactivelayer, METH_VARARGS, tr(scribus_setactivelayer__doc__)},
 	{const_cast<char*>("setBaseLine"), scribus_setbaseline, METH_VARARGS, tr(scribus_setbaseline__doc__)},
 	{const_cast<char*>("setBleeds"), scribus_setbleeds, METH_VARARGS, tr(scribus_setbleeds__doc__)},

Modified: trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdmisc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24149&path=/trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdmisc.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdmisc.cpp	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdmisc.cpp	Sun Nov  1 21:16:42 2020
@@ -204,7 +204,7 @@
 	Py_RETURN_NONE;
 }
 
-PyObject *scribus_senttolayer(PyObject* /* self */, PyObject* args)
+PyObject *scribus_sendtolayer(PyObject* /* self */, PyObject* args)
 {
 	char *Name = const_cast<char*>("");
 	char *Layer = const_cast<char*>("");
@@ -828,7 +828,7 @@
 	  << scribus_readpdfoptions__doc__
 	  << scribus_renderfont__doc__
 	  << scribus_savepdfoptions__doc__
-	  << scribus_senttolayer__doc__
+	  << scribus_sendtolayer__doc__
 	  << scribus_setactivelayer__doc__
 	  << scribus_setlayerblendmode__doc__
 	  << scribus_setlayerflow__doc__ 

Modified: trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdmisc.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24149&path=/trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdmisc.h
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdmisc.h	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdmisc.h	Sun Nov  1 21:16:42 2020
@@ -112,8 +112,8 @@
 PyObject *scribus_raiseactivelayer(PyObject * /*self*/);
 
 /*! docstring */
-PyDoc_STRVAR(scribus_senttolayer__doc__,
-QT_TR_NOOP("sentToLayer(\"layer\" [, \"name\"])\n\
+PyDoc_STRVAR(scribus_sendtolayer__doc__,
+QT_TR_NOOP("sendToLayer(\"layer\" [, \"name\"])\n\
 \n\
 Sends the object \"name\" to the layer \"layer\". The layer must exist.\n\
 If \"name\" is not given the currently selected item is used.\n\
@@ -122,7 +122,7 @@
 May raise ValueError if the layer name isn't acceptable.\n\
 "));
 /*! Move object from one layer to other one */
-PyObject *scribus_senttolayer(PyObject * /*self*/, PyObject* args);
+PyObject *scribus_sendtolayer(PyObject * /*self*/, PyObject* args);
 
 /*! docstring */
 PyDoc_STRVAR(scribus_setlayervisible__doc__,

Modified: trunk/Scribus/scribus/plugins/scriptplugin_py2x/scriptplugin.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24149&path=/trunk/Scribus/scribus/plugins/scriptplugin_py2x/scriptplugin.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin_py2x/scriptplugin.cpp	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin_py2x/scriptplugin.cpp	Sun Nov  1 21:16:42 2020
@@ -492,7 +492,8 @@
 	{const_cast<char*>("selectObject"), scribus_selectobject, METH_VARARGS, tr(scribus_selectobject__doc__)},
 	{const_cast<char*>("selectText"), scribus_selecttext, METH_VARARGS, tr(scribus_selecttext__doc__)},
 	{const_cast<char*>("selectionCount"), (PyCFunction)scribus_selectioncount, METH_NOARGS, tr(scribus_selectioncount__doc__)},
-	{const_cast<char*>("sentToLayer"), scribus_senttolayer, METH_VARARGS, tr(scribus_senttolayer__doc__)},
+	{const_cast<char*>("sendToLayer"), scribus_sendtolayer, METH_VARARGS, tr(scribus_sendtolayer__doc__)},
+	{const_cast<char*>("sentToLayer"), scribus_sendtolayer, METH_VARARGS, tr(scribus_sendtolayer__doc__)}, // Deprecated, alias to sentToLayer
 	{const_cast<char*>("setActiveLayer"), scribus_setactivelayer, METH_VARARGS, tr(scribus_setactivelayer__doc__)},
 	{const_cast<char*>("setBaseLine"), scribus_setbaseline, METH_VARARGS, tr(scribus_setbaseline__doc__)},
 	{const_cast<char*>("setBleeds"), scribus_setbleeds, METH_VARARGS, tr(scribus_setbleeds__doc__)},




More information about the scribus-commit mailing list