QGIS API Documentation
2.4.0-Chugiak
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
24
class
CORE_EXPORT
QgsComposerTextTable
:
public
QgsComposerTable
25
{
26
public
:
27
QgsComposerTextTable
(
QgsComposition
* c );
28
~
QgsComposerTextTable
();
29
31
virtual
int
type
()
const
{
return
ComposerTextTable
; }
32
37
void
setHeaderLabels(
const
QStringList& labels );
38
45
void
addRow
(
const
QStringList& row ) { mRowText.append( row ); }
46
52
bool
writeXML
( QDomElement& elem, QDomDocument & doc )
const
;
53
59
bool
readXML
(
const
QDomElement& itemElem,
const
QDomDocument& doc );
60
66
bool
getFeatureAttributes
( QList<QgsAttributeMap>& attributeMaps );
67
68
private
:
70
QList< QStringList >
mRowText
;
71
};
72
73
#endif // QGSCOMPOSERTEXTTABLE_H
QgsComposerTextTable::mRowText
QList< QStringList > mRowText
One stringlist per row.
Definition:
qgscomposertexttable.h:70
QgsComposerTextTable::addRow
void addRow(const QStringList &row)
Adds a row to the table.
Definition:
qgscomposertexttable.h:45
QgsComposerTable
A class to display feature attributes in the print composer.
Definition:
qgscomposertable.h:30
QgsComposition
Graphics scene for map printing.
Definition:
qgscomposition.h:66
QgsComposerTable::writeXML
virtual bool writeXML(QDomElement &elem, QDomDocument &doc) const =0
stores state in Dom element
QgsComposerTable::getFeatureAttributes
virtual bool getFeatureAttributes(QList< QgsAttributeMap > &attributeMaps)
Fetches the text used for the rows of the table.
Definition:
qgscomposertable.h:176
qgscomposertable.h
QgsComposerTable::readXML
virtual bool readXML(const QDomElement &itemElem, const QDomDocument &doc)=0
sets state from Dom document
QgsComposerTextTable::type
virtual int type() const
return correct graphics item type.
Definition:
qgscomposertexttable.h:31
QgsComposerTextTable
A text table item that reads text from string lists.
Definition:
qgscomposertexttable.h:24
QgsComposerItem::ComposerTextTable
Definition:
qgscomposeritem.h:58
Generated on Wed Mar 18 2015 11:40:11 for QGIS API Documentation by
1.8.9.1