umbrello: umbrello/codegenerators/ruby/rubycodecomment.h Source File

umbrello 2.31.1 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

rubycodecomment.h
Go to the documentation of this file.
1 /***************************************************************************
2 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2005 *
8 * Richard Dale <Richard_Dale@tipitina.demon.co.uk> *
9 * copyright (C) 2006-2020 *
10 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
11 ***************************************************************************/
12
13 #ifndef RUBYCODECOMMENT_H
14 #define RUBYCODECOMMENT_H
15
16 #include "codecomment.h"
17
18 #include <QString>
19
27 class RubyCodeComment : virtual public CodeComment
28 {
29 public:
33 explicit RubyCodeComment (CodeDocument * doc, const QString & text = QString());
34
38 virtual ~RubyCodeComment ();
39
43 QString toString () const;
44
49 virtual QString unformatText (const QString & text, const QString & indent = QString());
50
55 virtual QString getNewEditorLine (int amount);
56
57 protected:
58
59 private:
60
61 };
62
63 #endif // RUBYCODECOMMENT_H
TextBlock::getWriteOutText
bool getWriteOutText() const
Definition: textblock.cpp:141
RubyCodeComment::toString
QString toString() const
Definition: rubycodecomment.cpp:42
RubyCodeComment::getNewEditorLine
virtual QString getNewEditorLine(int amount)
Definition: rubycodecomment.cpp:26
CodeComment
Definition: codecomment.h:24
TextBlock::getIndentationString
QString getIndentationString(int level=0) const
Definition: textblock.cpp:193
CodeDocument
Definition: codedocument.h:33
rubycodecomment.h
RubyCodeComment::RubyCodeComment
RubyCodeComment(CodeDocument *doc, const QString &text=QString())
Definition: rubycodecomment.cpp:17
TextBlock::unformatText
virtual QString unformatText(const QString &text, const QString &indent=QString())
Definition: textblock.cpp:253
TextBlock::formatMultiLineText
static QString formatMultiLineText(const QString &work, const QString &linePrefix, const QString &breakStr, bool addBreak=true, bool lastLineHasBreak=true)
Definition: textblock.cpp:288
RubyCodeComment::~RubyCodeComment
virtual ~RubyCodeComment()
Definition: rubycodecomment.cpp:22
RubyCodeComment::unformatText
virtual QString unformatText(const QString &text, const QString &indent=QString())
Definition: rubycodecomment.cpp:32
TextBlock::getNewLineEndingChars
static QString getNewLineEndingChars()
Definition: textblock.cpp:172
RubyCodeComment
Definition: rubycodecomment.h:28
TextBlock::getText
QString getText() const
Definition: textblock.cpp:99
codecomment.h