}
-void SalomeApp_Application::onAboutRefresh()
+void SalomeApp_Application::onRefresh()
{
for ( ModuleListIterator it = modules(); it.current(); ++it )
{
if ( camDM && camDM->inherits( "SalomeApp_DataModel" ) )
((SalomeApp_DataModel*)camDM)->update();
}
+ objectBrowser()->updateTree();
}
void SalomeApp_Application::setActiveStudy( SUIT_Study* study )
wid = ob;
- connect( ob, SIGNAL( aboutRefresh() ), this, SLOT( onAboutRefresh() ) );
ob->connectPopupRequest( this, SLOT( onConnectPopupRequest( SUIT_PopupClient*, QContextMenuEvent* ) ) );
}
else if ( flag == WT_PyConsole )
QStringList fls = QStringList::split( ";", filters, false );
return SUIT_FileDlg::getFileName( parent, initial, fls, caption, open, true );
}
+
+void SalomeApp_Application::contextMenuPopup( const QString& type, QPopupMenu* thePopup, QString& title )
+{
+ CAM_Application::contextMenuPopup( type, thePopup, title );
+ thePopup->insertSeparator();
+ thePopup->insertItem( tr( "MEN_REFRESH" ), this, SLOT( onRefresh() ) );
+}
+
virtual void start();
+ virtual void contextMenuPopup( const QString&, QPopupMenu*, QString& );
+
static CORBA::ORB_var orb();
static SALOMEDSClient_StudyManager* studyMgr();
static SALOME_NamingService* namingService();
private slots:
void onSelection();
- void onAboutRefresh();
+ void onRefresh();
protected:
virtual void createActions();