]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
menu item "refresh", slot onRefresh(), signal aboutRefresh(), and updateTree( 2 param...
authorasv <asv@opencascade.com>
Fri, 17 Jun 2005 12:27:31 +0000 (12:27 +0000)
committerasv <asv@opencascade.com>
Fri, 17 Jun 2005 12:27:31 +0000 (12:27 +0000)
src/ObjBrowser/OB_Browser.cxx
src/ObjBrowser/OB_Browser.h
src/ObjBrowser/resources/OB_msg_en.po

index bc429a7d0ba70d7eff3f1dff59768058665678c8..2208b59c4099b39b52cf25e2d40a1a6a14857fdf 100755 (executable)
@@ -479,14 +479,9 @@ void OB_Browser::setAppropriateColumn( const int id, const bool on )
   myView->setAppropriate( myColumnIds[id], on );
 }
 
-void OB_Browser::updateTree( SUIT_DataObject* o )
+void OB_Browser::updateTree( SUIT_DataObject* obj )
 {
-  updateTree( o ? o : getRootObject(), false );
-}
-
-void OB_Browser::updateTree( SUIT_DataObject* obj, const bool notify )
-{
-  if ( !obj )
+  if ( !obj && !(obj = getRootObject()) )
     return;
 
   DataObjectKey curKey;
@@ -497,14 +492,6 @@ void OB_Browser::updateTree( SUIT_DataObject* obj, const bool notify )
 
   SUIT_DataObject* curObj = storeState( selObjs, openObjs, selKeys, openKeys, curKey );
 
-  if ( notify )
-  {
-    bool upd = isAutoUpdate();
-    setAutoUpdate( false );
-    emit aboutRefresh();
-    setAutoUpdate( upd );
-  }
-
   createConnections( obj );
   updateView( obj );
 
@@ -875,11 +862,6 @@ void OB_Browser::onExpand()
     expand( listViewItem( itr.current() ) );
 }
 
-void OB_Browser::onRefresh()
-{
-  updateTree( getRootObject(), true );
-}
-
 void OB_Browser::onColumnVisible( int id )
 {
   setColumnShown( id, !isColumnVisible( id ) );
@@ -997,7 +979,6 @@ void OB_Browser::contextMenuPopup( QPopupMenu* menu )
     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 c62cb21819dc7b5063455cee77964603c09b1508..5e5adeccd58ca2ef60b7e122ac0fd8957e5cb3ba 100755 (executable)
@@ -98,13 +98,11 @@ public:
   virtual void      contextMenuPopup( QPopupMenu* );
 
 signals:
-  void              aboutRefresh();
   void              selectionChanged();
   void              dropped( DataObjectList, SUIT_DataObject*, int );
 
 private slots:
   void              onExpand();
-  void              onRefresh();
   void              onColumnVisible( int );
   void              onDestroyed( SUIT_DataObject* );
   void              onDropped( QPtrList<QListViewItem>, QListViewItem*, int );
@@ -137,7 +135,6 @@ private:
   void              removeObject( SUIT_DataObject*, const bool = true );
 
   void              updateText( QListViewItem* );
-  void              updateTree( SUIT_DataObject*, const bool );
 
   DataObjectKey     objectKey( QListViewItem* ) const;
   DataObjectKey     objectKey( SUIT_DataObject* ) const;
index 914fab95de1bc05c84d8b44c53903d05fd986e74..b570f058e21602c970289a61d2d71ac45b32704d 100755 (executable)
@@ -12,5 +12,3 @@ msgstr ""
 msgid "MEN_EXPAND_ALL"
 msgstr "Expand All"
 
-msgid "MEN_REFRESH"
-msgstr "Refresh"