void LightApp_Module::startOperation( const int id )
{
LightApp_Operation* op = 0;
- if( myOperations.contains( id ) )
+ if( myOperations.contains( id ) && reusableOperation( id ) )
op = myOperations[ id ];
else
{
{
return myOperations.contains( id ) ? myOperations[id] : 0;
}
+
+/*!
+ virtual method called to manage the same operations
+*/
+bool LightApp_Module::reusableOperation( const int id )
+{
+ return true;
+}
virtual CAM_DataModel* createDataModel();
+ virtual bool reusableOperation( const int id );
+
int addPreference( const QString& label );
int addPreference( const QString& label, const int pId, const int = LightApp_Preferences::Auto,
const QString& section = QString(),