You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/***************************************************************************
|
|
|
|
* *
|
|
|
|
* 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 <tqstring.h>
|
|
|
|
|
|
|
|
// forward declarations
|
|
|
|
class UMLView;
|
|
|
|
class UMLObject;
|
|
|
|
class UMLWidget;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Widget factory methods.
|
|
|
|
* Bugs and comments to uml-devel@lists.sf.net or http://bugs.trinitydesktop.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 TQString& tag,
|
|
|
|
const TQString& idStr, UMLView *view);
|
|
|
|
|
|
|
|
} // end namespace Widget_Factory
|
|
|
|
|
|
|
|
#endif
|