Envision
A visual programming IDE for object-oriented languages
|
Public Types | |
enum | IndentationFlag { NoIndentation = 0x0 , NewLineBefore = 0x1 , IndentPrePostFix = 0x2 , IndentChildFragments = 0x4 , SpaceAfterPrefix = 0x8 , NewLineAfterPrefix = 0x10 , SpaceBeforePostfix = 0x20 , NewLineBeforePostfix = 0x40 , NewLineAfterPostfix = 0x80 , SpaceBeforeSeparator = 0x100 , SpaceAfterSeparator = 0x200 , EmptyLineAtEnd = 0x400 , SpaceAtEnd = 0x800 , BackslashAfterLines = 0x1000 } |
using | IndentationFlags = QFlags< IndentationFlag > |
Public Member Functions | |
FragmentLayouter (const QString &indentation) | |
void | addRule (const QString &fragmentType, IndentationFlags parameters, const QString &prefix={}, const QString &separator={}, const QString &postfix={}) |
QString | render (SourceFile *file, TextToNodeMap *map) |
Private Member Functions | |
void | render (SourceFragment *fragment, QString indentationSoFar) |
Private Attributes | |
QString | indentation_ |
QHash< QString, QPair< IndentationFlags, FragmentDecoration > > | rules_ |
FileWriter * | writer_ {} |
using Export::FragmentLayouter::IndentationFlags = QFlags<IndentationFlag> |
Export::FragmentLayouter::FragmentLayouter | ( | const QString & | indentation | ) |
void Export::FragmentLayouter::addRule | ( | const QString & | fragmentType, |
IndentationFlags | parameters, | ||
const QString & | prefix = {} , |
||
const QString & | separator = {} , |
||
const QString & | postfix = {} |
||
) |
QString Export::FragmentLayouter::render | ( | SourceFile * | file, |
TextToNodeMap * | map | ||
) |
|
private |
|
private |
|
private |
|
private |