QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
layout
qgslayoutitemtexttable.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgslayoutitemtexttable.h
3
----------------------
4
begin : November 2017
5
copyright : (C) 2017 by Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSLAYOUTTEXTTABLE_H
19
#define QGSLAYOUTTEXTTABLE_H
20
21
#include "qgis_core.h"
22
#include "
qgis_sip.h
"
23
#include "
qgslayouttable.h
"
24
29
class
CORE_EXPORT
QgsLayoutItemTextTable
:
public
QgsLayoutTable
30
{
31
Q_OBJECT
32
33
public
:
39
QgsLayoutItemTextTable
(
QgsLayout
*
layout
SIP_TRANSFERTHIS
);
40
41
int
type
()
const override
;
42
QString
displayName
()
const override
;
43
47
static
QgsLayoutItemTextTable
*
create
(
QgsLayout
*
layout
)
SIP_FACTORY
;
48
57
void
addRow
(
const
QStringList &row );
58
64
void
setContents
(
const
QVector< QStringList > &
contents
);
65
66
bool
getTableContents
(
QgsLayoutTableContents
&
contents
)
override
;
67
68
private
:
70
QVector< QStringList > mRowText;
71
};
72
73
#endif
// QGSLAYOUTTEXTTABLE_H
QgsLayoutItemTextTable::create
static QgsLayoutItemTextTable * create(QgsLayout *layout)
Returns a new QgsLayoutItemTextTable for the specified parent layout.
Definition
qgslayoutitemtexttable.cpp:40
QgsLayoutItemTextTable::QgsLayoutItemTextTable
QgsLayoutItemTextTable(QgsLayout *layout)
Constructor for QgsLayoutItemTextTable, for the specified layout.
Definition
qgslayoutitemtexttable.cpp:26
QgsLayoutItemTextTable::addRow
void addRow(const QStringList &row)
Adds a row to the table.
Definition
qgslayoutitemtexttable.cpp:45
QgsLayoutItemTextTable::setContents
void setContents(const QVector< QStringList > &contents)
Sets the contents of the text table.
Definition
qgslayoutitemtexttable.cpp:51
QgsLayoutMultiFrame::QgsLayout
friend class QgsLayout
Definition
qgslayoutmultiframe.h:442
QgsLayoutMultiFrame::type
virtual int type() const =0
Returns unique multiframe type id.
QgsLayoutMultiFrame::displayName
virtual QString displayName() const
Returns the multiframe display name.
Definition
qgslayoutmultiframe.cpp:273
QgsLayoutObject::layout
const QgsLayout * layout() const
Returns the layout the object is attached to.
Definition
qgslayoutobject.cpp:323
QgsLayoutTable::QgsLayoutTable
QgsLayoutTable(QgsLayout *layout)
Constructor for QgsLayoutTable, belonging to the specified layout.
Definition
qgslayouttable.cpp:64
QgsLayoutTable::getTableContents
virtual bool getTableContents(QgsLayoutTableContents &contents)=0
Fetches the contents used for the cells in the table.
QgsLayoutTable::contents
QgsLayoutTableContents & contents()
Returns the current contents of the table.
Definition
qgslayouttable.h:565
QgsLayoutTableContents
QVector< QgsLayoutTableRow > QgsLayoutTableContents
List of QgsLayoutTableRows, representing rows and column cell contents for a QgsLayoutTable.
Definition
qgslayouttable.h:46
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:52
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:83
qgslayouttable.h
Generated on
for QGIS API Documentation by
1.17.0