Commit 40050280 authored by Mike Kremer's avatar Mike Kremer

Added backup and script info logging to decimater plugin.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9750 383ad7c9-94d9-4d36-a494-682f7c89f535
parent e1ea0b0c
......@@ -195,7 +195,7 @@ void DecimaterPlugin::slot_decimate()
* @param _constraints A string containing a comma separated list of constraints (distance,normal_deviation,roundness,triangles)
* @param _values a string containing a comma separated list of constraint values suited to the _constraints parameter
*/
void DecimaterPlugin::decimate(int _objID, QVariantMap _constraints){
void DecimaterPlugin::decimate(int _objID, QVariantMap _constraints) {
BaseObjectData* baseObjectData;
......@@ -290,6 +290,11 @@ void DecimaterPlugin::decimate(int _objID, QVariantMap _constraints){
emit updatedObject( baseObjectData->id() , UPDATE_TOPOLOGY);
// Create backup
emit createBackup(_objID, "Decimation");
emit scriptInfo( tr("decimate(%1, QVariantMap)").arg(_objID) );
} else {
emit log(LOGERR,tr("Unsupported object type for decimater"));
return;
......
......@@ -53,6 +53,7 @@
#include <OpenFlipper/BasePlugin/ToolboxInterface.hh>
#include <OpenFlipper/BasePlugin/BackupInterface.hh>
#include <OpenFlipper/BasePlugin/LoggingInterface.hh>
#include <OpenFlipper/BasePlugin/ScriptInterface.hh>
#include <OpenFlipper/BasePlugin/RPCInterface.hh>
#include <OpenFlipper/common/Types.hh>
......@@ -67,13 +68,14 @@
/** Plugin for Decimater Support
*/
class DecimaterPlugin : public QObject, BaseInterface, ToolboxInterface, LoggingInterface, BackupInterface, RPCInterface
class DecimaterPlugin : public QObject, BaseInterface, ToolboxInterface, LoggingInterface, ScriptInterface, BackupInterface, RPCInterface
{
Q_OBJECT
Q_INTERFACES(BaseInterface)
Q_INTERFACES(ToolboxInterface)
Q_INTERFACES(BackupInterface)
Q_INTERFACES(LoggingInterface)
Q_INTERFACES(ScriptInterface)
Q_INTERFACES(RPCInterface)
signals:
......@@ -94,6 +96,12 @@ signals:
// ToolboxInterface
void addToolbox( QString _name , QWidget* _widget );
// ScriptInterface
void scriptInfo( QString _functionName );
// BackupInterface
void createBackup( int _id , QString _name );
private slots:
// BaseInterface
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment