mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-19 02:54:36 +00:00
Renamed property of Format struct, and changed plugin dialog
This commit is contained in:
parent
72044f3e03
commit
a50077a2c6
@ -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;
|
||||
};
|
||||
|
||||
|
||||
@ -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<MeshIOInterface *>(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<MeshDecorateInterface *>(plugin);
|
||||
@ -183,6 +190,12 @@ void PluginDialog::displayInfo(QTreeWidgetItem* item,int ncolumn)
|
||||
if (plugin) {
|
||||
MeshIOInterface *iMeshIO = qobject_cast<MeshIOInterface *>(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<MeshDecorateInterface *>(plugin);
|
||||
if (iDecorate)
|
||||
|
||||
@ -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<MeshIOInterface::Format> ExtraMeshIOPlugin::formats() const
|
||||
QList<Format> 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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user