umbrello/umbrello
#include <dcodecomment.h>
Public Member Functions | |
DCodeComment (CodeDocument *doc, const QString &text="") | |
virtual | ~DCodeComment () |
virtual QString | getNewEditorLine (int amount) |
virtual void | saveToXMI (QDomDocument &doc, QDomElement &root) |
QString | toString () const |
virtual QString | unformatText (const QString &text, const QString &indent="") |
Public Member Functions inherited from CodeComment | |
CodeComment (CodeDocument *doc, const QString &comment="") | |
virtual | ~CodeComment () |
virtual void | loadFromXMI (QDomElement &root) |
Public Member Functions inherited from TextBlock | |
TextBlock (CodeDocument *parent, const QString &text="") | |
virtual | ~TextBlock () |
void | appendText (const QString &text) |
bool | canDelete () const |
virtual int | firstEditableLine () |
int | getIndentationLevel () const |
QString | getIndentationString (int level=0) const |
CodeDocument * | getParentDocument () const |
QString | getTag () const |
QString | getText () const |
bool | getWriteOutText () const |
virtual int | lastEditableLine () |
virtual void | setAttributesFromObject (TextBlock *obj) |
void | setIndentationLevel (int level) |
void | setTag (const QString &value) |
void | setText (const QString &text) |
void | setWriteOutText (bool write) |
Additional Inherited Members | |
Static Public Member Functions inherited from TextBlock | |
static QString | decodeText (const QString &text, const QString &endLine) |
static QString | encodeText (const QString &text, const QString &endLine) |
static QString | formatMultiLineText (const QString &work, const QString &linePrefix, const QString &breakStr, bool addBreak=true, bool lastLineHasBreak=true) |
static QString | getIndentation () |
static QString | getNewLineEndingChars () |
Protected Member Functions inherited from TextBlock | |
virtual void | release () |
virtual void | setAttributesFromNode (QDomElement &root) |
virtual void | setAttributesOnNode (QDomDocument &doc, QDomElement &blockElement) |
void | setCanDelete (bool canDelete) |
Detailed Description
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.
Definition at line 25 of file dcodecomment.h.
Constructor & Destructor Documentation
|
explicit |
Constructors.
Definition at line 18 of file dcodecomment.cpp.
|
virtual |
Empty Destructor.
Definition at line 23 of file dcodecomment.cpp.
Member Function Documentation
|
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.
Definition at line 62 of file dcodecomment.cpp.
|
virtual |
Save the XMI representation of this object.
Reimplemented from CodeComment.
Definition at line 27 of file dcodecomment.cpp.
|
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.
Definition at line 37 of file dcodecomment.cpp.
|
virtual |
UnFormat a long text string.
Typically, this means removing the indentaion (linePrefix) and/or newline chars from each line.
Reimplemented from TextBlock.
Definition at line 69 of file dcodecomment.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.