diff options
Diffstat (limited to 'ark/ark_part.cpp')
-rw-r--r-- | ark/ark_part.cpp | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/ark/ark_part.cpp b/ark/ark_part.cpp index 2eaf97a..e1b1bc7 100644 --- a/ark/ark_part.cpp +++ b/ark/ark_part.cpp @@ -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 ); |