]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Popup item "Refresh"
authorstv <stv@opencascade.com>
Tue, 31 May 2005 09:18:12 +0000 (09:18 +0000)
committerstv <stv@opencascade.com>
Tue, 31 May 2005 09:18:12 +0000 (09:18 +0000)
src/ObjBrowser/OB_Browser.cxx
src/ObjBrowser/OB_Browser.h
src/ObjBrowser/resources/OB_msg_en.po

index 9570aa9637c6b081c5d43554426a7d9cb66e0cfe..3866f6c7e31af305ba0bd6dce1112832ec175ada 100755 (executable)
@@ -759,6 +759,11 @@ void OB_Browser::onExpand()
     expand( listViewItem( itr.current() ) );
 }
 
+void OB_Browser::onRefresh()
+{
+  updateTree();
+}
+
 void OB_Browser::onDestroyed( SUIT_DataObject* obj )
 {
   if ( !obj )
@@ -848,7 +853,11 @@ void OB_Browser::contextMenuPopup( QPopupMenu* menu )
     closed = hasClosed( listViewItem( itr.current() ) );
 
   if ( closed )
+  {
     menu->insertItem( tr( "MEN_EXPAND_ALL" ), this, SLOT( onExpand() ) );
+    menu->insertSeparator();
+  }
+  menu->insertItem( tr( "MEN_REFRESH" ), this, SLOT( onRefresh() ) );
 }
 
 void OB_Browser::expand( QListViewItem* item )
index 7222ec114d0250408fc3b8a51468262c5def7a2b..37df3ff2a1efa944a50be4320243e2b30b132242 100755 (executable)
@@ -84,6 +84,7 @@ signals:
 
 private slots:
   void              onExpand();
+  void              onRefresh();
   void              onDestroyed( SUIT_DataObject* );
   void              onDropped( QPtrList<QListViewItem>, QListViewItem*, int );
 
index 8f725025cbca6641f032592a67b620e92b6b1e77..914fab95de1bc05c84d8b44c53903d05fd986e74 100755 (executable)
@@ -11,3 +11,6 @@ msgstr ""
 
 msgid "MEN_EXPAND_ALL"
 msgstr "Expand All"
+
+msgid "MEN_REFRESH"
+msgstr "Refresh"