Commit 4737e85e authored by Mike Kremer's avatar Mike Kremer

Added script info logging to smoother plugin.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9751 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 883091c8
......@@ -282,8 +282,12 @@ void SmootherPlugin::smooth(int _objectId , int _iterations , QString _direction
emit updatedObject( object->id(), UPDATE_GEOMETRY );
// Create backup
emit createBackup(object->id(),jobDescription );
emit scriptInfo(tr("smooth(%1, %2, %3, %4, %5)").arg(QString::number(_objectId), QString::number(_iterations),
_direction, _continuity, QString::number(_maxDistance)));
} else {
emit log(LOGERR,"Unsupported object type for smoother");
return;
......
......@@ -58,6 +58,7 @@
#include <OpenFlipper/BasePlugin/BaseInterface.hh>
#include <OpenFlipper/BasePlugin/ToolboxInterface.hh>
#include <OpenFlipper/BasePlugin/BackupInterface.hh>
#include <OpenFlipper/BasePlugin/ScriptInterface.hh>
#include <OpenFlipper/BasePlugin/LoggingInterface.hh>
#include <OpenFlipper/common/Types.hh>
......@@ -74,13 +75,14 @@
/** Plugin for Smoother Support
*/
class SmootherPlugin : public QObject, BaseInterface, ToolboxInterface, LoggingInterface, BackupInterface
class SmootherPlugin : public QObject, BaseInterface, ToolboxInterface, LoggingInterface, BackupInterface, ScriptInterface
{
Q_OBJECT
Q_INTERFACES(BaseInterface)
Q_INTERFACES(ToolboxInterface)
Q_INTERFACES(BackupInterface)
Q_INTERFACES(LoggingInterface)
Q_INTERFACES(ScriptInterface)
signals:
......@@ -102,6 +104,9 @@ signals:
// BackupInterface
void createBackup( int _id , QString _name );
// ScriptInterface
void scriptInfo(QString _functionName);
public :
/// default constructor
......
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