]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Merge branch 'master' of newgeom:newgeom
authorvsv <vitaly.smetannikov@opencascade.com>
Thu, 24 Apr 2014 08:41:40 +0000 (12:41 +0400)
committervsv <vitaly.smetannikov@opencascade.com>
Thu, 24 Apr 2014 08:41:40 +0000 (12:41 +0400)
1  2 
src/Config/Config_XMLReader.cpp
src/PartSet/PartSet_Module.cpp
src/XGUI/XGUI_Workshop.cpp
src/XGUI/XGUI_Workshop.h

Simple merge
index a4e64417be2e86752d8a2af7296b62c42d2cdb2d,12cf4971a067b8bdd8c873a306a6d87df27f2e17..2b2a3ddb10be1e020ff46fa80f2b3a08ac3e16d5
@@@ -84,33 -86,13 +86,13 @@@ void PartSet_Module::onFeatureTriggered
    aPartSetOp->setDescription(QString::fromStdString(aDescription));
  
    //TODO(sbh): Implement static method to extract event id [SEID]
 -  static Event_ID aModuleEvent = Event_Loop::eventByName("PartSetModuleEvent");
 +  static Events_ID aModuleEvent = Events_Loop::eventByName("PartSetModuleEvent");
    Config_PointerMessage aMessage(aModuleEvent, this);
    aMessage.setPointer(aPartSetOp);
 -  Event_Loop::loop()->send(aMessage);
 +  Events_Loop::loop()->send(aMessage);
  }
  
- /**
-  * Slot that is called by the operation requiring of preview display or erase
-  * \param isDisplay the display or erase state
- */
- void PartSet_Module::onVisualizePreview(bool isDisplay)
- {
-   ModuleBase_Operation* anOperation = myWorkshop->operationMgr()->currentOperation();
-   if (!anOperation)
-     return;
-   PartSet_OperationSketchBase* aPreviewOp = dynamic_cast<PartSet_OperationSketchBase*>(anOperation);
-   if (!aPreviewOp)
-     return;
-   if (isDisplay)
-     myWorkshop->displayer()->Display(anOperation->feature(), aPreviewOp->preview());
-   else
-     myWorkshop->displayer()->Erase(anOperation->feature(), aPreviewOp->preview());
- }
- void PartSet_Module::onBeforeOperationStart()
+ void PartSet_Module::onOperationStarted()
  {
    ModuleBase_Operation* anOperation = myWorkshop->operationMgr()->currentOperation();
  
Simple merge
Simple merge