Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Functions
cmdsetprop.h File Reference
#include "cmdvar.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 PyDoc_STRVAR (scribus_setgradfill__doc__, QT_TR_NOOP("setGradientFill(type, \"color1\", shade1, \"color2\", shade2, [\"name\"])\n\ \n\ Sets the gradient fill of the object \"name\" to type. Color descriptions are\n\ the same as for setFillColor() and setFillShade(). See the constants for\n\ available types (FILL_<type>).\n\ "))
 Setting Object Properties.
PyObject * scribus_setgradfill (PyObject *, PyObject *args)
 Set gradient.
 PyDoc_STRVAR (scribus_setfillcolor__doc__, QT_TR_NOOP("setFillColor(\"color\", [\"name\"])\n\ \n\ Sets the fill color of the object \"name\" to the color \"color\". \"color\"\n\ is the name of one of the defined colors. If \"name\" is not given the\n\ currently selected item is used.\n\ "))
 docstring
PyObject * scribus_setfillcolor (PyObject *, PyObject *args)
 Set fill color.
 PyDoc_STRVAR (scribus_setfilltrans__doc__, QT_TR_NOOP("setFillTransparency(transparency, [\"name\"])\n\ \n\ Sets the fill transparency of the object \"name\" to transparency\n\ If \"name\" is not given the currently selected item is used.\n\ "))
 docstring
PyObject * scribus_setfilltrans (PyObject *, PyObject *args)
 Set fill transparency.
 PyDoc_STRVAR (scribus_setfillblend__doc__, QT_TR_NOOP("setFillBlendmode(blendmode, [\"name\"])\n\ \n\ Sets the fill blendmode of the object \"name\" to blendmode\n\ If \"name\" is not given the currently selected item is used.\n\ "))
 docstring
PyObject * scribus_setfillblend (PyObject *, PyObject *args)
 Set fill blendmode.
 PyDoc_STRVAR (scribus_setlinecolor__doc__, QT_TR_NOOP("setLineColor(\"color\", [\"name\"])\n\ \n\ Sets the line color of the object \"name\" to the color \"color\". If \"name\"\n\ is not given the currently selected item is used.\n\ "))
 docstring
PyObject * scribus_setlinecolor (PyObject *, PyObject *args)
 Set line color.
 PyDoc_STRVAR (scribus_setlinetrans__doc__, QT_TR_NOOP("setLineTransparency(transparency, [\"name\"])\n\ \n\ Sets the line transparency of the object \"name\" to transparency\n\ If \"name\" is not given the currently selected item is used.\n\ "))
 docstring
PyObject * scribus_setlinetrans (PyObject *, PyObject *args)
 Set line transparency.
 PyDoc_STRVAR (scribus_setlineblend__doc__, QT_TR_NOOP("setLineBlendmode(blendmode, [\"name\"])\n\ \n\ Sets the line blendmode of the object \"name\" to blendmode\n\ If \"name\" is not given the currently selected item is used.\n\ "))
 docstring
PyObject * scribus_setlineblend (PyObject *, PyObject *args)
 Set line blendmode.
 PyDoc_STRVAR (scribus_setlinewidth__doc__, QT_TR_NOOP("setLineWidth(width, [\"name\"])\n\ \n\ Sets line width of the object \"name\" to \"width\". \"width\" must be in the\n\ range from 0.0 to 12.0 inclusive, and is measured in points. If \"name\" is not\n\ given the currently selected item is used.\n\ \n\ May raise ValueError if the line width is out of bounds.\n\ "))
 docstring
PyObject * scribus_setlinewidth (PyObject *, PyObject *args)
 Set line width.
 PyDoc_STRVAR (scribus_setlineshade__doc__, QT_TR_NOOP("setLineShade(shade, [\"name\"])\n\ \n\ Sets the shading of the line color of the object \"name\" to \"shade\".\n\ \"shade\" must be an integer value in the range from 0 (lightest) to 100\n\ (full color intensity). If \"name\" is not given the currently selected item\n\ is used.\n\ \n\ May raise ValueError if the line shade is out of bounds.\n\ "))
 docstring
