@ -411,7 +411,7 @@ QueueView::QueueView(TQWidget *parent, const char *name)
m_searchToolBar - > setFullSize ( true ) ;
m_searchToolBar - > setFullSize ( true ) ;
// Create the erase button
// Create the erase button
m_searchToolBar - > insertButton ( TQApplication : : reverseLayout ( ) ? " clear_left " : " locationbar_erase " , 0 , SIGNAL( clicked ( ) ) , this , SLOT( slotSearchEraseClicked ( ) ) , true ) ;
m_searchToolBar - > insertButton ( TQApplication : : reverseLayout ( ) ? " clear_left " : " locationbar_erase " , 0 , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( slotSearchEraseClicked ( ) ) , true ) ;
// Create the labels
// Create the labels
TQLabel * searchLabel = new TQLabel ( i18n ( " Filter: " ) , m_searchToolBar ) ;
TQLabel * searchLabel = new TQLabel ( i18n ( " Filter: " ) , m_searchToolBar ) ;
@ -453,16 +453,16 @@ QueueView::QueueView(TQWidget *parent, const char *name)
layout - > addWidget ( m_queue ) ;
layout - > addWidget ( m_queue ) ;
// The signals
// The signals
connect ( m_queue , SIGNAL( contextMenu ( TDEListView * , TQListViewItem * , const TQPoint & ) ) , this ,
connect ( m_queue , TQ_ SIGNAL( contextMenu ( TDEListView * , TQListViewItem * , const TQPoint & ) ) , this ,
SLOT( contextMenuRequested ( TDEListView * , TQListViewItem * , const TQPoint & ) ) ) ;
TQ_ SLOT( contextMenuRequested ( TDEListView * , TQListViewItem * , const TQPoint & ) ) ) ;
connect ( m_queue , SIGNAL( selectionChanged ( ) ) , this , SLOT( updateActions ( ) ) ) ;
connect ( m_queue , TQ_ SIGNAL( selectionChanged ( ) ) , this , TQ_ SLOT( updateActions ( ) ) ) ;
// Let us be up-to-date
// Let us be up-to-date
connect ( KFTPQueue : : Manager : : self ( ) , SIGNAL( transferRemoved ( long ) ) , this , SLOT( slotObjectRemoved ( long ) ) ) ;
connect ( KFTPQueue : : Manager : : self ( ) , TQ_ SIGNAL( transferRemoved ( long ) ) , this , TQ_ SLOT( slotObjectRemoved ( long ) ) ) ;
connect ( KFTPQueue : : Manager : : self ( ) , SIGNAL( siteRemoved ( long ) ) , this , SLOT( slotObjectRemoved ( long ) ) ) ;
connect ( KFTPQueue : : Manager : : self ( ) , TQ_ SIGNAL( siteRemoved ( long ) ) , this , TQ_ SLOT( slotObjectRemoved ( long ) ) ) ;
connect ( KFTPQueue : : Manager : : self ( ) , SIGNAL( newTransfer ( KFTPQueue : : Transfer * ) ) , this , SLOT( slotTransferAdded ( KFTPQueue : : Transfer * ) ) ) ;
connect ( KFTPQueue : : Manager : : self ( ) , TQ_ SIGNAL( newTransfer ( KFTPQueue : : Transfer * ) ) , this , TQ_ SLOT( slotTransferAdded ( KFTPQueue : : Transfer * ) ) ) ;
connect ( KFTPQueue : : Manager : : self ( ) , SIGNAL( newSite ( KFTPQueue : : Site * ) ) , this , SLOT( slotSiteAdded ( KFTPQueue : : Site * ) ) ) ;
connect ( KFTPQueue : : Manager : : self ( ) , TQ_ SIGNAL( newSite ( KFTPQueue : : Site * ) ) , this , TQ_ SLOT( slotSiteAdded ( KFTPQueue : : Site * ) ) ) ;
connect ( KFTPQueue : : Manager : : self ( ) , SIGNAL( queueUpdate ( ) ) , this , SLOT( updateActions ( ) ) ) ;
connect ( KFTPQueue : : Manager : : self ( ) , TQ_ SIGNAL( queueUpdate ( ) ) , this , TQ_ SLOT( updateActions ( ) ) ) ;
// Load the listview layout
// Load the listview layout
loadLayout ( ) ;
loadLayout ( ) ;
@ -509,7 +509,7 @@ void QueueView::initToolBar()
m_toolBar - > insertWidget ( 1 , 35 , new TQLabel ( i18n ( " Down: " ) , m_toolBar ) ) ;
m_toolBar - > insertWidget ( 1 , 35 , new TQLabel ( i18n ( " Down: " ) , m_toolBar ) ) ;
m_toolBar - > insertWidget ( 2 , 35 , downloadSpeed ) ;
m_toolBar - > insertWidget ( 2 , 35 , downloadSpeed ) ;
downloadSpeed - > setValue ( Config : : downloadSpeedLimit ( ) ) ;
downloadSpeed - > setValue ( Config : : downloadSpeedLimit ( ) ) ;
connect ( downloadSpeed , SIGNAL( valueChanged ( int ) ) , this , SLOT( slotDownloadLimitChanged ( int ) ) ) ;
connect ( downloadSpeed , TQ_ SIGNAL( valueChanged ( int ) ) , this , TQ_ SLOT( slotDownloadLimitChanged ( int ) ) ) ;
m_toolBar - > insertSeparator ( ) ;
m_toolBar - > insertSeparator ( ) ;
@ -518,7 +518,7 @@ void QueueView::initToolBar()
m_toolBar - > insertWidget ( 3 , 35 , new TQLabel ( i18n ( " Up: " ) , m_toolBar ) ) ;
m_toolBar - > insertWidget ( 3 , 35 , new TQLabel ( i18n ( " Up: " ) , m_toolBar ) ) ;
m_toolBar - > insertWidget ( 4 , 35 , uploadSpeed ) ;
m_toolBar - > insertWidget ( 4 , 35 , uploadSpeed ) ;
uploadSpeed - > setValue ( Config : : uploadSpeedLimit ( ) ) ;
uploadSpeed - > setValue ( Config : : uploadSpeedLimit ( ) ) ;
connect ( uploadSpeed , SIGNAL( valueChanged ( int ) ) , this , SLOT( slotUploadLimitChanged ( int ) ) ) ;
connect ( uploadSpeed , TQ_ SIGNAL( valueChanged ( int ) ) , this , TQ_ SLOT( slotUploadLimitChanged ( int ) ) ) ;
// Create thread count control widget
// Create thread count control widget
m_toolBar - > insertSeparator ( ) ;
m_toolBar - > insertSeparator ( ) ;
@ -528,7 +528,7 @@ void QueueView::initToolBar()
m_toolBar - > insertWidget ( 5 , 35 , new TQLabel ( i18n ( " Threads: " ) , m_toolBar ) ) ;
m_toolBar - > insertWidget ( 5 , 35 , new TQLabel ( i18n ( " Threads: " ) , m_toolBar ) ) ;
m_toolBar - > insertWidget ( 6 , 35 , threadCount ) ;
m_toolBar - > insertWidget ( 6 , 35 , threadCount ) ;
threadCount - > setValue ( Config : : threadCount ( ) ) ;
threadCount - > setValue ( Config : : threadCount ( ) ) ;
connect ( threadCount , SIGNAL( valueChanged ( int ) ) , this , SLOT( slotThreadCountChanged ( int ) ) ) ;
connect ( threadCount , TQ_ SIGNAL( valueChanged ( int ) ) , this , TQ_ SLOT( slotThreadCountChanged ( int ) ) ) ;
}
}
void QueueView : : slotDownloadLimitChanged ( int value )
void QueueView : : slotDownloadLimitChanged ( int value )
@ -554,25 +554,25 @@ void QueueView::initActions()
m_actionCollection = new TDEActionCollection ( this , this ) ;
m_actionCollection = new TDEActionCollection ( this , this ) ;
// Create all the actions
// Create all the actions
m_launchAction = new TDEAction ( i18n ( " &Start Transfer " ) , " launch " , TDEShortcut ( ) , this , SLOT( slotLaunch ( ) ) , m_actionCollection , " launch " ) ;
m_launchAction = new TDEAction ( i18n ( " &Start Transfer " ) , " launch " , TDEShortcut ( ) , this , TQ_ SLOT( slotLaunch ( ) ) , m_actionCollection , " launch " ) ;
m_abortAction = new TDEAction ( i18n ( " &Abort Transfer " ) , TDEShortcut ( ) , this , SLOT( slotAbort ( ) ) , m_actionCollection , " abort " ) ;
m_abortAction = new TDEAction ( i18n ( " &Abort Transfer " ) , TDEShortcut ( ) , this , TQ_ SLOT( slotAbort ( ) ) , m_actionCollection , " abort " ) ;
m_removeAction = new TDEAction ( i18n ( " &Remove " ) , " edit-delete " , TDEShortcut ( TQt : : Key_Delete ) , this , SLOT( slotRemove ( ) ) , m_actionCollection , " remove " ) ;
m_removeAction = new TDEAction ( i18n ( " &Remove " ) , " edit-delete " , TDEShortcut ( TQt : : Key_Delete ) , this , TQ_ SLOT( slotRemove ( ) ) , m_actionCollection , " remove " ) ;
m_removeAllAction = new TDEAction ( i18n ( " Remove &All " ) , TDEShortcut ( ) , this , SLOT( slotRemoveAll ( ) ) , m_actionCollection , " removeAll " ) ;
m_removeAllAction = new TDEAction ( i18n ( " Remove &All " ) , TDEShortcut ( ) , this , TQ_ SLOT( slotRemoveAll ( ) ) , m_actionCollection , " removeAll " ) ;
m_moveUpAction = new TDEAction ( i18n ( " Move &Up " ) , " go-up " , TDEShortcut ( ) , this , SLOT( slotMoveUp ( ) ) , m_actionCollection , " moveUp " ) ;
m_moveUpAction = new TDEAction ( i18n ( " Move &Up " ) , " go-up " , TDEShortcut ( ) , this , TQ_ SLOT( slotMoveUp ( ) ) , m_actionCollection , " moveUp " ) ;
m_moveDownAction = new TDEAction ( i18n ( " Move &Down " ) , " go-down " , TDEShortcut ( " del " ) , this , SLOT( slotMoveDown ( ) ) , m_actionCollection , " moveDown " ) ;
m_moveDownAction = new TDEAction ( i18n ( " Move &Down " ) , " go-down " , TDEShortcut ( " del " ) , this , TQ_ SLOT( slotMoveDown ( ) ) , m_actionCollection , " moveDown " ) ;
m_moveTopAction = new TDEAction ( i18n ( " Move To &Top " ) , " go-top " , TDEShortcut ( ) , this , SLOT( slotMoveTop ( ) ) , m_actionCollection , " moveTop " ) ;
m_moveTopAction = new TDEAction ( i18n ( " Move To &Top " ) , " go-top " , TDEShortcut ( ) , this , TQ_ SLOT( slotMoveTop ( ) ) , m_actionCollection , " moveTop " ) ;
m_moveBottomAction = new TDEAction ( i18n ( " Move To &Bottom " ) , " go-bottom " , TDEShortcut ( ) , this , SLOT( slotMoveBottom ( ) ) , m_actionCollection , " moveBottom " ) ;
m_moveBottomAction = new TDEAction ( i18n ( " Move To &Bottom " ) , " go-bottom " , TDEShortcut ( ) , this , TQ_ SLOT( slotMoveBottom ( ) ) , m_actionCollection , " moveBottom " ) ;
m_editAction = new TDEAction ( i18n ( " &Change Transfer Info " ) , TDEShortcut ( ) , this , SLOT( slotEdit ( ) ) , m_actionCollection , " changeTransfer " ) ;
m_editAction = new TDEAction ( i18n ( " &Change Transfer Info " ) , TDEShortcut ( ) , this , TQ_ SLOT( slotEdit ( ) ) , m_actionCollection , " changeTransfer " ) ;
// Create the toolbar actions
// Create the toolbar actions
m_loadAction = new TDEAction ( i18n ( " &Load Queue From File " ) , " document-open " , TDEShortcut ( ) , this , SLOT( slotLoad ( ) ) , m_actionCollection , " load " ) ;
m_loadAction = new TDEAction ( i18n ( " &Load Queue From File " ) , " document-open " , TDEShortcut ( ) , this , TQ_ SLOT( slotLoad ( ) ) , m_actionCollection , " load " ) ;
m_saveAction = new TDEAction ( i18n ( " &Save Queue to File " ) , " document-save-as " , TDEShortcut ( ) , this , SLOT( slotSave ( ) ) , m_actionCollection , " save " ) ;
m_saveAction = new TDEAction ( i18n ( " &Save Queue to File " ) , " document-save-as " , TDEShortcut ( ) , this , TQ_ SLOT( slotSave ( ) ) , m_actionCollection , " save " ) ;
m_startAction = new TDEAction ( i18n ( " S&tart " ) , " media-playback-start " , TDEShortcut ( ) , this , SLOT( slotStart ( ) ) , m_actionCollection , " start " ) ;
m_startAction = new TDEAction ( i18n ( " S&tart " ) , " media-playback-start " , TDEShortcut ( ) , this , TQ_ SLOT( slotStart ( ) ) , m_actionCollection , " start " ) ;
m_pauseAction = new TDEAction ( i18n ( " &Pause " ) , " media-playback-pause " , TDEShortcut ( ) , this , SLOT( slotPause ( ) ) , m_actionCollection , " pause " ) ;
m_pauseAction = new TDEAction ( i18n ( " &Pause " ) , " media-playback-pause " , TDEShortcut ( ) , this , TQ_ SLOT( slotPause ( ) ) , m_actionCollection , " pause " ) ;
m_stopAction = new TDEAction ( i18n ( " St&op " ) , " media-playback-stop " , TDEShortcut ( ) , this , SLOT( slotStop ( ) ) , m_actionCollection , " stop " ) ;
m_stopAction = new TDEAction ( i18n ( " St&op " ) , " media-playback-stop " , TDEShortcut ( ) , this , TQ_ SLOT( slotStop ( ) ) , m_actionCollection , " stop " ) ;
m_addAction = new TDEAction ( i18n ( " &Add Transfer... " ) , " document-new " , TDEShortcut ( ) , this , SLOT( slotAdd ( ) ) , m_actionCollection , " add " ) ;
m_addAction = new TDEAction ( i18n ( " &Add Transfer... " ) , " document-new " , TDEShortcut ( ) , this , TQ_ SLOT( slotAdd ( ) ) , m_actionCollection , " add " ) ;
m_searchAction = new TDEAction ( i18n ( " &Search && Replace... " ) , " edit-find " , TDEShortcut ( ) , this , SLOT( slotSearch ( ) ) , m_actionCollection , " search " ) ;
m_searchAction = new TDEAction ( i18n ( " &Search && Replace... " ) , " edit-find " , TDEShortcut ( ) , this , TQ_ SLOT( slotSearch ( ) ) , m_actionCollection , " search " ) ;
m_filterAction = new TDEToggleAction ( i18n ( " Show &Filter " ) , " filter " , TDEShortcut ( ) , this , SLOT( slotFilter ( ) ) , m_actionCollection , " filter " ) ;
m_filterAction = new TDEToggleAction ( i18n ( " Show &Filter " ) , " filter " , TDEShortcut ( ) , this , TQ_ SLOT( slotFilter ( ) ) , m_actionCollection , " filter " ) ;
m_saveAction - > setEnabled ( false ) ;
m_saveAction - > setEnabled ( false ) ;
m_startAction - > setEnabled ( false ) ;
m_startAction - > setEnabled ( false ) ;
@ -629,7 +629,7 @@ void QueueView::slotSiteAdded(KFTPQueue::Site *site)
{
{
// The site should be inserted top-level
// The site should be inserted top-level
m_queuedItems . insert ( site - > getId ( ) , new QueueViewItem ( this , site , m_queue ) ) ;
m_queuedItems . insert ( site - > getId ( ) , new QueueViewItem ( this , site , m_queue ) ) ;
connect ( site , SIGNAL( objectUpdated ( ) ) , this , SLOT( slotObjectUpdated ( ) ) ) ;
connect ( site , TQ_ SIGNAL( objectUpdated ( ) ) , this , TQ_ SLOT( slotObjectUpdated ( ) ) ) ;
}
}
void QueueView : : slotTransferAdded ( KFTPQueue : : Transfer * transfer )
void QueueView : : slotTransferAdded ( KFTPQueue : : Transfer * transfer )
@ -639,7 +639,7 @@ void QueueView::slotTransferAdded(KFTPQueue::Transfer *transfer)
if ( parent ) {
if ( parent ) {
m_queuedItems . insert ( transfer - > getId ( ) , new QueueViewItem ( this , transfer , parent ) ) ;
m_queuedItems . insert ( transfer - > getId ( ) , new QueueViewItem ( this , transfer , parent ) ) ;
connect ( transfer , SIGNAL( objectUpdated ( ) ) , this , SLOT( slotObjectUpdated ( ) ) ) ;
connect ( transfer , TQ_ SIGNAL( objectUpdated ( ) ) , this , TQ_ SLOT( slotObjectUpdated ( ) ) ) ;
}
}
// Update actions
// Update actions