[Uml-devel] KDE/kdesdk/umbrello/umbrello/widgets
Ralf Habacker
ralf.habacker at gmail.com
Tue Dec 13 13:01:53 UTC 2011
SVN commit 1268452 by habacker:
corrected the wrong impression about where to document methods as done in several headers
M +16 -0 boxwidget.cpp
M +0 -18 boxwidget.h
--- trunk/KDE/kdesdk/umbrello/umbrello/widgets/boxwidget.cpp #1268451:1268452
@@ -11,6 +11,12 @@
// own header
#include "boxwidget.h"
+/**
+ * Constructs a BoxWidget.
+ *
+ * @param view The parent to this widget.
+ * @param id The ID to assign (-1 will prompt a new ID.)
+ */
BoxWidget::BoxWidget(UMLView * view, Uml::IDType id)
: UMLWidget(view, id)
{
@@ -21,10 +27,16 @@
setZ(m_origZ = 0);
}
+/**
+ * destructor
+ */
BoxWidget::~BoxWidget()
{
}
+/**
+ * Draws a rectangle.
+ */
void BoxWidget::draw(QPainter& p, int offsetX, int offsetY)
{
UMLWidget::setPenFromSettings(p);
@@ -35,6 +47,10 @@
}
}
+/**
+ * Saves the widget to the "boxwidget" XMI element.
+ * Note: For loading from XMI, the inherited parent method is used.
+ */
void BoxWidget::saveToXMI(QDomDocument& qDoc, QDomElement& qElement)
{
QDomElement boxElement = qDoc.createElement("boxwidget");
--- trunk/KDE/kdesdk/umbrello/umbrello/widgets/boxwidget.h #1268451:1268452
@@ -27,28 +27,10 @@
class BoxWidget : public UMLWidget
{
public:
- /**
- * Constructs a BoxWidget.
- *
- * @param view The parent to this widget.
- * @param id The ID to assign (-1 will prompt a new ID.)
- */
explicit BoxWidget(UMLView * view, Uml::IDType id = Uml::id_None);
-
- /**
- * destructor
- */
virtual ~BoxWidget();
- /**
- * Draws a rectangle.
- */
virtual void draw(QPainter & p, int offsetX, int offsetY);
-
- /**
- * Saves the widget to the "boxwidget" XMI element.
- * Note: For loading from XMI, the inherited parent method is used.
- */
virtual void saveToXMI(QDomDocument& qDoc, QDomElement& qElement);
};
More information about the umbrello-devel
mailing list