Usable version. Still working on.

This commit is contained in:
Paolo Cignoni cignoni 2005-12-02 17:09:51 +00:00
parent ca5ac3fc66
commit cb856b34e7
2 changed files with 12 additions and 14 deletions

View File

@ -18,6 +18,7 @@
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
****************************************************************************/
#include <QtGui>
#include "dummy.h"
@ -27,6 +28,4 @@ void DummyPlugin::Render(QAction *a, MeshModel &m, RenderMode &rm, GLArea *gla)
{
}
Q_EXPORT_PLUGIN(DummyPlugin)
Q_EXPORT_PLUGIN(DummyPlugin)

View File

@ -24,31 +24,30 @@
#include <QObject>
#include <QAction>
#include <QString>
#include <QList>
#include <meshlab/glArea.h>
#include <meshlab/meshmodel.h>
#include <meshlab/interfaces.h>
class DummyPlugin : public QObject, public MeshRenderInterface
{
Q_OBJECT
Q_INTERFACES(MeshRenderInterface)
QList<QAction *> actionList;
QList <QAction *> actionList;
public:
ExtraMeshIOPlugin()
DummyPlugin()
{
actionList<<new QAction(QString("action 1"),this);
actionList<<new QAction(QString("action 2"),this);
actionList<<new QAction(QString("action 3"),this);
actionList << new QAction(QString("action 1"),this);
actionList << new QAction(QString("action 2"),this);
actionList << new QAction(QString("action 3"),this);
}
QList<QAction *> actions () {return actionList;}
virtual void Render(QAction *, MeshModel &, RenderMode &, GLArea *);
QList<QAction *> actions () const {return actionList;}
void Render(QAction *a, MeshModel &m, RenderMode &rm, GLArea *gla);
};
#endif
#endif