summaryrefslogtreecommitdiffstats
path: root/umbrello/umbrello/widget_factory.h
diff options
context:
space:
mode:
Diffstat (limited to 'umbrello/umbrello/widget_factory.h')
-rw-r--r--umbrello/umbrello/widget_factory.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/umbrello/umbrello/widget_factory.h b/umbrello/umbrello/widget_factory.h
new file mode 100644
index 00000000..ed8c30b7
--- /dev/null
+++ b/umbrello/umbrello/widget_factory.h
@@ -0,0 +1,41 @@
+/***************************************************************************
+ * *
+ * 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) 2006 *
+ * Umbrello UML Modeller Authors <uml-devel@uml.sf.net> *
+ ***************************************************************************/
+
+#ifndef WIDGET_FACTORY_H
+#define WIDGET_FACTORY_H
+
+#include <qstring.h>
+
+// forward declarations
+class UMLView;
+class UMLObject;
+class UMLWidget;
+
+/**
+ * Widget factory methods.
+ * Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org
+ */
+namespace Widget_Factory {
+
+ /**
+ * Create a UMLWidget in the given view and representing the given document object.
+ */
+ UMLWidget *createWidget(UMLView *view, UMLObject *docObj);
+
+ /**
+ * Create a UMLWidget according to the given XMI tag.
+ */
+ UMLWidget* makeWidgetFromXMI(const QString& tag,
+ const QString& idStr, UMLView *view);
+
+} // end namespace Widget_Factory
+
+#endif