diff --git a/src/meshlab/interfaces.h b/src/meshlab/interfaces.h index 45a3f9fee..8960dc517 100644 --- a/src/meshlab/interfaces.h +++ b/src/meshlab/interfaces.h @@ -23,6 +23,9 @@ /**************************************************************************** History $Log$ +Revision 1.30 2006/01/04 15:27:30 alemochi +Renamed property of Format struct, and changed plugin dialog + Revision 1.29 2005/12/30 10:51:10 mariolatronico - added GLLogStream forward declaration - added method setLog to MeshFilterInterface to remove GLArea dependency on meshfilter plugin @@ -126,7 +129,7 @@ class MeshIOInterface public: struct Format { - QString desctiption; + QString description; QStringList extensions; }; diff --git a/src/meshlab/plugindialog.cpp b/src/meshlab/plugindialog.cpp index e0b8e9452..df55c265e 100644 --- a/src/meshlab/plugindialog.cpp +++ b/src/meshlab/plugindialog.cpp @@ -23,6 +23,9 @@ /**************************************************************************** History $Log$ +Revision 1.7 2006/01/04 15:27:30 alemochi +Renamed property of Format struct, and changed plugin dialog + Revision 1.6 2006/01/04 13:27:52 alemochi Added help in plugin dialog @@ -122,7 +125,11 @@ void PluginDialog::populateTreeWidget(const QString &path,const QStringList &fil MeshIOInterface *iMeshIO = qobject_cast(plugin); if (iMeshIO){ QStringList Templist; - foreach(const MeshIOInterface::Format f,iMeshIO->formats()){Templist.push_back(f.desctiption);} + foreach(const MeshIOInterface::Format f,iMeshIO->formats()){ + QString formats; + foreach(const QString s,f.extensions) formats+=s+" "; + Templist.push_back(formats); + } addItems(pluginItem,Templist); } MeshDecorateInterface *iDecorate = qobject_cast(plugin); @@ -183,6 +190,12 @@ void PluginDialog::displayInfo(QTreeWidgetItem* item,int ncolumn) if (plugin) { MeshIOInterface *iMeshIO = qobject_cast(plugin); if (iMeshIO){ + if (item->parent()!=NULL) + foreach(const MeshIOInterface::Format f,iMeshIO->formats()){ + QString formats; + foreach(const QString s,f.extensions) formats+=s+" "; + if (actionName==formats) labelInfo->setText(f.description); + } } MeshDecorateInterface *iDecorate = qobject_cast(plugin); if (iDecorate) diff --git a/src/meshlabplugins/meshio/meshio.cpp b/src/meshlabplugins/meshio/meshio.cpp index 777786584..6ee0bc0e4 100644 --- a/src/meshlabplugins/meshio/meshio.cpp +++ b/src/meshlabplugins/meshio/meshio.cpp @@ -24,6 +24,9 @@ History $Log$ + Revision 1.37 2006/01/04 15:27:30 alemochi + Renamed property of Format struct, and changed plugin dialog + Revision 1.36 2005/12/23 00:56:42 buzzelli Face normals computed also for STL and OFF files. Solved (hopefully) bug with progressbar. @@ -295,23 +298,23 @@ QList ExtraMeshIOPlugin::formats() const QList formatList; Format ply; - ply.desctiption = "Stanford Polygon File Format"; + ply.description = "Stanford Polygon File Format"; ply.extensions << tr("PLY"); Format obj; - obj.desctiption = "Alias Wavefront Object"; + obj.description = "Alias Wavefront Object"; obj.extensions << tr("OBJ"); Format off; - off.desctiption = "Object File Format"; + off.description = "Object File Format"; off.extensions << tr("OFF"); Format stl; - stl.desctiption = "STL File Format"; + stl.description = "STL File Format"; stl.extensions << tr("STL"); Format _3ds; - _3ds.desctiption = "3D-Studio File Format"; + _3ds.description = "3D-Studio File Format"; _3ds.extensions << tr("3DS"); formatList << ply;