#include <dcodecomment.h>
A class representing a D code comment.
The syntax follows the D Style Guide (
- See also
- http://www.digitalmars.com/d/dstyle.html). Single line comments begin with // and multiline comments use the longer form.
◆ DCodeComment()
DCodeComment::DCodeComment |
( |
CodeDocument * |
doc, |
|
|
const QString & |
text = QString() |
|
) |
| |
|
explicit |
◆ ~DCodeComment()
DCodeComment::~DCodeComment |
( |
| ) |
|
|
virtual |
◆ getNewEditorLine()
QString DCodeComment::getNewEditorLine |
( |
int |
amount | ) |
|
|
virtual |
A special version here because we want to not only indent the new line, but to add the "//" sequence as well.
Reimplemented from TextBlock.
◆ saveToXMI()
void DCodeComment::saveToXMI |
( |
QXmlStreamWriter & |
writer | ) |
|
|
virtual |
Save the XMI representation of this object.
Reimplemented from CodeComment.
◆ toString()
QString DCodeComment::toString |
( |
| ) |
const |
|
virtual |
Creates a comment block.
The syntax follows the D Style Guide (
- See also
- http://www.digitalmars.com/d/dstyle.html). Single line comments begin with // and multiline comments use the longer form.
- Returns
- QString Comment block source code.
Reimplemented from TextBlock.
◆ unformatText()
QString DCodeComment::unformatText |
( |
const QString & |
text, |
|
|
const QString & |
indent = QString() |
|
) |
| |
|
virtual |
UnFormat a long text string. Typically, this means removing the indentation (linePrefix) and/or newline chars from each line.
Reimplemented from TextBlock.
The documentation for this class was generated from the following files: