QGIS/python/core/auto_generated/layout/qgslayoutitemtexttable.sip.in

80 lines
2.4 KiB
Plaintext
Raw Normal View History

2017-11-21 13:39:41 +10:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/layout/qgslayoutitemtexttable.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsLayoutItemTextTable : QgsLayoutTable
{
%Docstring
2017-12-15 10:36:55 -04:00
A text table item that reads text from string lists
2017-11-21 13:39:41 +10:00
.. versionadded:: 3.0
%End
%TypeHeaderCode
#include "qgslayoutitemtexttable.h"
%End
public:
2017-11-22 17:46:13 +10:00
QgsLayoutItemTextTable( QgsLayout *layout /TransferThis/ );
2017-11-21 13:39:41 +10:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsLayoutItemTextTable, for the specified ``layout``.
2017-11-22 17:46:13 +10:00
2017-12-15 10:36:55 -04:00
Ownership is transferred to the layout.
2017-11-21 13:39:41 +10:00
%End
2017-11-22 07:43:05 +10:00
virtual int type() const;
virtual QString displayName() const;
static QgsLayoutItemTextTable *create( QgsLayout *layout ) /Factory/;
%Docstring
2017-12-15 10:36:55 -04:00
Returns a new QgsLayoutItemTextTable for the specified parent ``layout``.
2017-11-22 07:43:05 +10:00
%End
2017-11-21 13:39:41 +10:00
void addRow( const QStringList &row );
%Docstring
2017-12-15 10:36:55 -04:00
Adds a row to the table
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param row: list of strings to use for each cell's value in the newly added row
2017-11-21 13:39:41 +10:00
.. note::
If row is shorter than the number of columns in the table than blank cells
2018-01-12 20:51:17 -04:00
will be inserted at the end of the row. If row contains more strings then the number
of columns in the table then these extra strings will be ignored.
2017-12-15 10:36:55 -04:00
2017-11-21 13:39:41 +10:00
.. note::
if adding many rows, setContents() is much faster
%End
void setContents( const QVector< QStringList > &contents );
%Docstring
2017-12-15 10:36:55 -04:00
Sets the contents of the text table.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param contents: list of table rows
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`addRow`
2017-11-21 13:39:41 +10:00
%End
virtual bool getTableContents( QgsLayoutTableContents &contents );
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/layout/qgslayoutitemtexttable.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/