summaryrefslogtreecommitdiffstats
path: root/krec/krecord.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'krec/krecord.cpp')
-rw-r--r--krec/krecord.cpp48
1 files changed, 23 insertions, 25 deletions
diff --git a/krec/krecord.cpp b/krec/krecord.cpp
index 5c14882f..d1f74f54 100644
--- a/krec/krecord.cpp
+++ b/krec/krecord.cpp
@@ -107,8 +107,8 @@ void KRecPrivate::openFile() {
}
void KRecPrivate::pNewFile( KRecFile* file ) {
_currentFile = file;
- connect( m_recStream, TQT_SIGNAL( data( TQByteArray& ) ), _currentFile, TQT_SLOT( writeData( TQByteArray& ) ) );
- connect( m_playStream, TQT_SIGNAL( requestData( TQByteArray& ) ), _currentFile, TQT_SLOT( getData( TQByteArray& ) ) );
+ connect( m_recStream, TQ_SIGNAL( data( TQByteArray& ) ), _currentFile, TQ_SLOT( writeData( TQByteArray& ) ) );
+ connect( m_playStream, TQ_SIGNAL( requestData( TQByteArray& ) ), _currentFile, TQ_SLOT( getData( TQByteArray& ) ) );
mainwidget->_fileview->setFile( _currentFile );
checkActions();
}
@@ -162,9 +162,9 @@ void KRecPrivate::exportFile() {
if ( _exportitem ) {
_exportitem->initialize( _currentFile->samplerate(), _currentFile->bits(), _currentFile->channels() );
if ( _exportitem->initialize( filename ) ) {
- connect( _exportitem, TQT_SIGNAL( getData( TQByteArray& ) ), _currentFile, TQT_SLOT( getData( TQByteArray& ) ) );
- connect( _currentFile, TQT_SIGNAL( endReached() ), _exportitem, TQT_SLOT( stop() ) );
- connect( _currentFile, TQT_SIGNAL( endReached() ), TQT_TQOBJECT(this), TQT_SLOT( endExportFile() ) );
+ connect( _exportitem, TQ_SIGNAL( getData( TQByteArray& ) ), _currentFile, TQ_SLOT( getData( TQByteArray& ) ) );
+ connect( _currentFile, TQ_SIGNAL( endReached() ), _exportitem, TQ_SLOT( stop() ) );
+ connect( _currentFile, TQ_SIGNAL( endReached() ), this, TQ_SLOT( endExportFile() ) );
_exportitem->start();
}
} else
@@ -185,7 +185,7 @@ void KRecPrivate::exportFile() {
} else KRecGlobal::the()->message( i18n( "There is nothing to export." ) );
checkActions();
}
-void KRecPrivate::endExportFile() { TQTimer::singleShot( 20, TQT_TQOBJECT(this), TQT_SLOT( endExportFile2() ) ); }
+void KRecPrivate::endExportFile() { TQTimer::singleShot( 20, this, TQ_SLOT( endExportFile2() ) ); }
void KRecPrivate::endExportFile2() {
_exportitem->finalize();
disconnect( _currentFile, 0, _exportitem, 0 );
@@ -283,40 +283,40 @@ KRecord::KRecord(TQWidget *parent, const char *name )
// * * * Actions * * *
d->artsactions = new ArtsActions( d->server, actionCollection(), this );
- KStdAction::preferences( d, TQT_SLOT( showConfDialog() ), actionCollection() );
+ KStdAction::preferences( d, TQ_SLOT( showConfDialog() ), actionCollection() );
- KStdAction::openNew( d, TQT_SLOT( newFile() ), actionCollection() );
- KStdAction::open( d, TQT_SLOT( openFile() ), actionCollection() );
- KStdAction::save( d, TQT_SLOT( saveFile() ), actionCollection() );
- KStdAction::saveAs( d, TQT_SLOT( saveAsFile() ), actionCollection() );
- KStdAction::close( d, TQT_SLOT( closeFile() ), actionCollection() );
- KStdAction::quit( TQT_TQOBJECT(this), TQT_SLOT( close() ), actionCollection() );
+ KStdAction::openNew( d, TQ_SLOT( newFile() ), actionCollection() );
+ KStdAction::open( d, TQ_SLOT( openFile() ), actionCollection() );
+ KStdAction::save( d, TQ_SLOT( saveFile() ), actionCollection() );
+ KStdAction::saveAs( d, TQ_SLOT( saveAsFile() ), actionCollection() );
+ KStdAction::close( d, TQ_SLOT( closeFile() ), actionCollection() );
+ KStdAction::quit( this, TQ_SLOT( close() ), actionCollection() );
- KStdAction::tipOfDay( d, TQT_SLOT( forceTipOfDay() ), actionCollection() );
+ KStdAction::tipOfDay( d, TQ_SLOT( forceTipOfDay() ), actionCollection() );
d->aExportFile = new TDEAction( i18n( "Export..." ), TDEShortcut(),
- d, TQT_SLOT( exportFile() ), actionCollection(), "export_file" );
+ d, TQ_SLOT( exportFile() ), actionCollection(), "export_file" );
d->aRecord = new TDEAction( i18n( "&Record" ), TDEShortcut( Key_R ),
- TQT_TQOBJECT(this), TQT_SLOT( startRec() ), actionCollection(), "player_record" );
+ this, TQ_SLOT( startRec() ), actionCollection(), "player_record" );
d->aPlay = new TDEAction( i18n( "&Play" ), TDEShortcut( Key_P ),
- TQT_TQOBJECT(this), TQT_SLOT( startPlay() ), actionCollection(), "media-playback-start" );
+ this, TQ_SLOT( startPlay() ), actionCollection(), "media-playback-start" );
d->aStop = new TDEAction( i18n( "&Stop" ), TDEShortcut( Key_S ),
- TQT_TQOBJECT(this), TQT_SLOT( stopRec() ), actionCollection(), "media-playback-stop" );
+ this, TQ_SLOT( stopRec() ), actionCollection(), "media-playback-stop" );
d->aThru = new TDEToggleAction( i18n( "Play Through" ), TDEShortcut( CTRL + Key_P), actionCollection(), "play_thru" );
- connect( d->aThru, TQT_SIGNAL( toggled( bool ) ), d, TQT_SLOT( playthru( bool ) ) );
+ connect( d->aThru, TQ_SIGNAL( toggled( bool ) ), d, TQ_SLOT( playthru( bool ) ) );
d->aBegin = new TDEAction( i18n( "Go to &Beginning" ), TDEShortcut( SHIFT + Key_Left ),
- d, TQT_SLOT( toBegin() ), actionCollection(), "player_gobegin" );
+ d, TQ_SLOT( toBegin() ), actionCollection(), "player_gobegin" );
d->aEnd = new TDEAction( i18n( "Go to &End" ), TDEShortcut( SHIFT + Key_Right ),
- d, TQT_SLOT( toEnd() ), actionCollection(), "player_goend" );
+ d, TQ_SLOT( toEnd() ), actionCollection(), "player_goend" );
( void* ) d->artsactions->actionAudioManager();
d->aExecaRtsControl = new TDEAction( i18n( "Start aRts Control Tool" ), TDEShortcut(),
- d, TQT_SLOT( execaRtsControl() ), actionCollection(), "exec_artscontrol" );
+ d, TQ_SLOT( execaRtsControl() ), actionCollection(), "exec_artscontrol" );
d->aExecKMix = new TDEAction( i18n( "Start KMix" ), TDEShortcut(),
- d, TQT_SLOT( execKMix() ), actionCollection(), "exec_kmix" );
+ d, TQ_SLOT( execKMix() ), actionCollection(), "exec_kmix" );
// * * * GUI * * *
// TODO Fix toolbar config so this line can just be setupGUI()
@@ -403,5 +403,3 @@ bool KRecord::queryClose() {
#include "krecord.moc"
#include "krecord_private.moc"
-
-// vim:sw=4:ts=4