QString aCmdId = aCmd->id();
std::string aXmlCfg = aWdgReader.featureWidgetCfg(aCmdId.toStdString());
std::string aDescription = aWdgReader.featureDescription(aCmdId.toStdString());
- //TODO(sbh): Implement static method to extract event id [SEID]
- static Event_ID aModuleEvent = Event_Loop::eventByName("PartSetModuleEvent");
- Config_PointerMessage aMessage(aModuleEvent, this);
+ ModuleBase_PropPanelOperation* aPartSetOp;
- if (aCmdId == "Sketch" )
++ if (aCmdId == "Sketch" ) {
+ aPartSetOp = new PartSet_OperationSketch(aCmdId, this);
- else
++ } else {
+ aPartSetOp = new ModuleBase_PropPanelOperation(aCmdId, this);
-
++ }
+ PartSet_OperationSketchBase* aPreviewOp = dynamic_cast<PartSet_OperationSketchBase*>(aPartSetOp);
+ if (aPreviewOp)
+ connect(aPreviewOp, SIGNAL(visualizePreview()), this, SLOT(onVisualizePreview()));
- ModuleBase_PropPanelOperation* aPartSetOp = new ModuleBase_PropPanelOperation(aCmdId, this);
aPartSetOp->setXmlRepresentation(QString::fromStdString(aXmlCfg));
aPartSetOp->setDescription(QString::fromStdString(aDescription));
+
+ //TODO(sbh): Implement static method to extract event id [SEID]
+ static Event_ID aModuleEvent = Event_Loop::eventByName("PartSetModuleEvent");
+ Config_PointerMessage aMessage(aModuleEvent, this);
aMessage.setPointer(aPartSetOp);
Event_Loop::loop()->send(aMessage);
}