44 #include "TypeQtWidget.hh" 49 TypeQtWidgetPlugin::TypeQtWidgetPlugin():
54 bool TypeQtWidgetPlugin::registerType() {
65 widgets_[
object->id()] = object;
67 QString
name = QString(tr(
"New Widget %1.lgt").arg( object->
id() ));
71 object->setName( f.fileName() );
73 object->enablePicking(
true);
76 emit emptyObjectAdded (object->
id() );
83 passMouseEvents(_event);
86 void TypeQtWidgetPlugin::passMouseEvents(QMouseEvent *_event)
88 for(std::map<int,QtWidgetObject*>::iterator iter = widgets_.begin(); iter != widgets_.end(); ++iter)
89 iter->second->mouseEvent(_event);
int addEmpty()
Create an empty object.
void objectDeleted(int _id)
An object was deleted.
QString name()
Return a name for the plugin.
void slotMouseEvent(QMouseEvent *_event)
Mouse Event from main application ( Picking Mode )
DLLEXPORT void setTypeIcon(DataType _id, QString _icon)
Set an Icon for a given DataType.
DLLEXPORT DataType addDataType(QString _name, QString _readableName)
Adds a datatype and returns the id for the new type.