Commit bb172b2f authored by Martin Schultz's avatar Martin Schultz

added connections for selectionparameters to core and pluginloader

also added selection communication implementation
parent 7eafbb00
......@@ -274,6 +274,9 @@ signals:
/// SelectionInterface: This signal is used to add non-interactive operations for a specific primitive type
void addSelectionOperations(QString _handleName, QStringList _operationsList, QString _category, SelectionInterface::PrimitiveType _type);
/// SelectionInterface: This signal is used to add interactive selection parameters for a specific primitive type
void addSelectionParameters(QString _handleName, QWidget* _widget, QString _category, SelectionInterface::PrimitiveType _type);
/// SelectionInterface: This signal is emitted when a non-interactive operation has been performed
void selectionOperation(QString _operation);
......@@ -538,6 +541,9 @@ signals:
/// SelectionInterface: Called in order to add non-interactive operations for a specific primitive type
void slotAddSelectionOperations(QString _handleName, QStringList _operationsList, QString _category, SelectionInterface::PrimitiveType _type);
/// SelectionInterface: Called in order to add interactive parameters for a specific primitive type
void slotAddSelectionParameters(QString _handleName, QWidget* _widget, QString _category, SelectionInterface::PrimitiveType _type);
/// SelectionInterface: Called when a non-interactive operation has been performed
void slotSelectionOperation(QString _operation);
......
......@@ -1359,6 +1359,15 @@ void Core::loadPlugin(const QString& _filename,const bool _silent, QString& _lic
if ( checkSlot( plugin , "slotAddSelectionOperations(QString,QStringList,QString,SelectionInterface::PrimitiveType)" ) )
connect(this , SIGNAL(addSelectionOperations(QString,QStringList,QString,SelectionInterface::PrimitiveType)),
plugin , SLOT(slotAddSelectionOperations(QString,QStringList,QString,SelectionInterface::PrimitiveType)),Qt::DirectConnection);
if ( checkSignal(plugin,"addSelectionParameters(QString,QWidget*,QString,SelectionInterface::PrimitiveType)") )
connect(plugin , SIGNAL(addSelectionParameters(QString,QWidget*,QString,SelectionInterface::PrimitiveType)),
this , SLOT(slotAddSelectionParameters(QString,QWidget*,QString,SelectionInterface::PrimitiveType)),Qt::DirectConnection);
if ( checkSlot( plugin , "slotAddSelectionParameters(QString,QWidget*,QString,SelectionInterface::PrimitiveType)" ) )
connect(this , SIGNAL(addSelectionParameters(QString,QWidget*,QString,SelectionInterface::PrimitiveType)),
plugin , SLOT(slotAddSelectionParameters(QString,QWidget*,QString,SelectionInterface::PrimitiveType)),Qt::DirectConnection);
if ( checkSignal(plugin,"selectionOperation(QString)") )
connect(plugin , SIGNAL(selectionOperation(QString)),
......
......@@ -53,7 +53,6 @@
//
//=============================================================================
//== INCLUDES =================================================================
#include "Core.hh"
......@@ -90,6 +89,10 @@ void Core::slotAddCustomSelectionMode(QString _handleName, QString _modeName, QS
void Core::slotAddSelectionOperations(QString _handleName,QStringList _operationsList, QString _category, SelectionInterface::PrimitiveType _type) {
emit addSelectionOperations(_handleName, _operationsList, _category, _type);
}
void Core::slotAddSelectionParameters(QString _handleName,QWidget* _widget, QString _category, SelectionInterface::PrimitiveType _type) {
emit addSelectionParameters(_handleName, _widget, _category, _type);
}
void Core::slotSelectionOperation(QString _operation) {
emit selectionOperation(_operation);
......
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