r15494 by craig - Rename internal scripter API set/getLineEnd to set/getLineCap to match public API

scribus-commit scribus-commit at lists.scribus.net
Mon Oct 4 21:36:13 CEST 2010


Author: craig
Date: Mon Oct  4 19:36:13 2010
New Revision: 15494

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=15494
Log:
Rename internal scripter API set/getLineEnd to set/getLineCap to match public API

Modified:
    trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp
    trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.h
    trunk/Scribus/scribus/plugins/scriptplugin/cmdsetprop.cpp
    trunk/Scribus/scribus/plugins/scriptplugin/cmdsetprop.h
    trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp

Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15494&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp Mon Oct  4 19:36:13 2010
@@ -173,7 +173,7 @@
 	return i != NULL ? PyInt_FromLong(static_cast<long>(i->PLineJoin)) : NULL;
 }
 
-PyObject *scribus_getlineend(PyObject* /* self */, PyObject* args)
+PyObject *scribus_getlinecap(PyObject* /* self */, PyObject* args)
 {
 	char *Name = const_cast<char*>("");
 	if (!PyArg_ParseTuple(args, "|es", "utf-8", &Name))
@@ -338,7 +338,7 @@
 	  << scribus_getlinecolor__doc__ << scribus_getlinetrans__doc__ 
 	  << scribus_getlineblend__doc__ << scribus_getlinewidth__doc__ 
 	  << scribus_getlineshade__doc__ << scribus_getlinejoin__doc__ 
-	  << scribus_getlineend__doc__ << scribus_getlinestyle__doc__ 
+	  << scribus_getlinecap__doc__ << scribus_getlinestyle__doc__ 
 	  << scribus_getfillshade__doc__ << scribus_getcornerrad__doc__ 
 	  << scribus_getimgscale__doc__ << scribus_getimgname__doc__ 
 	  << scribus_getposi__doc__ << scribus_getsize__doc__ 

Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.h
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15494&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.h
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.h (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.h Mon Oct  4 19:36:13 2010
@@ -113,15 +113,15 @@
 PyObject *scribus_getlinejoin(PyObject * /*self*/, PyObject* args);
 
 /*! docstring */
-PyDoc_STRVAR(scribus_getlineend__doc__,
-QT_TR_NOOP("getLineEnd([\"name\"]) -> integer (see constants)\n\
+PyDoc_STRVAR(scribus_getlinecap__doc__,
+QT_TR_NOOP("getLineCap([\"name\"]) -> integer (see constants)\n\
 \n\
 Returns the line cap style of the object \"name\". If \"name\" is not given the\n\
 currently selected item is used. The cap types are:\n\
 CAP_FLAT, CAP_ROUND, CAP_SQUARE\n\
 "));
 /*! Returns cap type of the line */
-PyObject *scribus_getlineend(PyObject * /*self*/, PyObject* args);
+PyObject *scribus_getlinecap(PyObject * /*self*/, PyObject* args);
 
 /*! docstring */
 PyDoc_STRVAR(scribus_getlinestyle__doc__,

Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdsetprop.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15494&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdsetprop.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdsetprop.cpp (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdsetprop.cpp Mon Oct  4 19:36:13 2010
@@ -308,7 +308,7 @@
 	Py_RETURN_NONE;
 }
 
-PyObject *scribus_setlineend(PyObject* /* self */, PyObject* args)
+PyObject *scribus_setlinecap(PyObject* /* self */, PyObject* args)
 {
 	char *Name = const_cast<char*>("");
 	int w;
@@ -393,7 +393,7 @@
 	  << scribus_setfillblend__doc__ << scribus_setlinecolor__doc__ 
 	  << scribus_setlinetrans__doc__ << scribus_setlineblend__doc__ 
 	  << scribus_setlinewidth__doc__ << scribus_setlineshade__doc__ 
-	  << scribus_setlinejoin__doc__  << scribus_setlineend__doc__   
+	  << scribus_setlinejoin__doc__  << scribus_setlinecap__doc__   
 	  << scribus_setlinestyle__doc__ << scribus_setfillshade__doc__ 
 	  << scribus_setcornerrad__doc__ <<  scribus_setmultiline__doc__;
 }

Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdsetprop.h
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15494&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdsetprop.h
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdsetprop.h (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdsetprop.h Mon Oct  4 19:36:13 2010
@@ -134,15 +134,15 @@
 PyObject *scribus_setlinejoin(PyObject * /*self*/, PyObject* args);
 
 /*! docstring */
-PyDoc_STRVAR(scribus_setlineend__doc__,
-QT_TR_NOOP("setLineEnd(endtype, [\"name\"])\n\
+PyDoc_STRVAR(scribus_setlinecap__doc__,
+QT_TR_NOOP("setLineCap(endtype, [\"name\"])\n\
 \n\
 Sets the line cap style of the object \"name\" to the style \"cap\".\n\
 If \"name\" is not given the currently selected item is used. There are\n\
 predefined constants for \"cap\" - CAP_<type>.\n\
 "));
 /*! Set line end */
-PyObject *scribus_setlineend(PyObject * /*self*/, PyObject* args);
+PyObject *scribus_setlinecap(PyObject * /*self*/, PyObject* args);
 
 /*! docstring */
 PyDoc_STRVAR(scribus_setlinestyle__doc__,

Modified: trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15494&path=/trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp Mon Oct  4 19:36:13 2010
@@ -356,7 +356,7 @@
 	{const_cast<char*>("getLayers"), (PyCFunction)scribus_getlayers, METH_NOARGS, tr(scribus_getlayers__doc__)},
 	{const_cast<char*>("getLayerBlendmode"), scribus_glayerblend, METH_VARARGS, tr(scribus_glayerblend__doc__)},
 	{const_cast<char*>("getLayerTransparency"), scribus_glayertrans, METH_VARARGS, tr(scribus_glayertrans__doc__)},
-	{const_cast<char*>("getLineCap"), scribus_getlineend, METH_VARARGS, tr(scribus_getlineend__doc__)},
+	{const_cast<char*>("getLineCap"), scribus_getlinecap, METH_VARARGS, tr(scribus_getlinecap__doc__)},
 	{const_cast<char*>("getLineColor"), scribus_getlinecolor, METH_VARARGS, tr(scribus_getlinecolor__doc__)},
 	{const_cast<char*>("getLineShade"), scribus_getlineshade, METH_VARARGS, tr(scribus_getlineshade__doc__)},
 	{const_cast<char*>("getLineBlendmode"), scribus_getlineblend, METH_VARARGS, tr(scribus_getlineblend__doc__)},
@@ -466,7 +466,7 @@
 	{const_cast<char*>("setLayerFlow"), scribus_layerflow, METH_VARARGS, tr(scribus_layerflow__doc__)},
 	{const_cast<char*>("setLayerBlendmode"), scribus_layerblend, METH_VARARGS, tr(scribus_layerblend__doc__)},
 	{const_cast<char*>("setLayerTransparency"), scribus_layertrans, METH_VARARGS, tr(scribus_layertrans__doc__)},
-	{const_cast<char*>("setLineCap"), scribus_setlineend, METH_VARARGS, tr(scribus_setlineend__doc__)},
+	{const_cast<char*>("setLineCap"), scribus_setlinecap, METH_VARARGS, tr(scribus_setlinecap__doc__)},
 	{const_cast<char*>("setLineColor"), scribus_setlinecolor, METH_VARARGS, tr(scribus_setlinecolor__doc__)},
 	{const_cast<char*>("setLineTransparency"), scribus_setlinetrans, METH_VARARGS, tr(scribus_setlinetrans__doc__)},
 	{const_cast<char*>("setLineBlendmode"), scribus_setlineblend, METH_VARARGS, tr(scribus_setlineblend__doc__)},




More information about the scribus-commit mailing list