#include <dotgenerator.h>
DotGenerator::DotGenerator |
( |
| ) |
|
bool DotGenerator::availableConfigFiles |
( |
UMLScene * |
scene, |
|
|
QHash< QString, QString > & |
configFiles |
|
) |
| |
|
static |
Return a list of available templates for a given scene type
- Parameters
-
scene | The diagram |
configFiles | will contain the collected list of config files |
- Returns
- true if collecting succeeds
bool DotGenerator::createDotFile |
( |
UMLScene * |
scene, |
|
|
const QString & |
fileName, |
|
|
const QString & |
variant = QStringLiteral("default") |
|
) |
| |
Create dot file using displayed widgets and associations of the provided scene
- Note
- This method could also be used as a base to export diagrams as dot file
- Parameters
-
scene | The diagram from which the widget information is fetched |
fileName | Filename where to create the dot file |
variant | Variant string passed to readConfigFile() |
- Returns
- true if generating finished successfully
QString DotGenerator::currentDotPath |
( |
| ) |
|
|
static |
Return the path where dot is installed.
- Returns
- string with dot path
bool DotGenerator::findItem |
( |
QStringList & |
params, |
|
|
const QString & |
search |
|
) |
| |
|
protected |
Find string starting with the search string in string list
- Parameters
-
params | string list to search in |
search | string |
- Returns
- true when search string has been found
QString DotGenerator::fixID |
( |
const QString & |
_id | ) |
|
|
protected |
There are id wrapped with '"', remove it.
QString DotGenerator::generatorFullPath |
( |
| ) |
const |
int DotGenerator::generatorVersion |
( |
| ) |
const |
|
protected |
get generator version
- Returns
- version for example 20130928
bool DotGenerator::readConfigFile |
( |
QString |
diagramType, |
|
|
const QString & |
variant = QStringLiteral("default") |
|
) |
| |
Read a layout config file
- Parameters
-
diagramType | String identifying the diagram |
variant | String identifying the variant |
- Returns
- true on success
void DotGenerator::setGeneratorName |
( |
const QString & |
name | ) |
|
void DotGenerator::setUseFullNodeLabels |
( |
bool |
state | ) |
|
Set usage of full node labels. When set to true labels are extracted from the text output generated by the widget's paint method.
- Parameters
-
void DotGenerator::setUsePosition |
( |
bool |
state | ) |
|
set usage of position attribute in dot file
- Parameters
-
bool DotGenerator::useFullNodeLabels |
( |
| ) |
const |
return usage of full node labels
- Returns
- true if position are used
bool DotGenerator::usePosition |
( |
| ) |
const |
return usage of position attribute
- Returns
- true if position are used
QString DotGenerator::m_configFileName |
|
protected |
QHash<QString, QString> DotGenerator::m_dotParameters |
|
protected |
contains global graph parameters
QString DotGenerator::m_dotPath |
|
protected |
contains path to generator executable
QHash<QString, QString> DotGenerator::m_edgeParameters |
|
protected |
contains global edge parameters
QString DotGenerator::m_generator |
|
protected |
name of graphviz generator
QHash<QString, QString> DotGenerator::m_nodeParameters |
|
protected |
contains global node parameters
QPointF DotGenerator::m_origin |
|
protected |
double DotGenerator::m_scale |
|
protected |
bool DotGenerator::m_useFullNodeLabels |
|
protected |
bool DotGenerator::m_usePosition |
|
protected |
use position tag from dot (not used yet)
int DotGenerator::m_version {0} |
|
protected |
version of graphviz generator
The documentation for this class was generated from the following files: