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,7 +282,11 @@ void SmootherPlugin::smooth(int _objectId , int _iterations , QString _direction ...@@ -282,7 +282,11 @@ void SmootherPlugin::smooth(int _objectId , int _iterations , QString _direction
emit updatedObject( object->id(), UPDATE_GEOMETRY ); emit updatedObject( object->id(), UPDATE_GEOMETRY );
// Create backup
emit createBackup(object->id(),jobDescription ); 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 { } else {
emit log(LOGERR,"Unsupported object type for smoother"); emit log(LOGERR,"Unsupported object type for smoother");
......
...@@ -58,6 +58,7 @@ ...@@ -58,6 +58,7 @@
#include <OpenFlipper/BasePlugin/BaseInterface.hh> #include <OpenFlipper/BasePlugin/BaseInterface.hh>
#include <OpenFlipper/BasePlugin/ToolboxInterface.hh> #include <OpenFlipper/BasePlugin/ToolboxInterface.hh>
#include <OpenFlipper/BasePlugin/BackupInterface.hh> #include <OpenFlipper/BasePlugin/BackupInterface.hh>
#include <OpenFlipper/BasePlugin/ScriptInterface.hh>
#include <OpenFlipper/BasePlugin/LoggingInterface.hh> #include <OpenFlipper/BasePlugin/LoggingInterface.hh>
#include <OpenFlipper/common/Types.hh> #include <OpenFlipper/common/Types.hh>
...@@ -74,13 +75,14 @@ ...@@ -74,13 +75,14 @@
/** Plugin for Smoother Support /** Plugin for Smoother Support
*/ */
class SmootherPlugin : public QObject, BaseInterface, ToolboxInterface, LoggingInterface, BackupInterface class SmootherPlugin : public QObject, BaseInterface, ToolboxInterface, LoggingInterface, BackupInterface, ScriptInterface
{ {
Q_OBJECT Q_OBJECT
Q_INTERFACES(BaseInterface) Q_INTERFACES(BaseInterface)
Q_INTERFACES(ToolboxInterface) Q_INTERFACES(ToolboxInterface)
Q_INTERFACES(BackupInterface) Q_INTERFACES(BackupInterface)
Q_INTERFACES(LoggingInterface) Q_INTERFACES(LoggingInterface)
Q_INTERFACES(ScriptInterface)
signals: signals:
...@@ -102,6 +104,9 @@ signals: ...@@ -102,6 +104,9 @@ signals:
// BackupInterface // BackupInterface
void createBackup( int _id , QString _name ); void createBackup( int _id , QString _name );
// ScriptInterface
void scriptInfo(QString _functionName);
public : public :
/// default constructor /// 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