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;
SUIT_DataObject* curObj = storeState( selObjs, openObjs, selKeys, openKeys, curKey );
- if ( notify )
- {
- bool upd = isAutoUpdate();
- setAutoUpdate( false );
- emit aboutRefresh();
- setAutoUpdate( upd );
- }
-
createConnections( obj );
updateView( obj );
expand( listViewItem( itr.current() ) );
}
-void OB_Browser::onRefresh()
-{
- updateTree( 0, true );
-}
-
void OB_Browser::onColumnVisible( int id )
{
setColumnShown( id, !isColumnVisible( id ) );
void OB_Browser::contextMenuPopup( QPopupMenu* menu )
{
- QValueList<int> cols;
+/* QValueList<int> cols;
for ( QMap<int, int>::ConstIterator it = myColumnIds.begin(); it != myColumnIds.end(); ++it )
{
if ( appropriateColumn( it.key() ) )
menu->setItemParameter( id, *iter );
}
if ( menu->count() != num )
- menu->insertSeparator();
+ menu->insertSeparator();*/
DataObjectList selected;
getSelected( selected );
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 )