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()));
-
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);
}
/*
*
*/
-void XGUI_Workshop::fillPropertyPanel(ModuleBase_PropPanelOperation* theOperation)
+/*void XGUI_Workshop::fillPropertyPanel(ModuleBase_PropPanelOperation* theOperation)
{
- connectToPropertyPanel(theOperation);
+ connectWithOperation(theOperation);
QWidget* aPropWidget = myMainWindow->findChild<QWidget*>(XGUI::PROP_PANEL_WDG);
qDeleteAll(aPropWidget->children());
theOperation->start();
protected:
//Event-loop processing methods:
void addFeature(const Config_FeatureMessage*);
- void connectToPropertyPanel(ModuleBase_Operation* theOperation);
- void fillPropertyPanel(ModuleBase_PropPanelOperation* theOperation);
+ void connectWithOperation(ModuleBase_Operation* theOperation);
- void setCurrentOperation(ModuleBase_Operation* theOperation);
+
+protected slots:
+ void onBeforeOperationStart();
+ void onAfterOperationStart();
private:
void initMenu();