PyObject * scribus_setlineshade (PyObject *, PyObject *args)
 Set line shade.
 PyDoc_STRVAR (scribus_setlinejoin__doc__, QT_TR_NOOP("setLineJoin(join, [\"name\"])\n\ \n\ Sets the line join style of the object \"name\" to the style \"join\".\n\ If \"name\" is not given the currently selected item is used. There are\n\ predefined constants for join - JOIN_<type>.\n\ "))
 docstring
PyObject * scribus_setlinejoin (PyObject *, PyObject *args)
 Set line join.
 PyDoc_STRVAR (scribus_setlineend__doc__, QT_TR_NOOP("setLineEnd(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\ "))
 docstring
PyObject * scribus_setlineend (PyObject *, PyObject *args)
 Set line end.
 PyDoc_STRVAR (scribus_setlinestyle__doc__, QT_TR_NOOP("setLineStyle(style, [\"name\"])\n\ \n\ Sets the line style of the object \"name\" to the style \"style\". If \"name\"\n\ is not given the currently selected item is used. There are predefined\n\ constants for \"style\" - LINE_<style>.\n\ "))
 docstring
PyObject * scribus_setlinestyle (PyObject *, PyObject *args)
 Set line end.
 PyDoc_STRVAR (scribus_setfillshade__doc__, QT_TR_NOOP("setFillShade(shade, [\"name\"])\n\ \n\ Sets the shading of the fill color of the object \"name\" to \"shade\".\n\ \"shade\" must be an integer value in the range from 0 (lightest) to 100\n\ (full Color intensity). If \"name\" is not given the currently selected\n\ Item is used.\n\ \n\ May raise ValueError if the fill shade is out of bounds.\n\ "))
 docstring
PyObject * scribus_setfillshade (PyObject *, PyObject *args)
 Set fill shade.
 PyDoc_STRVAR (scribus_setcornerrad__doc__, QT_TR_NOOP("setCornerRadius(radius, [\"name\"])\n\ \n\ Sets the corner radius of the object \"name\". The radius is expressed\n\ in points. If \"name\" is not given the currently selected item is used.\n\ \n\ May raise ValueError if the corner radius is negative.\n\ "))
 docstringscribus_setmultiline__doc__
PyObject * scribus_setcornerrad (PyObject *, PyObject *args)
 Set corner radius.
 PyDoc_STRVAR (scribus_setmultiline__doc__, QT_TR_NOOP("setMultiLine(\"namedStyle\", [\"name\"])\n\ \n\ Sets the line style of the object \"name\" to the named style \"namedStyle\".\n\ If \"name\" is not given the currently selected item is used.\n\ \n\ May raise NotFoundError if the line style doesn't exist.\n\ "))
 docstring
PyObject * scribus_setmultiline (PyObject *, PyObject *args)
 Set multiline.

Function Documentation

