[Uml-devel] branches/work/soc-umbrello/umbrello/widgets
Ralf Habacker
ralf.habacker at gmail.com
Tue Dec 13 12:04:06 UTC 2011
SVN commit 1268449 by habacker:
reduced differences between trunk and soc-umbrello branch
A related patch will be applied to trunk.
MM +18 -2 boxwidget.h
--- branches/work/soc-umbrello/umbrello/widgets/boxwidget.h #1268448:1268449
@@ -1,11 +1,10 @@
/***************************************************************************
- * *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
- * copyright (C) 2003-2006 *
+ * copyright (C) 2003-2011 *
* Umbrello UML Modeller Authors <uml-devel at uml.sf.net> *
***************************************************************************/
@@ -31,10 +30,27 @@
class BoxWidget : public UMLWidget
{
public:
+ /**
+ * Constructs a BoxWidget.
+ *
+ * @param id The ID to assign (-1 will prompt a new ID.)
+ */
explicit BoxWidget(Uml::IDType id = Uml::id_None);
+
+ /**
+ * destructor
+ */
virtual ~BoxWidget();
+ /**
+ * Draws a rectangle.
+ */
virtual void paint(QPainter *p, const QStyleOptionGraphicsItem *item, QWidget *w);
+
+ /**
+ * 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