+
+ // Install ParaView managers for "Sources" and "Filters" menus
+ QMenu* res = 0;
+ aPVMnu = createMenu( tr( "Sources" ), -1, -1, 60 );
+ res = getMenu( aPVMnu );
+ if ( res ){
+ Implementation->Core.setSourceMenu( res );
+ connect(&this->Implementation->Core,
+ SIGNAL(enableSourceCreate(bool)),
+ res,
+ SLOT(setEnabled(bool)));
+ }
+ aPVMnu = createMenu( tr( "Filters" ), -1, -1, 70 );
+ res = getMenu( aPVMnu );
+ if ( res ){
+ Implementation->Core.setFilterMenu( res );
+ connect(&this->Implementation->Core,
+ SIGNAL(enableFilterCreate(bool)),
+ res,
+ SLOT(setEnabled(bool)));
+ }