PyDoc_STRVAR ( scribus_setgradfill__doc__  ,
QT_TR_NOOP("setGradientFill(type, \"color1\", shade1, \"color2\", shade2, [\"name\"])\n\\n\Sets the gradient fill of the object \"name\" to type. Color descriptions are\n\the same as for setFillColor() and setFillShade(). See the constants for\n\available types (FILL_<type>).\n\")   
)

Setting Object Properties.

docstring

PyDoc_STRVAR ( scribus_setfillcolor__doc__  ,
QT_TR_NOOP("setFillColor(\"color\", [\"name\"])\n\\n\Sets the fill color of the object \"name\" to the color \"color\". \"color\"\n\is the name of one of the defined colors. If \"name\" is not given the\n\currently selected item is used.\n\")   
)

docstring

PyDoc_STRVAR ( scribus_setfilltrans__doc__  ,
QT_TR_NOOP("setFillTransparency(transparency, [\"name\"])\n\\n\Sets the fill transparency of the object \"name\" to transparency\n\If \"name\" is not given the currently selected item is used.\n\")   
)

docstring

PyDoc_STRVAR ( scribus_setfillblend__doc__  ,
QT_TR_NOOP("setFillBlendmode(blendmode, [\"name\"])\n\\n\Sets the fill blendmode of the object \"name\" to blendmode\n\If \"name\" is not given the currently selected item is used.\n\")   
)

docstring

PyDoc_STRVAR ( scribus_setlinecolor__doc__  ,
QT_TR_NOOP("setLineColor(\"color\", [\"name\"])\n\\n\Sets the line color of the object \"name\" to the color \"color\". If \"name\"\n\is not given the currently selected item is used.\n\")   
)

docstring

PyDoc_STRVAR ( scribus_setlinetrans__doc__  ,
QT_TR_NOOP("setLineTransparency(transparency, [\"name\"])\n\\n\Sets the line transparency of the object \"name\" to transparency\n\If \"name\" is not given the currently selected item is used.\n\")   
)

docstring

PyDoc_STRVAR ( scribus_setlineblend__doc__  ,
QT_TR_NOOP("setLineBlendmode(blendmode, [\"name\"])\n\\n\Sets the line blendmode of the object \"name\" to blendmode\n\If \"name\" is not given the currently selected item is used.\n\")   
)

docstring

PyDoc_STRVAR ( scribus_setlinewidth__doc__  ,
QT_TR_NOOP("setLineWidth(width, [\"name\"])\n\\n\Sets line width of the object \"name\" to \"width\". \"width\" must be in the\n\range from 0.0 to 12.0 inclusive, and is measured in points. If \"name\" is not\n\given the currently selected item is used.\n\\n\May raise ValueError if the line width is out of bounds.\n\")   
)

docstring

PyDoc_STRVAR ( scribus_setlineshade__doc__  ,
QT_TR_NOOP("setLineShade(shade, [\"name\"])\n\\n\Sets the shading of the line color of the object \"name\" to \"shade\".\n\\"shade\" must be an integer value in the range from 0 (lightest) to 100\n\(full color intensity). If \"name\" is not given the currently selected item\n\is used.\n\\n\May raise ValueError if the line shade is out of bounds.\n\")   
)

docstring

PyDoc_STRVAR ( scribus_setlinejoin__doc__  ,
QT_TR_NOOP("setLineJoin(join, [\"name\"])\n\\n\Sets the line join style of the object \"name\" to the style \"join\".\n\If \"name\" is not given the currently selected item is used. There are\n\predefined constants for join - JOIN_<type>.\n\")   
)

docstring

PyDoc_STRVAR ( scribus_setlineend__doc__  ,
QT_TR_NOOP("setLineEnd(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\")   
)

docstring

PyDoc_STRVAR ( scribus_setlinestyle__doc__  ,
QT_TR_NOOP("setLineStyle(style, [\"name\"])\n\\n\Sets the line style of the object \"name\" to the style \"style\". If \"name\"\n\is not given the currently selected item is used. There are predefined\n\constants for \"style\" - LINE_<style>.\n\")   
)

docstring

PyDoc_STRVAR ( scribus_setfillshade__doc__  ,
QT_TR_NOOP("setFillShade(shade, [\"name\"])\n\\n\Sets the shading of the fill color of the object \"name\" to \"shade\".\n\\"shade\" must be an integer value in the range from 0 (lightest) to 100\n\(full Color intensity). If \"name\" is not given the currently selected\n\Item is used.\n\\n\May raise ValueError if the fill shade is out of bounds.\n\")   
)

docstring

PyDoc_STRVAR ( scribus_setcornerrad__doc__  ,
QT_TR_NOOP("setCornerRadius(radius, [\"name\"])\n\\n\Sets the corner radius of the object \"name\". The radius is expressed\n\in points. If \"name\" is not given the currently selected item is used.\n\\n\May raise ValueError if the corner radius is negative.\n\")   
)

docstringscribus_setmultiline__doc__

PyDoc_STRVAR ( scribus_setmultiline__doc__  ,
QT_TR_NOOP("setMultiLine(\"namedStyle\", [\"name\"])\n\\n\Sets the line style of the object \"name\" to the named style \"namedStyle\".\n\If \"name\" is not given the currently selected item is used.\n\\n\May raise NotFoundError if the line style doesn't exist.\n\")   
)

docstring

PyObject* scribus_setcornerrad ( PyObject *  ,
PyObject *  args 
)

Set corner radius.

Definition at line 324 of file cmdsetprop.cpp.

{
       char *Name = const_cast<char*>("");
       int w;
       if (!PyArg_ParseTuple(args, "i|es", &w, "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       if (w < 0)
       {
              PyErr_SetString(PyExc_ValueError, QObject::tr("Corner radius must be a positive number.","python error"));
              return NULL;
       }
       PageItem *currItem = GetUniqueItem(QString::fromUtf8(Name));
       if (currItem == NULL)
              return NULL;
       // apply rounding
       currItem->setCornerRadius(w);
       currItem->SetFrameRound();
       ScCore->primaryMainWindow()->doc->setRedrawBounding(currItem);
       ScCore->primaryMainWindow()->view->SetFrameRounded();
 //    Py_INCREF(Py_None);
//     return Py_None;
       Py_RETURN_NONE;
}

Here is the call graph for this function:

PyObject* scribus_setfillblend ( PyObject *  ,
PyObject *  args 
)

Set fill blendmode.

Definition at line 124 of file cmdsetprop.cpp.

{
       char *Name = const_cast<char*>("");
       int w;
       if (!PyArg_ParseTuple(args, "i|es", &w, "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       if ((w < 0) || (w > 15))
       {
              PyErr_SetString(PyExc_ValueError, QObject::tr("Blendmode out of bounds, must be 0 <= blendmode <= 15.","python error"));
              return NULL;
       }
       PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
       if (i == NULL)
              return NULL;
       i->setFillBlendmode(w);
 //    Py_INCREF(Py_None);
 //    return Py_None;
       Py_RETURN_NONE;
}

Here is the call graph for this function:

PyObject* scribus_setfillcolor ( PyObject *  ,
PyObject *  args 
)

Set fill color.

Definition at line 85 of file cmdsetprop.cpp.

{
       char *Name = const_cast<char*>("");
       char *Color;
       if (!PyArg_ParseTuple(args, "es|es", "utf-8", &Color, "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
       if (i == NULL)
              return NULL;
       i->setFillColor(QString::fromUtf8(Color));
 //    Py_INCREF(Py_None);
 //    return Py_None;
       Py_RETURN_NONE;
}

Here is the call graph for this function:

PyObject* scribus_setfillshade ( PyObject *  ,
PyObject *  args 
)

Set fill shade.

Definition at line 251 of file cmdsetprop.cpp.

{
       char *Name = const_cast<char*>("");
       int w;
       if (!PyArg_ParseTuple(args, "i|es", &w, "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       if ((w < 0) || (w > 100))
       {
              PyErr_SetString(PyExc_ValueError, QObject::tr("Fill shade out of bounds, must be 0 <= shade <= 100.","python error"));
              return NULL;
       }
       PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
       if (i == NULL)
              return NULL;
       i->setFillShade(w);
 //    Py_INCREF(Py_None);
//     return Py_None;
       Py_RETURN_NONE;
}

Here is the call graph for this function:

PyObject* scribus_setfilltrans ( PyObject *  ,
PyObject *  args 
)

Set fill transparency.

Definition at line 102 of file cmdsetprop.cpp.

{
       char *Name = const_cast<char*>("");
       double w;
       if (!PyArg_ParseTuple(args, "d|es", &w, "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       if ((w < 0.0) || (w > 1.0))
       {
              PyErr_SetString(PyExc_ValueError, QObject::tr("Transparency out of bounds, must be 0 <= transparency <= 1.","python error"));
              return NULL;
       }
       PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
       if (i == NULL)
              return NULL;
       i->setFillTransparency(1.0 - w);
 //    Py_INCREF(Py_None);
//     return Py_None;
       Py_RETURN_NONE;
}

Here is the call graph for this function:

PyObject* scribus_setgradfill ( PyObject *  ,
PyObject *  args 
)

Set gradient.

Definition at line 11 of file cmdsetprop.cpp.

{
       char *Name = const_cast<char*>("");
       char *Color1;
       char *Color2;
       int typ, shade1, shade2;
       if (!PyArg_ParseTuple(args, "iesiesi|es", &typ, "utf-8", &Color1, &shade1, "utf-8", &Color2, &shade2, "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       PageItem *currItem = GetUniqueItem(QString::fromUtf8(Name));
       if (currItem == NULL)
              return NULL;
       QColor tmp;
       currItem->fill_gradient.clearStops();
       QString c1 = QString::fromUtf8(Color1);
       QString c2 = QString::fromUtf8(Color2);
       currItem->SetFarbe(&tmp, c1, shade1);
       currItem->fill_gradient.addStop(tmp, 0.0, 0.5, 1.0, c1, shade1);
       currItem->SetFarbe(&tmp, c2, shade2);
       currItem->fill_gradient.addStop(tmp, 1.0, 0.5, 1.0, c2, shade2);
       currItem->GrType = typ;
       switch (currItem->GrType)
       {
              case 0:
              case 1:
                     currItem->GrStartX = 0;
                     currItem->GrStartY = currItem->height() / 2.0;
                     currItem->GrEndX = currItem->width();
                     currItem->GrEndY = currItem->height() / 2.0;
                     break;
              case 2:
                     currItem->GrStartX = currItem->width() / 2.0;
                     currItem->GrStartY = 0;
                     currItem->GrEndX = currItem->width() / 2.0;
                     currItem->GrEndY = currItem->height();
                     break;
              case 3:
                     currItem->GrStartX = 0;
                     currItem->GrStartY = 0;
                     currItem->GrEndX = currItem->width();
                     currItem->GrEndY = currItem->height();
                     break;
              case 4:
                     currItem->GrStartX = 0;
                     currItem->GrStartY = currItem->height();
                     currItem->GrEndX = currItem->width();
                     currItem->GrEndY = 0;
                     break;
              case 5:
                     currItem->GrStartX = currItem->width() / 2.0;
                     currItem->GrStartY = currItem->height() / 2.0;
                     if (currItem->width() >= currItem->height())
                     {
                            currItem->GrEndX = currItem->width();
                            currItem->GrEndY = currItem->height() / 2.0;
                     }
                     else
                     {
                            currItem->GrEndX = currItem->width() / 2.0;
                            currItem->GrEndY = currItem->height();
                     }
                     break;
              default:
                     break;
       }
       //ScCore->primaryMainWindow()->view->updateGradientVectors(currItem);
       currItem->updateGradientVectors();
       ScCore->primaryMainWindow()->view->RefreshItem(currItem);
//     Py_INCREF(Py_None);
//     return Py_None;
       Py_RETURN_NONE;
}

Here is the call graph for this function:

PyObject* scribus_setlineblend ( PyObject *  ,
PyObject *  args 
)

Set line blendmode.

Definition at line 185 of file cmdsetprop.cpp.

{
       char *Name = const_cast<char*>("");
       int w;
       if (!PyArg_ParseTuple(args, "i|es", &w, "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       if ((w < 0) || (w > 15))
       {
              PyErr_SetString(PyExc_ValueError, QObject::tr("Blendmode out of bounds, must be 0 <= blendmode <= 15.","python error"));
              return NULL;
       }
       PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
       if (i == NULL)
              return NULL;
       i->setLineBlendmode(w);
 //    Py_INCREF(Py_None);
//     return Py_None;
       Py_RETURN_NONE;
}

Here is the call graph for this function:

PyObject* scribus_setlinecolor ( PyObject *  ,
PyObject *  args 
)

Set line color.

Definition at line 146 of file cmdsetprop.cpp.

{
       char *Name = const_cast<char*>("");
       char *Color;
       if (!PyArg_ParseTuple(args, "es|es", "utf-8", &Color, "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       PageItem *it = GetUniqueItem(QString::fromUtf8(Name));
       if (it == NULL)
              return NULL;
       it->setLineColor(QString::fromUtf8(Color));
//     Py_INCREF(Py_None);
//     return Py_None;
       Py_RETURN_NONE;
}

Here is the call graph for this function:

PyObject* scribus_setlineend ( PyObject *  ,
PyObject *  args 
)

Set line end.

Definition at line 290 of file cmdsetprop.cpp.

{
       char *Name = const_cast<char*>("");
       int w;
       if (!PyArg_ParseTuple(args, "i|es", &w, "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
       if (i == NULL)
              return NULL;
       i->PLineEnd = Qt::PenCapStyle(w);
//     Py_INCREF(Py_None);
//     return Py_None;
       Py_RETURN_NONE;
}

Here is the call graph for this function:

PyObject* scribus_setlinejoin ( PyObject *  ,
PyObject *  args 
)

Set line join.

Definition at line 273 of file cmdsetprop.cpp.

{
       char *Name = const_cast<char*>("");
       int w;
       if (!PyArg_ParseTuple(args, "i|es", &w, "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
       if (i == NULL)
              return NULL;
       i->PLineJoin = Qt::PenJoinStyle(w);
 //    Py_INCREF(Py_None);
 //    return Py_None;
       Py_RETURN_NONE;
}

Here is the call graph for this function:

PyObject* scribus_setlineshade ( PyObject *  ,
PyObject *  args 
)

Set line shade.

Definition at line 229 of file cmdsetprop.cpp.

{
       char *Name = const_cast<char*>("");
       int w;
       if (!PyArg_ParseTuple(args, "i|es", &w, "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       if ((w < 0) || (w > 100))
       {
              PyErr_SetString(PyExc_ValueError, QObject::tr("Line shade out of bounds, must be 0 <= shade <= 100.","python error"));
              return NULL;
       }
       PageItem *it = GetUniqueItem(QString::fromUtf8(Name));
       if (it == NULL)
              return NULL;
       it->setLineShade(w);
 //    Py_INCREF(Py_None);
//     return Py_None;
       Py_RETURN_NONE;
}

Here is the call graph for this function:

PyObject* scribus_setlinestyle ( PyObject *  ,
PyObject *  args 
)

Set line end.

Definition at line 307 of file cmdsetprop.cpp.

{
       char *Name = const_cast<char*>("");
       int w;
       if (!PyArg_ParseTuple(args, "i|es", &w, "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
       if (i == NULL)
              return NULL;
       i->PLineArt = Qt::PenStyle(w);
 //    Py_INCREF(Py_None);
//     return Py_None;
       Py_RETURN_NONE;
}

Here is the call graph for this function:

PyObject* scribus_setlinetrans ( PyObject *  ,
PyObject *  args 
)

Set line transparency.

Definition at line 163 of file cmdsetprop.cpp.

{
       char *Name = const_cast<char*>("");
       double w;
       if (!PyArg_ParseTuple(args, "d|es", &w, "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       if ((w < 0.0) || (w > 1.0))
       {
              PyErr_SetString(PyExc_ValueError, QObject::tr("Transparency out of bounds, must be 0 <= transparency <= 1.","python error"));
              return NULL;
       }
       PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
       if (i == NULL)
              return NULL;
       i->setLineTransparency(1.0 - w);
 //    Py_INCREF(Py_None);
 //    return Py_None;
       Py_RETURN_NONE;
}

Here is the call graph for this function:

PyObject* scribus_setlinewidth ( PyObject *  ,
PyObject *  args 
)

Set line width.

Definition at line 207 of file cmdsetprop.cpp.

{
       char *Name = const_cast<char*>("");
       double w;
       if (!PyArg_ParseTuple(args, "d|es", &w, "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       if ((w < 0.0) || (w > 12.0))
       {
              PyErr_SetString(PyExc_ValueError, QObject::tr("Line width out of bounds, must be 0 <= line_width <= 12.","python error"));
              return NULL;
       }
       PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
       if (i == NULL)
              return NULL;
       i->setLineWidth(w);
//     Py_INCREF(Py_None);
//     return Py_None;
       Py_RETURN_NONE;
}

Here is the call graph for this function:

PyObject* scribus_setmultiline ( PyObject *  ,
PyObject *  args 
)

Set multiline.

Definition at line 350 of file cmdsetprop.cpp.

{
       char *Name = const_cast<char*>("");
       char *Style = NULL;
       if (!PyArg_ParseTuple(args, "es|es", "utf-8", &Style, "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       PageItem *currItem = GetUniqueItem(QString::fromUtf8(Name));
       if (currItem == NULL)
              return NULL;
       if (!ScCore->primaryMainWindow()->doc->MLineStyles.contains(QString::fromUtf8(Style)))
       {
              PyErr_SetString(NotFoundError, QObject::tr("Line style not found.","python error"));
              return NULL;
       }
       currItem->NamedLStyle = QString::fromUtf8(Style);
 //    Py_INCREF(Py_None);
//     return Py_None;
       Py_RETURN_NONE;
}

Here is the call graph for this function: