@ -108,8 +108,8 @@ CollectionBrowser::CollectionBrowser( const char* name )
searchToolBar - > setStretchableWidget ( m_searchEdit ) ;
searchToolBar - > setStretchableWidget ( m_searchEdit ) ;
m_searchEdit - > setFrame ( TQFrame : : Sunken ) ;
m_searchEdit - > setFrame ( TQFrame : : Sunken ) ;
connect ( button , TQ T _SIGNAL( clicked ( ) ) , TQ T _SLOT( slotClearFilter ( ) ) ) ;
connect ( button , TQ _SIGNAL( clicked ( ) ) , TQ _SLOT( slotClearFilter ( ) ) ) ;
connect ( filterButton , TQ T _SIGNAL( clicked ( ) ) , TQ T _SLOT( slotEditFilter ( ) ) ) ;
connect ( filterButton , TQ _SIGNAL( clicked ( ) ) , TQ _SLOT( slotEditFilter ( ) ) ) ;
TQToolTip : : add ( button , i18n ( " Clear search field " ) ) ;
TQToolTip : : add ( button , i18n ( " Clear search field " ) ) ;
TQToolTip : : add ( m_searchEdit , i18n ( " Enter space-separated terms to search in the collection " ) ) ;
TQToolTip : : add ( m_searchEdit , i18n ( " Enter space-separated terms to search in the collection " ) ) ;
@ -149,10 +149,10 @@ CollectionBrowser::CollectionBrowser( const char* name )
m_view = new CollectionView ( this ) ;
m_view = new CollectionView ( this ) ;
m_view - > installEventFilter ( this ) ;
m_view - > installEventFilter ( this ) ;
m_configureAction = new TDEAction ( i18n ( " Configure Folders " ) , Amarok : : icon ( " configure " ) , 0 , this , TQ T _SLOT( setupDirs ( ) ) , ac , " Configure " ) ;
m_configureAction = new TDEAction ( i18n ( " Configure Folders " ) , Amarok : : icon ( " configure " ) , 0 , this , TQ _SLOT( setupDirs ( ) ) , ac , " Configure " ) ;
m_treeViewAction = new TDERadioAction ( i18n ( " Tree View " ) , " view_tree " , 0 , m_view , TQ T _SLOT( setTreeMode ( ) ) , ac , " Tree View " ) ;
m_treeViewAction = new TDERadioAction ( i18n ( " Tree View " ) , " view_tree " , 0 , m_view , TQ _SLOT( setTreeMode ( ) ) , ac , " Tree View " ) ;
m_flatViewAction = new TDERadioAction ( i18n ( " Flat View " ) , " view_detailed " , 0 , m_view , TQ T _SLOT( setFlatMode ( ) ) , ac , " Flat View " ) ;
m_flatViewAction = new TDERadioAction ( i18n ( " Flat View " ) , " view_detailed " , 0 , m_view , TQ _SLOT( setFlatMode ( ) ) , ac , " Flat View " ) ;
m_ipodViewAction = new TDERadioAction ( i18n ( " iPod View " ) , Amarok : : icon ( " device " ) , 0 , m_view , TQ T _SLOT( setIpodMode ( ) ) , ac , " iPod View " ) ;
m_ipodViewAction = new TDERadioAction ( i18n ( " iPod View " ) , Amarok : : icon ( " device " ) , 0 , m_view , TQ _SLOT( setIpodMode ( ) ) , ac , " iPod View " ) ;
m_treeViewAction - > setExclusiveGroup ( " view mode " ) ;
m_treeViewAction - > setExclusiveGroup ( " view mode " ) ;
m_flatViewAction - > setExclusiveGroup ( " view mode " ) ;
m_flatViewAction - > setExclusiveGroup ( " view mode " ) ;
m_ipodViewAction - > setExclusiveGroup ( " view mode " ) ;
m_ipodViewAction - > setExclusiveGroup ( " view mode " ) ;
@ -169,7 +169,7 @@ CollectionBrowser::CollectionBrowser( const char* name )
break ;
break ;
}
}
m_showDividerAction = new TDEToggleAction ( i18n ( " Show Divider " ) , " format-justify-left " , 0 , this , TQ T _SLOT( toggleDivider ( ) ) , ac , " Show Divider " ) ;
m_showDividerAction = new TDEToggleAction ( i18n ( " Show Divider " ) , " format-justify-left " , 0 , this , TQ _SLOT( toggleDivider ( ) ) , ac , " Show Divider " ) ;
m_showDividerAction - > setChecked ( m_view - > m_showDivider ) ;
m_showDividerAction - > setChecked ( m_view - > m_showDivider ) ;
@ -178,11 +178,11 @@ CollectionBrowser::CollectionBrowser( const char* name )
// browser window; see the "For iPod-style navigation" comments below.
// browser window; see the "For iPod-style navigation" comments below.
m_ipodDecrement = new TDEAction ( i18n ( " Browse backward " ) ,
m_ipodDecrement = new TDEAction ( i18n ( " Browse backward " ) ,
TQIconSet ( m_view - > ipodDecrementIcon ( ) , TQIconSet : : Small ) ,
TQIconSet ( m_view - > ipodDecrementIcon ( ) , TQIconSet : : Small ) ,
0 , m_view , TQ T _SLOT( decrementDepth ( ) ) , ac ,
0 , m_view , TQ _SLOT( decrementDepth ( ) ) , ac ,
" iPod Decrement " ) ;
" iPod Decrement " ) ;
m_ipodIncrement = new TDEAction ( i18n ( " Browse forward " ) ,
m_ipodIncrement = new TDEAction ( i18n ( " Browse forward " ) ,
TQIconSet ( m_view - > ipodIncrementIcon ( ) , TQIconSet : : Small ) ,
TQIconSet ( m_view - > ipodIncrementIcon ( ) , TQIconSet : : Small ) ,
0 , m_view , TQ T _SLOT( incrementDepth ( ) ) , ac ,
0 , m_view , TQ _SLOT( incrementDepth ( ) ) , ac ,
" iPod Increment " ) ;
" iPod Increment " ) ;
m_ipodDecrement - > plug ( m_ipodToolbar ) ;
m_ipodDecrement - > plug ( m_ipodToolbar ) ;
m_ipodIncrement - > plug ( m_ipodToolbar ) ;
m_ipodIncrement - > plug ( m_ipodToolbar ) ;
@ -195,17 +195,17 @@ CollectionBrowser::CollectionBrowser( const char* name )
m_tagfilterMenuButton - > setDelayed ( false ) ;
m_tagfilterMenuButton - > setDelayed ( false ) ;
// FIXME: either both or nothing
// FIXME: either both or nothing
//m_tagfilterMenuButton->setEnabled( m_view->m_viewMode == CollectionView::modeTreeView );
//m_tagfilterMenuButton->setEnabled( m_view->m_viewMode == CollectionView::modeTreeView );
//connect ( m_treeViewAction, TQ T _SIGNAL ( toggled(bool) ), m_tagfilterMenuButton, TQT _SLOT( setEnabled (bool) ) );
//connect ( m_treeViewAction, TQ _SIGNAL ( toggled(bool) ), m_tagfilterMenuButton, TQ_SLOT( setEnabled (bool) ) );
layoutToolbar ( ) ;
layoutToolbar ( ) ;
m_categoryMenu = m_tagfilterMenuButton - > popupMenu ( ) ;
m_categoryMenu = m_tagfilterMenuButton - > popupMenu ( ) ;
m_categoryMenu - > insertItem ( i18n ( " Artist " ) , m_view , TQ T _SLOT( presetMenu ( int ) ) , 0 , IdArtist ) ;
m_categoryMenu - > insertItem ( i18n ( " Artist " ) , m_view , TQ _SLOT( presetMenu ( int ) ) , 0 , IdArtist ) ;
m_categoryMenu - > insertItem ( i18n ( " Artist / Album " ) , m_view , TQ T _SLOT( presetMenu ( int ) ) , 0 , IdArtistAlbum ) ;
m_categoryMenu - > insertItem ( i18n ( " Artist / Album " ) , m_view , TQ _SLOT( presetMenu ( int ) ) , 0 , IdArtistAlbum ) ;
m_categoryMenu - > insertItem ( i18n ( " Artist " ) + " / " + i18n ( " Year " ) + i18n ( " - " ) + i18n ( " Album " ) , m_view , TQ T _SLOT( presetMenu ( int ) ) , 0 , IdArtistVisYearAlbum ) ;
m_categoryMenu - > insertItem ( i18n ( " Artist " ) + " / " + i18n ( " Year " ) + i18n ( " - " ) + i18n ( " Album " ) , m_view , TQ _SLOT( presetMenu ( int ) ) , 0 , IdArtistVisYearAlbum ) ;
m_categoryMenu - > insertItem ( i18n ( " Album " ) , m_view , TQ T _SLOT( presetMenu ( int ) ) , 0 , IdAlbum ) ;
m_categoryMenu - > insertItem ( i18n ( " Album " ) , m_view , TQ _SLOT( presetMenu ( int ) ) , 0 , IdAlbum ) ;
m_categoryMenu - > insertItem ( i18n ( " Genre / Artist " ) , m_view , TQ T _SLOT( presetMenu ( int ) ) , 0 , IdGenreArtist ) ;
m_categoryMenu - > insertItem ( i18n ( " Genre / Artist " ) , m_view , TQ _SLOT( presetMenu ( int ) ) , 0 , IdGenreArtist ) ;
m_categoryMenu - > insertItem ( i18n ( " Genre / Artist / Album " ) , m_view , TQ T _SLOT( presetMenu ( int ) ) , 0 , IdGenreArtistAlbum ) ;
m_categoryMenu - > insertItem ( i18n ( " Genre / Artist / Album " ) , m_view , TQ _SLOT( presetMenu ( int ) ) , 0 , IdGenreArtistAlbum ) ;
m_categoryMenu - > insertSeparator ( ) ;
m_categoryMenu - > insertSeparator ( ) ;
@ -213,42 +213,42 @@ CollectionBrowser::CollectionBrowser( const char* name )
m_categoryMenu - > insertItem ( i18n ( " &Second Level " ) , m_cat2Menu ) ;
m_categoryMenu - > insertItem ( i18n ( " &Second Level " ) , m_cat2Menu ) ;
m_categoryMenu - > insertItem ( i18n ( " &Third Level " ) , m_cat3Menu ) ;
m_categoryMenu - > insertItem ( i18n ( " &Third Level " ) , m_cat3Menu ) ;
m_cat1Menu - > insertItem ( i18n ( " &Album " ) , m_view , TQ T _SLOT( cat1Menu ( int ) ) , 0 , IdAlbum ) ;
m_cat1Menu - > insertItem ( i18n ( " &Album " ) , m_view , TQ _SLOT( cat1Menu ( int ) ) , 0 , IdAlbum ) ;
m_cat1Menu - > insertItem ( i18n ( " (Y&ear) - Album " ) , m_view , TQ T _SLOT( cat1Menu ( int ) ) , 0 , IdVisYearAlbum ) ;
m_cat1Menu - > insertItem ( i18n ( " (Y&ear) - Album " ) , m_view , TQ _SLOT( cat1Menu ( int ) ) , 0 , IdVisYearAlbum ) ;
m_cat1Menu - > insertItem ( i18n ( " A&rtist " ) , m_view , TQ T _SLOT( cat1Menu ( int ) ) , 0 , IdArtist ) ;
m_cat1Menu - > insertItem ( i18n ( " A&rtist " ) , m_view , TQ _SLOT( cat1Menu ( int ) ) , 0 , IdArtist ) ;
m_cat1Menu - > insertItem ( i18n ( " &Composer " ) , m_view , TQ T _SLOT( cat1Menu ( int ) ) , 0 , IdComposer ) ;
m_cat1Menu - > insertItem ( i18n ( " &Composer " ) , m_view , TQ _SLOT( cat1Menu ( int ) ) , 0 , IdComposer ) ;
m_cat1Menu - > insertItem ( i18n ( " &Genre " ) , m_view , TQ T _SLOT( cat1Menu ( int ) ) , 0 , IdGenre ) ;
m_cat1Menu - > insertItem ( i18n ( " &Genre " ) , m_view , TQ _SLOT( cat1Menu ( int ) ) , 0 , IdGenre ) ;
m_cat1Menu - > insertItem ( i18n ( " &Year " ) , m_view , TQ T _SLOT( cat1Menu ( int ) ) , 0 , IdYear ) ;
m_cat1Menu - > insertItem ( i18n ( " &Year " ) , m_view , TQ _SLOT( cat1Menu ( int ) ) , 0 , IdYear ) ;
m_cat1Menu - > insertItem ( i18n ( " &Label " ) , m_view , TQ T _SLOT( cat1Menu ( int ) ) , 0 , IdLabel ) ;
m_cat1Menu - > insertItem ( i18n ( " &Label " ) , m_view , TQ _SLOT( cat1Menu ( int ) ) , 0 , IdLabel ) ;
m_cat2Menu - > insertItem ( i18n ( " &None " ) , m_view , TQ T _SLOT( cat2Menu ( int ) ) , 0 , IdNone ) ;
m_cat2Menu - > insertItem ( i18n ( " &None " ) , m_view , TQ _SLOT( cat2Menu ( int ) ) , 0 , IdNone ) ;
m_cat2Menu - > insertSeparator ( ) ;
m_cat2Menu - > insertSeparator ( ) ;
m_cat2Menu - > insertItem ( i18n ( " &Album " ) , m_view , TQ T _SLOT( cat2Menu ( int ) ) , 0 , IdAlbum ) ;
m_cat2Menu - > insertItem ( i18n ( " &Album " ) , m_view , TQ _SLOT( cat2Menu ( int ) ) , 0 , IdAlbum ) ;
m_cat2Menu - > insertItem ( i18n ( " (Y&ear) - Album " ) , m_view , TQ T _SLOT( cat2Menu ( int ) ) , 0 , IdVisYearAlbum ) ;
m_cat2Menu - > insertItem ( i18n ( " (Y&ear) - Album " ) , m_view , TQ _SLOT( cat2Menu ( int ) ) , 0 , IdVisYearAlbum ) ;
m_cat2Menu - > insertItem ( i18n ( " A&rtist " ) , m_view , TQ T _SLOT( cat2Menu ( int ) ) , 0 , IdArtist ) ;
m_cat2Menu - > insertItem ( i18n ( " A&rtist " ) , m_view , TQ _SLOT( cat2Menu ( int ) ) , 0 , IdArtist ) ;
m_cat2Menu - > insertItem ( i18n ( " &Composer " ) , m_view , TQ T _SLOT( cat2Menu ( int ) ) , 0 , IdComposer ) ;
m_cat2Menu - > insertItem ( i18n ( " &Composer " ) , m_view , TQ _SLOT( cat2Menu ( int ) ) , 0 , IdComposer ) ;
m_cat2Menu - > insertItem ( i18n ( " &Genre " ) , m_view , TQ T _SLOT( cat2Menu ( int ) ) , 0 , IdGenre ) ;
m_cat2Menu - > insertItem ( i18n ( " &Genre " ) , m_view , TQ _SLOT( cat2Menu ( int ) ) , 0 , IdGenre ) ;
m_cat2Menu - > insertItem ( i18n ( " &Year " ) , m_view , TQ T _SLOT( cat2Menu ( int ) ) , 0 , IdYear ) ;
m_cat2Menu - > insertItem ( i18n ( " &Year " ) , m_view , TQ _SLOT( cat2Menu ( int ) ) , 0 , IdYear ) ;
m_cat2Menu - > insertItem ( i18n ( " &Label " ) , m_view , TQ T _SLOT( cat2Menu ( int ) ) , 0 , IdLabel ) ;
m_cat2Menu - > insertItem ( i18n ( " &Label " ) , m_view , TQ _SLOT( cat2Menu ( int ) ) , 0 , IdLabel ) ;
m_cat3Menu - > insertItem ( i18n ( " &None " ) , m_view , TQ T _SLOT( cat3Menu ( int ) ) , 0 , IdNone ) ;
m_cat3Menu - > insertItem ( i18n ( " &None " ) , m_view , TQ _SLOT( cat3Menu ( int ) ) , 0 , IdNone ) ;
m_cat3Menu - > insertSeparator ( ) ;
m_cat3Menu - > insertSeparator ( ) ;
m_cat3Menu - > insertItem ( i18n ( " A&lbum " ) , m_view , TQ T _SLOT( cat3Menu ( int ) ) , 0 , IdAlbum ) ;
m_cat3Menu - > insertItem ( i18n ( " A&lbum " ) , m_view , TQ _SLOT( cat3Menu ( int ) ) , 0 , IdAlbum ) ;
m_cat3Menu - > insertItem ( i18n ( " (Y&ear) - Album " ) , m_view , TQ T _SLOT( cat3Menu ( int ) ) , 0 , IdVisYearAlbum ) ;
m_cat3Menu - > insertItem ( i18n ( " (Y&ear) - Album " ) , m_view , TQ _SLOT( cat3Menu ( int ) ) , 0 , IdVisYearAlbum ) ;
m_cat3Menu - > insertItem ( i18n ( " A&rtist " ) , m_view , TQ T _SLOT( cat3Menu ( int ) ) , 0 , IdArtist ) ;
m_cat3Menu - > insertItem ( i18n ( " A&rtist " ) , m_view , TQ _SLOT( cat3Menu ( int ) ) , 0 , IdArtist ) ;
m_cat3Menu - > insertItem ( i18n ( " &Composer " ) , m_view , TQ T _SLOT( cat3Menu ( int ) ) , 0 , IdComposer ) ;
m_cat3Menu - > insertItem ( i18n ( " &Composer " ) , m_view , TQ _SLOT( cat3Menu ( int ) ) , 0 , IdComposer ) ;
m_cat3Menu - > insertItem ( i18n ( " &Genre " ) , m_view , TQ T _SLOT( cat3Menu ( int ) ) , 0 , IdGenre ) ;
m_cat3Menu - > insertItem ( i18n ( " &Genre " ) , m_view , TQ _SLOT( cat3Menu ( int ) ) , 0 , IdGenre ) ;
m_cat3Menu - > insertItem ( i18n ( " &Year " ) , m_view , TQ T _SLOT( cat3Menu ( int ) ) , 0 , IdYear ) ;
m_cat3Menu - > insertItem ( i18n ( " &Year " ) , m_view , TQ _SLOT( cat3Menu ( int ) ) , 0 , IdYear ) ;
m_cat3Menu - > insertItem ( i18n ( " &Label " ) , m_view , TQ T _SLOT( cat3Menu ( int ) ) , 0 , IdLabel ) ;
m_cat3Menu - > insertItem ( i18n ( " &Label " ) , m_view , TQ _SLOT( cat3Menu ( int ) ) , 0 , IdLabel ) ;
m_view - > cat1Menu ( m_view - > m_cat1 , false ) ;
m_view - > cat1Menu ( m_view - > m_cat1 , false ) ;
m_view - > cat2Menu ( m_view - > m_cat2 , false ) ;
m_view - > cat2Menu ( m_view - > m_cat2 , false ) ;
m_view - > cat3Menu ( m_view - > m_cat3 , false ) ;
m_view - > cat3Menu ( m_view - > m_cat3 , false ) ;
m_view - > setViewMode ( m_view - > m_viewMode ) ;
m_view - > setViewMode ( m_view - > m_viewMode ) ;
connect ( m_timer , TQ T _SIGNAL( timeout ( ) ) , TQ T _SLOT( slotSetFilter ( ) ) ) ;
connect ( m_timer , TQ _SIGNAL( timeout ( ) ) , TQ _SLOT( slotSetFilter ( ) ) ) ;
connect ( m_searchEdit , TQ T _SIGNAL( textChanged ( const TQString & ) ) , TQ T _SLOT( slotSetFilterTimeout ( ) ) ) ;
connect ( m_searchEdit , TQ _SIGNAL( textChanged ( const TQString & ) ) , TQ _SLOT( slotSetFilterTimeout ( ) ) ) ;
connect ( m_timeFilter , TQ T _SIGNAL( activated ( int ) ) , TQ T _SLOT( slotSetFilter ( ) ) ) ;
connect ( m_timeFilter , TQ _SIGNAL( activated ( int ) ) , TQ _SLOT( slotSetFilter ( ) ) ) ;
setFocusProxy ( m_view ) ; //default object to get focus
setFocusProxy ( m_view ) ; //default object to get focus
}
}
@ -258,8 +258,8 @@ CollectionBrowser::slotClearFilter() //SLOT
{
{
m_searchEdit - > clear ( ) ;
m_searchEdit - > clear ( ) ;
kapp - > processEvents ( ) ; //Let the search bar redraw fully.
kapp - > processEvents ( ) ; //Let the search bar redraw fully.
TQTimer : : singleShot ( 0 , this , TQ T _SLOT( slotSetFilter ( ) ) ) ; //Filter instantly
TQTimer : : singleShot ( 0 , this , TQ _SLOT( slotSetFilter ( ) ) ) ; //Filter instantly
TQTimer : : singleShot ( 0 , m_view , TQ T _SLOT( slotEnsureSelectedItemVisible ( ) ) ) ;
TQTimer : : singleShot ( 0 , m_view , TQ _SLOT( slotEnsureSelectedItemVisible ( ) ) ) ;
}
}
void
void
@ -287,15 +287,15 @@ CollectionBrowser::slotSetFilter( const TQString &filter ) //SLOT
{
{
m_searchEdit - > setText ( filter ) ;
m_searchEdit - > setText ( filter ) ;
kapp - > processEvents ( ) ; //Let the search bar redraw fully.
kapp - > processEvents ( ) ; //Let the search bar redraw fully.
TQTimer : : singleShot ( 0 , this , TQ T _SLOT( slotSetFilter ( ) ) ) ; //Filter instantly
TQTimer : : singleShot ( 0 , this , TQ _SLOT( slotSetFilter ( ) ) ) ; //Filter instantly
TQTimer : : singleShot ( 0 , m_view , TQ T _SLOT( slotEnsureSelectedItemVisible ( ) ) ) ;
TQTimer : : singleShot ( 0 , m_view , TQ _SLOT( slotEnsureSelectedItemVisible ( ) ) ) ;
}
}
void
void
CollectionBrowser : : slotEditFilter ( ) //SLOT
CollectionBrowser : : slotEditFilter ( ) //SLOT
{
{
EditFilterDialog * cod = new EditFilterDialog ( this , false , m_searchEdit - > text ( ) ) ;
EditFilterDialog * cod = new EditFilterDialog ( this , false , m_searchEdit - > text ( ) ) ;
connect ( cod , TQ T _SIGNAL( filterChanged ( const TQString & ) ) , TQ T _SLOT( slotSetFilter ( const TQString & ) ) ) ;
connect ( cod , TQ _SIGNAL( filterChanged ( const TQString & ) ) , TQ _SLOT( slotSetFilter ( const TQString & ) ) ) ;
if ( cod - > exec ( ) )
if ( cod - > exec ( ) )
m_searchEdit - > setText ( cod - > filter ( ) ) ;
m_searchEdit - > setText ( cod - > filter ( ) ) ;
delete cod ;
delete cod ;
@ -359,7 +359,7 @@ CollectionBrowser::eventFilter( TQObject *o, TQEvent *e )
//Immediately filter and add results
//Immediately filter and add results
m_timer - > stop ( ) ;
m_timer - > stop ( ) ;
m_returnPressed = true ;
m_returnPressed = true ;
TQTimer : : singleShot ( 0 , this , TQ T _SLOT( slotSetFilter ( ) ) ) ;
TQTimer : : singleShot ( 0 , this , TQ _SLOT( slotSetFilter ( ) ) ) ;
}
}
else
else
{
{
@ -494,36 +494,36 @@ CollectionView::CollectionView( CollectionBrowser* parent )
//</READ CONFIG>
//</READ CONFIG>
TDEActionCollection * ac = new TDEActionCollection ( this ) ;
TDEActionCollection * ac = new TDEActionCollection ( this ) ;
KStdAction : : selectAll ( this , TQ T _SLOT( selectAll ( ) ) , ac , " collectionview_select_all " ) ;
KStdAction : : selectAll ( this , TQ _SLOT( selectAll ( ) ) , ac , " collectionview_select_all " ) ;
connect ( CollectionDB : : instance ( ) , TQ T _SIGNAL( scanStarted ( ) ) ,
connect ( CollectionDB : : instance ( ) , TQ _SIGNAL( scanStarted ( ) ) ,
this , TQ T _SLOT( scanStarted ( ) ) ) ;
this , TQ _SLOT( scanStarted ( ) ) ) ;
connect ( CollectionDB : : instance ( ) , TQ T _SIGNAL( scanDone ( bool ) ) ,
connect ( CollectionDB : : instance ( ) , TQ _SIGNAL( scanDone ( bool ) ) ,
this , TQ T _SLOT( scanDone ( bool ) ) ) ;
this , TQ _SLOT( scanDone ( bool ) ) ) ;
connect ( BrowserBar : : instance ( ) , TQ T _SIGNAL( browserActivated ( int ) ) ,
connect ( BrowserBar : : instance ( ) , TQ _SIGNAL( browserActivated ( int ) ) ,
this , TQ T _SLOT( renderView ( ) ) ) ; // renderView() checks if current tab is this
this , TQ _SLOT( renderView ( ) ) ) ; // renderView() checks if current tab is this
connect ( CollectionDB : : instance ( ) , TQ T _SIGNAL( ratingChanged ( const TQString & , int ) ) ,
connect ( CollectionDB : : instance ( ) , TQ _SIGNAL( ratingChanged ( const TQString & , int ) ) ,
this , TQ T _SLOT( ratingChanged ( const TQString & , int ) ) ) ;
this , TQ _SLOT( ratingChanged ( const TQString & , int ) ) ) ;
connect ( this , TQ T _SIGNAL( expanded ( TQListViewItem * ) ) ,
connect ( this , TQ _SIGNAL( expanded ( TQListViewItem * ) ) ,
this , TQ T _SLOT( slotExpand ( TQListViewItem * ) ) ) ;
this , TQ _SLOT( slotExpand ( TQListViewItem * ) ) ) ;
connect ( this , TQ T _SIGNAL( collapsed ( TQListViewItem * ) ) ,
connect ( this , TQ _SIGNAL( collapsed ( TQListViewItem * ) ) ,
this , TQ T _SLOT( slotCollapse ( TQListViewItem * ) ) ) ;
this , TQ _SLOT( slotCollapse ( TQListViewItem * ) ) ) ;
connect ( this , TQ T _SIGNAL( returnPressed ( TQListViewItem * ) ) ,
connect ( this , TQ _SIGNAL( returnPressed ( TQListViewItem * ) ) ,
this , TQ T _SLOT( invokeItem ( TQListViewItem * ) ) ) ;
this , TQ _SLOT( invokeItem ( TQListViewItem * ) ) ) ;
connect ( this , TQ T _SIGNAL( doubleClicked ( TQListViewItem * , const TQPoint & , int ) ) ,
connect ( this , TQ _SIGNAL( doubleClicked ( TQListViewItem * , const TQPoint & , int ) ) ,
this , TQ T _SLOT( invokeItem ( TQListViewItem * , const TQPoint & , int ) ) ) ;
this , TQ _SLOT( invokeItem ( TQListViewItem * , const TQPoint & , int ) ) ) ;
connect ( this , TQ T _SIGNAL( clicked ( TQListViewItem * , const TQPoint & , int ) ) ,
connect ( this , TQ _SIGNAL( clicked ( TQListViewItem * , const TQPoint & , int ) ) ,
this , TQ T _SLOT( ipodItemClicked ( TQListViewItem * , const TQPoint & , int ) ) ) ;
this , TQ _SLOT( ipodItemClicked ( TQListViewItem * , const TQPoint & , int ) ) ) ;
connect ( this , TQ T _SIGNAL( contextMenuRequested ( TQListViewItem * , const TQPoint & , int ) ) ,
connect ( this , TQ _SIGNAL( contextMenuRequested ( TQListViewItem * , const TQPoint & , int ) ) ,
this , TQ T _SLOT( rmbPressed ( TQListViewItem * , const TQPoint & , int ) ) ) ;
this , TQ _SLOT( rmbPressed ( TQListViewItem * , const TQPoint & , int ) ) ) ;
connect ( header ( ) , TQ T _SIGNAL( sizeChange ( int , int , int ) ) ,
connect ( header ( ) , TQ _SIGNAL( sizeChange ( int , int , int ) ) ,
this , TQ T _SLOT( triggerUpdate ( ) ) ) ;
this , TQ _SLOT( triggerUpdate ( ) ) ) ;
connect ( MountPointManager : : instance ( ) , TQ T _SIGNAL( mediumConnected ( int ) ) ,
connect ( MountPointManager : : instance ( ) , TQ _SIGNAL( mediumConnected ( int ) ) ,
this , TQ T _SLOT( databaseChanged ( ) ) ) ;
this , TQ _SLOT( databaseChanged ( ) ) ) ;
connect ( MountPointManager : : instance ( ) , TQ T _SIGNAL( mediumRemoved ( int ) ) ,
connect ( MountPointManager : : instance ( ) , TQ _SIGNAL( mediumRemoved ( int ) ) ,
this , TQ T _SLOT( databaseChanged ( ) ) ) ;
this , TQ _SLOT( databaseChanged ( ) ) ) ;
}
}
@ -1186,7 +1186,7 @@ void
CollectionView : : ratingChanged ( const TQString & , int )
CollectionView : : ratingChanged ( const TQString & , int )
{
{
m_dirty = true ;
m_dirty = true ;
TQTimer : : singleShot ( 0 , CollectionView : : instance ( ) , TQ T _SLOT( renderView ( ) ) ) ;
TQTimer : : singleShot ( 0 , CollectionView : : instance ( ) , TQ _SLOT( renderView ( ) ) ) ;
}
}
void
void
@ -1372,7 +1372,7 @@ CollectionView::ipodItemClicked( TQListViewItem *item, const TQPoint&, int c )
return ;
return ;
// The TQt manual says NOT to delete items from within this slot
// The TQt manual says NOT to delete items from within this slot
TQTimer : : singleShot ( 0 , m_parent - > m_ipodIncrement , TQ T _SLOT( activate ( ) ) ) ;
TQTimer : : singleShot ( 0 , m_parent - > m_ipodIncrement , TQ _SLOT( activate ( ) ) ) ;
}
}
@ -1469,7 +1469,7 @@ CollectionView::rmbPressed( TQListViewItem* item, const TQPoint& point, int ) //
if ( ( cat = = IdAlbum | | cat = = IdVisYearAlbum ) & & siblingSelection . count ( ) = = 1 ) // cover fetch isn't multiselection capable
if ( ( cat = = IdAlbum | | cat = = IdVisYearAlbum ) & & siblingSelection . count ( ) = = 1 ) // cover fetch isn't multiselection capable
{
{
menu . insertItem ( SmallIconSet ( Amarok : : icon ( " download " ) ) , i18n ( " &Fetch Cover From amazon.%1 " ) . arg ( CoverManager : : amazonTld ( ) ) , this , TQ T _SLOT( fetchCover ( ) ) , 0 , FETCH ) ;
menu . insertItem ( SmallIconSet ( Amarok : : icon ( " download " ) ) , i18n ( " &Fetch Cover From amazon.%1 " ) . arg ( CoverManager : : amazonTld ( ) ) , this , TQ _SLOT( fetchCover ( ) ) , 0 , FETCH ) ;
# ifndef AMAZON_SUPPORT
# ifndef AMAZON_SUPPORT
menu . setItemEnabled ( FETCH , false ) ;
menu . setItemEnabled ( FETCH , false ) ;
# endif
# endif
@ -1489,7 +1489,7 @@ CollectionView::rmbPressed( TQListViewItem* item, const TQPoint& point, int ) //
menu . insertItem ( SmallIconSet ( Amarok : : icon ( " info " ) )
menu . insertItem ( SmallIconSet ( Amarok : : icon ( " info " ) )
, i18n ( " Edit Track &Information... " , " Edit &Information for %n Tracks... " , selection . count ( ) )
, i18n ( " Edit Track &Information... " , " Edit &Information for %n Tracks... " , selection . count ( ) )
, this , TQ T _SLOT( showTrackInfo ( ) ) , 0 , INFO ) ;
, this , TQ _SLOT( showTrackInfo ( ) ) , 0 , INFO ) ;
switch ( menu . exec ( point ) )
switch ( menu . exec ( point ) )
{
{
@ -1551,7 +1551,7 @@ CollectionView::rmbPressed( TQListViewItem* item, const TQPoint& point, int ) //
CollectionDB : : instance ( ) - > emitFileDeleted ( ( * it ) . path ( ) ) ;
CollectionDB : : instance ( ) - > emitFileDeleted ( ( * it ) . path ( ) ) ;
}
}
m_dirty = true ;
m_dirty = true ;
TQTimer : : singleShot ( 0 , CollectionView : : instance ( ) , TQ T _SLOT( renderView ( ) ) ) ;
TQTimer : : singleShot ( 0 , CollectionView : : instance ( ) , TQ _SLOT( renderView ( ) ) ) ;
break ;
break ;
}
}
}
}
@ -1791,7 +1791,7 @@ CollectionView::organizeFiles( const KURL::List &urls, const TQString &caption,
dialog . formatEdit - > setText ( AmarokConfig : : customScheme ( ) ) ;
dialog . formatEdit - > setText ( AmarokConfig : : customScheme ( ) ) ;
dialog . regexpEdit - > setText ( AmarokConfig : : replacementRegexp ( ) ) ;
dialog . regexpEdit - > setText ( AmarokConfig : : replacementRegexp ( ) ) ;
dialog . replaceEdit - > setText ( AmarokConfig : : replacementString ( ) ) ;
dialog . replaceEdit - > setText ( AmarokConfig : : replacementString ( ) ) ;
connect ( & base , TQ T _SIGNAL( detailsClicked ( ) ) , & dialog , TQ T _SLOT( slotDetails ( ) ) ) ;
connect ( & base , TQ _SIGNAL( detailsClicked ( ) ) , & dialog , TQ _SLOT( slotDetails ( ) ) ) ;
if ( dialog . customschemeCheck - > isChecked ( ) )
if ( dialog . customschemeCheck - > isChecked ( ) )
{
{
@ -1833,7 +1833,7 @@ CollectionView::organizeFiles( const KURL::List &urls, const TQString &caption,
CollectionDB : : instance ( ) - > createTables ( true ) ; // create temp tables
CollectionDB : : instance ( ) - > createTables ( true ) ; // create temp tables
Amarok : : StatusBar : : instance ( ) - > newProgressOperation ( this )
Amarok : : StatusBar : : instance ( ) - > newProgressOperation ( this )
. setDescription ( caption )
. setDescription ( caption )
. setAbortSlot ( this , TQ T _SLOT( cancelOrganizingFiles ( ) ) )
. setAbortSlot ( this , TQ _SLOT( cancelOrganizingFiles ( ) ) )
. setTotalSteps ( m_organizeURLs . count ( ) ) ;
. setTotalSteps ( m_organizeURLs . count ( ) ) ;
while ( ! m_organizeURLs . empty ( ) & & ! m_organizingFileCancelled )
while ( ! m_organizeURLs . empty ( ) & & ! m_organizingFileCancelled )
@ -1856,7 +1856,7 @@ CollectionView::organizeFiles( const KURL::List &urls, const TQString &caption,
CollectionDB : : instance ( ) - > dropTables ( true ) ; // and drop them
CollectionDB : : instance ( ) - > dropTables ( true ) ; // and drop them
// and now do an incremental scan since this was disabled while organizing files
// and now do an incremental scan since this was disabled while organizing files
TQTimer : : singleShot ( 0 , CollectionDB : : instance ( ) , TQ T _SLOT( scanMonitor ( ) ) ) ;
TQTimer : : singleShot ( 0 , CollectionDB : : instance ( ) , TQ _SLOT( scanMonitor ( ) ) ) ;
if ( ! m_organizingFileCancelled & & skipped . count ( ) > 0 )
if ( ! m_organizingFileCancelled & & skipped . count ( ) > 0 )
{
{
@ -1886,7 +1886,7 @@ CollectionView::organizeFiles( const KURL::List &urls, const TQString &caption,
}
}
m_dirty = true ;
m_dirty = true ;
TQTimer : : singleShot ( 0 , CollectionView : : instance ( ) , TQ T _SLOT( renderView ( ) ) ) ;
TQTimer : : singleShot ( 0 , CollectionView : : instance ( ) , TQ _SLOT( renderView ( ) ) ) ;
Amarok : : StatusBar : : instance ( ) - > endProgressOperation ( this ) ;
Amarok : : StatusBar : : instance ( ) - > endProgressOperation ( this ) ;
}
}
}
}