QGIS API Documentation
2.8.2-Wien
|
Composer legend components style. More...
#include <qgscomposerlegendstyle.h>
Public Types | |
enum | Side { Top = 0, Bottom = 1, Left = 2, Right = 3 } |
enum | Style { Undefined, Hidden, Title, Group, Subgroup, Symbol, SymbolLabel } |
Public Member Functions | |
QgsComposerLegendStyle () | |
~QgsComposerLegendStyle () | |
QFont | font () const |
double | margin (Side side) |
void | readXML (const QDomElement &elem, const QDomDocument &doc) |
QFont & | rfont () |
void | setFont (const QFont &font) |
void | setMargin (Side side, double margin) |
void | setMargin (double margin) |
void | writeXML (QString name, QDomElement &elem, QDomDocument &doc) const |
Static Public Member Functions | |
static Style | styleFromName (QString styleName) |
Get style from name, used in project file. | |
static QString | styleLabel (Style s) |
Get style label, translated, used in UI. | |
static QString | styleName (Style s) |
Get name for style, used in project file. |
Composer legend components style.
Definition at line 30 of file qgscomposerlegendstyle.h.
Definition at line 43 of file qgscomposerlegendstyle.h.
Definition at line 33 of file qgscomposerlegendstyle.h.
QgsComposerLegendStyle::QgsComposerLegendStyle | ( | ) |
Definition at line 28 of file qgscomposerlegendstyle.cpp.
QgsComposerLegendStyle::~QgsComposerLegendStyle | ( | ) |
Definition at line 39 of file qgscomposerlegendstyle.cpp.
|
inline |
Definition at line 53 of file qgscomposerlegendstyle.h.
|
inline |
Definition at line 57 of file qgscomposerlegendstyle.h.
void QgsComposerLegendStyle::readXML | ( | const QDomElement & | elem, |
const QDomDocument & | doc | ||
) |
Definition at line 69 of file qgscomposerlegendstyle.cpp.
|
inline |
Definition at line 54 of file qgscomposerlegendstyle.h.
|
inline |
Definition at line 55 of file qgscomposerlegendstyle.h.
|
inline |
Definition at line 58 of file qgscomposerlegendstyle.h.
void QgsComposerLegendStyle::setMargin | ( | double | margin | ) |
Definition at line 43 of file qgscomposerlegendstyle.cpp.
|
static |
Get style from name, used in project file.
Definition at line 104 of file qgscomposerlegendstyle.cpp.
|
static |
Get style label, translated, used in UI.
Definition at line 115 of file qgscomposerlegendstyle.cpp.
|
static |
Get name for style, used in project file.
Definition at line 82 of file qgscomposerlegendstyle.cpp.
void QgsComposerLegendStyle::writeXML | ( | QString | name, |
QDomElement & | elem, | ||
QDomDocument & | doc | ||
) | const |
Definition at line 51 of file qgscomposerlegendstyle.cpp.