//info = new SUPERVGUI_Information();
cursor = desktop->cursor();
connect(desktop->getMainFrame(), SIGNAL(windowActivated(QWidget*)), this, SLOT(setMain(QWidget*)));
+
+ int anId = 300;
+ parent->menuBar()->changeItem(anId,parent->getComponentUserName("SUPERV"));
+
};
}
VIEW_GRAPHSUPERV, false);
if (aStudyFrame) {
connect(aStudyFrame,
- SIGNAL(sfBeforeStudyFrameClosing(QAD_StudyFrame*)),
+ SIGNAL(sfStudyFrameClosing(QAD_StudyFrame*)),
&Supervision,
SLOT(onGraphClosed(QAD_StudyFrame*)));
}
SUPERV::SuperG_var aSuperVisionComponent;
aSuperVisionComponent = SUPERV::SuperG::_narrow(objComponent);
- if (CORBA::is_nil(aSuperVisionComponent)) {
+ if (CORBA::is_nil(aSuperVisionComponent)) {
QMessageBox::warning(QAD_Application::getDesktop(), tr("ERROR"), tr("MSG_CANT_NARROW_SUPERV"));
return;
};
if (comp->FindAttribute(anAttr, "AttributeName")) {
aName = SALOMEDS::AttributeName::_narrow(anAttr);
QString compName(aName->Value());
- // if (compName.compare(STUDY_SUPERVISION) == 0) {
- if (compName.compare( QAD_Application::getDesktop()->getComponentUserName( "SUPERV" ) ) == 0) {
+ //if (compName.compare(STUDY_SUPERVISION) == 0) {
+ if (compName.compare(QAD_Application::getDesktop()->getComponentUserName("SUPERV")) == 0) {
SALOMEDS::GenericAttribute_var anAttr;
if (obj->FindAttribute(anAttr, "AttributeIOR")) {
SALOMEDS::AttributeIOR_var anIOR = SALOMEDS::AttributeIOR::_narrow(anAttr);
{
return (int)VIEW_GRAPHSUPERV;
}
+
+extern "C" void buildPresentation ( const Handle(SALOME_InteractiveObject)& theIO )
+{
+}