Commit 8d824747 authored by Jan Möbius's avatar Jan Möbius

Basic PythonInterface for plugin move

parent 81d616f7
......@@ -4,10 +4,11 @@ if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/TSplineMesh)
add_definitions (-DENABLE_TSPLINEMESH_SUPPORT)
endif ()
openflipper_plugin ( TYPES PLANE POLYMESH TRIANGLEMESH
openflipper_plugin ( PYTHONINTERFACE
TYPES PLANE POLYMESH TRIANGLEMESH
OPTDEPS OpenVolumeMesh
OPT_TYPES POLYLINE SKELETON HEXAHEDRALMESH POLYHEDRALMESH TETRAHEDRALMESH
TRANSLATION_LANGUAGES de_DE
TRANSLATION_LANGUAGES de_DE
INSTALLDATA Icons VsiMetadata )
......@@ -745,6 +745,7 @@ void MovePlugin::setManipMode (QtTranslationManipulatorNode::ManipulatorMode _mo
//------------------------------------------------------------------------------
/** \brief Hide context menu entry when right clicking on node other than manipulator node
*
* @param _nodeId Identifier of node that has been clicked
......
......@@ -39,10 +39,7 @@
* *
\*===========================================================================*/
#ifndef MOVEPLUGIN_HH
#define MOVEPLUGIN_HH
#pragma once
#include <QObject>
#include <QMenuBar>
......@@ -58,6 +55,7 @@
#include <OpenFlipper/BasePlugin/ToolbarInterface.hh>
#include <OpenFlipper/BasePlugin/ContextMenuInterface.hh>
#include <OpenFlipper/BasePlugin/LoadSaveInterface.hh>
#include <OpenFlipper/BasePlugin/PythonInterface.hh>
#include <OpenFlipper/BasePlugin/RPCInterface.hh>
#include <OpenFlipper/common/Types.hh>
#include <ObjectTypes/PolyMesh/PolyMesh.hh>
......@@ -80,7 +78,7 @@
/** Plugin for moving objects and selections
*/
class MovePlugin : public QObject, BaseInterface, MouseInterface, KeyInterface, PickingInterface, ToolboxInterface, BackupInterface, LoggingInterface, ScriptInterface,ToolbarInterface, ContextMenuInterface, LoadSaveInterface, RPCInterface
class MovePlugin : public QObject, BaseInterface, MouseInterface, KeyInterface, PickingInterface, ToolboxInterface, BackupInterface, LoggingInterface, ScriptInterface,ToolbarInterface, PythonInterface, ContextMenuInterface, LoadSaveInterface, RPCInterface
{
Q_OBJECT
Q_INTERFACES(BaseInterface)
......@@ -95,6 +93,7 @@ class MovePlugin : public QObject, BaseInterface, MouseInterface, KeyInterface,
Q_INTERFACES(ToolbarInterface)
Q_INTERFACES(LoadSaveInterface)
Q_INTERFACES(RPCInterface)
Q_INTERFACES(PythonInterface)
Q_PLUGIN_METADATA(IID "org.OpenFlipper.Plugins.Plugin-Move")
......@@ -618,4 +617,3 @@ public slots :
bool transformedSelected_;
};
#endif //MOVEPLUGIN_HH
This diff is collapsed.
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