QGIS API Documentation
2.10.1-Pisa
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
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
25
class
CORE_EXPORT
QgsComposerTextTable
:
public
QgsComposerTable
26
{
27
public
:
28
QgsComposerTextTable
(
QgsComposition
* c );
29
~
QgsComposerTextTable
();
30
32
virtual
int
type
()
const override
{
return
ComposerTextTable
; }
33
38
void
setHeaderLabels(
const
QStringList
& labels );
39
46
void
addRow
(
const
QStringList
& row ) { mRowText.append( row ); }
47
53
bool
writeXML
(
QDomElement
& elem,
QDomDocument
& doc )
const override
;
54
60
bool
readXML
(
const
QDomElement
& itemElem,
const
QDomDocument
& doc )
override
;
61
67
bool
getFeatureAttributes
(
QList<QgsAttributeMap>
& attributeMaps )
override
;
68
69
private
:
71
QList< QStringList >
mRowText;
72
};
73
77
class
CORE_EXPORT
QgsComposerTextTableV2
:
public
QgsComposerTableV2
78
{
79
80
Q_OBJECT
81
82
public
:
83
QgsComposerTextTableV2
(
QgsComposition
* c,
bool
createUndoCommands );
84
~
QgsComposerTextTableV2
();
85
93
void
addRow(
const
QStringList
& row );
94
99
void
setContents(
const
QList< QStringList >
& contents );
100
101
bool
getTableContents
(
QgsComposerTableContents
&contents )
override
;
102
103
virtual
void
addFrame
(
QgsComposerFrame
* frame,
bool
recalcFrameSizes =
true
)
override
;
104
105
private
:
107
QList< QStringList >
mRowText;
108
};
109
110
#endif // QGSCOMPOSERTEXTTABLE_H
QgsComposerTextTableV2
A text table item that reads text from string lists.
Definition:
qgscomposertexttable.h:77
qgscomposertablev2.h
QgsComposerItem::ComposerTextTable
Definition:
qgscomposeritem.h:60
QgsComposerTextTable::type
virtual int type() const override
return correct graphics item type.
Definition:
qgscomposertexttable.h:32
QgsComposerTextTable::addRow
void addRow(const QStringList &row)
Adds a row to the table.
Definition:
qgscomposertexttable.h:46
QgsComposerTable
A class to display feature attributes in the print composer.
Definition:
qgscomposertable.h:30
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:49
QList
QStringList
QgsComposition
Graphics scene for map printing.
Definition:
qgscomposition.h:73
QgsComposerFrame
Frame item for a composer multiframe item.
Definition:
qgscomposerframe.h:25
QgsComposerTable::getFeatureAttributes
virtual bool getFeatureAttributes(QList< QgsAttributeMap > &attributeMaps)
Fetches the text used for the rows of the table.
Definition:
qgscomposertable.h:212
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:25
Generated on Sat Aug 22 2015 02:53:38 for QGIS API Documentation by
1.8.6