generic class that implements MOdtRenderer by calling signals; the signals must be connected using a direct or blocking connection; if any of them is not used it will behave as if the variable/loop did not exist
More...
#include <odtrender.h>
|
void | getLoopIterations (QString loopname, int &iterations) |
| connect this to return the amount of iterations for a defined loop; should return 0 if the loop does not exist More...
|
|
void | getVariable (QString varname, QVariant &value) |
| connect this to return the value of a variable during rendering; should return empty string if the variable does not exist More...
|
|
void | setLoopIteration (QString loopname, int interation) |
|
|
int | getLoopIterations (QString loopname) |
| implement this to return the amount of iterations for a defined loop; should return 0 if the loop does not exist More...
|
|
QVariant | getVariable (QString varname) |
| implement this to return the value of a variable during rendering; should return empty string if the variable does not exist More...
|
|
virtual void | setLoopIteration (QString loopname, int interation)=0 |
| implement this to populate the variables used in a specific iteration of the loop More...
|
|
generic class that implements MOdtRenderer by calling signals; the signals must be connected using a direct or blocking connection; if any of them is not used it will behave as if the variable/loop did not exist
MOdtSignalRenderer::MOdtSignalRenderer |
( |
MTemplate |
file | ) |
|
instantiates a renderer loaded from template file
MOdtSignalRenderer::~MOdtSignalRenderer |
( |
| ) |
|
void MOdtSignalRenderer::getLoopIterations |
( |
QString |
loopname, |
|
|
int & |
iterations |
|
) |
| |
|
signal |
connect this to return the amount of iterations for a defined loop; should return 0 if the loop does not exist
Referenced by getLoopIterations().
int MOdtSignalRenderer::getLoopIterations |
( |
QString |
loopname | ) |
|
|
protectedvirtual |
implement this to return the amount of iterations for a defined loop; should return 0 if the loop does not exist
Implements MOdtRenderer.
References getLoopIterations().
void MOdtSignalRenderer::getVariable |
( |
QString |
varname, |
|
|
QVariant & |
value |
|
) |
| |
|
signal |
connect this to return the value of a variable during rendering; should return empty string if the variable does not exist
Referenced by getVariable().
QVariant MOdtSignalRenderer::getVariable |
( |
QString |
varname | ) |
|
|
protectedvirtual |
implement this to return the value of a variable during rendering; should return empty string if the variable does not exist
Implements MOdtRenderer.
References getVariable().
void MOdtSignalRenderer::setLoopIteration |
( |
QString |
loopname, |
|
|
int |
interation |
|
) |
| |
|
signal |
The documentation for this class was generated from the following files: