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

documentationwidget.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) 2002-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef DOCUMENTATIONWIDGET_H
12 #define DOCUMENTATIONWIDGET_H
13
14 #include <QWidget>
15
16 class AssociationWidget;
17 class CodeTextEdit;
18 class UMLObject;
19 class UMLWidget;
20
21 class KTextEdit;
22
23 class QGridLayout;
24 class QGroupBox;
25
26 class DocumentationWidget : public QWidget
27 {
28 Q_OBJECT
29 public:
30 explicit DocumentationWidget(UMLObject *o, QWidget *parent = 0);
31 explicit DocumentationWidget(UMLWidget *w, QWidget *parent = 0);
32 explicit DocumentationWidget(AssociationWidget *w, QWidget *parent = 0);
33 ~DocumentationWidget();
34
35 void apply();
36
37 protected:
38 QGroupBox *m_box;
39 KTextEdit *m_editField;
40 CodeTextEdit *m_codeEditField;
41 UMLObject *m_object;
42 UMLWidget *m_widget;
43 AssociationWidget *m_assocWidget;
44 void init(const QString &text);
45 };
46
47 #endif // DOCUMENTATIONWIDGET_H
DocumentationWidget::m_codeEditField
CodeTextEdit * m_codeEditField
Definition: documentationwidget.h:40
AssociationWidget
This class represents an association inside a diagram. Bugs and comments to umbrello-devel@kde....
Definition: associationwidget.h:52
UMLObject::asUMLOperation
UMLOperation * asUMLOperation()
Definition: umlobject.cpp:1324
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
UMLObject::isUMLOperation
bool isUMLOperation()
Definition: umlobject.h:218
WidgetBase::setDocumentation
virtual void setDocumentation(const QString &doc)
Definition: widgetbase.cpp:294
operation.h
CodeTextEdit
Definition: codetextedit.h:40
documentationwidget.h
codetextedit.h
DocumentationWidget::m_object
UMLObject * m_object
Definition: documentationwidget.h:41
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
DocumentationWidget::m_editField
KTextEdit * m_editField
Definition: documentationwidget.h:39
DocumentationWidget::DocumentationWidget
DocumentationWidget(UMLObject *o, QWidget *parent=0)
Definition: documentationwidget.cpp:31
UMLOperation::setSourceCode
void setSourceCode(const QString &code)
Definition: operation.cpp:499
DocumentationWidget::apply
void apply()
Definition: documentationwidget.cpp:70
umlwidget.h
i18n
#define i18n
Definition: main.cpp:39
WidgetBase::documentation
QString documentation() const
Definition: widgetbase.cpp:269
DocumentationWidget::m_assocWidget
AssociationWidget * m_assocWidget
Definition: documentationwidget.h:43
DocumentationWidget::init
void init(const QString &text)
Definition: documentationwidget.cpp:92
UMLObject::doc
QString doc() const
Definition: umlobject.cpp:435
associationwidget.h
UMLObject::setDoc
void setDoc(const QString &d)
Definition: umlobject.cpp:455
DocumentationWidget
Definition: documentationwidget.h:27
UMLOperation
Definition: operation.h:25
DocumentationWidget::m_widget
UMLWidget * m_widget
Definition: documentationwidget.h:42
UMLWidget::updateGeometry
void updateGeometry(bool withAssocs=true)
Definition: umlwidget.cpp:1781
umlobject.h
DocumentationWidget::~DocumentationWidget
~DocumentationWidget()
Definition: documentationwidget.cpp:61
DocumentationWidget::m_box
QGroupBox * m_box
Definition: documentationwidget.h:38
UMLOperation::getSourceCode
QString getSourceCode() const
Definition: operation.cpp:507