mgr->setRule( action( VISU_CREATE_MANY_PRS ), aRule + " and selcount>1", true );
}
+//***************************************************************************
+void VisuGUI::contextMenuPopup( const QString& theClient, QPopupMenu* theMenu, QString& theTitle )
+{
+ SalomeApp_Module::contextMenuPopup(theClient, theMenu, theTitle);
+
+ SalomeApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
+ SALOME_ListIO aListIO;
+ aSelectionMgr->selectedObjects(aListIO);
+ if (aListIO.Extent() != 1) return;
+
+ Handle(SALOME_InteractiveObject) anIO;
+ CORBA::Object_var anObject = GetSelectedObj( this, &anIO );
+ _PTR(SObject) SO = GetCStudy( GetAppStudy( this ) )->FindObjectID( anIO->getEntry() );
+ if (IsSObjectTable(SO)) {
+ action( VISU_SHOW_TABLE )->addTo(theMenu);
+ action( VISU_CREATE_CURVES )->addTo(theMenu);
+ action( VISU_EXPORT_TABLE )->addTo(theMenu);
+ theMenu->insertSeparator();
+ action( VISU_DELETE )->addTo(theMenu);
+ }
+}
+
+
+//***************************************************************************
void
VisuGUI::
windows( QMap<int, int>& theMap ) const
virtual void studyActivated();
+ virtual void contextMenuPopup( const QString& theClient, QPopupMenu* theMenu, QString& theTitle );
+
public slots:
virtual bool deactivateModule( SUIT_Study* );
virtual bool activateModule( SUIT_Study* );