QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
i
l
m
n
o
p
s
t
+
Functions
a
b
c
d
f
g
i
l
m
n
o
p
t
Variables
Typedefs
Enumerations
Enumerator
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
2
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
2
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
+
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Properties
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
u
v
+
Related Functions
a
c
d
e
f
g
l
n
o
p
q
r
s
t
v
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Variables
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
u
z
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
Enumerations
Enumerator
+
Macros
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
core
composer
qgscomposertexttable.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgscomposertexttable.h
3
----------------------
4
begin : April 2010
5
copyright : (C) 2010 by Marco Hugentobler
6
email : marco at hugis dot net
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 QGSCOMPOSERTEXTTABLE_H
19
#define QGSCOMPOSERTEXTTABLE_H
20
21
#include "
qgscomposertable.h
"
22
#include "
qgscomposertablev2.h
"
23
28
//TODO QGIS 3.0 - remove
29
class
CORE_EXPORT
QgsComposerTextTable
:
public
QgsComposerTable
30
{
31
Q_OBJECT
32
public
:
33
QgsComposerTextTable
(
QgsComposition
* c );
34
~
QgsComposerTextTable
();
35
37
virtual
int
type
()
const override
{
return
ComposerTextTable
; }
38
43
void
setHeaderLabels(
const
QStringList
& labels );
44
51
void
addRow
(
const
QStringList
& row ) { mRowText.append( row ); }
52
58
bool
writeXML
(
QDomElement
& elem,
QDomDocument
& doc )
const override
;
59
65
bool
readXML
(
const
QDomElement
& itemElem,
const
QDomDocument
& doc )
override
;
66
72
bool
getFeatureAttributes
(
QList<QgsAttributeMap>
& attributeMaps )
override
;
73
74
private
:
76
QList< QStringList >
mRowText;
77
};
78
83
class
CORE_EXPORT
QgsComposerTextTableV2
:
public
QgsComposerTableV2
84
{
85
86
Q_OBJECT
87
88
public
:
89
QgsComposerTextTableV2
(
QgsComposition
* c,
bool
createUndoCommands );
90
~
QgsComposerTextTableV2
();
91
99
void
addRow(
const
QStringList
& row );
100
105
void
setContents(
const
QList< QStringList >
& contents );
106
107
bool
getTableContents
(
QgsComposerTableContents
&contents )
override
;
108
109
virtual
void
addFrame
(
QgsComposerFrame
* frame,
bool
recalcFrameSizes =
true
)
override
;
110
111
private
:
113
QList< QStringList >
mRowText;
114
};
115
116
#endif // QGSCOMPOSERTEXTTABLE_H
QgsComposerTextTableV2
A text table item that reads text from string lists.
Definition:
qgscomposertexttable.h:83
qgscomposertablev2.h
QgsComposerItem::ComposerTextTable
Definition:
qgscomposeritem.h:63
QgsComposerTextTable::type
virtual int type() const override
Return correct graphics item type.
Definition:
qgscomposertexttable.h:37
QgsComposerTextTable::addRow
void addRow(const QStringList &row)
Adds a row to the table.
Definition:
qgscomposertexttable.h:51
QgsComposerTable
A class to display feature attributes in the print composer.
Definition:
qgscomposertable.h:34
QgsComposerMultiFrame::addFrame
virtual void addFrame(QgsComposerFrame *frame, bool recalcFrameSizes=true)=0
Adds a frame to the multiframe.
QgsComposerTableV2
A class to display a table in the print composer, and allow the table to span over multiple frames...
Definition:
qgscomposertablev2.h:90
QList
QStringList
QgsComposition
Graphics scene for map printing.
Definition:
qgscomposition.h:76
QgsComposerFrame
Frame item for a composer multiframe item.
Definition:
qgscomposerframe.h:27
QgsComposerTable::getFeatureAttributes
virtual bool getFeatureAttributes(QList< QgsAttributeMap > &attributeMaps)
Fetches the text used for the rows of the table.
Definition:
qgscomposertable.h:216
QDomDocument
qgscomposertable.h
QgsComposerTable::writeXML
virtual bool writeXML(QDomElement &elem, QDomDocument &doc) const override=0
Stores item state in DOM element.
QgsComposerTableV2::getTableContents
virtual bool getTableContents(QgsComposerTableContents &contents)=0
Fetches the contents used for the cells in the table.
QgsComposerTable::readXML
virtual bool readXML(const QDomElement &itemElem, const QDomDocument &doc) override=0
Sets item state from DOM element.
QDomElement
QgsComposerTextTable
A text table item that reads text from string lists.
Definition:
qgscomposertexttable.h:29
Generated on Sun Jun 24 2018 11:42:48 for QGIS API Documentation by
1.8.13