umbrello
2.32.2
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
Go to the documentation of this file.
14 #include <ktextedit.h>
96 #if QT_VERSION >= 0x050000
123 const QColor & fgcolor = QColor(
"black"),
const QColor & bgcolor = QColor(
"white"),
124 UMLObject * umlobj = 0,
const QString & displayName = QString(),
int startLine = -1);
144 void clicked(
int para,
int pos);
171 #endif // CODEEDITOR_H
GNU GENERAL PUBLIC LICENSE June Free Software Inc Franklin Fifth USA Everyone is permitted to copy and distribute verbatim copies of this license document
Definition: GPL-2.0-only.txt:8
void slotCutTextBlock()
Definition: codeeditor.cpp:903
UMLClassifier * asUMLClassifier()
Definition: umlobject.cpp:1389
#define DEBUG_REGISTER(src)
Definition: debug_utils.h:117
UMLClassifier * getParentClassifier() const
Definition: classifiercodedocument.cpp:278
void setParagraphBackgroundColor(int position, const QColor &color)
Definition: codeeditor.cpp:1340
bool getWriteOutText() const
Definition: textblock.cpp:137
void updateTextBlockFromText(TextBlock *block)
Definition: codeeditor.cpp:1001
void expandSelectedParagraph(int where)
Definition: codeeditor.cpp:1425
QCheckBox * ui_highlightCheckBox
Definition: ui_codeviewerdialogbase.h:39
Definition: ownedcodeblock.h:23
virtual HierarchicalCodeBlock * newHierarchicalCodeBlock()
Definition: codedocument.cpp:475
bool m_isHighlighted
Definition: codeeditor.h:112
QString getStartMethodText() const
Definition: codemethodblock.cpp:40
Definition: codeclassfielddeclarationblock.h:25
virtual QString toString() const
Definition: textblock.cpp:401
UMLOperation * asUMLOperation()
Definition: umlobject.cpp:1404
QString name() const
Definition: umlobject.cpp:206
void editTextBlock(TextBlock *tBlock, int para)
Definition: codeeditor.cpp:157
QLabel * ui_componentLabel
Definition: ui_codeviewerdialogbase.h:38
QList< ParaInfo * > m_paraList
Definition: codeeditor.h:52
bool parentIsAttribute() const
Definition: codeclassfield.cpp:124
int m_lastPara
Definition: codeeditor.h:107
virtual bool removeTextBlock(TextBlock *remove_object)
Definition: codegenobjectwithtextblocks.cpp:91
QColor bgcolor
Definition: codeeditor.h:38
virtual void setAttributesFromObject(TextBlock *obj)
Definition: textblock.cpp:341
UMLAttribute * asUMLAttribute()
Definition: umlobject.cpp:1385
int end
end line number
Definition: codeeditor.h:36
int size
number of characters
Definition: codeeditor.h:35
bool m_newLinePressed
Definition: codeeditor.h:110
test
Definition: namespace-enum-literal.h:3
bool showHiddenBlocks
Definition: codeviewerstate.h:22
void setParent(UMLObject *p=0)
Definition: codeeditor.h:59
void setWriteOutText(bool write)
Definition: textblock.cpp:127
virtual bool showPropertiesDialog(QWidget *parent=0)
Definition: umlobject.cpp:140
void slotCopyTextBlock()
Definition: codeeditor.cpp:881
bool m_backspacePressed
Definition: codeeditor.h:111
virtual void syncToParent()
Definition: codemethodblock.cpp:167
void slotCursorPositionChanged()
Definition: codeeditor.cpp:1061
void init()
Definition: uniqueid.cpp:32
void loadFromDocument()
Definition: codeeditor.cpp:212
CodeClassField * getParentClassField()
Definition: codeaccessormethod.cpp:37
QString getIndentationString(int level=0) const
Definition: textblock.cpp:189
~CodeEditor()
Definition: codeeditor.cpp:76
void slotChangeSelectedBlockCommentView()
Definition: codeeditor.cpp:671
Definition: codeaccessormethod.h:17
int start
Definition: codeeditor.h:34
void slotRedrawText()
Definition: codeeditor.cpp:940
QColor hiddenColor
Definition: codeviewerstate.h:31
CodeDocument * m_parentDoc
Definition: codeeditor.h:104
bool close()
Definition: codeeditor.cpp:143
void clicked(int para, int pos)
Definition: codeeditor.cpp:120
QString getFileExtension() const
Definition: codedocument.cpp:79
Definition: codedocument.h:29
void changeShowHidden(int signal)
Definition: codeeditor.cpp:1351
bool isCodeAccessorMethod
Definition: codeeditor.h:56
void removeParagraph(int para)
Definition: codeeditor.cpp:629
@ UserGenerated
the content was entered by the user
Definition: codeblock.h:25
The base class for UML objects.
Definition: umlobject.h:69
QString getEndMethodText() const
Definition: codemethodblock.cpp:48
bool isEditable
Definition: codeeditor.h:39
UMLObject * m_parent
Definition: codeeditor.h:53
virtual int lastEditableLine()
Definition: textblock.cpp:219
TextBlockList * getTextBlockList() const
Definition: codegenobjectwithtextblocks.cpp:45
void clearText()
Definition: codeeditor.cpp:83
Definition: codeblock.h:16
QColor editBlockColor
Definition: codeviewerstate.h:28
Definition: classifiercodedocument.h:28
UMLObject * getParentObject()
Definition: ownedcodeblock.cpp:63
CodeEditor(const QString &text, CodeViewerDialog *parent=0, CodeDocument *doc=0)
Definition: codeeditor.cpp:58
bool textBlockIsClickable(UMLObject *obj)
Definition: codeeditor.cpp:640
void contractSelectedParagraph(int where)
Definition: codeeditor.cpp:1393
bool isClickable
Definition: codeeditor.h:55
void slotInsertCodeBlockAfterSelected()
Definition: codeeditor.cpp:707
bool paraIsNotSingleLine(int para)
Definition: codeeditor.cpp:1202
QColor nonEditBlockColor
Definition: codeviewerstate.h:29
void changeTextBlockHighlighting(TextBlock *tb, bool selected)
Definition: codeeditor.cpp:1304
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two distribute and or modify the software for each author s protection and we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed we want its recipients to know that what they have is not the so that any problems introduced by others will not reflect on the original authors reputations any free program is threatened constantly by software patents We wish to avoid the danger that redistributors of a free program will individually obtain patent in effect making the program proprietary To prevent we have made it clear that any patent must be licensed for everyone s free use or not licensed at all The precise terms and conditions for distribution and modification follow TERMS AND CONDITIONS FOR DISTRIBUTION AND MODIFICATION This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License The refers to any such program or and a work based on the Program means either the Program or any derivative work under copyright a work containing the Program or a portion of it
Definition: GPL-2.0-only.txt:64
CodeComment * getHeader() const
Definition: codedocument.cpp:180
CodeComment * newCodeComment(CodeDocument *cd)
Definition: codegenfactory.cpp:398
void contextMenuEvent(QContextMenuEvent *event)
Definition: codeeditor.cpp:731
it is up to the author donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License If the distribution and or use of the Library is restricted in certain countries either by patents or by copyrighted the original copyright holder who places the Library under this License may add an geographical distribution limitation excluding those so that distribution is permitted only in or among countries not thus excluded In such this License incorporates the limitation as if written in the body of this License The Free Software Foundation may publish revised and or new versions of the Library General Public License from time to time Such new versions will be similar in spirit to the present but may differ in detail to address new problems or concerns Each version is given a distinguishing version number If the Library specifies a version number of this License which applies to it and any later you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation If the Library does not specify a license version number
Definition: LGPL-2.0-only.txt:368
UMLObject * parent()
Definition: codeeditor.h:60
QString displayName() const
Definition: codeeditor.h:62
TextBlockInfo()
Definition: codeeditor.h:58
#define uWarning()
Definition: debug_utils.h:110
bool canDelete() const
Definition: textblock.cpp:57
QString getStartText() const
Definition: hierarchicalcodeblock.cpp:206
UMLRole * asUMLRole()
Definition: umlobject.cpp:1407
Definition: ownedhierarchicalcodeblock.h:22
QString m_displayName
Definition: codeeditor.h:54
#define i18n
Definition: main.cpp:34
TextBlock * findTextBlockAt(int characterPos)
Definition: codeeditor.cpp:1223
TextBlock * m_selectedTextBlock
Definition: codeeditor.h:116
Definition: codeeditor.h:31
void init(CodeViewerDialog *parentDialog, CodeDocument *parentDoc)
Definition: codeeditor.cpp:950
bool isParaEditable(int para)
Definition: codeeditor.cpp:1250
#define uDebug()
Definition: debug_utils.h:108
Settings::CodeViewerState state()
Definition: codeeditor.cpp:101
void setContentType(ContentType new_var)
Definition: codeblock.cpp:39
void slotChangeSelectedBlockView()
Definition: codeeditor.cpp:658
QMap< TextBlock *, TextBlockInfo * > m_tbInfoMap
Definition: codeeditor.h:119
void initText(CodeDocument *doc)
virtual QString getNewEditorLine(int amount=0)
Definition: textblock.cpp:236
TextBlock * m_lastTextBlockToBeEdited
Definition: codeeditor.h:117
connect()
Definition: namespaces-multiple.php:5
TextBlock * m_textBlockToPaste
Definition: codeeditor.h:115
type show c for details The hypothetical commands show w and show c should show the appropriate parts of the General Public License Of the commands you use may be called something other than show w and show c
Definition: GPL-2.0-only.txt:301
virtual void synchronize()
Definition: codedocument.cpp:326
CodeViewerDialog * m_parentDialog
Definition: codeeditor.h:105
void insertParagraph(const QString &text, int para)
Definition: codeeditor.cpp:619
bool blocksAreHighlighted
Definition: codeviewerstate.h:23
virtual QString unformatText(const QString &text, const QString &indent=QString())
Definition: textblock.cpp:249
bool insertTextBlock(TextBlock *newBlock, TextBlock *existingBlock, bool after=true)
Definition: codedocument.cpp:213
QString m_parentDocName
Definition: codeeditor.h:103
Definition: codeviewerdialog.h:22
virtual CodeBlock * newCodeBlock()
Definition: codedocument.cpp:457
@ AutoGenerated
the content was generated by code generation itself
Definition: codeblock.h:24
virtual int firstEditableLine()
Definition: textblock.cpp:211
static QString formatMultiLineText(const QString &work, const QString &linePrefix, const QString &breakStr, bool addBreak=true, bool lastLineHasBreak=true)
Definition: textblock.cpp:284
static bool isNonBlank(const QString &str)
Definition: codeeditor.cpp:183
void setDoc(const QString &d)
Definition: umlobject.cpp:450
int m_lastPos
Definition: codeeditor.h:108
int * pi
Definition: cxx11-null-pointer-constant.h:5
Definition: hierarchicalcodeblock.h:20
void appendText(TextBlock *tblock)
Definition: codeeditor.cpp:551
#define DEBUG(src)
Definition: debug_utils.h:115
UMLOperation * getParentOperation()
Definition: codeoperation.cpp:63
QString getEndText() const
Definition: hierarchicalcodeblock.cpp:51
Definition: codeeditor.h:66
#define uError()
Definition: debug_utils.h:109
Definition: operation.h:19
Definition: codeoperation.h:19
Settings::CodeViewerState state()
Definition: codeviewerdialog.cpp:68
QString getFileName() const
Definition: codedocument.cpp:60
void changeHighlighting(int signal)
Definition: codeeditor.cpp:1364
Information for a non-graphical Concept/Class.
Definition: classifier.h:34
virtual CodeBlockWithComments * newCodeBlockWithComments()
Definition: codedocument.cpp:466
QList< TextBlock * > TextBlockList
Definition: textblocklist.h:12
#define DBG_SRC
Definition: import_utils.cpp:38
void mouseDoubleClickEvent(QMouseEvent *e)
Definition: codeeditor.cpp:1454
void contentsMouseMoveEvent(QMouseEvent *e)
Definition: codeeditor.cpp:1478
bool m_showHiddenBlocks
Definition: codeeditor.h:113
ParaInfo()
Definition: codeeditor.h:41
void slotInsertCodeBlockBeforeSelected()
Definition: codeeditor.cpp:687
KMenu * createPopup()
Definition: codeeditor.cpp:749
Definition: textblock.h:22
void setText(const QString &text)
Definition: textblock.cpp:76
int getIndentationLevel() const
Definition: textblock.cpp:159
TextBlockList m_textBlockList
Definition: codeeditor.h:120
configurable params for the code viewer tool
Definition: codeviewerstate.h:15
void slotPasteTextBlock()
Definition: codeeditor.cpp:928
void keyPressEvent(QKeyEvent *e)
Definition: codeeditor.cpp:195
QString getText() const
Definition: textblock.cpp:95
CodeClassField * getParentClassField()
Definition: codeclassfielddeclarationblock.cpp:38
void insertText(const QString &text, TextBlock *parent, bool isEditable=false, const QColor &fgcolor=QColor("black"), const QColor &bgcolor=QColor("white"), UMLObject *umlobj=0, const QString &displayName=QString(), int startLine=-1)
Definition: codeeditor.cpp:250
UMLObject * getParentObject()
Definition: codeparameter.cpp:140
void rebuildView(int startCursorPos)
Definition: codeeditor.cpp:1523
Definition: codeeditor.h:49
QLabel * componentLabel()
Definition: codeeditor.cpp:110
QColor fgcolor
Definition: codeeditor.h:37
QColor umlObjectColor
Definition: codeviewerstate.h:30
Definition: codemethodblock.h:25
void setDisplayName(const QString &name)
Definition: codeeditor.h:61