Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/74/head
Michele Calgaro 11 months ago
parent 09fd0dead9
commit af0b8f5d1e
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -89,15 +89,15 @@ void AceArch::open()
kdDebug() << "AceArch::open(): kp->args(): " << kp->args() << endl;
connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedTOC(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotOpenExited(TDEProcess*) ) );
connect( kp, TQ_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQ_SLOT( slotReceivedTOC(TDEProcess*, char*, int) ) );
connect( kp, TQ_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQ_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQ_SIGNAL( processExited(TDEProcess*) ),
TQ_SLOT( slotOpenExited(TDEProcess*) ) );
connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
this, TQT_SLOT( catchMeIfYouCan(TDEProcess*, char*, int) ) );
connect( kp, TQ_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
this, TQ_SLOT( catchMeIfYouCan(TDEProcess*, char*, int) ) );
if ( !kp->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ) )
{
@ -158,12 +158,12 @@ void AceArch::unarchFileInternal( )
}
}
connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotExtractExited(TDEProcess*) ) );
connect( kp, TQ_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQ_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQ_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQ_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQ_SIGNAL( processExited(TDEProcess*) ),
TQ_SLOT( slotExtractExited(TDEProcess*) ) );
if ( !kp->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ) )
{

@ -89,13 +89,13 @@ void ArArch::open()
TDEProcess *kp = m_currentProcess = new TDEProcess;
*kp << m_archiver_program << "vt" << m_filename;
connect( kp, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedTOC(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQ_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQ_SLOT(slotReceivedTOC(TDEProcess*, char*, int)));
connect( kp, TQ_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
this, TQ_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(processExited(TDEProcess*)), this,
TQT_SLOT(slotOpenExited(TDEProcess*)));
connect( kp, TQ_SIGNAL(processExited(TDEProcess*)), this,
TQ_SLOT(slotOpenExited(TDEProcess*)));
if (kp->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput) == false)
{
@ -111,10 +111,10 @@ void ArArch::create()
kp->clearArguments();
*kp << m_archiver_program << "c" << m_filename;
connect( kp, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQ_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQ_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQ_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
this, TQ_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
if (kp->start(TDEProcess::Block) == false)
{
@ -152,13 +152,13 @@ void ArArch::addFile( const TQStringList &urls )
*kp << fileURL.fileName();
}
connect( kp, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQ_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQ_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQ_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
this, TQ_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(processExited(TDEProcess*)), this,
TQT_SLOT(slotAddExited(TDEProcess*)));
connect( kp, TQ_SIGNAL(processExited(TDEProcess*)), this,
TQ_SLOT(slotAddExited(TDEProcess*)));
if (kp->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput) == false)
{
@ -209,13 +209,13 @@ void ArArch::unarchFileInternal()
}
}
connect( kp, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQ_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQ_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQ_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
this, TQ_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(processExited(TDEProcess*)), this,
TQT_SLOT(slotExtractExited(TDEProcess*)));
connect( kp, TQ_SIGNAL(processExited(TDEProcess*)), this,
TQ_SLOT(slotExtractExited(TDEProcess*)));
if (kp->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput) == false)
{
@ -242,13 +242,13 @@ void ArArch::remove(TQStringList *list)
*kp << str;
}
connect( kp, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQ_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQ_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQ_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
this, TQ_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(processExited(TDEProcess*)), this,
TQT_SLOT(slotDeleteExited(TDEProcess*)));
connect( kp, TQ_SIGNAL(processExited(TDEProcess*)), this,
TQ_SLOT(slotDeleteExited(TDEProcess*)));
if (kp->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput) == false)
{

@ -122,12 +122,12 @@ void ArjArch::addFile( const TQStringList & urls )
*kp << url.fileName();
}
connect( kp, SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( processExited(TDEProcess*) ),
SLOT( slotAddExited(TDEProcess*) ) );
connect( kp, TQ_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQ_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQ_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQ_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQ_SIGNAL( processExited(TDEProcess*) ),
TQ_SLOT( slotAddExited(TDEProcess*) ) );
if ( !kp->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ) )
{
@ -190,12 +190,12 @@ void ArjArch::open()
*kp << m_unarchiver_program << "v" << m_filename;
connect( kp, SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
SLOT( slotReceivedTOC(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( processExited(TDEProcess*) ),
SLOT( slotOpenExited(TDEProcess*) ) );
connect( kp, TQ_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQ_SLOT( slotReceivedTOC(TDEProcess*, char*, int) ) );
connect( kp, TQ_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQ_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQ_SIGNAL( processExited(TDEProcess*) ),
TQ_SLOT( slotOpenExited(TDEProcess*) ) );
if ( !kp->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ) )
{
@ -246,12 +246,12 @@ void ArjArch::unarchFileInternal()
}
}
connect( kp, SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( processExited(TDEProcess*) ),
SLOT( slotExtractExited(TDEProcess*) ) );
connect( kp, TQ_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQ_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQ_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQ_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQ_SIGNAL( processExited(TDEProcess*) ),
TQ_SLOT( slotExtractExited(TDEProcess*) ) );
if ( !kp->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ) )
{
@ -282,12 +282,12 @@ void ArjArch::remove( TQStringList *list )
*kp << str;
}
connect( kp, SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( processExited(TDEProcess*) ),
SLOT( slotDeleteExited(TDEProcess*) ) );
connect( kp, TQ_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQ_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQ_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQ_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQ_SIGNAL( processExited(TDEProcess*) ),
TQ_SLOT( slotDeleteExited(TDEProcess*) ) );
if ( !kp->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ) )
{
@ -310,12 +310,12 @@ void ArjArch::test()
*kp << m_filename;
connect( kp, SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, SIGNAL( processExited(TDEProcess*) ),
SLOT( slotTestExited(TDEProcess*) ) );
connect( kp, TQ_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQ_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQ_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQ_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQ_SIGNAL( processExited(TDEProcess*) ),
TQ_SLOT( slotTestExited(TDEProcess*) ) );
if ( !kp->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ) )
{

@ -72,12 +72,12 @@ ArkPart::ArkPart( TQWidget *parentWidget, const char * /*widgetName*/, TQObject
awidget = new ArkWidget( parentWidget, "ArkWidget" );
setWidget(awidget);
connect( awidget, TQT_SIGNAL( fixActions() ), this, TQT_SLOT( fixEnables() ) );
connect( awidget, TQT_SIGNAL( disableAllActions() ), this, TQT_SLOT( disableActions() ) );
connect( awidget, TQT_SIGNAL( signalFilePopup( const TQPoint& ) ), this, TQT_SLOT( slotFilePopup( const TQPoint& ) ) );
connect( awidget, TQT_SIGNAL( setWindowCaption( const TQString & ) ), this, TQT_SIGNAL( setWindowCaption( const TQString & ) ) );
connect( awidget, TQT_SIGNAL( removeRecentURL( const KURL & ) ), this, TQT_SIGNAL( removeRecentURL( const KURL & ) ) );
connect( awidget, TQT_SIGNAL( addRecentURL( const KURL & ) ), this, TQT_SIGNAL( addRecentURL( const KURL & ) ) );
connect( awidget, TQ_SIGNAL( fixActions() ), this, TQ_SLOT( fixEnables() ) );
connect( awidget, TQ_SIGNAL( disableAllActions() ), this, TQ_SLOT( disableActions() ) );
connect( awidget, TQ_SIGNAL( signalFilePopup( const TQPoint& ) ), this, TQ_SLOT( slotFilePopup( const TQPoint& ) ) );
connect( awidget, TQ_SIGNAL( setWindowCaption( const TQString & ) ), this, TQ_SIGNAL( setWindowCaption( const TQString & ) ) );
connect( awidget, TQ_SIGNAL( removeRecentURL( const KURL & ) ), this, TQ_SIGNAL( removeRecentURL( const KURL & ) ) );
connect( awidget, TQ_SIGNAL( addRecentURL( const KURL & ) ), this, TQ_SIGNAL( addRecentURL( const KURL & ) ) );
if( readWrite )
setXMLFile( "ark_part.rc" );
@ -90,22 +90,22 @@ ArkPart::ArkPart( TQWidget *parentWidget, const char * /*widgetName*/, TQObject
setupActions();
m_ext = new ArkBrowserExtension( this, "ArkBrowserExtension" );
connect( awidget, TQT_SIGNAL( openURLRequest( const KURL & ) ),
m_ext, TQT_SLOT( slotOpenURLRequested( const KURL & ) ) );
connect( awidget, TQ_SIGNAL( openURLRequest( const KURL & ) ),
m_ext, TQ_SLOT( slotOpenURLRequested( const KURL & ) ) );
m_bar = new ArkStatusBarExtension( this );
connect( awidget, TQT_SIGNAL( setStatusBarText( const TQString & ) ), m_bar,
TQT_SLOT( slotSetStatusBarText( const TQString & ) ) );
connect( awidget, TQT_SIGNAL( setStatusBarSelectedFiles( const TQString & ) ), m_bar,
TQT_SLOT( slotSetStatusBarSelectedFiles( const TQString & ) ) );
connect( awidget, TQT_SIGNAL( setBusy( const TQString & ) ), m_bar,
TQT_SLOT( slotSetBusy( const TQString & ) ) );
connect( awidget, TQT_SIGNAL( setReady() ), m_bar,
TQT_SLOT( slotSetReady() ) );
connect( this, TQT_SIGNAL( started(TDEIO::Job*) ), TQT_SLOT( transferStarted(TDEIO::Job*) ) );
connect( this, TQT_SIGNAL( completed() ), TQT_SLOT( transferCompleted() ) );
connect( this, TQT_SIGNAL( canceled(const TQString&) ),
TQT_SLOT( transferCanceled(const TQString&) ) );
connect( awidget, TQ_SIGNAL( setStatusBarText( const TQString & ) ), m_bar,
TQ_SLOT( slotSetStatusBarText( const TQString & ) ) );
connect( awidget, TQ_SIGNAL( setStatusBarSelectedFiles( const TQString & ) ), m_bar,
TQ_SLOT( slotSetStatusBarSelectedFiles( const TQString & ) ) );
connect( awidget, TQ_SIGNAL( setBusy( const TQString & ) ), m_bar,
TQ_SLOT( slotSetBusy( const TQString & ) ) );
connect( awidget, TQ_SIGNAL( setReady() ), m_bar,
TQ_SLOT( slotSetReady() ) );
connect( this, TQ_SIGNAL( started(TDEIO::Job*) ), TQ_SLOT( transferStarted(TDEIO::Job*) ) );
connect( this, TQ_SIGNAL( completed() ), TQ_SLOT( transferCompleted() ) );
connect( this, TQ_SIGNAL( canceled(const TQString&) ),
TQ_SLOT( transferCanceled(const TQString&) ) );
setProgressInfoEnabled( false );
}
@ -117,43 +117,43 @@ void
ArkPart::setupActions()
{
addFileAction = new TDEAction(i18n("Add &File..."), "ark_addfile", 0, awidget,
TQT_SLOT(action_add()), actionCollection(), "addfile");
TQ_SLOT(action_add()), actionCollection(), "addfile");
addDirAction = new TDEAction(i18n("Add Folde&r..."), "ark_adddir", 0, awidget,
TQT_SLOT(action_add_dir()), actionCollection(), "adddir");
TQ_SLOT(action_add_dir()), actionCollection(), "adddir");
extractAction = new TDEAction(i18n("E&xtract..."), "ark_extract", 0, awidget,
TQT_SLOT(action_extract()), actionCollection(), "extract");
TQ_SLOT(action_extract()), actionCollection(), "extract");
deleteAction = new TDEAction(i18n("De&lete"), "ark_delete", TDEShortcut(TQt::Key_Delete), awidget,
TQT_SLOT(action_delete()), actionCollection(), "delete");
TQ_SLOT(action_delete()), actionCollection(), "delete");
viewAction = new TDEAction(i18n("to view something","&View"), "ark_view", 0, awidget,
TQT_SLOT(action_view()), actionCollection(), "view");
TQ_SLOT(action_view()), actionCollection(), "view");
openWithAction = new TDEAction(i18n("&Open With..."), 0, awidget,
TQT_SLOT(slotOpenWith()), actionCollection(), "open_with");
TQ_SLOT(slotOpenWith()), actionCollection(), "open_with");
editAction = new TDEAction(i18n("Edit &With..."), 0, awidget,
TQT_SLOT(action_edit()), actionCollection(), "edit");
TQ_SLOT(action_edit()), actionCollection(), "edit");
testAction = new TDEAction(i18n("&Test integrity"), 0, awidget,
TQT_SLOT(action_test()), actionCollection(), "test");
TQ_SLOT(action_test()), actionCollection(), "test");
selectAllAction = KStdAction::selectAll(awidget->fileList(), TQT_SLOT(selectAll()), actionCollection(), "select_all");
selectAllAction = KStdAction::selectAll(awidget->fileList(), TQ_SLOT(selectAll()), actionCollection(), "select_all");
deselectAllAction = new TDEAction(i18n("&Unselect All"), 0, awidget->fileList(),TQT_SLOT(unselectAll()), actionCollection(), "deselect_all");
deselectAllAction = new TDEAction(i18n("&Unselect All"), 0, awidget->fileList(),TQ_SLOT(unselectAll()), actionCollection(), "deselect_all");
invertSelectionAction = new TDEAction(i18n("&Invert Selection"), 0, awidget->fileList(),TQT_SLOT(invertSelection()), actionCollection(), "invert_selection");
invertSelectionAction = new TDEAction(i18n("&Invert Selection"), 0, awidget->fileList(),TQ_SLOT(invertSelection()), actionCollection(), "invert_selection");
saveAsAction = KStdAction::saveAs(this, TQT_SLOT(file_save_as()), actionCollection());
saveAsAction = KStdAction::saveAs(this, TQ_SLOT(file_save_as()), actionCollection());
//KStdAction::preferences(awidget, TQT_SLOT(showSettings()), actionCollection());
//KStdAction::preferences(awidget, TQ_SLOT(showSettings()), actionCollection());
( void ) new TDEAction( i18n( "Configure &Ark..." ), "configure" , 0, awidget,
TQT_SLOT( showSettings() ), actionCollection(), "options_configure_ark" );
TQ_SLOT( showSettings() ), actionCollection(), "options_configure_ark" );
showSearchBar = new TDEToggleAction( i18n( "Show Search Bar" ), TDEShortcut(), actionCollection(), "options_show_search_bar" );
@ -161,7 +161,7 @@ ArkPart::setupActions()
showSearchBar->setChecked( ArkSettings::showSearchBar() );
connect( showSearchBar, TQT_SIGNAL( toggled( bool ) ), awidget, TQT_SLOT( slotShowSearchBarToggled( bool ) ) );
connect( showSearchBar, TQ_SIGNAL( toggled( bool ) ), awidget, TQ_SLOT( slotShowSearchBarToggled( bool ) ) );
initialEnables();
}
@ -332,10 +332,10 @@ void ArkPart::transferStarted( TDEIO::Job *job )
if ( job )
{
disableActions();
connect( job, TQT_SIGNAL( percent(TDEIO::Job*, unsigned long) ),
TQT_SLOT( progressInformation(TDEIO::Job*, unsigned long) ) );
connect( m_bar->cancelButton(), TQT_SIGNAL( clicked() ),
TQT_SLOT( cancelTransfer() ) );
connect( job, TQ_SIGNAL( percent(TDEIO::Job*, unsigned long) ),
TQ_SLOT( progressInformation(TDEIO::Job*, unsigned long) ) );
connect( m_bar->cancelButton(), TQ_SIGNAL( clicked() ),
TQ_SLOT( cancelTransfer() ) );
}
}
@ -343,8 +343,8 @@ void ArkPart::transferCompleted()
{
if ( m_job )
{
disconnect( m_job, TQT_SIGNAL( percent(TDEIO::Job*, unsigned long) ),
this, TQT_SLOT( progressInformation(TDEIO::Job*, unsigned long) ) );
disconnect( m_job, TQ_SIGNAL( percent(TDEIO::Job*, unsigned long) ),
this, TQ_SLOT( progressInformation(TDEIO::Job*, unsigned long) ) );
m_job = 0;
}
@ -369,8 +369,8 @@ void ArkPart::progressInformation( TDEIO::Job *, unsigned long progress )
void ArkPart::cancelTransfer()
{
disconnect( m_bar->cancelButton(), TQT_SIGNAL( clicked() ),
this, TQT_SLOT( cancelTransfer() ) );
disconnect( m_bar->cancelButton(), TQ_SIGNAL( clicked() ),
this, TQ_SLOT( cancelTransfer() ) );
if ( m_job )
{
m_job->kill( false );
@ -413,7 +413,7 @@ void ArkStatusBarExtension::setupStatusBar()
}
m_pTimer = new TQTimer( this );
connect( m_pTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( slotProgress() ) );
connect( m_pTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( slotProgress() ) );
m_pStatusLabelTotal = new KSqueezedTextLabel( statusBar(), "StatusLabelTotal" );
m_pStatusLabelTotal->setFrameStyle( TQFrame::NoFrame );

@ -42,7 +42,7 @@ ArkViewer::ArkViewer( TQWidget * parent, const char * name )
m_widget = new TQVBox( this );
m_widget->layout()->setSpacing( 10 );
connect( this, TQT_SIGNAL( finished() ), this, TQT_SLOT( slotFinished() ) );
connect( this, TQ_SIGNAL( finished() ), this, TQ_SLOT( slotFinished() ) );
setMainWidget( m_widget );
}

@ -299,7 +299,7 @@ ArkWidget::convertTo( const KURL & u )
busy( i18n( "Saving..." ) );
m_convert_tmpDir = new KTempDir( tmpDir() + "convtmp" );
m_convert_tmpDir->setAutoDelete( true );
connect( arch, TQT_SIGNAL( sigExtract( bool ) ), this, TQT_SLOT( convertSlotExtractDone( bool ) ) );
connect( arch, TQ_SIGNAL( sigExtract( bool ) ), this, TQ_SLOT( convertSlotExtractDone( bool ) ) );
m_convert_saveAsURL = u;
arch->unarchFile( 0, m_convert_tmpDir->name() );
}
@ -308,15 +308,15 @@ void
ArkWidget::convertSlotExtractDone( bool )
{
kdDebug( 1601 ) << k_funcinfo << endl;
disconnect( arch, TQT_SIGNAL( sigExtract( bool ) ), this, TQT_SLOT( convertSlotExtractDone( bool ) ) );
TQTimer::singleShot( 0, this, TQT_SLOT( convertSlotCreate() ) );
disconnect( arch, TQ_SIGNAL( sigExtract( bool ) ), this, TQ_SLOT( convertSlotExtractDone( bool ) ) );
TQTimer::singleShot( 0, this, TQ_SLOT( convertSlotCreate() ) );
}
void
ArkWidget::convertSlotCreate()
{
file_close();
connect( this, TQT_SIGNAL( createDone( bool ) ), this, TQT_SLOT( convertSlotCreateDone( bool ) ) );
connect( this, TQ_SIGNAL( createDone( bool ) ), this, TQ_SLOT( convertSlotCreateDone( bool ) ) );
TQString archToCreate;
if ( m_convert_saveAsURL.isLocalFile() )
archToCreate = m_convert_saveAsURL.path();
@ -330,7 +330,7 @@ ArkWidget::convertSlotCreate()
void
ArkWidget::convertSlotCreateDone( bool success )
{
disconnect( this, TQT_SIGNAL( createDone( bool ) ), this, TQT_SLOT( convertSlotCreateDone( bool ) ) );
disconnect( this, TQ_SIGNAL( createDone( bool ) ), this, TQ_SLOT( convertSlotCreateDone( bool ) ) );
kdDebug( 1601 ) << k_funcinfo << endl;
if ( !success )
{
@ -357,7 +357,7 @@ ArkWidget::convertSlotCreateDone( bool success )
*it = TQString::fromLatin1( "file:" )+ m_convert_tmpDir->name() + *it;
}
bool bOldRecVal = ArkSettings::rarRecurseSubdirs();
connect( arch, TQT_SIGNAL( sigAdd( bool ) ), this, TQT_SLOT( convertSlotAddDone( bool ) ) );
connect( arch, TQ_SIGNAL( sigAdd( bool ) ), this, TQ_SLOT( convertSlotAddDone( bool ) ) );
arch->addFile( entries );
ArkSettings::setRarRecurseSubdirs( bOldRecVal );
}
@ -365,11 +365,11 @@ ArkWidget::convertSlotCreateDone( bool success )
void
ArkWidget::convertSlotAddDone( bool success )
{
disconnect( arch, TQT_SIGNAL( sigAdd( bool ) ), this, TQT_SLOT( convertSlotAddDone( bool ) ) );
disconnect( arch, TQ_SIGNAL( sigAdd( bool ) ), this, TQ_SLOT( convertSlotAddDone( bool ) ) );
kdDebug( 1601 ) << k_funcinfo << endl;
m_convertSuccess = success;
// needed ? (TarArch, lzo)
TQTimer::singleShot( 0, this, TQT_SLOT( convertFinish() ) );
TQTimer::singleShot( 0, this, TQ_SLOT( convertFinish() ) );
}
void
@ -438,7 +438,7 @@ ArkWidget::extractTo( const KURL & targetDirectory, const KURL & archive, bool b
}
}
connect( this, TQT_SIGNAL( openDone( bool ) ), this, TQT_SLOT( extractToSlotOpenDone( bool ) ) );
connect( this, TQ_SIGNAL( openDone( bool ) ), this, TQ_SLOT( extractToSlotOpenDone( bool ) ) );
}
const TQString
@ -464,7 +464,7 @@ ArkWidget::guessName( const KURL &archive )
void
ArkWidget::extractToSlotOpenDone( bool success )
{
disconnect( this, TQT_SIGNAL( openDone( bool ) ), this, TQT_SLOT( extractToSlotOpenDone( bool ) ) );
disconnect( this, TQ_SIGNAL( openDone( bool ) ), this, TQ_SLOT( extractToSlotOpenDone( bool ) ) );
if ( !success )
{
KMessageBox::error( this, i18n( "An error occurred while opening the archive %1." ).arg( m_url.prettyURL() ) );
@ -508,7 +508,7 @@ ArkWidget::extractToSlotOpenDone( bool success )
if ( ArkUtils::diskHasSpace( extractDir, m_nSizeOfFiles ) )
{
disableAll();
connect( arch, TQT_SIGNAL( sigExtract( bool ) ), this, TQT_SLOT( extractToSlotExtractDone( bool ) ) );
connect( arch, TQ_SIGNAL( sigExtract( bool ) ), this, TQ_SLOT( extractToSlotExtractDone( bool ) ) );
arch->unarchFile( 0, extractDir );
}
else
@ -525,7 +525,7 @@ ArkWidget::extractToSlotOpenDone( bool success )
void
ArkWidget::extractToSlotExtractDone( bool success )
{
disconnect( arch, TQT_SIGNAL( sigExtract( bool ) ), this, TQT_SLOT( extractToSlotExtractDone( bool ) ) );
disconnect( arch, TQ_SIGNAL( sigExtract( bool ) ), this, TQ_SLOT( extractToSlotExtractDone( bool ) ) );
if ( !success )
{
kdDebug( 1601 ) << "Last Shell Output" << arch->getLastShellOutput() << endl;
@ -536,7 +536,7 @@ ArkWidget::extractToSlotExtractDone( bool success )
if ( m_extractRemote )
{
connect( this, TQT_SIGNAL( extractRemoteMovingDone() ), this, TQT_SIGNAL( request_file_quit() ) );
connect( this, TQ_SIGNAL( extractRemoteMovingDone() ), this, TQ_SIGNAL( request_file_quit() ) );
extractRemoteInitiateMoving( m_extractTo_targetDirectory );
}
else
@ -565,7 +565,7 @@ ArkWidget::addToArchive( const KURL::List & filesToAdd, const KURL & archive)
}
}
connect( this, TQT_SIGNAL( createDone( bool ) ), this, TQT_SLOT( addToArchiveSlotCreateDone( bool ) ) );
connect( this, TQ_SIGNAL( createDone( bool ) ), this, TQ_SLOT( addToArchiveSlotCreateDone( bool ) ) );
// TODO: remote Archives should be handled by createArchive
if ( archive.isLocalFile() )
@ -581,14 +581,14 @@ ArkWidget::addToArchive( const KURL::List & filesToAdd, const KURL & archive)
return true;
}
connect( this, TQT_SIGNAL( openDone( bool ) ), this, TQT_SLOT( addToArchiveSlotOpenDone( bool ) ) );
connect( this, TQ_SIGNAL( openDone( bool ) ), this, TQ_SLOT( addToArchiveSlotOpenDone( bool ) ) );
return true;
}
void
ArkWidget::addToArchiveSlotCreateDone( bool success )
{
disconnect( this, TQT_SIGNAL( createDone( bool ) ), this, TQT_SLOT( addToArchiveSlotCreateDone( bool ) ) );
disconnect( this, TQ_SIGNAL( createDone( bool ) ), this, TQ_SLOT( addToArchiveSlotCreateDone( bool ) ) );
if ( !success )
{
kdDebug( 1601 ) << "Could not create the archive" << endl;
@ -602,7 +602,7 @@ void
ArkWidget::addToArchiveSlotOpenDone( bool success )
{
kdDebug( 1601 ) << k_funcinfo << endl;
disconnect( this, TQT_SIGNAL( openDone( bool ) ), this, TQT_SLOT( addToArchiveSlotOpenDone( bool ) ) );
disconnect( this, TQ_SIGNAL( openDone( bool ) ), this, TQ_SLOT( addToArchiveSlotOpenDone( bool ) ) );
// TODO: handle dirs with addDir ( or better+easier: get rid of the need to do that entirely )
if ( !success )
{
@ -617,7 +617,7 @@ ArkWidget::addToArchiveSlotOpenDone( bool success )
strFilename = url.path();
if (!strFilename.isEmpty())
{
connect( this, TQT_SIGNAL( createRealArchiveDone( bool ) ), this, TQT_SLOT( addToArchiveSlotAddDone( bool ) ) );
connect( this, TQ_SIGNAL( createRealArchiveDone( bool ) ), this, TQ_SLOT( addToArchiveSlotAddDone( bool ) ) );
createRealArchive( strFilename, m_addToArchive_filesToAdd.toStringList() );
return;
}
@ -662,7 +662,7 @@ ArkWidget::addToArchiveSlotOpenDone( bool success )
kdDebug( 1601 ) << "Adding: " << list << endl;
connect( arch, TQT_SIGNAL( sigAdd( bool ) ), this, TQT_SLOT( addToArchiveSlotAddDone( bool ) ) );
connect( arch, TQ_SIGNAL( sigAdd( bool ) ), this, TQ_SLOT( addToArchiveSlotAddDone( bool ) ) );
arch->addFile( list.toStringList() );
}
@ -670,7 +670,7 @@ void
ArkWidget::addToArchiveSlotAddDone( bool success )
{
kdDebug( 1601 ) << k_funcinfo << endl;
disconnect( this, TQT_SLOT( addToArchiveSlotAddDone( bool ) ) );
disconnect( this, TQ_SLOT( addToArchiveSlotAddDone( bool ) ) );
if ( !success )
{
KMessageBox::error( this, i18n( "An error occurred while adding the files to the archive." ) );
@ -861,8 +861,8 @@ ArkWidget::extractOnlyOpenDone()
void
ArkWidget::slotExtractDone(bool success)
{
disconnect( arch, TQT_SIGNAL( sigExtract( bool ) ),
this, TQT_SLOT( slotExtractDone(bool) ) );
disconnect( arch, TQ_SIGNAL( sigExtract( bool ) ),
this, TQ_SLOT( slotExtractDone(bool) ) );
ready();
if(m_extractList != 0)
@ -919,8 +919,8 @@ ArkWidget::extractRemoteInitiateMoving( const KURL & target )
m_extractURL.adjustPath( 1 );
TDEIO::CopyJob *job = TDEIO::copy( srcList, target, this );
connect( job, TQT_SIGNAL(result(TDEIO::Job*)),
this, TQT_SLOT(slotExtractRemoteDone(TDEIO::Job*)) );
connect( job, TQ_SIGNAL(result(TDEIO::Job*)),
this, TQ_SLOT(slotExtractRemoteDone(TDEIO::Job*)) );
m_extractRemote = false;
}
@ -1010,8 +1010,8 @@ ArkWidget::createRealArchive( const TQString & strFilename, const TQStringList &
u2.setPath( m_createRealArchTmpDir->name() + u1.fileName() );
TDEIO::NetAccess::copy( u1, u2, this );
m_compressedFile = "file:" + u2.path(); // AGAIN THE 5 SPACES Hack :-(
connect( newArch, TQT_SIGNAL( sigCreate( Arch *, bool, const TQString &, int ) ),
this, TQT_SLOT( createRealArchiveSlotCreate( Arch *, bool,
connect( newArch, TQ_SIGNAL( sigCreate( Arch *, bool, const TQString &, int ) ),
this, TQ_SLOT( createRealArchiveSlotCreate( Arch *, bool,
const TQString &, int ) ) );
file_close();
newArch->create();
@ -1030,8 +1030,8 @@ ArkWidget::createRealArchiveSlotCreate( Arch * newArch, bool success,
listForCompressedFile.append(m_compressedFile);
disableAll();
connect( newArch, TQT_SIGNAL( sigAdd( bool ) ), this,
TQT_SLOT( createRealArchiveSlotAddDone( bool ) ) );
connect( newArch, TQ_SIGNAL( sigAdd( bool ) ), this,
TQ_SLOT( createRealArchiveSlotAddDone( bool ) ) );
newArch->addFile(listForCompressedFile);
}
@ -1040,8 +1040,8 @@ void
ArkWidget::createRealArchiveSlotAddDone( bool success )
{
kdDebug( 1601 ) << "createRealArchiveSlotAddDone+, success:" << success << endl;
disconnect( arch, TQT_SIGNAL( sigAdd( bool ) ), this,
TQT_SLOT( createRealArchiveSlotAddDone( bool ) ) );
disconnect( arch, TQ_SIGNAL( sigAdd( bool ) ), this,
TQ_SLOT( createRealArchiveSlotAddDone( bool ) ) );
m_createRealArchTmpDir->unlink();
delete m_createRealArchTmpDir;
@ -1061,8 +1061,8 @@ ArkWidget::createRealArchiveSlotAddDone( bool success )
}
else
{
connect( arch, TQT_SIGNAL( sigAdd( bool ) ), this,
TQT_SLOT( createRealArchiveSlotAddFilesDone( bool ) ) );
connect( arch, TQ_SIGNAL( sigAdd( bool ) ), this,
TQ_SLOT( createRealArchiveSlotAddFilesDone( bool ) ) );
// files were dropped in
addFile( m_pTempAddList );
}
@ -1072,8 +1072,8 @@ void
ArkWidget::createRealArchiveSlotAddFilesDone( bool success )
{
//kdDebug( 1601 ) << "createRealArchiveSlotAddFilesDone+, success:" << success << endl;
disconnect( arch, TQT_SIGNAL( sigAdd( bool ) ), this,
TQT_SLOT( createRealArchiveSlotAddFilesDone( bool ) ) );
disconnect( arch, TQ_SIGNAL( sigAdd( bool ) ), this,
TQ_SLOT( createRealArchiveSlotAddFilesDone( bool ) ) );
delete m_pTempAddList;
m_pTempAddList = NULL;
emit createRealArchiveDone( success );
@ -1150,7 +1150,7 @@ ArkWidget::addFile(TQStringList *list)
}
connect( arch, TQT_SIGNAL( sigAdd( bool ) ), this, TQT_SLOT( slotAddDone( bool ) ) );
connect( arch, TQ_SIGNAL( sigAdd( bool ) ), this, TQ_SLOT( slotAddDone( bool ) ) );
arch->addFile( ( *list ) );
}
@ -1167,7 +1167,7 @@ ArkWidget::action_add_dir()
busy( i18n( "Adding folder..." ) );
disableAll();
u = toLocalFile(u);
connect( arch, TQT_SIGNAL( sigAdd( bool ) ), this, TQT_SLOT( slotAddDone( bool ) ) );
connect( arch, TQ_SIGNAL( sigAdd( bool ) ), this, TQ_SLOT( slotAddDone( bool ) ) );
arch->addDir( u.prettyURL() );
}
@ -1176,7 +1176,7 @@ ArkWidget::action_add_dir()
void
ArkWidget::slotAddDone(bool _bSuccess)
{
disconnect( arch, TQT_SIGNAL( sigAdd( bool ) ), this, TQT_SLOT( slotAddDone( bool ) ) );
disconnect( arch, TQ_SIGNAL( sigAdd( bool ) ), this, TQ_SLOT( slotAddDone( bool ) ) );
m_fileListView->setUpdatesEnabled(true);
m_fileListView->triggerUpdate();
ready();
@ -1280,7 +1280,7 @@ ArkWidget::action_delete()
disableAll();
busy( i18n( "Removing..." ) );
connect( arch, TQT_SIGNAL( sigDelete( bool ) ), this, TQT_SLOT( slotDeleteDone( bool ) ) );
connect( arch, TQ_SIGNAL( sigDelete( bool ) ), this, TQ_SLOT( slotDeleteDone( bool ) ) );
arch->remove(&list);
kdDebug(1601) << "-ArkWidget::action_delete" << endl;
}
@ -1288,7 +1288,7 @@ ArkWidget::action_delete()
void
ArkWidget::slotDeleteDone(bool _bSuccess)
{
disconnect( arch, TQT_SIGNAL( sigDelete( bool ) ), this, TQT_SLOT( slotDeleteDone( bool ) ) );
disconnect( arch, TQ_SIGNAL( sigDelete( bool ) ), this, TQ_SLOT( slotDeleteDone( bool ) ) );
kdDebug(1601) << "+ArkWidget::slotDeleteDone" << endl;
m_fileListView->setUpdatesEnabled(true);
m_fileListView->triggerUpdate();
@ -1310,8 +1310,8 @@ ArkWidget::slotDeleteDone(bool _bSuccess)
void
ArkWidget::slotOpenWith()
{
connect( arch, TQT_SIGNAL( sigExtract( bool ) ), this,
TQT_SLOT( openWithSlotExtractDone( bool ) ) );
connect( arch, TQ_SIGNAL( sigExtract( bool ) ), this,
TQ_SLOT( openWithSlotExtractDone( bool ) ) );
showCurrentFile();
}
@ -1319,8 +1319,8 @@ ArkWidget::slotOpenWith()
void
ArkWidget::openWithSlotExtractDone( bool success )
{
disconnect( arch, TQT_SIGNAL( sigExtract( bool ) ), this,
TQT_SLOT( openWithSlotExtractDone( bool ) ) );
disconnect( arch, TQ_SIGNAL( sigExtract( bool ) ), this,
TQ_SLOT( openWithSlotExtractDone( bool ) ) );
if ( success )
{
@ -1524,7 +1524,7 @@ ArkWidget::action_extract()
{
disableAll();
busy( i18n( "Extracting..." ) );
connect( arch, TQT_SIGNAL( sigExtract( bool ) ), this, TQT_SLOT( slotExtractDone(bool) ) );
connect( arch, TQ_SIGNAL( sigExtract( bool ) ), this, TQ_SLOT( slotExtractDone(bool) ) );
arch->unarchFile(0, extractDir);
}
}
@ -1551,8 +1551,8 @@ ArkWidget::action_extract()
{
disableAll();
busy( i18n( "Extracting..." ) );
connect( arch, TQT_SIGNAL( sigExtract( bool ) ),
this, TQT_SLOT( slotExtractDone(bool) ) );
connect( arch, TQ_SIGNAL( sigExtract( bool ) ),
this, TQ_SLOT( slotExtractDone(bool) ) );
arch->unarchFile(m_extractList, extractDir); // extract selected files
}
}
@ -1585,16 +1585,16 @@ ArkWidget::action_edit()
// [hmm, does that really make sense? I'll leave it for now.]
busy( i18n( "Extracting..." ) );
connect( arch, TQT_SIGNAL( sigExtract( bool ) ), this,
TQT_SLOT( editSlotExtractDone() ) );
connect( arch, TQ_SIGNAL( sigExtract( bool ) ), this,
TQ_SLOT( editSlotExtractDone() ) );
showCurrentFile();
}
void
ArkWidget::editSlotExtractDone()
{
disconnect( arch, TQT_SIGNAL( sigExtract( bool ) ),
this, TQT_SLOT( editSlotExtractDone() ) );
disconnect( arch, TQ_SIGNAL( sigExtract( bool ) ),
this, TQ_SLOT( editSlotExtractDone() ) );
ready();
editStart();
@ -1619,8 +1619,8 @@ ArkWidget::editStart()
TDEProcess *kp = new TDEProcess;
*kp << l.text() << m_strFileToView;
connect( kp, TQT_SIGNAL(processExited(TDEProcess *)),
this, TQT_SLOT(slotEditFinished(TDEProcess *)) );
connect( kp, TQ_SIGNAL(processExited(TDEProcess *)),
this, TQ_SLOT(slotEditFinished(TDEProcess *)) );
if ( kp->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput) == false )
{
KMessageBox::error(0, i18n("Trouble editing the file..."));
@ -1632,7 +1632,7 @@ void
ArkWidget::slotEditFinished(TDEProcess *kp)
{
kdDebug(1601) << "+ArkWidget::slotEditFinished" << endl;
connect( arch, TQT_SIGNAL( sigAdd( bool ) ), this, TQT_SLOT( editSlotAddDone( bool ) ) );
connect( arch, TQ_SIGNAL( sigAdd( bool ) ), this, TQ_SLOT( editSlotAddDone( bool ) ) );
delete kp;
TQStringList list;
// now put the file back into the archive.
@ -1673,15 +1673,15 @@ void
ArkWidget::editSlotAddDone( bool success )
{
ready();
disconnect( arch, TQT_SIGNAL( sigAdd( bool ) ), this, TQT_SLOT( editSlotAddDone( bool ) ) );
disconnect( arch, TQ_SIGNAL( sigAdd( bool ) ), this, TQ_SLOT( editSlotAddDone( bool ) ) );
slotAddDone( success );
}
void
ArkWidget::action_view()
{
connect( arch, TQT_SIGNAL( sigExtract( bool ) ), this,
TQT_SLOT( viewSlotExtractDone( bool ) ) );
connect( arch, TQ_SIGNAL( sigExtract( bool ) ), this,
TQ_SLOT( viewSlotExtractDone( bool ) ) );
busy( i18n( "Extracting file to view" ) );
showCurrentFile();
}
@ -1689,8 +1689,8 @@ ArkWidget::action_view()
void
ArkWidget::action_test()
{
connect( arch, TQT_SIGNAL( sigTest( bool ) ), this,
TQT_SLOT( slotTestDone( bool ) ) );
connect( arch, TQ_SIGNAL( sigTest( bool ) ), this,
TQ_SLOT( slotTestDone( bool ) ) );
busy( i18n( "Testing..." ) );
arch->test();
}
@ -1698,8 +1698,8 @@ ArkWidget::action_test()
void
ArkWidget::slotTestDone(bool ok)
{
disconnect( arch, TQT_SIGNAL( sigTest( bool ) ), this,
TQT_SLOT( slotTestDone( bool ) ) );
disconnect( arch, TQ_SIGNAL( sigTest( bool ) ), this,
TQ_SLOT( slotTestDone( bool ) ) );
ready();
if( ok )
KMessageBox::information(0, i18n("Test successful."));
@ -1732,8 +1732,8 @@ ArkWidget::viewSlotExtractDone( bool success )
}
}
disconnect( arch, TQT_SIGNAL( sigExtract( bool ) ), this,
TQT_SLOT( viewSlotExtractDone( bool ) ) );
disconnect( arch, TQ_SIGNAL( sigExtract( bool ) ), this,
TQ_SLOT( viewSlotExtractDone( bool ) ) );
delete m_viewList;
@ -1996,15 +1996,15 @@ void
ArkWidget::startDrag( const TQStringList & fileList )
{
mDragFiles = fileList;
connect( arch, TQT_SIGNAL( sigExtract( bool ) ), this, TQT_SLOT( startDragSlotExtractDone( bool ) ) );
connect( arch, TQ_SIGNAL( sigExtract( bool ) ), this, TQ_SLOT( startDragSlotExtractDone( bool ) ) );
prepareViewFiles( fileList );
}
void
ArkWidget::startDragSlotExtractDone( bool )
{
disconnect( arch, TQT_SIGNAL( sigExtract( bool ) ),
this, TQT_SLOT( startDragSlotExtractDone( bool ) ) );
disconnect( arch, TQ_SIGNAL( sigExtract( bool ) ),
this, TQ_SLOT( startDragSlotExtractDone( bool ) ) );
KURL::List list;
@ -2036,16 +2036,16 @@ ArkWidget::createFileListView()
{
m_fileListView = new FileListView(this);
connect( m_fileListView, TQT_SIGNAL( selectionChanged() ),
this, TQT_SLOT( slotSelectionChanged() ) );
connect( m_fileListView, TQT_SIGNAL( rightButtonPressed(TQListViewItem *, const TQPoint &, int) ),
this, TQT_SLOT(doPopup(TQListViewItem *, const TQPoint &, int)));
connect( m_fileListView, TQT_SIGNAL( startDragRequest( const TQStringList & ) ),
this, TQT_SLOT( startDrag( const TQStringList & ) ) );
connect( m_fileListView, TQT_SIGNAL( executed(TQListViewItem *, const TQPoint &, int ) ),
this, TQT_SLOT( viewFile(TQListViewItem*) ) );
connect( m_fileListView, TQT_SIGNAL( returnPressed(TQListViewItem * ) ),
this, TQT_SLOT( viewFile(TQListViewItem*) ) );
connect( m_fileListView, TQ_SIGNAL( selectionChanged() ),
this, TQ_SLOT( slotSelectionChanged() ) );
connect( m_fileListView, TQ_SIGNAL( rightButtonPressed(TQListViewItem *, const TQPoint &, int) ),
this, TQ_SLOT(doPopup(TQListViewItem *, const TQPoint &, int)));
connect( m_fileListView, TQ_SIGNAL( startDragRequest( const TQStringList & ) ),
this, TQ_SLOT( startDrag( const TQStringList & ) ) );
connect( m_fileListView, TQ_SIGNAL( executed(TQListViewItem *, const TQPoint &, int ) ),
this, TQ_SLOT( viewFile(TQListViewItem*) ) );
connect( m_fileListView, TQ_SIGNAL( returnPressed(TQListViewItem * ) ),
this, TQ_SLOT( viewFile(TQListViewItem*) ) );
}
m_fileListView->clear();
}
@ -2072,8 +2072,8 @@ Arch * ArkWidget::getNewArchive( const TQString & _fileName, const TQString& _mi
return NULL;
}
connect( newArch, TQT_SIGNAL(headers(const ColumnList&)),
m_fileListView, TQT_SLOT(setHeaders(const ColumnList&)));
connect( newArch, TQ_SIGNAL(headers(const ColumnList&)),
m_fileListView, TQ_SLOT(setHeaders(const ColumnList&)));
m_archType = archtype;
m_fileListView->setUpdatesEnabled(true);
@ -2093,8 +2093,8 @@ ArkWidget::createArchive( const TQString & _filename )
return false;
busy( i18n( "Creating archive..." ) );
connect( newArch, TQT_SIGNAL(sigCreate(Arch *, bool, const TQString &, int) ),
this, TQT_SLOT(slotCreate(Arch *, bool, const TQString &, int) ) );
connect( newArch, TQ_SIGNAL(sigCreate(Arch *, bool, const TQString &, int) ),
this, TQ_SLOT(slotCreate(Arch *, bool, const TQString &, int) ) );
newArch->create();
return true;
@ -2104,8 +2104,8 @@ void
ArkWidget::slotCreate(Arch * _newarch, bool _success, const TQString & _filename, int)
{
kdDebug( 1601 ) << k_funcinfo << endl;
disconnect( _newarch, TQT_SIGNAL( sigCreate( Arch *, bool, const TQString &, int ) ),
this, TQT_SLOT(slotCreate(Arch *, bool, const TQString &, int) ) );
disconnect( _newarch, TQ_SIGNAL( sigCreate( Arch *, bool, const TQString &, int ) ),
this, TQ_SLOT(slotCreate(Arch *, bool, const TQString &, int) ) );
ready();
if ( _success )
{
@ -2187,10 +2187,10 @@ ArkWidget::openArchive( const TQString & _filename, const TQString & _password )
m_archType = archtype;
connect( newArch, TQT_SIGNAL(sigOpen(Arch *, bool, const TQString &, int)),
this, TQT_SLOT(slotOpen(Arch *, bool, const TQString &,int)) );
connect( newArch, TQT_SIGNAL(headers(const ColumnList&)),
m_fileListView, TQT_SLOT(setHeaders(const ColumnList&)));
connect( newArch, TQ_SIGNAL(sigOpen(Arch *, bool, const TQString &, int)),
this, TQ_SLOT(slotOpen(Arch *, bool, const TQString &,int)) );
connect( newArch, TQ_SIGNAL(headers(const ColumnList&)),
m_fileListView, TQ_SLOT(setHeaders(const ColumnList&)));
disableAll();

@ -209,12 +209,12 @@ void CompressedFile::open()
kdDebug(1601) << "Command is " << m_unarchiver_program << " " << m_tmpfile<< endl;
connect( kp, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(processExited(TDEProcess*)), this,
TQT_SLOT(slotUncompressDone(TDEProcess*)));
connect( kp, TQ_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQ_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQ_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
this, TQ_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQ_SIGNAL(processExited(TDEProcess*)), this,
TQ_SLOT(slotUncompressDone(TDEProcess*)));
if (kp->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput) == false)
{
@ -314,12 +314,12 @@ void CompressedFile::addFile( const TQStringList &urls )
*kp << compressor << "-c" << file;
connect( kp, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQT_SLOT(slotAddInProgress(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQT_SIGNAL(processExited(TDEProcess*)), this,
TQT_SLOT(slotAddDone(TDEProcess*)));
connect( kp, TQ_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
this, TQ_SLOT(slotAddInProgress(TDEProcess*, char*, int)));
connect( kp, TQ_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
this, TQ_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
connect( kp, TQ_SIGNAL(processExited(TDEProcess*)), this,
TQ_SLOT(slotAddDone(TDEProcess*)));
int f_desc = KDE_open(TQFile::encodeName(m_filename), O_CREAT | O_TRUNC | O_WRONLY, 0666);
if (f_desc != -1)

@ -122,9 +122,9 @@ ExtractionDialog::ExtractionDialog( TQWidget *parent, const char *name,
m_viewFolderAfterExtraction = new TQCheckBox( i18n( "Open destination folder after extraction" ), vbox );
m_viewFolderAfterExtraction->setChecked( ArkSettings::openDestinationFolder() );
connect( combobox, TQT_SIGNAL( returnPressed( const TQString& ) ), combobox, TQT_SLOT( addToHistory( const TQString& ) ) );
connect( combobox->lineEdit(), TQT_SIGNAL( textChanged( const TQString& ) ),
this, TQT_SLOT( extractDirChanged( const TQString & ) ) );
connect( combobox, TQ_SIGNAL( returnPressed( const TQString& ) ), combobox, TQ_SLOT( addToHistory( const TQString& ) ) );
connect( combobox->lineEdit(), TQ_SIGNAL( textChanged( const TQString& ) ),
this, TQ_SLOT( extractDirChanged( const TQString & ) ) );
}
ExtractionDialog::~ExtractionDialog()

@ -146,12 +146,12 @@ void LhaArch::open()
TDEProcess *kp = m_currentProcess = new TDEProcess;
*kp << m_archiver_program << "v" << m_filename;
connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedTOC(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotOpenExited(TDEProcess*) ) );
connect( kp, TQ_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQ_SLOT( slotReceivedTOC(TDEProcess*, char*, int) ) );
connect( kp, TQ_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQ_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQ_SIGNAL( processExited(TDEProcess*) ),
TQ_SLOT( slotOpenExited(TDEProcess*) ) );
if ( !kp->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ) )
{
@ -216,12 +216,12 @@ void LhaArch::addFile( const TQStringList &urls )
*kp << fileURL.fileName();
}
connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotAddExited(TDEProcess*) ) );
connect( kp, TQ_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQ_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQ_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQ_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQ_SIGNAL( processExited(TDEProcess*) ),
TQ_SLOT( slotAddExited(TDEProcess*) ) );
if ( !kp->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ) )
{
@ -257,12 +257,12 @@ void LhaArch::unarchFileInternal()
}
}
connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotExtractExited(TDEProcess*) ) );
connect( kp, TQ_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQ_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQ_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQ_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQ_SIGNAL( processExited(TDEProcess*) ),
TQ_SLOT( slotExtractExited(TDEProcess*) ) );
if ( !kp->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ) )
{
@ -287,12 +287,12 @@ void LhaArch::remove( TQStringList *list )
*kp << ( *it );
}
connect( kp, TQT_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQT_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQT_SIGNAL( processExited(TDEProcess*) ),
TQT_SLOT( slotDeleteExited(TDEProcess*) ) );
connect( kp, TQ_SIGNAL( receivedStdout(TDEProcess*, char*, int) ),
TQ_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQ_SIGNAL( receivedStderr(TDEProcess*, char*, int) ),
TQ_SLOT( slotReceivedOutput(TDEProcess*, char*, int) ) );
connect( kp, TQ_SIGNAL( processExited(TDEProcess*) ),
TQ_SLOT( slotDeleteExited(TDEProcess*) ) );
if ( !kp->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ) )
{