Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 773c73d274)
r14.1.x
Michele Calgaro 12 months ago
parent 9897ab3092
commit 8c11a14037
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -105,8 +105,8 @@ def initialize(parent = nil, name = nil)
okPushButton.setText( "OK" ) okPushButton.setText( "OK" )
okPushButton.setDefault( true ) okPushButton.setDefault( true )
connect( okPushButton, SIGNAL( 'clicked()' ), connect( okPushButton, TQ_SIGNAL( 'clicked()' ),
self, SLOT( 'accept()' ) self, TQ_SLOT( 'accept()' )
) )
cancelPushButton = TQt::PushButton.new( self, "cancel" ) cancelPushButton = TQt::PushButton.new( self, "cancel" )
@ -114,8 +114,8 @@ def initialize(parent = nil, name = nil)
cancelPushButton.setText( "Cancel" ) cancelPushButton.setText( "Cancel" )
cancelPushButton.setAccel( TQt::KeySequence.new(Key_Escape) ) cancelPushButton.setAccel( TQt::KeySequence.new(Key_Escape) )
connect( cancelPushButton, SIGNAL( 'clicked()' ), connect( cancelPushButton, TQ_SIGNAL( 'clicked()' ),
self, SLOT( 'reject()' ) self, TQ_SLOT( 'reject()' )
) )
file = TQt::File.new( File.dirname( File.expand_path( __FILE__ ) ) + "/config" ) file = TQt::File.new( File.dirname( File.expand_path( __FILE__ ) ) + "/config" )

@ -56,8 +56,8 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin
cArtist->setMinimumWidth( 200 ); cArtist->setMinimumWidth( 200 );
cArtist->insertItem( i18n("Various Artists") ); cArtist->insertItem( i18n("Various Artists") );
cArtist->setCurrentText( "" ); cArtist->setCurrentText( "" );
connect( cArtist, TQT_SIGNAL(textChanged(const TQString&)), connect( cArtist, TQ_SIGNAL(textChanged(const TQString&)),
this, TQT_SLOT(artistChanged(const TQString&)) this, TQ_SLOT(artistChanged(const TQString&))
); );
// add a horizontal box layout for the composer // add a horizontal box layout for the composer
TQHBoxLayout* artistBox = new TQHBoxLayout( -1, "artistBox" ); TQHBoxLayout* artistBox = new TQHBoxLayout( -1, "artistBox" );
@ -71,8 +71,8 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin
cComposer->insertItem( i18n("Various Composer") ); cComposer->insertItem( i18n("Various Composer") );
cComposer->setCurrentText( "" ); cComposer->setCurrentText( "" );
//cComposer->setSizePolicy( TQSizePolicy::Maximum ); //cComposer->setSizePolicy( TQSizePolicy::Maximum );
connect( cComposer, TQT_SIGNAL(textChanged(const TQString&)), connect( cComposer, TQ_SIGNAL(textChanged(const TQString&)),
this, TQT_SLOT(composerChanged(const TQString&)) this, TQ_SLOT(composerChanged(const TQString&))
); );
//artistBox->addStretch(); //artistBox->addStretch();
artistBox->addSpacing( 130 ); artistBox->addSpacing( 130 );
@ -119,11 +119,11 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin
trackList->setSelectionMode( TQListView::Extended ); trackList->setSelectionMode( TQListView::Extended );
trackList->setAllColumnsShowFocus( true ); trackList->setAllColumnsShowFocus( true );
trackList->setResizeMode( TQListView::LastColumn ); trackList->setResizeMode( TQListView::LastColumn );
connect( trackList, TQT_SIGNAL(selectionChanged()), connect( trackList, TQ_SIGNAL(selectionChanged()),
this, TQT_SLOT(trackChanged()) this, TQ_SLOT(trackChanged())
); );
connect( trackList, TQT_SIGNAL(doubleClicked(TQListViewItem*,const TQPoint&,int)), connect( trackList, TQ_SIGNAL(doubleClicked(TQListViewItem*,const TQPoint&,int)),
this, TQT_SLOT(addClicked()) this, TQ_SLOT(addClicked())
); );
gridLayout->setRowStretch( 1, 1 ); gridLayout->setRowStretch( 1, 1 );
@ -139,15 +139,15 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin
pTrackUp = new KPushButton( " ", tagGroupBox, "pTrackUp" ); pTrackUp = new KPushButton( " ", tagGroupBox, "pTrackUp" );
pTrackUp->setPixmap( iconLoader->loadIcon("go-up",TDEIcon::Toolbar) ); pTrackUp->setPixmap( iconLoader->loadIcon("go-up",TDEIcon::Toolbar) );
pTrackUp->setAutoRepeat( true ); pTrackUp->setAutoRepeat( true );
connect( pTrackUp, TQT_SIGNAL(clicked()), connect( pTrackUp, TQ_SIGNAL(clicked()),
this, TQT_SLOT(trackUpPressed()) this, TQ_SLOT(trackUpPressed())
); );
tagGridLayout->addWidget( pTrackUp, 0, 0 ); tagGridLayout->addWidget( pTrackUp, 0, 0 );
pTrackDown = new KPushButton( " ", tagGroupBox, "pTrackDown" ); pTrackDown = new KPushButton( " ", tagGroupBox, "pTrackDown" );
pTrackDown->setPixmap( iconLoader->loadIcon("go-down",TDEIcon::Toolbar) ); pTrackDown->setPixmap( iconLoader->loadIcon("go-down",TDEIcon::Toolbar) );
pTrackDown->setAutoRepeat( true ); pTrackDown->setAutoRepeat( true );
connect( pTrackDown, TQT_SIGNAL(clicked()), connect( pTrackDown, TQ_SIGNAL(clicked()),
this, TQT_SLOT(trackDownPressed()) this, TQ_SLOT(trackDownPressed())
); );
tagGridLayout->addWidget( pTrackDown, 1, 0 ); tagGridLayout->addWidget( pTrackDown, 1, 0 );
@ -160,16 +160,16 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin
tagGridLayout->addWidget( lTrackTitleLabel, 0, 1 ); tagGridLayout->addWidget( lTrackTitleLabel, 0, 1 );
lTrackTitle = new KLineEdit( tagGroupBox, "lTrackTitle" ); lTrackTitle = new KLineEdit( tagGroupBox, "lTrackTitle" );
trackTitleBox->addWidget( lTrackTitle ); trackTitleBox->addWidget( lTrackTitle );
connect( lTrackTitle, TQT_SIGNAL(textChanged(const TQString&)), connect( lTrackTitle, TQ_SIGNAL(textChanged(const TQString&)),
this, TQT_SLOT(trackTitleChanged(const TQString&)) this, TQ_SLOT(trackTitleChanged(const TQString&))
); );
pTrackTitleEdit = new KPushButton( " ", tagGroupBox, "pTrackTitleEdit" ); pTrackTitleEdit = new KPushButton( " ", tagGroupBox, "pTrackTitleEdit" );
pTrackTitleEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) ); pTrackTitleEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) );
pTrackTitleEdit->setFixedSize( lTrackTitle->sizeHint().height(), lTrackTitle->sizeHint().height() ); pTrackTitleEdit->setFixedSize( lTrackTitle->sizeHint().height(), lTrackTitle->sizeHint().height() );
pTrackTitleEdit->hide(); pTrackTitleEdit->hide();
trackTitleBox->addWidget( pTrackTitleEdit ); trackTitleBox->addWidget( pTrackTitleEdit );
connect( pTrackTitleEdit, TQT_SIGNAL(clicked()), connect( pTrackTitleEdit, TQ_SIGNAL(clicked()),
this, TQT_SLOT(editTrackTitleClicked()) this, TQ_SLOT(editTrackTitleClicked())
); );
// add a horizontal box layout for the composer // add a horizontal box layout for the composer
TQHBoxLayout* trackArtistBox = new TQHBoxLayout( -1, "trackArtistBox" ); TQHBoxLayout* trackArtistBox = new TQHBoxLayout( -1, "trackArtistBox" );
@ -179,31 +179,31 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin
tagGridLayout->addWidget( lTrackArtistLabel, 1, 1 ); tagGridLayout->addWidget( lTrackArtistLabel, 1, 1 );
lTrackArtist = new KLineEdit( tagGroupBox, "lTrackArtist" ); lTrackArtist = new KLineEdit( tagGroupBox, "lTrackArtist" );
trackArtistBox->addWidget( lTrackArtist ); trackArtistBox->addWidget( lTrackArtist );
connect( lTrackArtist, TQT_SIGNAL(textChanged(const TQString&)), connect( lTrackArtist, TQ_SIGNAL(textChanged(const TQString&)),
this, TQT_SLOT(trackArtistChanged(const TQString&)) this, TQ_SLOT(trackArtistChanged(const TQString&))
); );
pTrackArtistEdit = new KPushButton( " ", tagGroupBox, "pTrackArtistEdit" ); pTrackArtistEdit = new KPushButton( " ", tagGroupBox, "pTrackArtistEdit" );
pTrackArtistEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) ); pTrackArtistEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) );
pTrackArtistEdit->setFixedSize( lTrackArtist->sizeHint().height(), lTrackArtist->sizeHint().height() ); pTrackArtistEdit->setFixedSize( lTrackArtist->sizeHint().height(), lTrackArtist->sizeHint().height() );
pTrackArtistEdit->hide(); pTrackArtistEdit->hide();
trackArtistBox->addWidget( pTrackArtistEdit ); trackArtistBox->addWidget( pTrackArtistEdit );
connect( pTrackArtistEdit, TQT_SIGNAL(clicked()), connect( pTrackArtistEdit, TQ_SIGNAL(clicked()),
this, TQT_SLOT(editTrackArtistClicked()) this, TQ_SLOT(editTrackArtistClicked())
); );
TQLabel* lTrackComposerLabel = new TQLabel( i18n("Composer:"), tagGroupBox, "lTrackComposerLabel" ); TQLabel* lTrackComposerLabel = new TQLabel( i18n("Composer:"), tagGroupBox, "lTrackComposerLabel" );
trackArtistBox->addWidget( lTrackComposerLabel ); trackArtistBox->addWidget( lTrackComposerLabel );
lTrackComposer = new KLineEdit( tagGroupBox, "lTrackComposer" ); lTrackComposer = new KLineEdit( tagGroupBox, "lTrackComposer" );
trackArtistBox->addWidget( lTrackComposer ); trackArtistBox->addWidget( lTrackComposer );
connect( lTrackComposer, TQT_SIGNAL(textChanged(const TQString&)), connect( lTrackComposer, TQ_SIGNAL(textChanged(const TQString&)),
this, TQT_SLOT(trackComposerChanged(const TQString&)) this, TQ_SLOT(trackComposerChanged(const TQString&))
); );
pTrackComposerEdit = new KPushButton( " ", tagGroupBox, "pTrackComposerEdit" ); pTrackComposerEdit = new KPushButton( " ", tagGroupBox, "pTrackComposerEdit" );
pTrackComposerEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) ); pTrackComposerEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) );
pTrackComposerEdit->setFixedSize( lTrackComposer->sizeHint().height(), lTrackComposer->sizeHint().height() ); pTrackComposerEdit->setFixedSize( lTrackComposer->sizeHint().height(), lTrackComposer->sizeHint().height() );
pTrackComposerEdit->hide(); pTrackComposerEdit->hide();
trackArtistBox->addWidget( pTrackComposerEdit ); trackArtistBox->addWidget( pTrackComposerEdit );
connect( pTrackComposerEdit, TQT_SIGNAL(clicked()), connect( pTrackComposerEdit, TQ_SIGNAL(clicked()),
this, TQT_SLOT(editTrackComposerClicked()) this, TQ_SLOT(editTrackComposerClicked())
); );
// add a horizontal box layout for the comment // add a horizontal box layout for the comment
TQHBoxLayout* trackCommentBox = new TQHBoxLayout( -1, "trackCommentBox" ); TQHBoxLayout* trackCommentBox = new TQHBoxLayout( -1, "trackCommentBox" );
@ -214,16 +214,16 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin
tTrackComment = new KTextEdit( tagGroupBox, "tTrackComment" ); tTrackComment = new KTextEdit( tagGroupBox, "tTrackComment" );
trackCommentBox->addWidget( tTrackComment ); trackCommentBox->addWidget( tTrackComment );
tTrackComment->setFixedHeight( 65 ); tTrackComment->setFixedHeight( 65 );
connect( tTrackComment, TQT_SIGNAL(textChanged()), connect( tTrackComment, TQ_SIGNAL(textChanged()),
this, TQT_SLOT(trackCommentChanged()) this, TQ_SLOT(trackCommentChanged())
); );
pTrackCommentEdit = new KPushButton( " ", tagGroupBox, "pTrackCommentEdit" ); pTrackCommentEdit = new KPushButton( " ", tagGroupBox, "pTrackCommentEdit" );
pTrackCommentEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) ); pTrackCommentEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) );
pTrackCommentEdit->setFixedSize( lTrackTitle->sizeHint().height(), lTrackTitle->sizeHint().height() ); pTrackCommentEdit->setFixedSize( lTrackTitle->sizeHint().height(), lTrackTitle->sizeHint().height() );
pTrackCommentEdit->hide(); pTrackCommentEdit->hide();
trackCommentBox->addWidget( pTrackCommentEdit ); trackCommentBox->addWidget( pTrackCommentEdit );
connect( pTrackCommentEdit, TQT_SIGNAL(clicked()), connect( pTrackCommentEdit, TQ_SIGNAL(clicked()),
this, TQT_SLOT(editTrackCommentClicked()) this, TQ_SLOT(editTrackCommentClicked())
); );
// draw a horizontal line // draw a horizontal line
@ -241,8 +241,8 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin
// add the control elements // add the control elements
pSaveCue = new KPushButton( iconLoader->loadIcon("document-save",TDEIcon::Small), i18n("Save cuesheet ..."), this, "pSaveCue" ); pSaveCue = new KPushButton( iconLoader->loadIcon("document-save",TDEIcon::Small), i18n("Save cuesheet ..."), this, "pSaveCue" );
controlBox->addWidget( pSaveCue ); controlBox->addWidget( pSaveCue );
connect( pSaveCue, TQT_SIGNAL(clicked()), connect( pSaveCue, TQ_SIGNAL(clicked()),
this, TQT_SLOT(saveCuesheetClicked()) this, TQ_SLOT(saveCuesheetClicked())
); );
controlBox->addStretch(); controlBox->addStretch();
@ -253,13 +253,13 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin
if( plugin != 0 && plugin->rip.full_disc.enabled ) cAdd->insertItem( iconLoader->loadIcon("media-optical-cdaudio-unmounted",TDEIcon::Small),i18n("Add full CD as one file") ); if( plugin != 0 && plugin->rip.full_disc.enabled ) cAdd->insertItem( iconLoader->loadIcon("media-optical-cdaudio-unmounted",TDEIcon::Small),i18n("Add full CD as one file") );
//cAdd->setSizeMode( ComboButton::Min ); //cAdd->setSizeMode( ComboButton::Min );
controlBox->addWidget( cAdd ); controlBox->addWidget( cAdd );
connect( cAdd, TQT_SIGNAL(clicked(int)), connect( cAdd, TQ_SIGNAL(clicked(int)),
this, TQT_SLOT(addClicked(int)) this, TQ_SLOT(addClicked(int))
); );
pCancel = new KPushButton( iconLoader->loadIcon("cancel",TDEIcon::Small), i18n("Cancel"), this, "pCancel" ); pCancel = new KPushButton( iconLoader->loadIcon("cancel",TDEIcon::Small), i18n("Cancel"), this, "pCancel" );
controlBox->addWidget( pCancel ); controlBox->addWidget( pCancel );
connect( pCancel, TQT_SIGNAL(clicked()), connect( pCancel, TQ_SIGNAL(clicked()),
this, TQT_SLOT(reject()) this, TQ_SLOT(reject())
); );
// delete the icon loader object // delete the icon loader object

@ -18,15 +18,15 @@ ComboButton::ComboButton( TQWidget *parent, const char *name )
m_box = new KComboBox(this); m_box = new KComboBox(this);
grid->addWidget(m_box,0,0); grid->addWidget(m_box,0,0);
connect( m_box, TQT_SIGNAL(activated(int)), connect( m_box, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(boxActivated(int)) this, TQ_SLOT(boxActivated(int))
); );
m_button = new KPushButton( TQString(), this, "pushbutton" ); m_button = new KPushButton( TQString(), this, "pushbutton" );
grid->addWidget( m_button, 0, 0 ); grid->addWidget( m_button, 0, 0 );
connect( m_button, TQT_SIGNAL(clicked()), connect( m_button, TQ_SIGNAL(clicked()),
this, TQT_SLOT(buttonClicked()) this, TQ_SLOT(buttonClicked())
); );
m_sizeMode = Max; m_sizeMode = Max;

@ -56,8 +56,8 @@ ConfigBackendsPage::ConfigBackendsPage( Config* _config, TQMap<TQString, TQStrin
ripperGroup->layout()->setMargin( 6 ); ripperGroup->layout()->setMargin( 6 );
TQLabel* lRipper = new TQLabel( i18n("CD Ripper")+":", ripperGroup, "lRipper" ); TQLabel* lRipper = new TQLabel( i18n("CD Ripper")+":", ripperGroup, "lRipper" );
cRipper = new KComboBox( ripperGroup, "cRipper" ); cRipper = new KComboBox( ripperGroup, "cRipper" );
connect( cRipper, TQT_SIGNAL(activated(int)), connect( cRipper, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(cfgChanged()) this, TQ_SLOT(cfgChanged())
); );
delete stdDirs; delete stdDirs;
@ -204,19 +204,19 @@ void ConfigBackendsPage::rebuild()
for( TQValueList<FormatOptions>::Iterator it = formatOptions.begin(); it != formatOptions.end(); ++it ) for( TQValueList<FormatOptions>::Iterator it = formatOptions.begin(); it != formatOptions.end(); ++it )
{ {
delete (*it).lEncoder; delete (*it).lEncoder;
disconnect( (*it).cEncoder, TQT_SIGNAL(activated(int)), 0, 0 ); disconnect( (*it).cEncoder, TQ_SIGNAL(activated(int)), 0, 0 );
delete (*it).cEncoder; delete (*it).cEncoder;
delete (*it).lStrength; delete (*it).lStrength;
disconnect( (*it).sStrength,TQT_SIGNAL(valueChanged(int)), 0, 0 ); disconnect( (*it).sStrength,TQ_SIGNAL(valueChanged(int)), 0, 0 );
delete (*it).sStrength; delete (*it).sStrength;
delete (*it).lStrengthDisplay; delete (*it).lStrengthDisplay;
delete (*it).lDecoder; delete (*it).lDecoder;
disconnect( (*it).cDecoder, TQT_SIGNAL(activated(int)), 0, 0 ); disconnect( (*it).cDecoder, TQ_SIGNAL(activated(int)), 0, 0 );
delete (*it).cDecoder; delete (*it).cDecoder;
delete (*it).lReplayGain; delete (*it).lReplayGain;
disconnect( (*it).cReplayGain, TQT_SIGNAL(activated(int)), 0, 0 ); disconnect( (*it).cReplayGain, TQ_SIGNAL(activated(int)), 0, 0 );
delete (*it).cReplayGain; delete (*it).cReplayGain;
disconnect( (*it).cInternalReplayGain, TQT_SIGNAL(toggled(bool)), 0, 0 ); disconnect( (*it).cInternalReplayGain, TQ_SIGNAL(toggled(bool)), 0, 0 );
delete (*it).cInternalReplayGain; delete (*it).cInternalReplayGain;
delete (*it).grid; delete (*it).grid;
delete (*it).group; delete (*it).group;
@ -262,11 +262,11 @@ void ConfigBackendsPage::rebuild()
options.grid->addWidget( options.lEncoder, 0, 0 ); options.grid->addWidget( options.lEncoder, 0, 0 );
options.cEncoder = new KComboBox( options.group, options.format.utf8().data() ); options.cEncoder = new KComboBox( options.group, options.format.utf8().data() );
options.cEncoder->show(); options.cEncoder->show();
connect( options.cEncoder, TQT_SIGNAL(activated(int)), connect( options.cEncoder, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(cfgChanged()) this, TQ_SLOT(cfgChanged())
); );
connect( options.cEncoder, TQT_SIGNAL(activated(int)), connect( options.cEncoder, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(encoderChanged()) this, TQ_SLOT(encoderChanged())
); );
options.grid->addWidget( options.cEncoder, 0, 1 ); options.grid->addWidget( options.cEncoder, 0, 1 );
@ -279,11 +279,11 @@ void ConfigBackendsPage::rebuild()
options.sStrength->show(); options.sStrength->show();
TQToolTip::add( options.sStrength, i18n("Set the compression strength:\n\nLeft = fast conversion\nRight = good resultant file") ); TQToolTip::add( options.sStrength, i18n("Set the compression strength:\n\nLeft = fast conversion\nRight = good resultant file") );
options.grid->addWidget( options.sStrength, 0, 3 ); options.grid->addWidget( options.sStrength, 0, 3 );
connect( options.sStrength, TQT_SIGNAL(valueChanged(int)), connect( options.sStrength, TQ_SIGNAL(valueChanged(int)),
this, TQT_SLOT(cfgChanged()) this, TQ_SLOT(cfgChanged())
); );
connect( options.sStrength, TQT_SIGNAL(valueChanged(int)), connect( options.sStrength, TQ_SIGNAL(valueChanged(int)),
this, TQT_SLOT(strengthChanged()) this, TQ_SLOT(strengthChanged())
); );
options.lDecoder = new TQLabel( i18n("Decoder")+":", options.group, options.format.utf8().data() ); options.lDecoder = new TQLabel( i18n("Decoder")+":", options.group, options.format.utf8().data() );
@ -292,8 +292,8 @@ void ConfigBackendsPage::rebuild()
options.cDecoder = new KComboBox( options.group, options.format.utf8().data() ); options.cDecoder = new KComboBox( options.group, options.format.utf8().data() );
options.cDecoder->show(); options.cDecoder->show();
options.grid->addWidget( options.cDecoder, 1, 1 ); options.grid->addWidget( options.cDecoder, 1, 1 );
connect( options.cDecoder, TQT_SIGNAL(activated(int)), connect( options.cDecoder, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(cfgChanged()) this, TQ_SLOT(cfgChanged())
); );
options.lStrengthDisplay = new TQLabel( "", options.group, options.format.utf8().data() ); options.lStrengthDisplay = new TQLabel( "", options.group, options.format.utf8().data() );
options.lStrengthDisplay->setAlignment( TQt::AlignRight | TQt::AlignVCenter ); options.lStrengthDisplay->setAlignment( TQt::AlignRight | TQt::AlignVCenter );
@ -306,14 +306,14 @@ void ConfigBackendsPage::rebuild()
options.cReplayGain = new KComboBox( options.group, options.format.utf8().data() ); options.cReplayGain = new KComboBox( options.group, options.format.utf8().data() );
options.cReplayGain->show(); options.cReplayGain->show();
options.grid->addWidget( options.cReplayGain, 2, 1 ); options.grid->addWidget( options.cReplayGain, 2, 1 );
connect( options.cReplayGain, TQT_SIGNAL(activated(int)), connect( options.cReplayGain, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(cfgChanged()) this, TQ_SLOT(cfgChanged())
); );
options.cInternalReplayGain = new TQCheckBox( i18n("Use internal Replay Gain"), options.group, options.format.utf8().data() ); options.cInternalReplayGain = new TQCheckBox( i18n("Use internal Replay Gain"), options.group, options.format.utf8().data() );
TQToolTip::add( options.cInternalReplayGain, i18n("Use the internal Replay Gain calculator of the encoder") ); TQToolTip::add( options.cInternalReplayGain, i18n("Use the internal Replay Gain calculator of the encoder") );
options.grid->addWidget( options.cInternalReplayGain, 2, 3 ); options.grid->addWidget( options.cInternalReplayGain, 2, 3 );
connect( options.cInternalReplayGain, TQT_SIGNAL(toggled(bool)), connect( options.cInternalReplayGain, TQ_SIGNAL(toggled(bool)),
this, TQT_SLOT(cfgChanged()) this, TQ_SLOT(cfgChanged())
); );
options.grid->setColStretch( 0, 0 ); options.grid->setColStretch( 0, 0 );

@ -43,65 +43,65 @@ ConfigDialog::ConfigDialog( Config* _config, TQWidget *parent, const char *name,
binaries = config->binaries; binaries = config->binaries;
connect( this, TQT_SIGNAL(applyClicked()), connect( this, TQ_SIGNAL(applyClicked()),
this,TQT_SLOT(applyClickedSlot()) this,TQ_SLOT(applyClickedSlot())
); );
connect( this, TQT_SIGNAL(okClicked()), connect( this, TQ_SIGNAL(okClicked()),
this,TQT_SLOT(okClickedSlot()) this,TQ_SLOT(okClickedSlot())
); );
connect( this, TQT_SIGNAL(defaultClicked()), connect( this, TQ_SIGNAL(defaultClicked()),
this,TQT_SLOT(defaultClickedSlot()) this,TQ_SLOT(defaultClickedSlot())
); );
generalPage = addPage( i18n("General"), "misc" ); generalPage = addPage( i18n("General"), "misc" );
configGeneralPage = new ConfigGeneralPage( config, generalPage, "configGeneralPage" ); configGeneralPage = new ConfigGeneralPage( config, generalPage, "configGeneralPage" );
connect( configGeneralPage, TQT_SIGNAL(configChanged()), connect( configGeneralPage, TQ_SIGNAL(configChanged()),
this, TQT_SLOT(configChanged()) this, TQ_SLOT(configChanged())
); );
connect( this, TQT_SIGNAL(saveGeneral()), connect( this, TQ_SIGNAL(saveGeneral()),
configGeneralPage, TQT_SLOT(saveSettings()) configGeneralPage, TQ_SLOT(saveSettings())
); );
connect( this, TQT_SIGNAL(resetGeneral()), connect( this, TQ_SIGNAL(resetGeneral()),
configGeneralPage, TQT_SLOT(resetDefaults()) configGeneralPage, TQ_SLOT(resetDefaults())
); );
pluginsPage = addPage( i18n("Plugins"), "connect_creating" ); pluginsPage = addPage( i18n("Plugins"), "connect_creating" );
configPluginsPage = new ConfigPluginsPage( config, pluginsPage, "configPluginsPage" ); configPluginsPage = new ConfigPluginsPage( config, pluginsPage, "configPluginsPage" );
connect( configPluginsPage, TQT_SIGNAL(configChanged()), connect( configPluginsPage, TQ_SIGNAL(configChanged()),
this, TQT_SLOT(configChanged()) this, TQ_SLOT(configChanged())
); );
connect( this, TQT_SIGNAL(savePlugins()), connect( this, TQ_SIGNAL(savePlugins()),
configPluginsPage, TQT_SLOT(saveSettings()) configPluginsPage, TQ_SLOT(saveSettings())
); );
connect( this, TQT_SIGNAL(resetPlugins()), connect( this, TQ_SIGNAL(resetPlugins()),
configPluginsPage, TQT_SLOT(resetDefaults()) configPluginsPage, TQ_SLOT(resetDefaults())
); );
environmentPage = addPage( i18n("Environment"), "filefind" ); environmentPage = addPage( i18n("Environment"), "filefind" );
configEnvironmentPage = new ConfigEnvironmentPage( config, &binaries, environmentPage, "configEnvironmentPage" ); configEnvironmentPage = new ConfigEnvironmentPage( config, &binaries, environmentPage, "configEnvironmentPage" );
connect( configEnvironmentPage, TQT_SIGNAL(configChanged()), connect( configEnvironmentPage, TQ_SIGNAL(configChanged()),
this, TQT_SLOT(configChanged()) this, TQ_SLOT(configChanged())
); );
connect( this, TQT_SIGNAL(saveEnvironment()), connect( this, TQ_SIGNAL(saveEnvironment()),
configEnvironmentPage, TQT_SLOT(saveSettings()) configEnvironmentPage, TQ_SLOT(saveSettings())
); );
connect( this, TQT_SIGNAL(resetEnvironment()), connect( this, TQ_SIGNAL(resetEnvironment()),
configEnvironmentPage, TQT_SLOT(resetDefaults()) configEnvironmentPage, TQ_SLOT(resetDefaults())
); );
backendsPage = addPage( i18n("Backends"), "preferences-system" ); backendsPage = addPage( i18n("Backends"), "preferences-system" );
configBackendsPage = new ConfigBackendsPage( config, &binaries, backendsPage, "configBackendsPage" ); configBackendsPage = new ConfigBackendsPage( config, &binaries, backendsPage, "configBackendsPage" );
connect( configBackendsPage, TQT_SIGNAL(configChanged()), connect( configBackendsPage, TQ_SIGNAL(configChanged()),
this, TQT_SLOT(configChanged()) this, TQ_SLOT(configChanged())
); );
connect( this, TQT_SIGNAL(saveBackends()), connect( this, TQ_SIGNAL(saveBackends()),
configBackendsPage, TQT_SLOT(saveSettings()) configBackendsPage, TQ_SLOT(saveSettings())
); );
connect( this, TQT_SIGNAL(resetBackends()), connect( this, TQ_SIGNAL(resetBackends()),
configBackendsPage, TQT_SLOT(resetDefaults()) configBackendsPage, TQ_SLOT(resetDefaults())
); );
connect( configEnvironmentPage, TQT_SIGNAL(rebuildBackendsPage()), connect( configEnvironmentPage, TQ_SIGNAL(rebuildBackendsPage()),
configBackendsPage, TQT_SLOT(rebuild()) configBackendsPage, TQ_SLOT(rebuild())
); );
setConfigChanged( false ); setConfigChanged( false );

@ -39,8 +39,8 @@ ConfigEnvironmentPage::ConfigEnvironmentPage( Config* _config, TQMap<TQString, T
lDirectories = new TDEListBox( parent, "lDirectories" ); lDirectories = new TDEListBox( parent, "lDirectories" );
lDirectories->insertStringList( config->data.environment.directories ); lDirectories->insertStringList( config->data.environment.directories );
directoriesBox->addWidget( lDirectories ); directoriesBox->addWidget( lDirectories );
connect( lDirectories, TQT_SIGNAL(highlighted(int)), connect( lDirectories, TQ_SIGNAL(highlighted(int)),
this, TQT_SLOT(directoriesSelectionChanged(int)) this, TQ_SLOT(directoriesSelectionChanged(int))
); );
TQVBoxLayout* directoriesMiddleBox = new TQVBoxLayout( directoriesBox ); TQVBoxLayout* directoriesMiddleBox = new TQVBoxLayout( directoriesBox );
@ -49,8 +49,8 @@ ConfigEnvironmentPage::ConfigEnvironmentPage( Config* _config, TQMap<TQString, T
pDirUp->setEnabled( false ); pDirUp->setEnabled( false );
TQToolTip::add( pDirUp, i18n("Move selected directory one position up.\nThis effects which backend will be chosen, if there are several versions.") ); TQToolTip::add( pDirUp, i18n("Move selected directory one position up.\nThis effects which backend will be chosen, if there are several versions.") );
directoriesMiddleBox->addWidget( pDirUp ); directoriesMiddleBox->addWidget( pDirUp );
connect( pDirUp, TQT_SIGNAL(clicked()), connect( pDirUp, TQ_SIGNAL(clicked()),
this, TQT_SLOT(dirUp()) this, TQ_SLOT(dirUp())
); );
directoriesMiddleBox->addStretch(); directoriesMiddleBox->addStretch();
@ -59,22 +59,22 @@ ConfigEnvironmentPage::ConfigEnvironmentPage( Config* _config, TQMap<TQString, T
pDirDown->setEnabled( false ); pDirDown->setEnabled( false );
TQToolTip::add( pDirDown, i18n("Move selected directory one position down.\nThis effects which backend will be chosen, if there are several versions.") ); TQToolTip::add( pDirDown, i18n("Move selected directory one position down.\nThis effects which backend will be chosen, if there are several versions.") );
directoriesMiddleBox->addWidget( pDirDown ); directoriesMiddleBox->addWidget( pDirDown );
connect( pDirDown, TQT_SIGNAL(clicked()), connect( pDirDown, TQ_SIGNAL(clicked()),
this, TQT_SLOT(dirDown()) this, TQ_SLOT(dirDown())
); );
TQVBoxLayout* directoriesRightBox = new TQVBoxLayout( directoriesBox ); TQVBoxLayout* directoriesRightBox = new TQVBoxLayout( directoriesBox );
pAddDirectory = new KPushButton( iconLoader->loadIcon("add",TDEIcon::Small), i18n("Add ..."), parent, "pAddDirectory" ); pAddDirectory = new KPushButton( iconLoader->loadIcon("add",TDEIcon::Small), i18n("Add ..."), parent, "pAddDirectory" );
directoriesRightBox->addWidget( pAddDirectory ); directoriesRightBox->addWidget( pAddDirectory );
connect( pAddDirectory, TQT_SIGNAL(clicked()), connect( pAddDirectory, TQ_SIGNAL(clicked()),
this, TQT_SLOT(addDirectory()) this, TQ_SLOT(addDirectory())
); );
pRemoveDirectory = new KPushButton( iconLoader->loadIcon("remove",TDEIcon::Small), i18n("Remove"), parent, "pRemoveDirectory" ); pRemoveDirectory = new KPushButton( iconLoader->loadIcon("remove",TDEIcon::Small), i18n("Remove"), parent, "pRemoveDirectory" );
directoriesRightBox->addWidget( pRemoveDirectory ); directoriesRightBox->addWidget( pRemoveDirectory );
pRemoveDirectory->setEnabled( false ); pRemoveDirectory->setEnabled( false );
connect( pRemoveDirectory, TQT_SIGNAL(clicked()), connect( pRemoveDirectory, TQ_SIGNAL(clicked()),
this, TQT_SLOT(removeDirectory()) this, TQ_SLOT(removeDirectory())
); );
directoriesRightBox->addStretch(); directoriesRightBox->addStretch();
@ -89,7 +89,7 @@ ConfigEnvironmentPage::ConfigEnvironmentPage( Config* _config, TQMap<TQString, T
lFoundPrograms = new TDEListBox( parent, "lFoundPrograms" ); lFoundPrograms = new TDEListBox( parent, "lFoundPrograms" );
lFoundPrograms->setSelectionMode( TQListBox::NoSelection ); lFoundPrograms->setSelectionMode( TQListBox::NoSelection );
foundProgramsBox->addWidget( lFoundPrograms ); foundProgramsBox->addWidget( lFoundPrograms );
//connect(lPrograms,TQT_SIGNAL(highlighted(int)),this,TQT_SLOT(programsSelectionChanged(int))); //connect(lPrograms,TQ_SIGNAL(highlighted(int)),this,TQ_SLOT(programsSelectionChanged(int)));
programsBox->setStretchFactor( foundProgramsBox, 3 ); programsBox->setStretchFactor( foundProgramsBox, 3 );
TQVBoxLayout* notFoundProgramsBox = new TQVBoxLayout( programsBox ); TQVBoxLayout* notFoundProgramsBox = new TQVBoxLayout( programsBox );
@ -98,7 +98,7 @@ ConfigEnvironmentPage::ConfigEnvironmentPage( Config* _config, TQMap<TQString, T
lNotFoundPrograms = new TDEListBox( parent, "lNotFoundPrograms" ); lNotFoundPrograms = new TDEListBox( parent, "lNotFoundPrograms" );
lNotFoundPrograms->setSelectionMode( TQListBox::NoSelection ); lNotFoundPrograms->setSelectionMode( TQListBox::NoSelection );
notFoundProgramsBox->addWidget( lNotFoundPrograms ); notFoundProgramsBox->addWidget( lNotFoundPrograms );
//connect(lPrograms,TQT_SIGNAL(highlighted(int)),this,TQT_SLOT(programsSelectionChanged(int))); //connect(lPrograms,TQ_SIGNAL(highlighted(int)),this,TQ_SLOT(programsSelectionChanged(int)));
programsBox->setStretchFactor( notFoundProgramsBox, 2 ); programsBox->setStretchFactor( notFoundProgramsBox, 2 );
for( TQMap<TQString, TQString>::Iterator it = config->binaries.begin(); it != config->binaries.end(); ++it ) { for( TQMap<TQString, TQString>::Iterator it = config->binaries.begin(); it != config->binaries.end(); ++it ) {

@ -39,8 +39,8 @@ ConfigGeneralPage::ConfigGeneralPage( Config* _config, TQWidget *parent, const c
cStartTab->insertItem( i18n("Detailed") ); cStartTab->insertItem( i18n("Detailed") );
cStartTab->setCurrentItem( config->data.general.startTab ); cStartTab->setCurrentItem( config->data.general.startTab );
startTabBox->addWidget( cStartTab ); startTabBox->addWidget( cStartTab );
connect( cStartTab, TQT_SIGNAL(activated(int)), connect( cStartTab, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(cfgChanged()) this, TQ_SLOT(cfgChanged())
); );
box->addSpacing( 5 ); box->addSpacing( 5 );
@ -63,18 +63,18 @@ ConfigGeneralPage::ConfigGeneralPage( Config* _config, TQWidget *parent, const c
cDefaultProfile->insertStringList( sDefaultProfile ); cDefaultProfile->insertStringList( sDefaultProfile );
cDefaultProfile->setCurrentItem( profileIndex(config->data.general.defaultProfile) ); cDefaultProfile->setCurrentItem( profileIndex(config->data.general.defaultProfile) );
defaultProfileBox->addWidget( cDefaultProfile ); defaultProfileBox->addWidget( cDefaultProfile );
connect( cDefaultProfile, TQT_SIGNAL(activated(int)), connect( cDefaultProfile, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(profileChanged()) this, TQ_SLOT(profileChanged())
); );
connect( cDefaultProfile, TQT_SIGNAL(activated(int)), connect( cDefaultProfile, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(cfgChanged()) this, TQ_SLOT(cfgChanged())
); );
TQLabel* lDefaultFormat = new TQLabel( i18n("Default format")+":", parent, "lDefaultFormat" ); TQLabel* lDefaultFormat = new TQLabel( i18n("Default format")+":", parent, "lDefaultFormat" );
defaultProfileBox->addWidget( lDefaultFormat ); defaultProfileBox->addWidget( lDefaultFormat );
cDefaultFormat = new KComboBox( parent, "cDefaultFormat" ); cDefaultFormat = new KComboBox( parent, "cDefaultFormat" );
defaultProfileBox->addWidget( cDefaultFormat ); defaultProfileBox->addWidget( cDefaultFormat );
connect( cDefaultFormat, TQT_SIGNAL(activated(int)), connect( cDefaultFormat, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(cfgChanged()) this, TQ_SLOT(cfgChanged())
); );
profileChanged(); profileChanged();
@ -87,20 +87,20 @@ ConfigGeneralPage::ConfigGeneralPage( Config* _config, TQWidget *parent, const c
lDir->setText( config->data.general.defaultOutputDirectory ); lDir->setText( config->data.general.defaultOutputDirectory );
TQToolTip::add( lDir, i18n("<p>The following strings are space holders, that will be replaced by the information in the meta data:</p><p>%a - Artist<br>%b - Album<br>%c - Comment<br>%d - Disc number<br>%g - Genre<br>%n - Track number<br>%p - Composer<br>%t - Title<br>%y - Year<br>%f - Original file name<p>") ); TQToolTip::add( lDir, i18n("<p>The following strings are space holders, that will be replaced by the information in the meta data:</p><p>%a - Artist<br>%b - Album<br>%c - Comment<br>%d - Disc number<br>%g - Genre<br>%n - Track number<br>%p - Composer<br>%t - Title<br>%y - Year<br>%f - Original file name<p>") );
defaultDirBox->addWidget( lDir ); defaultDirBox->addWidget( lDir );
connect( lDir, TQT_SIGNAL(textChanged(const TQString&)), connect( lDir, TQ_SIGNAL(textChanged(const TQString&)),
this, TQT_SLOT(cfgChanged()) this, TQ_SLOT(cfgChanged())
);*/ );*/
/*pDirInfo = new KPushButton( iconLoader->loadIcon("messagebox_info",TDEIcon::Small), "", parent, "pDirInfo" ); /*pDirInfo = new KPushButton( iconLoader->loadIcon("messagebox_info",TDEIcon::Small), "", parent, "pDirInfo" );
TQToolTip::add( pDirInfo, i18n("Information about the wildcards.") ); TQToolTip::add( pDirInfo, i18n("Information about the wildcards.") );
defaultDirBox->addWidget( pDirInfo ); defaultDirBox->addWidget( pDirInfo );
connect( pDirInfo, TQT_SIGNAL(clicked()), connect( pDirInfo, TQ_SIGNAL(clicked()),
this, TQT_SLOT(dirInfo()) this, TQ_SLOT(dirInfo())
);*/ );*/
// pDirSelect = new KPushButton( iconLoader->loadIcon("folder",TDEIcon::Small), "", parent, "pDirSelect" ); // pDirSelect = new KPushButton( iconLoader->loadIcon("folder",TDEIcon::Small), "", parent, "pDirSelect" );
// TQToolTip::add( pDirSelect, i18n("Choose an output directory") ); // TQToolTip::add( pDirSelect, i18n("Choose an output directory") );
// defaultDirBox->addWidget( pDirSelect ); // defaultDirBox->addWidget( pDirSelect );
// connect( pDirSelect, TQT_SIGNAL(clicked()), // connect( pDirSelect, TQ_SIGNAL(clicked()),
// this, TQT_SLOT(selectDir()) // this, TQ_SLOT(selectDir())
// ); // );
TQHBoxLayout* priorityBox = new TQHBoxLayout( box, 6 ); TQHBoxLayout* priorityBox = new TQHBoxLayout( box, 6 );
@ -112,8 +112,8 @@ ConfigGeneralPage::ConfigGeneralPage( Config* _config, TQWidget *parent, const c
cPriority->insertStringList( sPriority ); cPriority->insertStringList( sPriority );
cPriority->setCurrentItem( config->data.general.priority / 10 ); // NOTE that just works for 'normal' and 'low' cPriority->setCurrentItem( config->data.general.priority / 10 ); // NOTE that just works for 'normal' and 'low'
priorityBox->addWidget( cPriority ); priorityBox->addWidget( cPriority );
connect( cPriority, TQT_SIGNAL(activated(int)), connect( cPriority, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(cfgChanged()) this, TQ_SLOT(cfgChanged())
); );
box->addSpacing( 5 ); box->addSpacing( 5 );
@ -123,8 +123,8 @@ ConfigGeneralPage::ConfigGeneralPage( Config* _config, TQWidget *parent, const c
TQToolTip::add( cUseVFATNames, i18n("Replaces some special characters like \'?\' by \'_\'.") ); TQToolTip::add( cUseVFATNames, i18n("Replaces some special characters like \'?\' by \'_\'.") );
cUseVFATNames->setChecked( config->data.general.useVFATNames ); cUseVFATNames->setChecked( config->data.general.useVFATNames );
useVFATNamesBox->addWidget( cUseVFATNames ); useVFATNamesBox->addWidget( cUseVFATNames );
connect( cUseVFATNames, TQT_SIGNAL(toggled(bool)), connect( cUseVFATNames, TQ_SIGNAL(toggled(bool)),
this, TQT_SLOT(cfgChanged()) this, TQ_SLOT(cfgChanged())
); );
box->addSpacing( 5 ); box->addSpacing( 5 );
@ -139,8 +139,8 @@ ConfigGeneralPage::ConfigGeneralPage( Config* _config, TQWidget *parent, const c
cConflictHandling->insertStringList( sConflictHandling ); cConflictHandling->insertStringList( sConflictHandling );
cConflictHandling->setCurrentItem( config->data.general.conflictHandling ); cConflictHandling->setCurrentItem( config->data.general.conflictHandling );
conflictHandlingBox->addWidget( cConflictHandling ); conflictHandlingBox->addWidget( cConflictHandling );
connect( cConflictHandling, TQT_SIGNAL(activated(int)), connect( cConflictHandling, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(cfgChanged()) this, TQ_SLOT(cfgChanged())
); );
box->addSpacing( 5 ); box->addSpacing( 5 );
@ -150,8 +150,8 @@ ConfigGeneralPage::ConfigGeneralPage( Config* _config, TQWidget *parent, const c
numFilesBox->addWidget( lNumFiles ); numFilesBox->addWidget( lNumFiles );
iNumFiles = new KIntSpinBox( 1, 100, 1, config->data.general.numFiles, 10, parent, "iNumFiles" ); iNumFiles = new KIntSpinBox( 1, 100, 1, config->data.general.numFiles, 10, parent, "iNumFiles" );
numFilesBox->addWidget( iNumFiles ); numFilesBox->addWidget( iNumFiles );
connect( iNumFiles, TQT_SIGNAL(valueChanged(int)), connect( iNumFiles, TQ_SIGNAL(valueChanged(int)),
this, TQT_SLOT(cfgChanged()) this, TQ_SLOT(cfgChanged())
); );
box->addSpacing( 5 ); box->addSpacing( 5 );
@ -162,8 +162,8 @@ ConfigGeneralPage::ConfigGeneralPage( Config* _config, TQWidget *parent, const c
iUpdateDelay = new KIntSpinBox( 100, 5000, 100, config->data.general.updateDelay, 10, parent, "iUpdateDelay" ); iUpdateDelay = new KIntSpinBox( 100, 5000, 100, config->data.general.updateDelay, 10, parent, "iUpdateDelay" );
TQToolTip::add( iUpdateDelay, i18n("Update the progress bar in this interval (time in milliseconds)") ); TQToolTip::add( iUpdateDelay, i18n("Update the progress bar in this interval (time in milliseconds)") );
updateDelayBox->addWidget( iUpdateDelay ); updateDelayBox->addWidget( iUpdateDelay );
connect( iUpdateDelay, TQT_SIGNAL(valueChanged(int)), connect( iUpdateDelay, TQ_SIGNAL(valueChanged(int)),
this, TQT_SLOT(cfgChanged()) this, TQ_SLOT(cfgChanged())
); );
box->addSpacing( 5 ); box->addSpacing( 5 );
@ -173,8 +173,8 @@ ConfigGeneralPage::ConfigGeneralPage( Config* _config, TQWidget *parent, const c
TQToolTip::add( cAskForNewOptions, i18n("If you open a file with soundKonverter and soundKonverter is already running,\nyou can either be asked to define new converting options\nor the current settings from the soundKonverter main window are used.") ); TQToolTip::add( cAskForNewOptions, i18n("If you open a file with soundKonverter and soundKonverter is already running,\nyou can either be asked to define new converting options\nor the current settings from the soundKonverter main window are used.") );
cAskForNewOptions->setChecked( config->data.general.askForNewOptions ); cAskForNewOptions->setChecked( config->data.general.askForNewOptions );
askForNewOptionsBox->addWidget( cAskForNewOptions ); askForNewOptionsBox->addWidget( cAskForNewOptions );
connect( cAskForNewOptions, TQT_SIGNAL(toggled(bool)), connect( cAskForNewOptions, TQ_SIGNAL(toggled(bool)),
this, TQT_SLOT(cfgChanged()) this, TQ_SLOT(cfgChanged())
); );
box->addSpacing( 5 ); box->addSpacing( 5 );
@ -184,8 +184,8 @@ ConfigGeneralPage::ConfigGeneralPage( Config* _config, TQWidget *parent, const c
TQToolTip::add( cExecuteUserScript, i18n("Executes a script after every finished conversion. Have a look at $TDEDIR/soundkonverter/userscript.sh") ); TQToolTip::add( cExecuteUserScript, i18n("Executes a script after every finished conversion. Have a look at $TDEDIR/soundkonverter/userscript.sh") );
cExecuteUserScript->setChecked( config->data.general.executeUserScript ); cExecuteUserScript->setChecked( config->data.general.executeUserScript );
executeUserScriptBox->addWidget( cExecuteUserScript ); executeUserScriptBox->addWidget( cExecuteUserScript );
connect( cExecuteUserScript, TQT_SIGNAL(toggled(bool)), connect( cExecuteUserScript, TQ_SIGNAL(toggled(bool)),
this, TQT_SLOT(cfgChanged()) this, TQ_SLOT(cfgChanged())
); );
box->addStretch(); box->addStretch();

@ -41,29 +41,29 @@ ConfigPluginsPage::ConfigPluginsPage( Config* _config, TQWidget* parent, const c
TQHBoxLayout* pluginsBox = new TQHBoxLayout( box ); TQHBoxLayout* pluginsBox = new TQHBoxLayout( box );
lPlugins = new TDEListBox( parent, "lPlugins" ); lPlugins = new TDEListBox( parent, "lPlugins" );
pluginsBox->addWidget(lPlugins); pluginsBox->addWidget(lPlugins);
connect( lPlugins, TQT_SIGNAL(highlighted(int)), connect( lPlugins, TQ_SIGNAL(highlighted(int)),
this, TQT_SLOT(pluginsSelectionChanged(int)) this, TQ_SLOT(pluginsSelectionChanged(int))
); );
refreshPlugins(); refreshPlugins();
TQVBoxLayout* pluginsRightBox = new TQVBoxLayout( pluginsBox ); TQVBoxLayout* pluginsRightBox = new TQVBoxLayout( pluginsBox );
pAddPlugin = new KPushButton( iconLoader->loadIcon("add",TDEIcon::Small), i18n("Add ..."), parent, "pAddPlugin" ); pAddPlugin = new KPushButton( iconLoader->loadIcon("add",TDEIcon::Small), i18n("Add ..."), parent, "pAddPlugin" );
pluginsRightBox->addWidget( pAddPlugin ); pluginsRightBox->addWidget( pAddPlugin );
connect( pAddPlugin, TQT_SIGNAL(clicked()), connect( pAddPlugin, TQ_SIGNAL(clicked()),
this, TQT_SLOT(getPlugin()) this, TQ_SLOT(getPlugin())
); );
pRemovePlugin = new KPushButton( iconLoader->loadIcon("remove",TDEIcon::Small), i18n("Remove"), parent, "pRemovePlugin" ); pRemovePlugin = new KPushButton( iconLoader->loadIcon("remove",TDEIcon::Small), i18n("Remove"), parent, "pRemovePlugin" );
pRemovePlugin->setEnabled( false ); pRemovePlugin->setEnabled( false );
pluginsRightBox->addWidget( pRemovePlugin ); pluginsRightBox->addWidget( pRemovePlugin );
connect( pRemovePlugin, TQT_SIGNAL(clicked()), connect( pRemovePlugin, TQ_SIGNAL(clicked()),
this, TQT_SLOT(removePlugin()) this, TQ_SLOT(removePlugin())
); );
pluginsRightBox->addStretch(); pluginsRightBox->addStretch();
pAboutPlugin = new KPushButton( iconLoader->loadIcon("messagebox_info",TDEIcon::Small), i18n("About"), parent, "pAboutPlugin" ); pAboutPlugin = new KPushButton( iconLoader->loadIcon("messagebox_info",TDEIcon::Small), i18n("About"), parent, "pAboutPlugin" );
pAboutPlugin->setEnabled( false ); pAboutPlugin->setEnabled( false );
pluginsRightBox->addWidget( pAboutPlugin ); pluginsRightBox->addWidget( pAboutPlugin );
connect( pAboutPlugin, TQT_SIGNAL(clicked()), connect( pAboutPlugin, TQ_SIGNAL(clicked()),
this, TQT_SLOT(aboutPlugin()) this, TQ_SLOT(aboutPlugin())
); );
/* NOTE kaligames.de is down /* NOTE kaligames.de is down
box->addSpacing( 5 ); box->addSpacing( 5 );
@ -73,41 +73,41 @@ ConfigPluginsPage::ConfigPluginsPage( Config* _config, TQWidget* parent, const c
TQHBoxLayout* onlinePluginsBox = new TQHBoxLayout( box ); TQHBoxLayout* onlinePluginsBox = new TQHBoxLayout( box );
lOnlinePlugins = new TDEListBox( parent, "lOnlinePlugins" ); lOnlinePlugins = new TDEListBox( parent, "lOnlinePlugins" );
onlinePluginsBox->addWidget( lOnlinePlugins ); onlinePluginsBox->addWidget( lOnlinePlugins );
connect( lOnlinePlugins, TQT_SIGNAL(highlighted(int)), connect( lOnlinePlugins, TQ_SIGNAL(highlighted(int)),
this, TQT_SLOT(onlinePluginsSelectionChanged(int)) this, TQ_SLOT(onlinePluginsSelectionChanged(int))
); );
TQVBoxLayout* onlinePluginsRightBox = new TQVBoxLayout( onlinePluginsBox ); TQVBoxLayout* onlinePluginsRightBox = new TQVBoxLayout( onlinePluginsBox );
pRefreshOnlinePlugins = new KPushButton( iconLoader->loadIcon("reload",TDEIcon::Small), i18n("Refresh"), parent, "pRefreshOnlinePlugins" ); pRefreshOnlinePlugins = new KPushButton( iconLoader->loadIcon("reload",TDEIcon::Small), i18n("Refresh"), parent, "pRefreshOnlinePlugins" );
TQToolTip::add( pRefreshOnlinePlugins, i18n("Download the latest list of available plugins.") ); TQToolTip::add( pRefreshOnlinePlugins, i18n("Download the latest list of available plugins.") );
onlinePluginsRightBox->addWidget( pRefreshOnlinePlugins ); onlinePluginsRightBox->addWidget( pRefreshOnlinePlugins );
connect( pRefreshOnlinePlugins, TQT_SIGNAL(clicked()), connect( pRefreshOnlinePlugins, TQ_SIGNAL(clicked()),
this, TQT_SLOT(refreshOnlinePlugins()) this, TQ_SLOT(refreshOnlinePlugins())
); );
// TODO upgrade button // TODO upgrade button
// pUpgradeOnlinePlugins = new KPushButton( iconLoader->loadIcon("document-save",TDEIcon::Small), i18n("Upgrade"), parent, "pUpgradeOnlinePlugins" ); // pUpgradeOnlinePlugins = new KPushButton( iconLoader->loadIcon("document-save",TDEIcon::Small), i18n("Upgrade"), parent, "pUpgradeOnlinePlugins" );
// pUpgradeOnlinePlugins->setEnabled( false ); // pUpgradeOnlinePlugins->setEnabled( false );
// TQToolTip::add( pUpgradeOnlinePlugins, i18n("Download all plugins and install them into the soundKonverter directory.") ); // TQToolTip::add( pUpgradeOnlinePlugins, i18n("Download all plugins and install them into the soundKonverter directory.") );
// onlinePluginsRightBox->addWidget( pUpgradeOnlinePlugins ); // onlinePluginsRightBox->addWidget( pUpgradeOnlinePlugins );
// connect(pInstallAllOnlinePlugins,TQT_SIGNAL(clicked()),this,TQT_SLOT(upgradeOnlinePlugins())); // connect(pInstallAllOnlinePlugins,TQ_SIGNAL(clicked()),this,TQ_SLOT(upgradeOnlinePlugins()));
onlinePluginsRightBox->addStretch(); onlinePluginsRightBox->addStretch();
pInstallOnlinePlugin = new KPushButton( iconLoader->loadIcon("document-save",TDEIcon::Small), i18n("Install"), parent, "pInstallOnlinePlugin" ); pInstallOnlinePlugin = new KPushButton( iconLoader->loadIcon("document-save",TDEIcon::Small), i18n("Install"), parent, "pInstallOnlinePlugin" );
pInstallOnlinePlugin->setEnabled( false ); pInstallOnlinePlugin->setEnabled( false );
TQToolTip::add( pInstallOnlinePlugin, i18n("Download the selected plugin and install it into the soundKonverter directory.") ); TQToolTip::add( pInstallOnlinePlugin, i18n("Download the selected plugin and install it into the soundKonverter directory.") );
onlinePluginsRightBox->addWidget( pInstallOnlinePlugin ); onlinePluginsRightBox->addWidget( pInstallOnlinePlugin );
connect( pInstallOnlinePlugin, TQT_SIGNAL(clicked()), connect( pInstallOnlinePlugin, TQ_SIGNAL(clicked()),
this, TQT_SLOT(getOnlinePlugin()) this, TQ_SLOT(getOnlinePlugin())
); );
pAboutOnlinePlugin = new KPushButton( iconLoader->loadIcon("messagebox_info",TDEIcon::Small), i18n("About"), parent, "pAboutOnlinePlugin" ); pAboutOnlinePlugin = new KPushButton( iconLoader->loadIcon("messagebox_info",TDEIcon::Small), i18n("About"), parent, "pAboutOnlinePlugin" );
pAboutOnlinePlugin->setEnabled( false ); pAboutOnlinePlugin->setEnabled( false );
onlinePluginsRightBox->addWidget( pAboutOnlinePlugin ); onlinePluginsRightBox->addWidget( pAboutOnlinePlugin );
connect( pAboutOnlinePlugin, TQT_SIGNAL(clicked()), connect( pAboutOnlinePlugin, TQ_SIGNAL(clicked()),
this, TQT_SLOT(aboutOnlinePlugin()) this, TQ_SLOT(aboutOnlinePlugin())
); );
cCheckOnlinePlugins = new TQCheckBox( i18n("Check for new plugins on every startup"), parent, "cCheckOnlinePlugins" ); cCheckOnlinePlugins = new TQCheckBox( i18n("Check for new plugins on every startup"), parent, "cCheckOnlinePlugins" );
cCheckOnlinePlugins->setChecked( config->data.plugins.checkForUpdates ); cCheckOnlinePlugins->setChecked( config->data.plugins.checkForUpdates );
box->addWidget( cCheckOnlinePlugins ); box->addWidget( cCheckOnlinePlugins );
connect( cCheckOnlinePlugins, TQT_SIGNAL(toggled(bool)), connect( cCheckOnlinePlugins, TQ_SIGNAL(toggled(bool)),
this, TQT_SLOT(cfgChanged()) this, TQ_SLOT(cfgChanged())
); );
// box->addStretch(); // box->addStretch();
@ -231,8 +231,8 @@ void ConfigPluginsPage::getPlugin()
TQString fileName = filePathName.right( filePathName.length() - filePathName.findRev("/") ); TQString fileName = filePathName.right( filePathName.length() - filePathName.findRev("/") );
getPluginFilePathName = locateLocal("data","soundkonverter/plugins/") + fileName; getPluginFilePathName = locateLocal("data","soundkonverter/plugins/") + fileName;
getPluginJob = TDEIO::file_copy( url, getPluginFilePathName, -1, true, false, false ); getPluginJob = TDEIO::file_copy( url, getPluginFilePathName, -1, true, false, false );
connect( getPluginJob, TQT_SIGNAL(result(TDEIO::Job*)), connect( getPluginJob, TQ_SIGNAL(result(TDEIO::Job*)),
this, TQT_SLOT(getPluginFinished(TDEIO::Job*)) this, TQ_SLOT(getPluginFinished(TDEIO::Job*))
); );
} }
} }
@ -430,8 +430,8 @@ void ConfigPluginsPage::refreshOnlinePlugins()
refreshOnlinePluginsJob = TDEIO::file_copy( "http://kaligames.de/downloads/soundkonverter/plugins/download.php?version=" + TQString::number(config->data.app.configVersion), refreshOnlinePluginsJob = TDEIO::file_copy( "http://kaligames.de/downloads/soundkonverter/plugins/download.php?version=" + TQString::number(config->data.app.configVersion),
locateLocal("data","soundkonverter/pluginlist.txt"), -1, true, false, false ); locateLocal("data","soundkonverter/pluginlist.txt"), -1, true, false, false );
connect( refreshOnlinePluginsJob, TQT_SIGNAL(result(TDEIO::Job*)), connect( refreshOnlinePluginsJob, TQ_SIGNAL(result(TDEIO::Job*)),
this, TQT_SLOT(refreshOnlinePluginsFinished(TDEIO::Job*)) this, TQ_SLOT(refreshOnlinePluginsFinished(TDEIO::Job*))
); );
} }
@ -505,8 +505,8 @@ void ConfigPluginsPage::getOnlinePlugin()
KURL::encode_string( name ); KURL::encode_string( name );
getOnlinePluginJob = TDEIO::file_copy( "http://kaligames.de/downloads/soundkonverter/plugins/getfile.php?version=" + TQString::number(config->data.app.configVersion) + "&file=" + name, getOnlinePluginJob = TDEIO::file_copy( "http://kaligames.de/downloads/soundkonverter/plugins/getfile.php?version=" + TQString::number(config->data.app.configVersion) + "&file=" + name,
locateLocal("data","soundkonverter/plugins/newplugin.xml"), -1, true, false, false ); locateLocal("data","soundkonverter/plugins/newplugin.xml"), -1, true, false, false );
connect( getOnlinePluginJob, TQT_SIGNAL(result(TDEIO::Job*)), connect( getOnlinePluginJob, TQ_SIGNAL(result(TDEIO::Job*)),
this, TQT_SLOT(getOnlinePluginFinished(TDEIO::Job*)) this, TQ_SLOT(getOnlinePluginFinished(TDEIO::Job*))
); );
} }
@ -604,8 +604,8 @@ void ConfigPluginsPage::aboutOnlinePlugin()
KURL::encode_string( name ); KURL::encode_string( name );
aboutOnlinePluginJob = TDEIO::file_copy( "http://kaligames.de/downloads/soundkonverter/plugins/info.php?file=" + name + "&lang=" + TQLocale::languageToString(TQLocale::system().language()), aboutOnlinePluginJob = TDEIO::file_copy( "http://kaligames.de/downloads/soundkonverter/plugins/info.php?file=" + name + "&lang=" + TQLocale::languageToString(TQLocale::system().language()),
locateLocal("data","soundkonverter/plugin_info.txt"), -1, true, false, false ); locateLocal("data","soundkonverter/plugin_info.txt"), -1, true, false, false );
connect( aboutOnlinePluginJob, TQT_SIGNAL(result(TDEIO::Job*)), connect( aboutOnlinePluginJob, TQ_SIGNAL(result(TDEIO::Job*)),
this, TQT_SLOT(aboutOnlinePluginFinished(TDEIO::Job*)) this, TQ_SLOT(aboutOnlinePluginFinished(TDEIO::Job*))
); );
} }

@ -47,26 +47,26 @@ Convert::Convert( Config* _config, TagEngine* _tagEngine, CDManager* _cdManager,
tagEngine = _tagEngine; tagEngine = _tagEngine;
cdManager = _cdManager; cdManager = _cdManager;
fileList = _fileList; fileList = _fileList;
connect( fileList, TQT_SIGNAL(convertItem(FileListItem*)), connect( fileList, TQ_SIGNAL(convertItem(FileListItem*)),
this, TQT_SLOT(add(FileListItem*)) this, TQ_SLOT(add(FileListItem*))
); );
connect( fileList, TQT_SIGNAL(stopItem(FileListItem*)), connect( fileList, TQ_SIGNAL(stopItem(FileListItem*)),
this, TQT_SLOT(stop(FileListItem*)) this, TQ_SLOT(stop(FileListItem*))
); );
connect( this, TQT_SIGNAL(finished(FileListItem*,int)), connect( this, TQ_SIGNAL(finished(FileListItem*,int)),
fileList, TQT_SLOT(itemFinished(FileListItem*,int)) fileList, TQ_SLOT(itemFinished(FileListItem*,int))
); );
connect( this, TQT_SIGNAL(rippingFinished(const TQString&)), connect( this, TQ_SIGNAL(rippingFinished(const TQString&)),
fileList, TQT_SLOT(rippingFinished(const TQString&)) fileList, TQ_SLOT(rippingFinished(const TQString&))
); );
logger = _logger; logger = _logger;
connect( this, TQT_SIGNAL(finishedProcess(int,int)), connect( this, TQ_SIGNAL(finishedProcess(int,int)),
logger, TQT_SLOT(processCompleted(int,int)) logger, TQ_SLOT(processCompleted(int,int))
); );
tUpdateProgressIndicator = new TQTimer( this, "tUpdateProgressIndicator" ); tUpdateProgressIndicator = new TQTimer( this, "tUpdateProgressIndicator" );
connect( tUpdateProgressIndicator, TQT_SIGNAL(timeout()), connect( tUpdateProgressIndicator, TQ_SIGNAL(timeout()),
this, TQT_SLOT(updateProgressIndicator()) this, TQ_SLOT(updateProgressIndicator())
); );
} }
@ -102,11 +102,11 @@ void Convert::get( ConvertItem* item )
} }
else { else {
item->moveJob = new TDEIO::FileCopyJob( source, destination, -1, false, true, false, false ); item->moveJob = new TDEIO::FileCopyJob( source, destination, -1, false, true, false, false );
connect( item->moveJob, TQT_SIGNAL(percent(TDEIO::Job*,unsigned long)), connect( item->moveJob, TQ_SIGNAL(percent(TDEIO::Job*,unsigned long)),
this, TQT_SLOT(moveProgress(TDEIO::Job*,unsigned long)) this, TQ_SLOT(moveProgress(TDEIO::Job*,unsigned long))
); );
connect( item->moveJob, TQT_SIGNAL(result(TDEIO::Job*)), connect( item->moveJob, TQ_SIGNAL(result(TDEIO::Job*)),
this, TQT_SLOT(moveFinished(TDEIO::Job*)) this, TQ_SLOT(moveFinished(TDEIO::Job*))
); );
} }
} }
@ -143,11 +143,11 @@ void Convert::getCorrection( ConvertItem* item )
} }
else { else {
item->moveJob = new TDEIO::FileCopyJob( source, destination, -1, false, true, false, false ); item->moveJob = new TDEIO::FileCopyJob( source, destination, -1, false, true, false, false );
connect( item->moveJob, TQT_SIGNAL(percent(TDEIO::Job*,unsigned long)), connect( item->moveJob, TQ_SIGNAL(percent(TDEIO::Job*,unsigned long)),
this, TQT_SLOT(moveProgress(TDEIO::Job*,unsigned long)) this, TQ_SLOT(moveProgress(TDEIO::Job*,unsigned long))
); );
connect( item->moveJob, TQT_SIGNAL(result(TDEIO::Job*)), connect( item->moveJob, TQ_SIGNAL(result(TDEIO::Job*)),
this, TQT_SLOT(moveFinished(TDEIO::Job*)) this, TQ_SLOT(moveFinished(TDEIO::Job*))
); );
} }
} }
@ -193,11 +193,11 @@ void Convert::rip( ConvertItem* item )
item->fileListItem->ripping = true; item->fileListItem->ripping = true;
item->moveJob = new TDEIO::FileCopyJob( source, dest, -1, false, true, false, false ); item->moveJob = new TDEIO::FileCopyJob( source, dest, -1, false, true, false, false );
connect( item->moveJob, TQT_SIGNAL(percent(TDEIO::Job*,unsigned long)), connect( item->moveJob, TQ_SIGNAL(percent(TDEIO::Job*,unsigned long)),
this, TQT_SLOT(moveProgress(TDEIO::Job*,unsigned long)) this, TQ_SLOT(moveProgress(TDEIO::Job*,unsigned long))
); );
connect( item->moveJob, TQT_SIGNAL(result(TDEIO::Job*)), connect( item->moveJob, TQ_SIGNAL(result(TDEIO::Job*)),
this, TQT_SLOT(moveFinished(TDEIO::Job*)) this, TQ_SLOT(moveFinished(TDEIO::Job*))
); );
} }
else { else {
@ -637,11 +637,11 @@ void Convert::put( ConvertItem* item )
} }
else { else {
item->moveJob = new TDEIO::FileCopyJob( source, destination, -1, false, false, false, false ); item->moveJob = new TDEIO::FileCopyJob( source, destination, -1, false, false, false, false );
connect( item->moveJob, TQT_SIGNAL(percent(TDEIO::Job*,unsigned long)), connect( item->moveJob, TQ_SIGNAL(percent(TDEIO::Job*,unsigned long)),
this, TQT_SLOT(moveProgress(TDEIO::Job*,unsigned long)) this, TQ_SLOT(moveProgress(TDEIO::Job*,unsigned long))
); );
connect( item->moveJob, TQT_SIGNAL(result(TDEIO::Job*)), connect( item->moveJob, TQ_SIGNAL(result(TDEIO::Job*)),
this, TQT_SLOT(moveFinished(TDEIO::Job*)) this, TQ_SLOT(moveFinished(TDEIO::Job*))
); );
} }
} }
@ -676,11 +676,11 @@ void Convert::putCorrection( ConvertItem* item )
} }
else { else {
item->moveJob = new TDEIO::FileCopyJob( source, destination, -1, false, false, false, false ); item->moveJob = new TDEIO::FileCopyJob( source, destination, -1, false, false, false, false );
connect( item->moveJob, TQT_SIGNAL(percent(TDEIO::Job*,unsigned long)), connect( item->moveJob, TQ_SIGNAL(percent(TDEIO::Job*,unsigned long)),
this, TQT_SLOT(moveProgress(TDEIO::Job*,unsigned long)) this, TQ_SLOT(moveProgress(TDEIO::Job*,unsigned long))
); );
connect( item->moveJob, TQT_SIGNAL(result(TDEIO::Job*)), connect( item->moveJob, TQ_SIGNAL(result(TDEIO::Job*)),
this, TQT_SLOT(moveFinished(TDEIO::Job*)) this, TQ_SLOT(moveFinished(TDEIO::Job*))
); );
} }
} }
@ -1319,14 +1319,14 @@ void Convert::add( FileListItem* item )
// connect convertProcess of our new item with the slots of Convert // connect convertProcess of our new item with the slots of Convert
(*newItem)->convertProcess = new TDEProcess(); (*newItem)->convertProcess = new TDEProcess();
connect( (*newItem)->convertProcess, TQT_SIGNAL(receivedStdout(TDEProcess*,char*,int)), connect( (*newItem)->convertProcess, TQ_SIGNAL(receivedStdout(TDEProcess*,char*,int)),
this, TQT_SLOT(processOutput(TDEProcess*,char*,int)) this, TQ_SLOT(processOutput(TDEProcess*,char*,int))
); );
connect( (*newItem)->convertProcess, TQT_SIGNAL(receivedStderr(TDEProcess*,char*,int)), connect( (*newItem)->convertProcess, TQ_SIGNAL(receivedStderr(TDEProcess*,char*,int)),
this, TQT_SLOT(processOutput(TDEProcess*,char*,int)) this, TQ_SLOT(processOutput(TDEProcess*,char*,int))
); );
connect( (*newItem)->convertProcess, TQT_SIGNAL(processExited(TDEProcess*)), connect( (*newItem)->convertProcess, TQ_SIGNAL(processExited(TDEProcess*)),
this, TQT_SLOT(processExit(TDEProcess*)) this, TQ_SLOT(processExit(TDEProcess*))
); );
// NOTE the tempInFile is also created if the file is a audio cd track // NOTE the tempInFile is also created if the file is a audio cd track

@ -69,26 +69,26 @@ CuesheetEditor::CuesheetEditor( TQWidget *parent, const char *name, bool modal,
pHelp = new KPushButton( iconLoader->loadIcon("help",TDEIcon::Small), "", this, "pHelp" ); pHelp = new KPushButton( iconLoader->loadIcon("help",TDEIcon::Small), "", this, "pHelp" );
buttonBox->addWidget( pHelp ); buttonBox->addWidget( pHelp );
connect( pHelp, TQT_SIGNAL(clicked()), connect( pHelp, TQ_SIGNAL(clicked()),
this, TQT_SLOT(help()) this, TQ_SLOT(help())
); );
pGenerate = new KPushButton( iconLoader->loadIcon("document-new",TDEIcon::Small), i18n("Generate"), this, "pGenerate" ); pGenerate = new KPushButton( iconLoader->loadIcon("document-new",TDEIcon::Small), i18n("Generate"), this, "pGenerate" );
buttonBox->addWidget( pGenerate ); buttonBox->addWidget( pGenerate );
connect( pGenerate, TQT_SIGNAL(clicked()), connect( pGenerate, TQ_SIGNAL(clicked()),
this, TQT_SLOT(generate()) this, TQ_SLOT(generate())
); );
pConvert = new KPushButton( iconLoader->loadIcon("system-run",TDEIcon::Small), i18n("Format"), this, "pConvert" ); pConvert = new KPushButton( iconLoader->loadIcon("system-run",TDEIcon::Small), i18n("Format"), this, "pConvert" );
buttonBox->addWidget( pConvert ); buttonBox->addWidget( pConvert );
connect( pConvert, TQT_SIGNAL(clicked()), connect( pConvert, TQ_SIGNAL(clicked()),
this, TQT_SLOT(convert()) this, TQ_SLOT(convert())
); );
pShift = new KPushButton( iconLoader->loadIcon("reload",TDEIcon::Small), i18n("Shift Title/Performer"), this, "pShift" ); pShift = new KPushButton( iconLoader->loadIcon("reload",TDEIcon::Small), i18n("Shift Title/Performer"), this, "pShift" );
buttonBox->addWidget( pShift ); buttonBox->addWidget( pShift );
connect( pShift, TQT_SIGNAL(clicked()), connect( pShift, TQ_SIGNAL(clicked()),
this, TQT_SLOT(shift()) this, TQ_SLOT(shift())
); );
buttonBox->addStretch(); buttonBox->addStretch();
@ -96,8 +96,8 @@ CuesheetEditor::CuesheetEditor( TQWidget *parent, const char *name, bool modal,
pOk = new KPushButton(iconLoader->loadIcon("system-log-out",TDEIcon::Small), i18n("Close"), this, "pOk" ); pOk = new KPushButton(iconLoader->loadIcon("system-log-out",TDEIcon::Small), i18n("Close"), this, "pOk" );
pOk->setFocus(); pOk->setFocus();
buttonBox->addWidget( pOk ); buttonBox->addWidget( pOk );
connect( pOk, TQT_SIGNAL(clicked()), connect( pOk, TQ_SIGNAL(clicked()),
this, TQT_SLOT(accept()) this, TQ_SLOT(accept())
); );
// delete the icon loader object // delete the icon loader object

@ -43,8 +43,8 @@ DirDialog::DirDialog( Config* config, Mode mode, TQWidget *parent, const char *n
pDirectory = new KPushButton( iconLoader->loadIcon("folder_open",TDEIcon::Small), "", this, "pDirectory" ); pDirectory = new KPushButton( iconLoader->loadIcon("folder_open",TDEIcon::Small), "", this, "pDirectory" );
directoryBox->addWidget( pDirectory ); directoryBox->addWidget( pDirectory );
connect( pDirectory, TQT_SIGNAL(clicked()), connect( pDirectory, TQ_SIGNAL(clicked()),
this, TQT_SLOT(selectDirectoryClicked()) this, TQ_SLOT(selectDirectoryClicked())
); );
TQHBoxLayout* fileTypesBox = new TQHBoxLayout(); TQHBoxLayout* fileTypesBox = new TQHBoxLayout();
@ -62,22 +62,22 @@ DirDialog::DirDialog( Config* config, Mode mode, TQWidget *parent, const char *n
pSelectAll = new KPushButton( iconLoader->loadIcon("font-x-generic",TDEIcon::Small), i18n("Select all"), this, "pSelectAll" ); pSelectAll = new KPushButton( iconLoader->loadIcon("font-x-generic",TDEIcon::Small), i18n("Select all"), this, "pSelectAll" );
fileTypesButtonsBox->addWidget( pSelectAll ); fileTypesButtonsBox->addWidget( pSelectAll );
connect( pSelectAll, TQT_SIGNAL(clicked()), connect( pSelectAll, TQ_SIGNAL(clicked()),
this, TQT_SLOT(selectAllClicked()) this, TQ_SLOT(selectAllClicked())
); );
pSelectNone = new KPushButton( iconLoader->loadIcon("application-x-zerosize",TDEIcon::Small), i18n("Select none"), this, "pSelectNone" ); pSelectNone = new KPushButton( iconLoader->loadIcon("application-x-zerosize",TDEIcon::Small), i18n("Select none"), this, "pSelectNone" );
fileTypesButtonsBox->addWidget( pSelectNone ); fileTypesButtonsBox->addWidget( pSelectNone );
connect( pSelectNone, TQT_SIGNAL(clicked()), connect( pSelectNone, TQ_SIGNAL(clicked()),
this, TQT_SLOT(selectNoneClicked()) this, TQ_SLOT(selectNoneClicked())
); );
cRecursive = new TQCheckBox( i18n("Recursive"), this, "cRecursive" ); cRecursive = new TQCheckBox( i18n("Recursive"), this, "cRecursive" );
cRecursive->setChecked( true ); cRecursive->setChecked( true );
recursive = true; recursive = true;
fileTypesButtonsBox->addWidget( cRecursive ); fileTypesButtonsBox->addWidget( cRecursive );
connect( cRecursive, TQT_SIGNAL(toggled(bool)), connect( cRecursive, TQ_SIGNAL(toggled(bool)),
this, TQT_SLOT(recursiveToggled(bool)) this, TQ_SLOT(recursiveToggled(bool))
); );
fileTypesButtonsBox->addStretch(); fileTypesButtonsBox->addStretch();
@ -87,8 +87,8 @@ DirDialog::DirDialog( Config* config, Mode mode, TQWidget *parent, const char *n
pOk = new KPushButton( iconLoader->loadIcon("folder_open",TDEIcon::Small), i18n("Open"), this, "pOk" ); pOk = new KPushButton( iconLoader->loadIcon("folder_open",TDEIcon::Small), i18n("Open"), this, "pOk" );
buttonBox->addWidget( pOk ); buttonBox->addWidget( pOk );
connect( pOk, TQT_SIGNAL(clicked()), connect( pOk, TQ_SIGNAL(clicked()),
this, TQT_SLOT(okClicked()) this, TQ_SLOT(okClicked())
); );
buttonBox->addStretch(); buttonBox->addStretch();
@ -96,8 +96,8 @@ DirDialog::DirDialog( Config* config, Mode mode, TQWidget *parent, const char *n
pCancel = new KPushButton( iconLoader->loadIcon("cancel",TDEIcon::Small),i18n("Cancel"), this, "pCancel" ); pCancel = new KPushButton( iconLoader->loadIcon("cancel",TDEIcon::Small),i18n("Cancel"), this, "pCancel" );
pOk->setFocus(); pOk->setFocus();
buttonBox->addWidget( pCancel ); buttonBox->addWidget( pCancel );
connect( pCancel, TQT_SIGNAL(clicked()), connect( pCancel, TQ_SIGNAL(clicked()),
this, TQT_SLOT(reject()) this, TQ_SLOT(reject())
); );
// delete the icon loader object // delete the icon loader object

@ -160,25 +160,25 @@ FileList::FileList( CDManager* _cdManager, TagEngine* _tagEngine, Config* _confi
grid->setColStretch( 1, 2 ); grid->setColStretch( 1, 2 );
contextMenu = new TDEPopupMenu( this ); contextMenu = new TDEPopupMenu( this );
connect( this, TQT_SIGNAL(contextMenuRequested( TQListViewItem*, const TQPoint&, int )), connect( this, TQ_SIGNAL(contextMenuRequested( TQListViewItem*, const TQPoint&, int )),
this, TQT_SLOT(showContextMenu( TQListViewItem*, const TQPoint&, int )) this, TQ_SLOT(showContextMenu( TQListViewItem*, const TQPoint&, int ))
); );
// we haven't got access to the action collection of soundKonverter, so let's create a new one // we haven't got access to the action collection of soundKonverter, so let's create a new one
actionCollection = new TDEActionCollection( this ); actionCollection = new TDEActionCollection( this );
edit = new TDEAction( i18n("Edit options ..."), "view_text", 0, this, TQT_SLOT(showOptionsEditorDialog()), actionCollection, "edit_options" ); edit = new TDEAction( i18n("Edit options ..."), "view_text", 0, this, TQ_SLOT(showOptionsEditorDialog()), actionCollection, "edit_options" );
start = new TDEAction( i18n("Start conversion"), "system-run", 0, this, TQT_SLOT(convertSelectedItems()), actionCollection, "start_conversion" ); start = new TDEAction( i18n("Start conversion"), "system-run", 0, this, TQ_SLOT(convertSelectedItems()), actionCollection, "start_conversion" );
stop = new TDEAction( i18n("Stop conversion"), "process-stop", 0, this, TQT_SLOT(stopSelectedItems()), actionCollection, "stop_conversion" ); stop = new TDEAction( i18n("Stop conversion"), "process-stop", 0, this, TQ_SLOT(stopSelectedItems()), actionCollection, "stop_conversion" );
remove = new TDEAction( i18n("Remove"), "edittrash", Key_Delete, this, TQT_SLOT(removeSelectedItems()), actionCollection, "remove" ); remove = new TDEAction( i18n("Remove"), "edittrash", Key_Delete, this, TQ_SLOT(removeSelectedItems()), actionCollection, "remove" );
paste = new TDEAction( i18n("Paste"), "edit-paste", 0, this, 0, actionCollection, "paste" ); // TODO paste paste = new TDEAction( i18n("Paste"), "edit-paste", 0, this, 0, actionCollection, "paste" ); // TODO paste
connect( this, TQT_SIGNAL(selectionChanged()), connect( this, TQ_SIGNAL(selectionChanged()),
this, TQT_SLOT(itemsSelected()) this, TQ_SLOT(itemsSelected())
); );
// connect( this, TQT_SIGNAL(clicked(TQListViewItem*,const TQPoint&,int)), // connect( this, TQ_SIGNAL(clicked(TQListViewItem*,const TQPoint&,int)),
// this, TQT_SLOT(clickedSomewhere(TQListViewItem*,const TQPoint&,int)) // this, TQ_SLOT(clickedSomewhere(TQListViewItem*,const TQPoint&,int))
// ); // );
bubble = new TQSimpleRichText( i18n( "<div align=center>" bubble = new TQSimpleRichText( i18n( "<div align=center>"
@ -188,11 +188,11 @@ FileList::FileList( CDManager* _cdManager, TagEngine* _tagEngine, Config* _confi
// "<br/><a href=\"documenation:about_compression\">Learn more about audio compression ...</a>" // "<br/><a href=\"documenation:about_compression\">Learn more about audio compression ...</a>"
"</div>" ), TQApplication::font() ); "</div>" ), TQApplication::font() );
connect( header(), TQT_SIGNAL(sizeChange( int, int, int )), connect( header(), TQ_SIGNAL(sizeChange( int, int, int )),
TQT_SLOT(columnResizeEvent( int, int, int )) TQ_SLOT(columnResizeEvent( int, int, int ))
); );
connect( this, TQT_SIGNAL( dropped(TQDropEvent*, TQListViewItem*, TQListViewItem*) ), connect( this, TQ_SIGNAL( dropped(TQDropEvent*, TQListViewItem*, TQListViewItem*) ),
TQT_SLOT( slotDropped(TQDropEvent*, TQListViewItem*, TQListViewItem*) ) TQ_SLOT( slotDropped(TQDropEvent*, TQListViewItem*, TQListViewItem*) )
); );
// if( TQFile::exists(locateLocal("data","soundkonverter/filelist.autosave.xml")) ) load( true ); // if( TQFile::exists(locateLocal("data","soundkonverter/filelist.autosave.xml")) ) load( true );
@ -764,23 +764,23 @@ void FileList::showOptionsEditorDialog()
return; return;
} }
// } // }
connect( this, TQT_SIGNAL(editItems(TQValueList<FileListItem*>)), connect( this, TQ_SIGNAL(editItems(TQValueList<FileListItem*>)),
optionsEditor, TQT_SLOT(itemsSelected(TQValueList<FileListItem*>)) optionsEditor, TQ_SLOT(itemsSelected(TQValueList<FileListItem*>))
); );
connect( this, TQT_SIGNAL(setPreviousItemEnabled(bool)), connect( this, TQ_SIGNAL(setPreviousItemEnabled(bool)),
optionsEditor, TQT_SLOT(setPreviousEnabled(bool)) optionsEditor, TQ_SLOT(setPreviousEnabled(bool))
); );
connect( this, TQT_SIGNAL(setNextItemEnabled(bool)), connect( this, TQ_SIGNAL(setNextItemEnabled(bool)),
optionsEditor, TQT_SLOT(setNextEnabled(bool)) optionsEditor, TQ_SLOT(setNextEnabled(bool))
); );
connect( optionsEditor, TQT_SIGNAL(user2Clicked()), connect( optionsEditor, TQ_SIGNAL(user2Clicked()),
this, TQT_SLOT(selectPreviousItem()) this, TQ_SLOT(selectPreviousItem())
); );
connect( optionsEditor, TQT_SIGNAL(user1Clicked()), connect( optionsEditor, TQ_SIGNAL(user1Clicked()),
this, TQT_SLOT(selectNextItem()) this, TQ_SLOT(selectNextItem())
); );
/*connect( this, TQT_SIGNAL(moveEditor(int,int)), /*connect( this, TQ_SIGNAL(moveEditor(int,int)),
optionsEditor, TQT_SLOT(moveWindow(int,int)) optionsEditor, TQ_SLOT(moveWindow(int,int))
);*/ );*/
} }
itemsSelected(); itemsSelected();

@ -70,11 +70,11 @@ LogViewer::LogViewer( Logger* _logger, TQWidget *parent, const char *name, bool
: KDialog( parent, name, modal, f ) : KDialog( parent, name, modal, f )
{ {
logger = _logger; logger = _logger;
connect( logger, TQT_SIGNAL(removedProcess(int)), connect( logger, TQ_SIGNAL(removedProcess(int)),
this, TQT_SLOT(processRemoved(int)) this, TQ_SLOT(processRemoved(int))
); );
connect( logger, TQT_SIGNAL(updateProcess(int)), connect( logger, TQ_SIGNAL(updateProcess(int)),
this, TQT_SLOT(updateProcess(int)) this, TQ_SLOT(updateProcess(int))
); );
// create an icon loader object for loading icons // create an icon loader object for loading icons
@ -101,8 +101,8 @@ LogViewer::LogViewer( Logger* _logger, TQWidget *parent, const char *name, bool
pReload = new KPushButton(iconLoader->loadIcon("reload",TDEIcon::Small), i18n("Reload"), this, "pReload" ); pReload = new KPushButton(iconLoader->loadIcon("reload",TDEIcon::Small), i18n("Reload"), this, "pReload" );
buttonBox->addWidget( pReload ); buttonBox->addWidget( pReload );
connect( pReload, TQT_SIGNAL(clicked()), connect( pReload, TQ_SIGNAL(clicked()),
this, TQT_SLOT(refillLogs()) this, TQ_SLOT(refillLogs())
); );
buttonBox->addStretch(); buttonBox->addStretch();
@ -110,8 +110,8 @@ LogViewer::LogViewer( Logger* _logger, TQWidget *parent, const char *name, bool
pOk = new KPushButton(iconLoader->loadIcon("system-log-out",TDEIcon::Small), i18n("Close"), this, "pOk" ); pOk = new KPushButton(iconLoader->loadIcon("system-log-out",TDEIcon::Small), i18n("Close"), this, "pOk" );
pOk->setFocus(); pOk->setFocus();
buttonBox->addWidget( pOk ); buttonBox->addWidget( pOk );
connect( pOk, TQT_SIGNAL(clicked()), connect( pOk, TQ_SIGNAL(clicked()),
this, TQT_SLOT(accept()) this, TQ_SLOT(accept())
); );
// delete the icon loader object // delete the icon loader object

@ -22,8 +22,8 @@ Options::Options( Config* _config, const TQString &text, TQWidget *parent, const
: TQWidget( parent, name ) : TQWidget( parent, name )
{ {
config = _config; config = _config;
connect( config, TQT_SIGNAL(configChanged()), connect( config, TQ_SIGNAL(configChanged()),
this, TQT_SLOT(configChanged()) this, TQ_SLOT(configChanged())
); );
TQGridLayout *gridLayout = new TQGridLayout( this, 1, 1 ); TQGridLayout *gridLayout = new TQGridLayout( this, 1, 1 );
@ -34,72 +34,72 @@ Options::Options( Config* _config, const TQString &text, TQWidget *parent, const
optionsSimple = new OptionsSimple( config, optionsDetailed, text, this, "optionsSimple" ); optionsSimple = new OptionsSimple( config, optionsDetailed, text, this, "optionsSimple" );
tab->addTab( optionsSimple, i18n("Simple") ); tab->addTab( optionsSimple, i18n("Simple") );
connect( optionsSimple, TQT_SIGNAL(optionsChanged()), connect( optionsSimple, TQ_SIGNAL(optionsChanged()),
this, TQT_SLOT(somethingChanged()) this, TQ_SLOT(somethingChanged())
); );
tab->addTab( optionsDetailed, i18n("Detailed") ); tab->addTab( optionsDetailed, i18n("Detailed") );
connect( optionsDetailed, TQT_SIGNAL(optionsChanged()), connect( optionsDetailed, TQ_SIGNAL(optionsChanged()),
this, TQT_SLOT(somethingChanged()) this, TQ_SLOT(somethingChanged())
); );
// connect( optionsSimple, TQT_SIGNAL(setFormat(const TQString&)), // connect( optionsSimple, TQ_SIGNAL(setFormat(const TQString&)),
// optionsDetailed, TQT_SLOT(setFormat(const TQString&)) // optionsDetailed, TQ_SLOT(setFormat(const TQString&))
// ); // );
// connect( optionsSimple, TQT_SIGNAL(setQualityMode(const TQString&)), // connect( optionsSimple, TQ_SIGNAL(setQualityMode(const TQString&)),
// optionsDetailed, TQT_SLOT(setQualityMode(const TQString&)) // optionsDetailed, TQ_SLOT(setQualityMode(const TQString&))
// ); // );
// connect( optionsSimple, TQT_SIGNAL(setQuality(int)), // connect( optionsSimple, TQ_SIGNAL(setQuality(int)),
// optionsDetailed, TQT_SLOT(setQuality(int)) // optionsDetailed, TQ_SLOT(setQuality(int))
// ); // );
// connect( optionsSimple, TQT_SIGNAL(setBitrateMode(const TQString&)), // connect( optionsSimple, TQ_SIGNAL(setBitrateMode(const TQString&)),
// optionsDetailed, TQT_SLOT(setBitrateMode(const TQString&)) // optionsDetailed, TQ_SLOT(setBitrateMode(const TQString&))
// ); // );
// connect( optionsSimple, TQT_SIGNAL(setBitrateRangeEnabled(bool)), // connect( optionsSimple, TQ_SIGNAL(setBitrateRangeEnabled(bool)),
// optionsDetailed, TQT_SLOT(setBitrateRangeEnabled(bool)) // optionsDetailed, TQ_SLOT(setBitrateRangeEnabled(bool))
// ); // );
// connect( optionsSimple, TQT_SIGNAL(setMinBitrate(int)), // connect( optionsSimple, TQ_SIGNAL(setMinBitrate(int)),
// optionsDetailed, TQT_SLOT(setMinBitrate(int)) // optionsDetailed, TQ_SLOT(setMinBitrate(int))
// ); // );
// connect( optionsSimple, TQT_SIGNAL(setMaxBitrate(int)), // connect( optionsSimple, TQ_SIGNAL(setMaxBitrate(int)),
// optionsDetailed, TQT_SLOT(setMaxBitrate(int)) // optionsDetailed, TQ_SLOT(setMaxBitrate(int))
// ); // );
// connect( optionsSimple, TQT_SIGNAL(setSamplingrateEnabled(bool)), // connect( optionsSimple, TQ_SIGNAL(setSamplingrateEnabled(bool)),
// optionsDetailed, TQT_SLOT(setSamplingrateEnabled(bool)) // optionsDetailed, TQ_SLOT(setSamplingrateEnabled(bool))
// ); // );
// connect( optionsSimple, TQT_SIGNAL(setSamplingrate(int)), // connect( optionsSimple, TQ_SIGNAL(setSamplingrate(int)),
// optionsDetailed, TQT_SLOT(setSamplingrate(int)) // optionsDetailed, TQ_SLOT(setSamplingrate(int))
// ); // );
// connect( optionsSimple, TQT_SIGNAL(setSamplingrate(const TQString&)), // connect( optionsSimple, TQ_SIGNAL(setSamplingrate(const TQString&)),
// optionsDetailed, TQT_SLOT(setSamplingrate(const TQString&)) // optionsDetailed, TQ_SLOT(setSamplingrate(const TQString&))
// ); // );
// connect( optionsSimple, TQT_SIGNAL(setChannelsEnabled(bool)), // connect( optionsSimple, TQ_SIGNAL(setChannelsEnabled(bool)),
// optionsDetailed, TQT_SLOT(setChannelsEnabled(bool)) // optionsDetailed, TQ_SLOT(setChannelsEnabled(bool))
// ); // );
// connect( optionsSimple, TQT_SIGNAL(setChannels(const TQString&)), // connect( optionsSimple, TQ_SIGNAL(setChannels(const TQString&)),
// optionsDetailed, TQT_SLOT(setChannels(const TQString&)) // optionsDetailed, TQ_SLOT(setChannels(const TQString&))
// ); // );
// connect( optionsSimple, TQT_SIGNAL(setReplayGainEnabled(bool)), // connect( optionsSimple, TQ_SIGNAL(setReplayGainEnabled(bool)),
// optionsDetailed, TQT_SLOT(setReplayGainEnabled(bool)) // optionsDetailed, TQ_SLOT(setReplayGainEnabled(bool))
// ); // );
// connect( optionsSimple, TQT_SIGNAL(setOutputDirectoryMode(OutputDirectory::Mode)), // connect( optionsSimple, TQ_SIGNAL(setOutputDirectoryMode(OutputDirectory::Mode)),
// optionsDetailed, TQT_SLOT(setOutputDirectoryMode(OutputDirectory::Mode)) // optionsDetailed, TQ_SLOT(setOutputDirectoryMode(OutputDirectory::Mode))
// ); // );
// connect( optionsSimple, TQT_SIGNAL(setOutputDirectoryPath(const TQString&)), // connect( optionsSimple, TQ_SIGNAL(setOutputDirectoryPath(const TQString&)),
// optionsDetailed, TQT_SLOT(setOutputDirectoryPath(const TQString&)) // optionsDetailed, TQ_SLOT(setOutputDirectoryPath(const TQString&))
// ); // );
// connect( optionsSimple, TQT_SIGNAL(setOptions(const ConversionOptions&)), // connect( optionsSimple, TQ_SIGNAL(setOptions(const ConversionOptions&)),
// optionsDetailed, TQT_SLOT(setCurrentOptions(const ConversionOptions&)) // optionsDetailed, TQ_SLOT(setCurrentOptions(const ConversionOptions&))
// ); // );
// connect( optionsSimple, TQT_SIGNAL(setUserOptions(const TQString&)), // connect( optionsSimple, TQ_SIGNAL(setUserOptions(const TQString&)),
// optionsDetailed, TQT_SLOT(setUserOptions(const TQString&)) // optionsDetailed, TQ_SLOT(setUserOptions(const TQString&))
// ); // );
if( config->data.general.startTab == 0 ) tab->setCurrentPage( config->data.general.lastTab ); if( config->data.general.startTab == 0 ) tab->setCurrentPage( config->data.general.lastTab );
else tab->setCurrentPage( config->data.general.startTab - 1 ); else tab->setCurrentPage( config->data.general.startTab - 1 );
gridLayout->addWidget( tab, 0, 0 ); gridLayout->addWidget( tab, 0, 0 );
connect( tab, TQT_SIGNAL( currentChanged(TQWidget*) ), connect( tab, TQ_SIGNAL( currentChanged(TQWidget*) ),
this, TQT_SLOT( tabChanged(TQWidget*) ) this, TQ_SLOT( tabChanged(TQWidget*) )
); );
// draw the toggle button // draw the toggle button
@ -118,8 +118,8 @@ Options::Options( Config* _config, const TQString &text, TQWidget *parent, const
// pPluginsNotify->hide(); // pPluginsNotify->hide();
// pPluginsNotify->setPaletteBackgroundColor( TQColor(255,220,247) ); // pPluginsNotify->setPaletteBackgroundColor( TQColor(255,220,247) );
// optionsBox->addWidget( pPluginsNotify ); // optionsBox->addWidget( pPluginsNotify );
// connect( pPluginsNotify, TQT_SIGNAL(clicked()), // connect( pPluginsNotify, TQ_SIGNAL(clicked()),
// this, TQT_SLOT(showConfigDialogPlugins()) // this, TQ_SLOT(showConfigDialogPlugins())
// ); // );
pBackendsNotify = new KPushButton( "", this, "pBackendsNotify"); pBackendsNotify = new KPushButton( "", this, "pBackendsNotify");
@ -129,24 +129,24 @@ Options::Options( Config* _config, const TQString &text, TQWidget *parent, const
config->backendsChanged = false; config->backendsChanged = false;
pBackendsNotify->setPaletteBackgroundColor( TQColor(255,220,247) ); pBackendsNotify->setPaletteBackgroundColor( TQColor(255,220,247) );
optionsBox->addWidget( pBackendsNotify ); optionsBox->addWidget( pBackendsNotify );
connect( pBackendsNotify, TQT_SIGNAL(clicked()), connect( pBackendsNotify, TQ_SIGNAL(clicked()),
this, TQT_SLOT(showConfigDialogBackends()) this, TQ_SLOT(showConfigDialogBackends())
); );
pAdvancedOptionsToggle = new KPushButton( i18n("Advanced Options"), this, "pAdvancedOptionsToggle"); pAdvancedOptionsToggle = new KPushButton( i18n("Advanced Options"), this, "pAdvancedOptionsToggle");
pAdvancedOptionsToggle->setToggleButton( true ); pAdvancedOptionsToggle->setToggleButton( true );
pAdvancedOptionsToggle->hide(); pAdvancedOptionsToggle->hide();
optionsBox->addWidget( pAdvancedOptionsToggle ); optionsBox->addWidget( pAdvancedOptionsToggle );
connect( pAdvancedOptionsToggle, TQT_SIGNAL(clicked()), connect( pAdvancedOptionsToggle, TQ_SIGNAL(clicked()),
optionsDetailed, TQT_SLOT(toggleAdvancedOptions()) optionsDetailed, TQ_SLOT(toggleAdvancedOptions())
); );
/* NOTE kaligames.de is down /* NOTE kaligames.de is down
if( config->data.plugins.checkForUpdates ) { if( config->data.plugins.checkForUpdates ) {
config->onlinePluginsChanged = false; config->onlinePluginsChanged = false;
getPluginListJob = TDEIO::file_copy("http://kaligames.de/downloads/soundkonverter/plugins/download.php?version=" + TQString::number(config->data.app.configVersion), getPluginListJob = TDEIO::file_copy("http://kaligames.de/downloads/soundkonverter/plugins/download.php?version=" + TQString::number(config->data.app.configVersion),
locateLocal("data","soundkonverter/pluginlist_new.txt"), -1, true, false, false ); locateLocal("data","soundkonverter/pluginlist_new.txt"), -1, true, false, false );
connect( getPluginListJob, TQT_SIGNAL(result(TDEIO::Job*)), connect( getPluginListJob, TQ_SIGNAL(result(TDEIO::Job*)),
this, TQT_SLOT(getPluginListFinished(TDEIO::Job*)) this, TQ_SLOT(getPluginListFinished(TDEIO::Job*))
); );
} }
*/ */

@ -46,48 +46,48 @@ OptionsDetailed::OptionsDetailed( Config* _config, TQWidget *parent, const char
normalTopBox->addWidget( lConvert, 0, TQt::AlignVCenter ); normalTopBox->addWidget( lConvert, 0, TQt::AlignVCenter );
cFormat = new KComboBox( normalOptions, "cFormat" ); cFormat = new KComboBox( normalOptions, "cFormat" );
normalTopBox->addWidget( cFormat, 0, TQt::AlignVCenter ); normalTopBox->addWidget( cFormat, 0, TQt::AlignVCenter );
connect( cFormat, TQT_SIGNAL(activated(int)), connect( cFormat, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(formatChanged()) this, TQ_SLOT(formatChanged())
); );
connect( cFormat, TQT_SIGNAL(activated(int)), connect( cFormat, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(somethingChanged()) this, TQ_SLOT(somethingChanged())
); );
cQualityMode = new KComboBox( normalOptions, "cQualityMode" ); cQualityMode = new KComboBox( normalOptions, "cQualityMode" );
cQualityMode->setFixedSize( cQualityMode->sizeHint() ); cQualityMode->setFixedSize( cQualityMode->sizeHint() );
normalTopBox->addWidget( cQualityMode, 0, TQt::AlignVCenter ); normalTopBox->addWidget( cQualityMode, 0, TQt::AlignVCenter );
connect( cQualityMode, TQT_SIGNAL(activated(int)), connect( cQualityMode, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(qualityModeChanged()) this, TQ_SLOT(qualityModeChanged())
); );
connect( cQualityMode, TQT_SIGNAL(activated(int)), connect( cQualityMode, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(somethingChanged()) this, TQ_SLOT(somethingChanged())
); );
iQuality = new KIntSpinBox( normalOptions, "iQuality" ); iQuality = new KIntSpinBox( normalOptions, "iQuality" );
normalTopBox->addWidget( iQuality, 0, TQt::AlignVCenter ); normalTopBox->addWidget( iQuality, 0, TQt::AlignVCenter );
connect( iQuality, TQT_SIGNAL(valueChanged(int)), connect( iQuality, TQ_SIGNAL(valueChanged(int)),
this, TQT_SLOT(qualityChanged()) this, TQ_SLOT(qualityChanged())
); );
connect( iQuality, TQT_SIGNAL(valueChanged(int)), connect( iQuality, TQ_SIGNAL(valueChanged(int)),
this, TQT_SLOT(somethingChanged()) this, TQ_SLOT(somethingChanged())
); );
cBitrateMode = new KComboBox( normalOptions, "cBitrateMode" ); cBitrateMode = new KComboBox( normalOptions, "cBitrateMode" );
TQToolTip::add( cBitrateMode, i18n("vbr - variable bitrate\nabr - average bitrate\ncbr - constant bitrate") ); TQToolTip::add( cBitrateMode, i18n("vbr - variable bitrate\nabr - average bitrate\ncbr - constant bitrate") );
normalTopBox->addWidget( cBitrateMode, 0, TQt::AlignVCenter ); normalTopBox->addWidget( cBitrateMode, 0, TQt::AlignVCenter );
connect( cBitrateMode, TQT_SIGNAL(activated(int)), connect( cBitrateMode, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(bitrateModeChanged()) this, TQ_SLOT(bitrateModeChanged())
); );
connect( cBitrateMode, TQT_SIGNAL(activated(int)), connect( cBitrateMode, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(somethingChanged()) this, TQ_SLOT(somethingChanged())
); );
normalTopBox->addSpacing( 18 ); normalTopBox->addSpacing( 18 );
cBitrateRangeSwitch = new TQCheckBox( i18n("Bitrate range")+":", normalOptions, "cBitrateRangeSwitch" ); cBitrateRangeSwitch = new TQCheckBox( i18n("Bitrate range")+":", normalOptions, "cBitrateRangeSwitch" );
TQToolTip::add( cBitrateRangeSwitch, i18n("Use it only if, you know what you are doing, you could reduce the quality.") ); TQToolTip::add( cBitrateRangeSwitch, i18n("Use it only if, you know what you are doing, you could reduce the quality.") );
normalTopBox->addWidget( cBitrateRangeSwitch, 0, TQt::AlignVCenter ); normalTopBox->addWidget( cBitrateRangeSwitch, 0, TQt::AlignVCenter );
connect( cBitrateRangeSwitch, TQT_SIGNAL(toggled(bool)), connect( cBitrateRangeSwitch, TQ_SIGNAL(toggled(bool)),
this, TQT_SLOT(bitrateRangeToggled()) this, TQ_SLOT(bitrateRangeToggled())
); );
connect( cBitrateRangeSwitch, TQT_SIGNAL(toggled(bool)), connect( cBitrateRangeSwitch, TQ_SIGNAL(toggled(bool)),
this, TQT_SLOT(somethingChanged()) this, TQ_SLOT(somethingChanged())
); );
iMinBitrate = new KIntSpinBox( normalOptions, "iMinBitrate" ); iMinBitrate = new KIntSpinBox( normalOptions, "iMinBitrate" );
iMinBitrate->setMinValue( 32 ); iMinBitrate->setMinValue( 32 );
@ -95,8 +95,8 @@ OptionsDetailed::OptionsDetailed( Config* _config, TQWidget *parent, const char
iMinBitrate->setLineStep( 8 ); iMinBitrate->setLineStep( 8 );
iMinBitrate->setValue( 64 ); iMinBitrate->setValue( 64 );
normalTopBox->addWidget( iMinBitrate, 0, TQt::AlignVCenter ); normalTopBox->addWidget( iMinBitrate, 0, TQt::AlignVCenter );
connect( iMinBitrate, TQT_SIGNAL(valueChanged(int)), connect( iMinBitrate, TQ_SIGNAL(valueChanged(int)),
this, TQT_SLOT(somethingChanged()) this, TQ_SLOT(somethingChanged())
); );
lBitrateRangeTo = new TQLabel( "-", normalOptions, "lBitrateRangeTo" ); lBitrateRangeTo = new TQLabel( "-", normalOptions, "lBitrateRangeTo" );
normalTopBox->addWidget( lBitrateRangeTo, 0, TQt::AlignVCenter ); normalTopBox->addWidget( lBitrateRangeTo, 0, TQt::AlignVCenter );
@ -106,8 +106,8 @@ OptionsDetailed::OptionsDetailed( Config* _config, TQWidget *parent, const char
iMaxBitrate->setLineStep( 8 ); iMaxBitrate->setLineStep( 8 );
iMaxBitrate->setValue( 192 ); iMaxBitrate->setValue( 192 );
normalTopBox->addWidget( iMaxBitrate, 0, TQt::AlignVCenter ); normalTopBox->addWidget( iMaxBitrate, 0, TQt::AlignVCenter );
connect( iMaxBitrate, TQT_SIGNAL(valueChanged(int)), connect( iMaxBitrate, TQ_SIGNAL(valueChanged(int)),
this, TQT_SLOT(somethingChanged()) this, TQ_SLOT(somethingChanged())
); );
lBitrateRangeUnit = new TQLabel( "kbps", normalOptions, "lBitrateRangeUnit" ); lBitrateRangeUnit = new TQLabel( "kbps", normalOptions, "lBitrateRangeUnit" );
normalTopBox->addWidget( lBitrateRangeUnit, 0, TQt::AlignVCenter ); normalTopBox->addWidget( lBitrateRangeUnit, 0, TQt::AlignVCenter );
@ -118,11 +118,11 @@ OptionsDetailed::OptionsDetailed( Config* _config, TQWidget *parent, const char
cSamplingrateSwitch = new TQCheckBox( i18n("Resample")+":", normalOptions, "cSamplingrateSwitch" ); cSamplingrateSwitch = new TQCheckBox( i18n("Resample")+":", normalOptions, "cSamplingrateSwitch" );
normalMiddleBox->addWidget( cSamplingrateSwitch, 0, TQt::AlignVCenter ); normalMiddleBox->addWidget( cSamplingrateSwitch, 0, TQt::AlignVCenter );
connect( cSamplingrateSwitch, TQT_SIGNAL(toggled(bool)), connect( cSamplingrateSwitch, TQ_SIGNAL(toggled(bool)),
this, TQT_SLOT(samplingrateToggled()) this, TQ_SLOT(samplingrateToggled())
); );
connect( cSamplingrateSwitch, TQT_SIGNAL(toggled(bool)), connect( cSamplingrateSwitch, TQ_SIGNAL(toggled(bool)),
this, TQT_SLOT(somethingChanged()) this, TQ_SLOT(somethingChanged())
); );
cSamplingrate = new KComboBox( normalOptions, "cSamplingrate" ); cSamplingrate = new KComboBox( normalOptions, "cSamplingrate" );
cSamplingrate->setEditable(true); cSamplingrate->setEditable(true);
@ -137,8 +137,8 @@ OptionsDetailed::OptionsDetailed( Config* _config, TQWidget *parent, const char
cSamplingrate->insertItem("8000"); cSamplingrate->insertItem("8000");
cSamplingrate->setCurrentText("44100"); cSamplingrate->setCurrentText("44100");
normalMiddleBox->addWidget( cSamplingrate, 0, TQt::AlignVCenter ); normalMiddleBox->addWidget( cSamplingrate, 0, TQt::AlignVCenter );
connect( cSamplingrate, TQT_SIGNAL(activated(int)), connect( cSamplingrate, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(somethingChanged()) this, TQ_SLOT(somethingChanged())
); );
lSamplingrateUnit = new TQLabel( "Hz", normalOptions, "lSamplingrateUnit" ); lSamplingrateUnit = new TQLabel( "Hz", normalOptions, "lSamplingrateUnit" );
normalMiddleBox->addWidget( lSamplingrateUnit, 0, TQt::AlignVCenter ); normalMiddleBox->addWidget( lSamplingrateUnit, 0, TQt::AlignVCenter );
@ -146,11 +146,11 @@ OptionsDetailed::OptionsDetailed( Config* _config, TQWidget *parent, const char
cChannelsSwitch = new TQCheckBox( i18n("Channels")+":", normalOptions, "cChannelsSwitch" ); cChannelsSwitch = new TQCheckBox( i18n("Channels")+":", normalOptions, "cChannelsSwitch" );
normalMiddleBox->addWidget( cChannelsSwitch, 0, TQt::AlignVCenter ); normalMiddleBox->addWidget( cChannelsSwitch, 0, TQt::AlignVCenter );
connect( cChannelsSwitch, TQT_SIGNAL(toggled(bool)), connect( cChannelsSwitch, TQ_SIGNAL(toggled(bool)),
this, TQT_SLOT(channelsToggled()) this, TQ_SLOT(channelsToggled())
); );
connect( cChannelsSwitch, TQT_SIGNAL(toggled(bool)), connect( cChannelsSwitch, TQ_SIGNAL(toggled(bool)),
this, TQT_SLOT(somethingChanged()) this, TQ_SLOT(somethingChanged())
); );
cChannels = new KComboBox( normalOptions, "cChannels" ); cChannels = new KComboBox( normalOptions, "cChannels" );
/* sChannels.append( i18n("Mono") ); /* sChannels.append( i18n("Mono") );
@ -160,8 +160,8 @@ OptionsDetailed::OptionsDetailed( Config* _config, TQWidget *parent, const char
sChannels.append( i18n("Dual Channels") ); sChannels.append( i18n("Dual Channels") );
cChannels->insertStringList( sChannels );*/ cChannels->insertStringList( sChannels );*/
normalMiddleBox->addWidget( cChannels, 0, TQt::AlignVCenter ); normalMiddleBox->addWidget( cChannels, 0, TQt::AlignVCenter );
connect( cChannels, TQT_SIGNAL(activated(int)), connect( cChannels, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(somethingChanged()) this, TQ_SLOT(somethingChanged())
); );
normalMiddleBox->addSpacing( 18 ); normalMiddleBox->addSpacing( 18 );
@ -170,8 +170,8 @@ OptionsDetailed::OptionsDetailed( Config* _config, TQWidget *parent, const char
TQToolTip::add( cReplayGain, i18n("Add a Replay Gain tag to the converted file.") ); TQToolTip::add( cReplayGain, i18n("Add a Replay Gain tag to the converted file.") );
TQWhatsThis::add( cReplayGain, i18n("Replay Gain is a volume correction technique. A volume difference is calculated and stored in a tag. This way audio players can automatically adjust the volume and the original music data is not modified (like at normalization).") ); TQWhatsThis::add( cReplayGain, i18n("Replay Gain is a volume correction technique. A volume difference is calculated and stored in a tag. This way audio players can automatically adjust the volume and the original music data is not modified (like at normalization).") );
normalMiddleBox->addWidget( cReplayGain, 0, TQt::AlignVCenter ); normalMiddleBox->addWidget( cReplayGain, 0, TQt::AlignVCenter );
connect( cReplayGain, TQT_SIGNAL(toggled(bool)), connect( cReplayGain, TQ_SIGNAL(toggled(bool)),
this, TQT_SLOT(somethingChanged()) this, TQ_SLOT(somethingChanged())
); );
normalMiddleBox->addStretch(); normalMiddleBox->addStretch();
@ -180,19 +180,19 @@ OptionsDetailed::OptionsDetailed( Config* _config, TQWidget *parent, const char
outputDirectory = new OutputDirectory( config, normalOptions, "outputDirectory" ); outputDirectory = new OutputDirectory( config, normalOptions, "outputDirectory" );
normalBottomBox->addWidget( outputDirectory, 0, TQt::AlignVCenter ); normalBottomBox->addWidget( outputDirectory, 0, TQt::AlignVCenter );
connect( outputDirectory, TQT_SIGNAL(modeChanged(OutputDirectory::Mode)), connect( outputDirectory, TQ_SIGNAL(modeChanged(OutputDirectory::Mode)),
this, TQT_SLOT(somethingChanged()) this, TQ_SLOT(somethingChanged())
); );
connect( outputDirectory, TQT_SIGNAL(directoryChanged(const TQString&)), connect( outputDirectory, TQ_SIGNAL(directoryChanged(const TQString&)),
this, TQT_SLOT(somethingChanged()) this, TQ_SLOT(somethingChanged())
); );
normalBottomBox->addSpacing( 18 ); normalBottomBox->addSpacing( 18 );
pProfileSave = new TDEToolBarButton( "document-save", 1003, normalOptions, "pProfileSave" ); pProfileSave = new TDEToolBarButton( "document-save", 1003, normalOptions, "pProfileSave" );
TQToolTip::add( pProfileSave, i18n("Save current options as a profile") ); TQToolTip::add( pProfileSave, i18n("Save current options as a profile") );
normalBottomBox->addWidget( pProfileSave, 0, TQt::AlignVCenter ); normalBottomBox->addWidget( pProfileSave, 0, TQt::AlignVCenter );
connect( pProfileSave, TQT_SIGNAL(clicked()), connect( pProfileSave, TQ_SIGNAL(clicked()),
this, TQT_SLOT(saveProfile()) this, TQ_SLOT(saveProfile())
); );
// advanced options // advanced options
@ -209,8 +209,8 @@ OptionsDetailed::OptionsDetailed( Config* _config, TQWidget *parent, const char
advancedTopBox->addWidget( lUserOptionsLabel, 0, TQt::AlignVCenter ); advancedTopBox->addWidget( lUserOptionsLabel, 0, TQt::AlignVCenter );
lUserOptions = new KLineEdit( advancedOptions, "lUserOptions" ); lUserOptions = new KLineEdit( advancedOptions, "lUserOptions" );
advancedTopBox->addWidget( lUserOptions, 0, TQt::AlignVCenter ); advancedTopBox->addWidget( lUserOptions, 0, TQt::AlignVCenter );
connect( lUserOptions, TQT_SIGNAL(textChanged(const TQString&)), connect( lUserOptions, TQ_SIGNAL(textChanged(const TQString&)),
this, TQT_SLOT(somethingChanged()) this, TQ_SLOT(somethingChanged())
); );
TQHBoxLayout *advancedMiddleBox = new TQHBoxLayout(); TQHBoxLayout *advancedMiddleBox = new TQHBoxLayout();

@ -59,8 +59,8 @@ OptionsEditor::OptionsEditor( TagEngine* _tagEngine, Config* _config, FileList*
// generate the options input area // generate the options input area
options = new Options( config, i18n("Choose your prefered output options and click on \"Close\"!"), conversionOptions, "options" ); options = new Options( config, i18n("Choose your prefered output options and click on \"Close\"!"), conversionOptions, "options" );
conversionOptionsGridLayout->addWidget( options, 0, 0 ); conversionOptionsGridLayout->addWidget( options, 0, 0 );
connect( options, TQT_SIGNAL(optionsChanged()), connect( options, TQ_SIGNAL(optionsChanged()),
this, TQT_SLOT(optionsChanged()) this, TQ_SLOT(optionsChanged())
); );
conversionOptionsGridLayout->setRowStretch( 1, 1 ); conversionOptionsGridLayout->setRowStretch( 1, 1 );
@ -72,8 +72,8 @@ OptionsEditor::OptionsEditor( TagEngine* _tagEngine, Config* _config, FileList*
pEditOptions->setFixedWidth( pEditOptions->sizeHint().width() ); pEditOptions->setFixedWidth( pEditOptions->sizeHint().width() );
conversionOptionsGridLayout->addWidget( pEditOptions, 3, 0, TQt::AlignHCenter ); conversionOptionsGridLayout->addWidget( pEditOptions, 3, 0, TQt::AlignHCenter );
pEditOptions->hide(); pEditOptions->hide();
connect( pEditOptions, TQT_SIGNAL(clicked()), connect( pEditOptions, TQ_SIGNAL(clicked()),
this, TQT_SLOT(editOptionsClicked()) this, TQ_SLOT(editOptionsClicked())
); );
//// tags page //// //// tags page ////
@ -90,31 +90,31 @@ OptionsEditor::OptionsEditor( TagEngine* _tagEngine, Config* _config, FileList*
tagsGridLayout->addWidget( lTitleLabel, 0, 0 ); tagsGridLayout->addWidget( lTitleLabel, 0, 0 );
lTitle = new KLineEdit( tags, "lTitle" ); lTitle = new KLineEdit( tags, "lTitle" );
titleBox->addWidget( lTitle ); titleBox->addWidget( lTitle );
connect( lTitle, TQT_SIGNAL(textChanged(const TQString&)), connect( lTitle, TQ_SIGNAL(textChanged(const TQString&)),
this, TQT_SLOT(titleChanged(const TQString&)) this, TQ_SLOT(titleChanged(const TQString&))
); );
pTitleEdit = new KPushButton( " ", tags, "pTitleEdit" ); pTitleEdit = new KPushButton( " ", tags, "pTitleEdit" );
pTitleEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) ); pTitleEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) );
pTitleEdit->setFixedSize( lTitle->sizeHint().height(), lTitle->sizeHint().height() ); pTitleEdit->setFixedSize( lTitle->sizeHint().height(), lTitle->sizeHint().height() );
pTitleEdit->hide(); pTitleEdit->hide();
titleBox->addWidget( pTitleEdit ); titleBox->addWidget( pTitleEdit );
connect( pTitleEdit, TQT_SIGNAL(clicked()), connect( pTitleEdit, TQ_SIGNAL(clicked()),
this, TQT_SLOT(editTitleClicked()) this, TQ_SLOT(editTitleClicked())
); );
lNumberLabel = new TQLabel( i18n("Track No.:"), tags, "lNumberLabel" ); lNumberLabel = new TQLabel( i18n("Track No.:"), tags, "lNumberLabel" );
titleBox->addWidget( lNumberLabel ); titleBox->addWidget( lNumberLabel );
iNumber = new KIntSpinBox( 0, 999, 1, 1, 10, tags, "iNumber" ); iNumber = new KIntSpinBox( 0, 999, 1, 1, 10, tags, "iNumber" );
titleBox->addWidget( iNumber ); titleBox->addWidget( iNumber );
connect( iNumber, TQT_SIGNAL(valueChanged(int)), connect( iNumber, TQ_SIGNAL(valueChanged(int)),
this, TQT_SLOT(numberChanged(int)) this, TQ_SLOT(numberChanged(int))
); );
pNumberEdit = new KPushButton( " ", tags, "pNumberEdit" ); pNumberEdit = new KPushButton( " ", tags, "pNumberEdit" );
pNumberEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) ); pNumberEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) );
pNumberEdit->setFixedSize( iNumber->sizeHint().height(), iNumber->sizeHint().height() ); pNumberEdit->setFixedSize( iNumber->sizeHint().height(), iNumber->sizeHint().height() );
pNumberEdit->hide(); pNumberEdit->hide();
titleBox->addWidget( pNumberEdit ); titleBox->addWidget( pNumberEdit );
connect( pNumberEdit, TQT_SIGNAL(clicked()), connect( pNumberEdit, TQ_SIGNAL(clicked()),
this, TQT_SLOT(editNumberClicked()) this, TQ_SLOT(editNumberClicked())
); );
// add a horizontal box layout for the artist and the composer // add a horizontal box layout for the artist and the composer
@ -125,31 +125,31 @@ OptionsEditor::OptionsEditor( TagEngine* _tagEngine, Config* _config, FileList*
tagsGridLayout->addWidget( lArtistLabel, 1, 0 ); tagsGridLayout->addWidget( lArtistLabel, 1, 0 );
lArtist = new KLineEdit( tags, "lArtist" ); lArtist = new KLineEdit( tags, "lArtist" );
artistBox->addWidget( lArtist ); artistBox->addWidget( lArtist );
connect( lArtist, TQT_SIGNAL(textChanged(const TQString&)), connect( lArtist, TQ_SIGNAL(textChanged(const TQString&)),
this, TQT_SLOT(artistChanged(const TQString&)) this, TQ_SLOT(artistChanged(const TQString&))
); );
pArtistEdit = new KPushButton( " ", tags, "pArtistEdit" ); pArtistEdit = new KPushButton( " ", tags, "pArtistEdit" );
pArtistEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) ); pArtistEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) );
pArtistEdit->setFixedSize( lArtist->sizeHint().height(), lArtist->sizeHint().height() ); pArtistEdit->setFixedSize( lArtist->sizeHint().height(), lArtist->sizeHint().height() );
pArtistEdit->hide(); pArtistEdit->hide();
artistBox->addWidget( pArtistEdit ); artistBox->addWidget( pArtistEdit );
connect( pArtistEdit, TQT_SIGNAL(clicked()), connect( pArtistEdit, TQ_SIGNAL(clicked()),
this, TQT_SLOT(editArtistClicked()) this, TQ_SLOT(editArtistClicked())
); );
lComposerLabel = new TQLabel( i18n("Composer:"), tags, "lComposerLabel" ); lComposerLabel = new TQLabel( i18n("Composer:"), tags, "lComposerLabel" );
artistBox->addWidget( lComposerLabel ); artistBox->addWidget( lComposerLabel );
lComposer = new KLineEdit( tags, "lComposer" ); lComposer = new KLineEdit( tags, "lComposer" );
artistBox->addWidget( lComposer ); artistBox->addWidget( lComposer );
connect( lComposer, TQT_SIGNAL(textChanged(const TQString&)), connect( lComposer, TQ_SIGNAL(textChanged(const TQString&)),
this, TQT_SLOT(composerChanged(const TQString&)) this, TQ_SLOT(composerChanged(const TQString&))
); );
pComposerEdit = new KPushButton( " ", tags, "pComposerEdit" ); pComposerEdit = new KPushButton( " ", tags, "pComposerEdit" );
pComposerEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) ); pComposerEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) );
pComposerEdit->setFixedSize( lComposer->sizeHint().height(), lComposer->sizeHint().height() ); pComposerEdit->setFixedSize( lComposer->sizeHint().height(), lComposer->sizeHint().height() );
pComposerEdit->hide(); pComposerEdit->hide();
artistBox->addWidget( pComposerEdit ); artistBox->addWidget( pComposerEdit );
connect( pComposerEdit, TQT_SIGNAL(clicked()), connect( pComposerEdit, TQ_SIGNAL(clicked()),
this, TQT_SLOT(editComposerClicked()) this, TQ_SLOT(editComposerClicked())
); );
// add a horizontal box layout for the album // add a horizontal box layout for the album
@ -160,16 +160,16 @@ OptionsEditor::OptionsEditor( TagEngine* _tagEngine, Config* _config, FileList*
tagsGridLayout->addWidget( lAlbumLabel, 2, 0 ); tagsGridLayout->addWidget( lAlbumLabel, 2, 0 );
lAlbum = new KLineEdit( tags, "lAlbum" ); lAlbum = new KLineEdit( tags, "lAlbum" );
albumBox->addWidget( lAlbum ); albumBox->addWidget( lAlbum );
connect( lAlbum, TQT_SIGNAL(textChanged(const TQString&)), connect( lAlbum, TQ_SIGNAL(textChanged(const TQString&)),
this, TQT_SLOT(albumChanged(const TQString&)) this, TQ_SLOT(albumChanged(const TQString&))
); );
pAlbumEdit = new KPushButton( " ", tags, "pAlbumEdit" ); pAlbumEdit = new KPushButton( " ", tags, "pAlbumEdit" );
pAlbumEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) ); pAlbumEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) );
pAlbumEdit->setFixedSize( lAlbum->sizeHint().height(), lAlbum->sizeHint().height() ); pAlbumEdit->setFixedSize( lAlbum->sizeHint().height(), lAlbum->sizeHint().height() );
pAlbumEdit->hide(); pAlbumEdit->hide();
albumBox->addWidget( pAlbumEdit ); albumBox->addWidget( pAlbumEdit );
connect( pAlbumEdit, TQT_SIGNAL(clicked()), connect( pAlbumEdit, TQ_SIGNAL(clicked()),
this, TQT_SLOT(editAlbumClicked()) this, TQ_SLOT(editAlbumClicked())
); );
// add a horizontal box layout for the disc number, year and genre // add a horizontal box layout for the disc number, year and genre
@ -180,32 +180,32 @@ OptionsEditor::OptionsEditor( TagEngine* _tagEngine, Config* _config, FileList*
tagsGridLayout->addWidget( lDiscLabel, 3, 0 ); tagsGridLayout->addWidget( lDiscLabel, 3, 0 );
iDisc = new KIntSpinBox( 0, 99, 1, 1, 10, tags, "iDisc" ); iDisc = new KIntSpinBox( 0, 99, 1, 1, 10, tags, "iDisc" );
albumdataBox->addWidget( iDisc ); albumdataBox->addWidget( iDisc );
connect( iDisc, TQT_SIGNAL(valueChanged(int)), connect( iDisc, TQ_SIGNAL(valueChanged(int)),
this, TQT_SLOT(discChanged(int)) this, TQ_SLOT(discChanged(int))
); );
pDiscEdit = new KPushButton( " ", tags, "pDiscEdit" ); pDiscEdit = new KPushButton( " ", tags, "pDiscEdit" );
pDiscEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) ); pDiscEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) );
pDiscEdit->setFixedSize( iDisc->sizeHint().height(), iDisc->sizeHint().height() ); pDiscEdit->setFixedSize( iDisc->sizeHint().height(), iDisc->sizeHint().height() );
pDiscEdit->hide(); pDiscEdit->hide();
albumdataBox->addWidget( pDiscEdit ); albumdataBox->addWidget( pDiscEdit );
connect( pDiscEdit, TQT_SIGNAL(clicked()), connect( pDiscEdit, TQ_SIGNAL(clicked()),
this, TQT_SLOT(editDiscClicked()) this, TQ_SLOT(editDiscClicked())
); );
albumdataBox->addStretch(); albumdataBox->addStretch();
lYearLabel = new TQLabel( i18n("Year:"), tags, "lYearLabel" ); lYearLabel = new TQLabel( i18n("Year:"), tags, "lYearLabel" );
albumdataBox->addWidget( lYearLabel ); albumdataBox->addWidget( lYearLabel );
iYear = new KIntSpinBox( 0, 99999, 1, TQDate::currentDate().year(), 10, tags, "iYear" ); iYear = new KIntSpinBox( 0, 99999, 1, TQDate::currentDate().year(), 10, tags, "iYear" );
albumdataBox->addWidget( iYear ); albumdataBox->addWidget( iYear );
connect( iYear, TQT_SIGNAL(valueChanged(int)), connect( iYear, TQ_SIGNAL(valueChanged(int)),
this, TQT_SLOT(yearChanged(int)) this, TQ_SLOT(yearChanged(int))
); );
pYearEdit = new KPushButton( " ", tags, "pYearEdit" ); pYearEdit = new KPushButton( " ", tags, "pYearEdit" );
pYearEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) ); pYearEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) );
pYearEdit->setFixedSize( iYear->sizeHint().height(), iYear->sizeHint().height() ); pYearEdit->setFixedSize( iYear->sizeHint().height(), iYear->sizeHint().height() );
pYearEdit->hide(); pYearEdit->hide();
albumdataBox->addWidget( pYearEdit ); albumdataBox->addWidget( pYearEdit );
connect( pYearEdit, TQT_SIGNAL(clicked()), connect( pYearEdit, TQ_SIGNAL(clicked()),
this, TQT_SLOT(editYearClicked()) this, TQ_SLOT(editYearClicked())
); );
albumdataBox->addStretch(); albumdataBox->addStretch();
lGenreLabel = new TQLabel( i18n("Genre:"), tags, "lGenreLabel" ); lGenreLabel = new TQLabel( i18n("Genre:"), tags, "lGenreLabel" );
@ -217,16 +217,16 @@ OptionsEditor::OptionsEditor( TagEngine* _tagEngine, Config* _config, FileList*
cGenreCompletion->insertItems( tagEngine->genreList ); cGenreCompletion->insertItems( tagEngine->genreList );
cGenreCompletion->setIgnoreCase( tags ); cGenreCompletion->setIgnoreCase( tags );
albumdataBox->addWidget( cGenre ); albumdataBox->addWidget( cGenre );
connect( cGenre, TQT_SIGNAL(textChanged(const TQString&)), connect( cGenre, TQ_SIGNAL(textChanged(const TQString&)),
this, TQT_SLOT(genreChanged(const TQString&)) this, TQ_SLOT(genreChanged(const TQString&))
); );
pGenreEdit = new KPushButton( " ", tags, "pGenreEdit" ); pGenreEdit = new KPushButton( " ", tags, "pGenreEdit" );
pGenreEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) ); pGenreEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) );
pGenreEdit->setFixedSize( cGenre->sizeHint().height(), cGenre->sizeHint().height() ); pGenreEdit->setFixedSize( cGenre->sizeHint().height(), cGenre->sizeHint().height() );
pGenreEdit->hide(); pGenreEdit->hide();
albumdataBox->addWidget( pGenreEdit ); albumdataBox->addWidget( pGenreEdit );
connect( pGenreEdit, TQT_SIGNAL(clicked()), connect( pGenreEdit, TQ_SIGNAL(clicked()),
this, TQT_SLOT(editGenreClicked()) this, TQ_SLOT(editGenreClicked())
); );
// add a horizontal box layout for the comment // add a horizontal box layout for the comment
@ -237,16 +237,16 @@ OptionsEditor::OptionsEditor( TagEngine* _tagEngine, Config* _config, FileList*
tagsGridLayout->addWidget( lCommentLabel, 4, 0 ); tagsGridLayout->addWidget( lCommentLabel, 4, 0 );
tComment = new KTextEdit( tags, "tComment" ); tComment = new KTextEdit( tags, "tComment" );
commentBox->addWidget( tComment ); commentBox->addWidget( tComment );
connect( tComment, TQT_SIGNAL(textChanged()), connect( tComment, TQ_SIGNAL(textChanged()),
this, TQT_SLOT(commentChanged()) this, TQ_SLOT(commentChanged())
); );
pCommentEdit = new KPushButton( " ", tags, "pCommentEdit" ); pCommentEdit = new KPushButton( " ", tags, "pCommentEdit" );
pCommentEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) ); pCommentEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) );
pCommentEdit->setFixedSize( lTitle->sizeHint().height(), lTitle->sizeHint().height() ); pCommentEdit->setFixedSize( lTitle->sizeHint().height(), lTitle->sizeHint().height() );
pCommentEdit->hide(); pCommentEdit->hide();
commentBox->addWidget( pCommentEdit ); commentBox->addWidget( pCommentEdit );
connect( pCommentEdit, TQT_SIGNAL(clicked()), connect( pCommentEdit, TQ_SIGNAL(clicked()),
this, TQT_SLOT(editCommentClicked()) this, TQ_SLOT(editCommentClicked())
); );
tagsGridLayout->setRowStretch( 4, 1 ); tagsGridLayout->setRowStretch( 4, 1 );
@ -258,8 +258,8 @@ OptionsEditor::OptionsEditor( TagEngine* _tagEngine, Config* _config, FileList*
pEditTags->setFixedWidth( pEditTags->sizeHint().width() ); pEditTags->setFixedWidth( pEditTags->sizeHint().width() );
tagsGridLayout->addWidget( pEditTags, 6, 1, TQt::AlignHCenter ); tagsGridLayout->addWidget( pEditTags, 6, 1, TQt::AlignHCenter );
pEditTags->hide(); pEditTags->hide();
connect( pEditTags, TQT_SIGNAL(clicked()), connect( pEditTags, TQ_SIGNAL(clicked()),
this, TQT_SLOT(editTagsClicked()) this, TQ_SLOT(editTagsClicked())
); );
// delete the icon loader object // delete the icon loader object
@ -349,10 +349,10 @@ void OptionsEditor::itemsSelected( TQValueList<FileListItem*> items )
setCaption( KURL::decode_string(items.first()->fileName).replace("%2f","/").replace("%%","%") ); setCaption( KURL::decode_string(items.first()->fileName).replace("%2f","/").replace("%%","%") );
// HACK ...but seems to work... // HACK ...but seems to work...
// FIXME directory does get set properly // FIXME directory does get set properly
disconnect( options, TQT_SIGNAL(optionsChanged()), 0, 0 ); disconnect( options, TQ_SIGNAL(optionsChanged()), 0, 0 );
options->setCurrentOptions( items.first()->options ); options->setCurrentOptions( items.first()->options );
connect( options, TQT_SIGNAL(optionsChanged()), connect( options, TQ_SIGNAL(optionsChanged()),
this, TQT_SLOT(optionsChanged()) this, TQ_SLOT(optionsChanged())
); );
if( items.first()->tags == 0 && !items.first()->local ) { if( items.first()->tags == 0 && !items.first()->local ) {
setTagInputEnabled( false ); setTagInputEnabled( false );
@ -466,10 +466,10 @@ void OptionsEditor::itemsSelected( TQValueList<FileListItem*> items )
if( options->isEnabled() ) { if( options->isEnabled() ) {
// HACK ...but seems to work... // HACK ...but seems to work...
// FIXME directory does get set properly // FIXME directory does get set properly
disconnect( options, TQT_SIGNAL(optionsChanged()), 0, 0 ); disconnect( options, TQ_SIGNAL(optionsChanged()), 0, 0 );
options->setCurrentOptions( items.first()->options ); options->setCurrentOptions( items.first()->options );
connect( options, TQT_SIGNAL(optionsChanged()), connect( options, TQ_SIGNAL(optionsChanged()),
this, TQT_SLOT(optionsChanged()) this, TQ_SLOT(optionsChanged())
); );
} }
if( lTitle->isEnabled() ) { if( lTitle->isEnabled() ) {

@ -59,11 +59,11 @@ OptionsRequester::OptionsRequester( Config* config, TQStringList list, TQWidget
pOk = new KPushButton( iconLoader->loadIcon("apply",TDEIcon::Small), i18n("Ok"), this, "pOk" ); pOk = new KPushButton( iconLoader->loadIcon("apply",TDEIcon::Small), i18n("Ok"), this, "pOk" );
buttonBox->addWidget( pOk ); buttonBox->addWidget( pOk );
connect( pCancel, TQT_SIGNAL(clicked()), connect( pCancel, TQ_SIGNAL(clicked()),
this, TQT_SLOT(reject()) this, TQ_SLOT(reject())
); );
connect( pOk, TQT_SIGNAL(clicked()), connect( pOk, TQ_SIGNAL(clicked()),
this, TQT_SLOT(okClicked()) this, TQ_SLOT(okClicked())
); );
// delete the icon loader object // delete the icon loader object

@ -51,11 +51,11 @@ OptionsSimple::OptionsSimple( Config* _config, OptionsDetailed* _optionsDetailed
sProfile += i18n("User defined"); sProfile += i18n("User defined");
cProfile->insertStringList( sProfile ); cProfile->insertStringList( sProfile );
topBox->addWidget( cProfile, 0, TQt::AlignVCenter ); topBox->addWidget( cProfile, 0, TQt::AlignVCenter );
connect( cProfile, TQT_SIGNAL(activated(int)), connect( cProfile, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(profileChanged()) this, TQ_SLOT(profileChanged())
); );
connect( cProfile, TQT_SIGNAL(activated(int)), connect( cProfile, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(somethingChanged()) this, TQ_SLOT(somethingChanged())
); );
topBox->addSpacing( 3 ); topBox->addSpacing( 3 );
//pProfileRemove = new TDEToolBarButton( "edit-delete", 1002, this, "pProfileRemove" ); //pProfileRemove = new TDEToolBarButton( "edit-delete", 1002, this, "pProfileRemove" );
@ -63,15 +63,15 @@ OptionsSimple::OptionsSimple( Config* _config, OptionsDetailed* _optionsDetailed
pProfileRemove->hide(); pProfileRemove->hide();
TQToolTip::add( pProfileRemove, i18n("Remove the selected profile") ); TQToolTip::add( pProfileRemove, i18n("Remove the selected profile") );
topBox->addWidget( pProfileRemove, 0, TQt::AlignVCenter ); topBox->addWidget( pProfileRemove, 0, TQt::AlignVCenter );
connect( pProfileRemove, TQT_SIGNAL(clicked()), connect( pProfileRemove, TQ_SIGNAL(clicked()),
this, TQT_SLOT(profileRemove()) this, TQ_SLOT(profileRemove())
); );
//pProfileInfo = new TDEToolBarButton( "messagebox_info", 1110, this, "pProfileInfo" ); //pProfileInfo = new TDEToolBarButton( "messagebox_info", 1110, this, "pProfileInfo" );
pProfileInfo = new KPushButton( iconLoader->loadIcon("messagebox_info",TDEIcon::Small), i18n("Info"), this, "pProfileInfo" ); pProfileInfo = new KPushButton( iconLoader->loadIcon("messagebox_info",TDEIcon::Small), i18n("Info"), this, "pProfileInfo" );
TQToolTip::add( pProfileInfo, i18n("Information about the selected profile") ); TQToolTip::add( pProfileInfo, i18n("Information about the selected profile") );
topBox->addWidget( pProfileInfo, 0, TQt::AlignVCenter ); topBox->addWidget( pProfileInfo, 0, TQt::AlignVCenter );
connect( pProfileInfo, TQT_SIGNAL(clicked()), connect( pProfileInfo, TQ_SIGNAL(clicked()),
this, TQT_SLOT(profileInfo()) this, TQ_SLOT(profileInfo())
); );
topBox->addSpacing( 18 ); topBox->addSpacing( 18 );
@ -79,19 +79,19 @@ OptionsSimple::OptionsSimple( Config* _config, OptionsDetailed* _optionsDetailed
topBox->addWidget( lFormat, 0, TQt::AlignVCenter ); topBox->addWidget( lFormat, 0, TQt::AlignVCenter );
cFormat = new KComboBox( this, "cFormat" ); cFormat = new KComboBox( this, "cFormat" );
topBox->addWidget( cFormat, 0, TQt::AlignVCenter ); topBox->addWidget( cFormat, 0, TQt::AlignVCenter );
connect( cFormat, TQT_SIGNAL(activated(int)), connect( cFormat, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(formatChanged()) this, TQ_SLOT(formatChanged())
); );
connect( cFormat, TQT_SIGNAL(activated(int)), connect( cFormat, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(somethingChanged()) this, TQ_SLOT(somethingChanged())
); );
topBox->addSpacing( 3 ); topBox->addSpacing( 3 );
//pFormatInfo = new TDEToolBarButton( "messagebox_info", 1111, this, "pFormatInfo" ); //pFormatInfo = new TDEToolBarButton( "messagebox_info", 1111, this, "pFormatInfo" );
pFormatInfo = new KPushButton( iconLoader->loadIcon("messagebox_info",TDEIcon::Small), i18n("Info"), this, "pFormatInfo" ); pFormatInfo = new KPushButton( iconLoader->loadIcon("messagebox_info",TDEIcon::Small), i18n("Info"), this, "pFormatInfo" );
TQToolTip::add( pFormatInfo, i18n("Information about the selected file format") ); TQToolTip::add( pFormatInfo, i18n("Information about the selected file format") );
topBox->addWidget( pFormatInfo, 0, TQt::AlignVCenter ); topBox->addWidget( pFormatInfo, 0, TQt::AlignVCenter );
connect( pFormatInfo, TQT_SIGNAL(clicked()), connect( pFormatInfo, TQ_SIGNAL(clicked()),
this, TQT_SLOT(formatInfo()) this, TQ_SLOT(formatInfo())
); );
topBox->addStretch( ); topBox->addStretch( );
@ -100,17 +100,17 @@ OptionsSimple::OptionsSimple( Config* _config, OptionsDetailed* _optionsDetailed
outputDirectory = new OutputDirectory( config, this, "outputDirectory" ); outputDirectory = new OutputDirectory( config, this, "outputDirectory" );
middleBox->addWidget( outputDirectory, 0, TQt::AlignVCenter ); middleBox->addWidget( outputDirectory, 0, TQt::AlignVCenter );
connect( outputDirectory, TQT_SIGNAL(modeChanged(OutputDirectory::Mode)), connect( outputDirectory, TQ_SIGNAL(modeChanged(OutputDirectory::Mode)),
this, TQT_SLOT(outputDirectoryModeChanged(OutputDirectory::Mode)) this, TQ_SLOT(outputDirectoryModeChanged(OutputDirectory::Mode))
); );
connect( outputDirectory, TQT_SIGNAL(directoryChanged(const TQString&)), connect( outputDirectory, TQ_SIGNAL(directoryChanged(const TQString&)),
this, TQT_SLOT(outputDirectoryPathChanged(const TQString&)) this, TQ_SLOT(outputDirectoryPathChanged(const TQString&))
); );
connect( outputDirectory, TQT_SIGNAL(modeChanged(OutputDirectory::Mode)), connect( outputDirectory, TQ_SIGNAL(modeChanged(OutputDirectory::Mode)),
this, TQT_SLOT(somethingChanged()) this, TQ_SLOT(somethingChanged())
); );
connect( outputDirectory, TQT_SIGNAL(directoryChanged(const TQString&)), connect( outputDirectory, TQ_SIGNAL(directoryChanged(const TQString&)),
this, TQT_SLOT(somethingChanged()) this, TQ_SLOT(somethingChanged())
); );
TQHBoxLayout *bottomBox = new TQHBoxLayout( ); TQHBoxLayout *bottomBox = new TQHBoxLayout( );

@ -49,47 +49,47 @@ OutputDirectory::OutputDirectory( Config* _config, TQWidget* parent, const char*
cMode->insertItem( i18n("Copy directory structure") ); cMode->insertItem( i18n("Copy directory structure") );
//TQToolTip::add( cMode, i18n("Output all converted files into...") ); //TQToolTip::add( cMode, i18n("Output all converted files into...") );
box->addWidget( cMode ); box->addWidget( cMode );
connect( cMode, TQT_SIGNAL(activated(int)), connect( cMode, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(modeChangedSlot(int)) this, TQ_SLOT(modeChangedSlot(int))
); );
modeJustChanged = false; modeJustChanged = false;
/*pModeInfo = new TDEToolBarButton( "messagebox_info", 1010, this, "pModeInfo" ); /*pModeInfo = new TDEToolBarButton( "messagebox_info", 1010, this, "pModeInfo" );
TQToolTip::add( pModeInfo, i18n("Information about the output mode") ); TQToolTip::add( pModeInfo, i18n("Information about the output mode") );
box->addWidget( pModeInfo ); box->addWidget( pModeInfo );
connect( pModeInfo, TQT_SIGNAL(clicked()), connect( pModeInfo, TQ_SIGNAL(clicked()),
this, TQT_SLOT(modeInfo()) this, TQ_SLOT(modeInfo())
);*/ );*/
pClear = new TDEToolBarButton( "locationbar_erase", 1001, this, "pClear" ); pClear = new TDEToolBarButton( "locationbar_erase", 1001, this, "pClear" );
TQToolTip::add( pClear, i18n("Clear the directory input field") ); TQToolTip::add( pClear, i18n("Clear the directory input field") );
box->addWidget( pClear ); box->addWidget( pClear );
lDir = new KLineEdit( this, "lDir" ); lDir = new KLineEdit( this, "lDir" );
box->addWidget( lDir ); box->addWidget( lDir );
connect( lDir, TQT_SIGNAL(textChanged(const TQString&)), connect( lDir, TQ_SIGNAL(textChanged(const TQString&)),
this, TQT_SLOT(directoryChangedSlot(const TQString&)) this, TQ_SLOT(directoryChangedSlot(const TQString&))
); );
connect( pClear, TQT_SIGNAL(clicked()), connect( pClear, TQ_SIGNAL(clicked()),
lDir, TQT_SLOT(setFocus()) lDir, TQ_SLOT(setFocus())
); );
connect( pClear, TQT_SIGNAL(clicked()), connect( pClear, TQ_SIGNAL(clicked()),
lDir, TQT_SLOT(clear()) lDir, TQ_SLOT(clear())
); );
/*pDirInfo = new TDEToolBarButton( "messagebox_info", 1011, this, "pDirInfo" ); /*pDirInfo = new TDEToolBarButton( "messagebox_info", 1011, this, "pDirInfo" );
TQToolTip::add( pDirInfo, i18n("Information about the wildcards") ); TQToolTip::add( pDirInfo, i18n("Information about the wildcards") );
box->addWidget( pDirInfo ); box->addWidget( pDirInfo );
connect( pDirInfo, TQT_SIGNAL(clicked()), connect( pDirInfo, TQ_SIGNAL(clicked()),
this, TQT_SLOT(dirInfo()) this, TQ_SLOT(dirInfo())
);*/ );*/
pDirSelect = new TDEToolBarButton( "folder", 1012, this, "pDirSelect" ); pDirSelect = new TDEToolBarButton( "folder", 1012, this, "pDirSelect" );
TQToolTip::add( pDirSelect, i18n("Choose an output directory") ); TQToolTip::add( pDirSelect, i18n("Choose an output directory") );
box->addWidget( pDirSelect ); box->addWidget( pDirSelect );
connect( pDirSelect, TQT_SIGNAL(clicked()), connect( pDirSelect, TQ_SIGNAL(clicked()),
this, TQT_SLOT(selectDir()) this, TQ_SLOT(selectDir())
); );
pDirGoto = new TDEToolBarButton( "konqueror", 1013, this, "pDirGoto" ); pDirGoto = new TDEToolBarButton( "konqueror", 1013, this, "pDirGoto" );
TQToolTip::add( pDirGoto, i18n("Open Konqueror with the output directory") ); TQToolTip::add( pDirGoto, i18n("Open Konqueror with the output directory") );
box->addWidget( pDirGoto ); box->addWidget( pDirGoto );
connect( pDirGoto, TQT_SIGNAL(clicked()), connect( pDirGoto, TQ_SIGNAL(clicked()),
this, TQT_SLOT(gotoDir()) this, TQ_SLOT(gotoDir())
); );
// delete the icon loader object // delete the icon loader object

@ -203,20 +203,20 @@ ReplayGainFileList::ReplayGainFileList( TagEngine* _tagEngine, Config* _config,
grid->setColStretch( 1, 2 ); grid->setColStretch( 1, 2 );
contextMenu = new TDEPopupMenu( this ); contextMenu = new TDEPopupMenu( this );
connect( this, TQT_SIGNAL(contextMenuRequested(TQListViewItem*,const TQPoint&,int)), connect( this, TQ_SIGNAL(contextMenuRequested(TQListViewItem*,const TQPoint&,int)),
this, TQT_SLOT(showContextMenu(TQListViewItem*,const TQPoint&,int)) this, TQ_SLOT(showContextMenu(TQListViewItem*,const TQPoint&,int))
); );
// we haven't got access to the action collection of soundKonverter, so let's create a new one // we haven't got access to the action collection of soundKonverter, so let's create a new one
actionCollection = new TDEActionCollection( this ); actionCollection = new TDEActionCollection( this );
calc_gain = new TDEAction( i18n("Calculate Replay Gain tags"), "apply", 0, this, TQT_SLOT(calcSelectedItemsGain()), actionCollection, "calc_album" ); calc_gain = new TDEAction( i18n("Calculate Replay Gain tags"), "apply", 0, this, TQ_SLOT(calcSelectedItemsGain()), actionCollection, "calc_album" );
remove_gain = new TDEAction( i18n("Remove Replay Gain tags"), "cancel", 0, this, TQT_SLOT(removeSelectedItemsGain()), actionCollection, "remove_gain" ); remove_gain = new TDEAction( i18n("Remove Replay Gain tags"), "cancel", 0, this, TQ_SLOT(removeSelectedItemsGain()), actionCollection, "remove_gain" );
remove = new TDEAction( i18n("Remove"), "edittrash", Key_Delete, this, TQT_SLOT(removeSelectedItems()), actionCollection, "remove" ); remove = new TDEAction( i18n("Remove"), "edittrash", Key_Delete, this, TQ_SLOT(removeSelectedItems()), actionCollection, "remove" );
paste = new TDEAction( i18n("Paste"), "edit-paste", 0, this, 0, actionCollection, "paste" ); paste = new TDEAction( i18n("Paste"), "edit-paste", 0, this, 0, actionCollection, "paste" );
newalbum = new TDEAction( i18n("New album"), "document-new", 0, this, TQT_SLOT(createNewAlbum()), actionCollection, "newalbum" ); newalbum = new TDEAction( i18n("New album"), "document-new", 0, this, TQ_SLOT(createNewAlbum()), actionCollection, "newalbum" );
open_albums = new TDEAction( i18n("Open all albums"), "view_tree", 0, this, TQT_SLOT(openAlbums()), actionCollection, "open_albums" ); open_albums = new TDEAction( i18n("Open all albums"), "view_tree", 0, this, TQ_SLOT(openAlbums()), actionCollection, "open_albums" );
close_albums = new TDEAction( i18n("Cloase all albums"), "view_text", 0, this, TQT_SLOT(closeAlbums()), actionCollection, "close_albums" ); close_albums = new TDEAction( i18n("Cloase all albums"), "view_text", 0, this, TQ_SLOT(closeAlbums()), actionCollection, "close_albums" );
replayGain = new ReplayGain( config, logger ); replayGain = new ReplayGain( config, logger );
@ -229,27 +229,27 @@ ReplayGainFileList::ReplayGainFileList( TagEngine* _tagEngine, Config* _config,
// "<br><a href=\"documenation:replaygaintool\">Learn more about Replay Gain ...</a><br/>" // "<br><a href=\"documenation:replaygaintool\">Learn more about Replay Gain ...</a><br/>"
"</div>" ), TQApplication::font() ); "</div>" ), TQApplication::font() );
connect( header(), TQT_SIGNAL(sizeChange( int, int, int )), connect( header(), TQ_SIGNAL(sizeChange( int, int, int )),
TQT_SLOT(columnResizeEvent( int, int, int )) TQ_SLOT(columnResizeEvent( int, int, int ))
); );
connect( this, TQT_SIGNAL( dropped(TQDropEvent*, TQListViewItem*, TQListViewItem*) ), connect( this, TQ_SIGNAL( dropped(TQDropEvent*, TQListViewItem*, TQListViewItem*) ),
TQT_SLOT( slotDropped(TQDropEvent*, TQListViewItem*, TQListViewItem*) ) TQ_SLOT( slotDropped(TQDropEvent*, TQListViewItem*, TQListViewItem*) )
); );
process = new TDEProcess(); process = new TDEProcess();
connect( process, TQT_SIGNAL(receivedStdout(TDEProcess*,char*,int)), connect( process, TQ_SIGNAL(receivedStdout(TDEProcess*,char*,int)),
this, TQT_SLOT(processOutput(TDEProcess*,char*,int)) this, TQ_SLOT(processOutput(TDEProcess*,char*,int))
); );
connect( process, TQT_SIGNAL(receivedStderr(TDEProcess*,char*,int)), connect( process, TQ_SIGNAL(receivedStderr(TDEProcess*,char*,int)),
this, TQT_SLOT(processOutput(TDEProcess*,char*,int)) this, TQ_SLOT(processOutput(TDEProcess*,char*,int))
); );
connect( process, TQT_SIGNAL(processExited(TDEProcess*)), connect( process, TQ_SIGNAL(processExited(TDEProcess*)),
this, TQT_SLOT(processExit(TDEProcess*)) this, TQ_SLOT(processExit(TDEProcess*))
); );
tUpdateProgress = new TQTimer( this, "tUpdateProgress" ); tUpdateProgress = new TQTimer( this, "tUpdateProgress" );
connect( tUpdateProgress, TQT_SIGNAL(timeout()), connect( tUpdateProgress, TQ_SIGNAL(timeout()),
this, TQT_SLOT(update()) this, TQ_SLOT(update())
); );
} }

@ -43,8 +43,8 @@ ReplayGainScanner::ReplayGainScanner( TagEngine* _tagEngine, Config* _config, Lo
cAdd->insertItem( iconLoader->loadIcon("folder",TDEIcon::Small),i18n("Add Folder ...") ); cAdd->insertItem( iconLoader->loadIcon("folder",TDEIcon::Small),i18n("Add Folder ...") );
cAdd->insertItem( iconLoader->loadIcon("audio-x-generic",TDEIcon::Small),i18n("Add Files ...") ); cAdd->insertItem( iconLoader->loadIcon("audio-x-generic",TDEIcon::Small),i18n("Add Files ...") );
filterBox->addWidget( cAdd ); filterBox->addWidget( cAdd );
connect( cAdd, TQT_SIGNAL(clicked(int)), connect( cAdd, TQ_SIGNAL(clicked(int)),
this, TQT_SLOT(addClicked(int)) this, TQ_SLOT(addClicked(int))
); );
filterBox->addStretch(); filterBox->addStretch();
@ -65,29 +65,29 @@ ReplayGainScanner::ReplayGainScanner( TagEngine* _tagEngine, Config* _config, Lo
lList = new ReplayGainFileList( tagEngine, config, logger, this, "lList" ); lList = new ReplayGainFileList( tagEngine, config, logger, this, "lList" );
grid->addWidget( lList, 1, 0 ); grid->addWidget( lList, 1, 0 );
connect( this, TQT_SIGNAL(addFile(const TQString&)), connect( this, TQ_SIGNAL(addFile(const TQString&)),
lList, TQT_SLOT(addFile(const TQString&)) lList, TQ_SLOT(addFile(const TQString&))
); );
connect( this, TQT_SIGNAL(addDir(const TQString&,const TQStringList&,bool)), connect( this, TQ_SIGNAL(addDir(const TQString&,const TQStringList&,bool)),
lList, TQT_SLOT(addDir(const TQString&,const TQStringList&,bool)) lList, TQ_SLOT(addDir(const TQString&,const TQStringList&,bool))
); );
connect( this, TQT_SIGNAL(calcAllReplayGain(bool)), connect( this, TQ_SIGNAL(calcAllReplayGain(bool)),
lList, TQT_SLOT(calcAllReplayGain(bool)) lList, TQ_SLOT(calcAllReplayGain(bool))
); );
connect( this, TQT_SIGNAL(removeAllReplayGain()), connect( this, TQ_SIGNAL(removeAllReplayGain()),
lList, TQT_SLOT(removeAllReplayGain()) lList, TQ_SLOT(removeAllReplayGain())
); );
connect( this, TQT_SIGNAL(cancelProcess()), connect( this, TQ_SIGNAL(cancelProcess()),
lList, TQT_SLOT(cancelProcess()) lList, TQ_SLOT(cancelProcess())
); );
connect( lList, TQT_SIGNAL(processStarted()), connect( lList, TQ_SIGNAL(processStarted()),
this, TQT_SLOT(processStarted()) this, TQ_SLOT(processStarted())
); );
connect( lList, TQT_SIGNAL(processStopped()), connect( lList, TQ_SIGNAL(processStopped()),
this, TQT_SLOT(processStopped()) this, TQ_SLOT(processStopped())
); );
connect( lList, TQT_SIGNAL(updateProgress(int,int)), connect( lList, TQ_SIGNAL(updateProgress(int,int)),
this, TQT_SLOT(updateProgress(int,int)) this, TQ_SLOT(updateProgress(int,int))
); );
TQHBoxLayout* progressBox = new TQHBoxLayout(); TQHBoxLayout* progressBox = new TQHBoxLayout();
@ -102,22 +102,22 @@ ReplayGainScanner::ReplayGainScanner( TagEngine* _tagEngine, Config* _config, Lo
pTagVisible = new KPushButton( iconLoader->loadIcon("apply",TDEIcon::Small), i18n("Tag untagged"), this, "pTagVisible" ); pTagVisible = new KPushButton( iconLoader->loadIcon("apply",TDEIcon::Small), i18n("Tag untagged"), this, "pTagVisible" );
TQToolTip::add( pTagVisible, i18n("Calculate Replay Gain tag for all files in the file list without Replay Gain tag.") ); TQToolTip::add( pTagVisible, i18n("Calculate Replay Gain tag for all files in the file list without Replay Gain tag.") );
buttonBox->addWidget( pTagVisible ); buttonBox->addWidget( pTagVisible );
connect( pTagVisible, TQT_SIGNAL(clicked()), connect( pTagVisible, TQ_SIGNAL(clicked()),
this, TQT_SLOT(calcReplayGainClicked()) this, TQ_SLOT(calcReplayGainClicked())
); );
pRemoveTag = new KPushButton( iconLoader->loadIcon("cancel",TDEIcon::Small), i18n("Untag tagged"), this, "pRemoveTag" ); pRemoveTag = new KPushButton( iconLoader->loadIcon("cancel",TDEIcon::Small), i18n("Untag tagged"), this, "pRemoveTag" );
TQToolTip::add( pRemoveTag, i18n("Remove the Replay Gain tag from all files in the file list.") ); TQToolTip::add( pRemoveTag, i18n("Remove the Replay Gain tag from all files in the file list.") );
buttonBox->addWidget( pRemoveTag ); buttonBox->addWidget( pRemoveTag );
connect( pRemoveTag, TQT_SIGNAL(clicked()), connect( pRemoveTag, TQ_SIGNAL(clicked()),
this, TQT_SLOT(removeReplayGainClicked()) this, TQ_SLOT(removeReplayGainClicked())
); );
pCancel = new KPushButton( iconLoader->loadIcon("cancel",TDEIcon::Small),i18n("Cancel"), this, "pCancel" ); pCancel = new KPushButton( iconLoader->loadIcon("cancel",TDEIcon::Small),i18n("Cancel"), this, "pCancel" );
pCancel->hide(); pCancel->hide();
buttonBox->addWidget( pCancel ); buttonBox->addWidget( pCancel );
connect( pCancel, TQT_SIGNAL(clicked()), connect( pCancel, TQ_SIGNAL(clicked()),
this, TQT_SLOT(cancelClicked()) this, TQ_SLOT(cancelClicked())
); );
buttonBox->addStretch(); buttonBox->addStretch();
@ -125,8 +125,8 @@ ReplayGainScanner::ReplayGainScanner( TagEngine* _tagEngine, Config* _config, Lo
pOk = new KPushButton( iconLoader->loadIcon("system-log-out",TDEIcon::Small), i18n("Close"), this, "pOk" ); pOk = new KPushButton( iconLoader->loadIcon("system-log-out",TDEIcon::Small), i18n("Close"), this, "pOk" );
pOk->setFocus(); pOk->setFocus();
buttonBox->addWidget( pOk ); buttonBox->addWidget( pOk );
connect( pOk, TQT_SIGNAL(clicked()), connect( pOk, TQ_SIGNAL(clicked()),
this, TQT_SLOT(accept()) this, TQ_SLOT(accept())
); );
// delete the icon loader object // delete the icon loader object

@ -113,17 +113,17 @@ soundKonverter::soundKonverter()
options = new Options( config, i18n("Choose your prefered output options and click on \"Add files ...\"!"), widget, "options" ); options = new Options( config, i18n("Choose your prefered output options and click on \"Add files ...\"!"), widget, "options" );
fileList = new FileList( cdManager, tagEngine, config, options, logger, widget, "fileList" ); fileList = new FileList( cdManager, tagEngine, config, options, logger, widget, "fileList" );
startAction = new TDEAction( i18n("&Start conversion"), "system-run", 0, fileList, TQT_SLOT(startConversion()), actionCollection(), "start" ); startAction = new TDEAction( i18n("&Start conversion"), "system-run", 0, fileList, TQ_SLOT(startConversion()), actionCollection(), "start" );
startAction->setEnabled( false ); startAction->setEnabled( false );
new TDEAction( i18n("&Replay Gain Tool ..."), "soundkonverter_replaygain", CTRL+Key_R, this, TQT_SLOT(showReplayGainScanner()), actionCollection(), "replaygainscanner" ); new TDEAction( i18n("&Replay Gain Tool ..."), "soundkonverter_replaygain", CTRL+Key_R, this, TQ_SLOT(showReplayGainScanner()), actionCollection(), "replaygainscanner" );
//new TDEAction( i18n("R&epair Tool ..."), "soundkonverter_repair", CTRL+Key_E, this, TQT_SLOT(showRepairTool()), actionCollection(), "repairtool" ); //new TDEAction( i18n("R&epair Tool ..."), "soundkonverter_repair", CTRL+Key_E, this, TQ_SLOT(showRepairTool()), actionCollection(), "repairtool" );
new TDEAction( i18n("C&uesheet Editor ..."), "kwrite", CTRL+Key_U, this, TQT_SLOT(showCuesheetEditor()), actionCollection(), "cuesheeteditor" ); new TDEAction( i18n("C&uesheet Editor ..."), "kwrite", CTRL+Key_U, this, TQ_SLOT(showCuesheetEditor()), actionCollection(), "cuesheeteditor" );
new TDEAction( i18n("Show &Log ..."), "view_text", CTRL+Key_L, this, TQT_SLOT(showLogViewer()), actionCollection(), "log" ); new TDEAction( i18n("Show &Log ..."), "view_text", CTRL+Key_L, this, TQ_SLOT(showLogViewer()), actionCollection(), "log" );
// new TDEAction( i18n("About &Plugins ..."), "connect_creating", CTRL+Key_P, this, TQT_SLOT(showAboutPlugins()), actionCollection(), "about_plugins" ); // new TDEAction( i18n("About &Plugins ..."), "connect_creating", CTRL+Key_P, this, TQ_SLOT(showAboutPlugins()), actionCollection(), "about_plugins" );
stopAction = new TDEAction( i18n("S&top after current file is complete"), "process-stop", CTRL+Key_O, fileList, TQT_SLOT(stopConversion()), actionCollection(), "stop" ); stopAction = new TDEAction( i18n("S&top after current file is complete"), "process-stop", CTRL+Key_O, fileList, TQ_SLOT(stopConversion()), actionCollection(), "stop" );
continueAction = new TDEAction( i18n("&Continue after current file is complete"), "system-run", CTRL+Key_T, fileList, TQT_SLOT(continueConversion()), actionCollection(), "continue" ); continueAction = new TDEAction( i18n("&Continue after current file is complete"), "system-run", CTRL+Key_T, fileList, TQ_SLOT(continueConversion()), actionCollection(), "continue" );
killAction = new TDEAction( i18n("Stop &immediately"), "system-log-out", CTRL+Key_K, fileList, TQT_SLOT(killConversion()), actionCollection(), "kill" ); killAction = new TDEAction( i18n("Stop &immediately"), "system-log-out", CTRL+Key_K, fileList, TQ_SLOT(killConversion()), actionCollection(), "kill" );
stopActionMenu = new TDEActionMenu( i18n("Stop"), "process-stop", actionCollection(), "stopMenu" ); stopActionMenu = new TDEActionMenu( i18n("Stop"), "process-stop", actionCollection(), "stopMenu" );
stopActionMenu->setDelayed( false ); stopActionMenu->setDelayed( false );
stopActionMenu->setEnabled( false ); stopActionMenu->setEnabled( false );
@ -131,16 +131,16 @@ soundKonverter::soundKonverter()
// stopActionMenu->insert( continueAction ); // stopActionMenu->insert( continueAction );
// stopActionMenu->insert( killAction ); // stopActionMenu->insert( killAction );
/* veryHighPriorityAction = new TDEToggleAction( i18n("Very hi&gh"), CTRL+Key_1, this, TQT_SLOT(priorityChanged()), actionCollection(), "veryhigh" ); /* veryHighPriorityAction = new TDEToggleAction( i18n("Very hi&gh"), CTRL+Key_1, this, TQ_SLOT(priorityChanged()), actionCollection(), "veryhigh" );
veryHighPriorityAction->setExclusiveGroup("priorityActionMenu"); veryHighPriorityAction->setExclusiveGroup("priorityActionMenu");
highPriorityAction = new TDEToggleAction( i18n("&High"), CTRL+Key_2, this, TQT_SLOT(priorityChanged()), actionCollection(), "high" ); highPriorityAction = new TDEToggleAction( i18n("&High"), CTRL+Key_2, this, TQ_SLOT(priorityChanged()), actionCollection(), "high" );
highPriorityAction->setExclusiveGroup("priorityActionMenu"); highPriorityAction->setExclusiveGroup("priorityActionMenu");
normalPriorityAction = new TDEToggleAction( i18n("&Normal"), CTRL+Key_3, this, TQT_SLOT(priorityChanged()), actionCollection(), "nomal" ); normalPriorityAction = new TDEToggleAction( i18n("&Normal"), CTRL+Key_3, this, TQ_SLOT(priorityChanged()), actionCollection(), "nomal" );
normalPriorityAction->setExclusiveGroup("priorityActionMenu"); normalPriorityAction->setExclusiveGroup("priorityActionMenu");
normalPriorityAction->setChecked(true); normalPriorityAction->setChecked(true);
lowPriorityAction = new TDEToggleAction( i18n("&Low"), CTRL+Key_4, this, TQT_SLOT(priorityChanged()), actionCollection(), "low" ); lowPriorityAction = new TDEToggleAction( i18n("&Low"), CTRL+Key_4, this, TQ_SLOT(priorityChanged()), actionCollection(), "low" );
lowPriorityAction->setExclusiveGroup("priorityActionMenu"); lowPriorityAction->setExclusiveGroup("priorityActionMenu");
veryLowPriorityAction = new TDEToggleAction( i18n("Very lo&w"), CTRL+Key_5, this, TQT_SLOT(priorityChanged()), actionCollection(), "verylow" ); veryLowPriorityAction = new TDEToggleAction( i18n("Very lo&w"), CTRL+Key_5, this, TQ_SLOT(priorityChanged()), actionCollection(), "verylow" );
veryLowPriorityAction->setExclusiveGroup("priorityActionMenu"); veryLowPriorityAction->setExclusiveGroup("priorityActionMenu");
priorityActionMenu = new TDEActionMenu( i18n("En-/Decoder priority"), "ksysguard", actionCollection(), "priorityMenu" ); priorityActionMenu = new TDEActionMenu( i18n("En-/Decoder priority"), "ksysguard", actionCollection(), "priorityMenu" );
priorityActionMenu->setDelayed( false ); priorityActionMenu->setDelayed( false );
@ -151,22 +151,22 @@ soundKonverter::soundKonverter()
priorityActionMenu->insert(veryLowPriorityAction);*/ priorityActionMenu->insert(veryLowPriorityAction);*/
//priorityChanged(); //priorityChanged();
new TDEAction( i18n("A&dd Files ..."), "audio-x-generic", CTRL+Key_D, this, TQT_SLOT(showFileDialog()), actionCollection(), "add_files" ); new TDEAction( i18n("A&dd Files ..."), "audio-x-generic", CTRL+Key_D, this, TQ_SLOT(showFileDialog()), actionCollection(), "add_files" );
new TDEAction( i18n("Add &Folder ..."), "audio-x-generic", CTRL+Key_F, this, TQT_SLOT(showDirDialog()), actionCollection(), "add_folder" ); new TDEAction( i18n("Add &Folder ..."), "audio-x-generic", CTRL+Key_F, this, TQ_SLOT(showDirDialog()), actionCollection(), "add_folder" );
new TDEAction( i18n("Add CD &tracks ..."), "media-optical-cdaudio-unmounted", CTRL+Key_T, this, TQT_SLOT(showCdDialog()), actionCollection(), "add_audiocd" ); new TDEAction( i18n("Add CD &tracks ..."), "media-optical-cdaudio-unmounted", CTRL+Key_T, this, TQ_SLOT(showCdDialog()), actionCollection(), "add_audiocd" );
new TDEAction( i18n("Add &URL ..."), "browser", CTRL+Key_U, this, TQT_SLOT(showUrlDialog()), actionCollection(), "add_url" ); new TDEAction( i18n("Add &URL ..."), "browser", CTRL+Key_U, this, TQ_SLOT(showUrlDialog()), actionCollection(), "add_url" );
KStdAction::quit(this, TQT_SLOT(close()), actionCollection()); KStdAction::quit(this, TQ_SLOT(close()), actionCollection());
new TDEAction( i18n("L&oad file list"), "document-open", 0, fileList, TQT_SLOT(load()), actionCollection(), "load" ); new TDEAction( i18n("L&oad file list"), "document-open", 0, fileList, TQ_SLOT(load()), actionCollection(), "load" );
new TDEAction( i18n("Sa&ve file list"), "document-save", 0, fileList, TQT_SLOT(save()), actionCollection(), "save" ); new TDEAction( i18n("Sa&ve file list"), "document-save", 0, fileList, TQ_SLOT(save()), actionCollection(), "save" );
// TODO //KStdAction::paste( this, TQT_SLOT(pasteFiles()), actionCollection() ); // TODO //KStdAction::paste( this, TQ_SLOT(pasteFiles()), actionCollection() );
KStdAction::preferences( this, TQT_SLOT(showConfigDialog()), actionCollection() ); KStdAction::preferences( this, TQ_SLOT(showConfigDialog()), actionCollection() );
showToolBarAction = KStdAction::showToolbar( this, TQT_SLOT(showToolbar()), actionCollection() ); showToolBarAction = KStdAction::showToolbar( this, TQ_SLOT(showToolbar()), actionCollection() );
//KStdAction::showStatusbar( 0, 0, actionCollection() ); //KStdAction::showStatusbar( 0, 0, actionCollection() );
KStdAction::configureToolbars( this, TQT_SLOT(editToolbar()), actionCollection() ); KStdAction::configureToolbars( this, TQ_SLOT(editToolbar()), actionCollection() );
createGUI(); createGUI();
@ -185,11 +185,11 @@ soundKonverter::soundKonverter()
// generate the options input area // generate the options input area
// NOTE created above because of some dependences // NOTE created above because of some dependences
//options = new Options( config, i18n("Choose your prefered output options and click on \"Add files ...\"!"), this, "options" ); //options = new Options( config, i18n("Choose your prefered output options and click on \"Add files ...\"!"), this, "options" );
connect( options, TQT_SIGNAL(showConfigPluginsPage()), connect( options, TQ_SIGNAL(showConfigPluginsPage()),
this, TQT_SLOT(showConfigPluginsPage()) this, TQ_SLOT(showConfigPluginsPage())
); );
connect( options, TQT_SIGNAL(showConfigEnvironmentPage()), connect( options, TQ_SIGNAL(showConfigEnvironmentPage()),
this, TQT_SLOT(showConfigEnvironmentPage()) this, TQ_SLOT(showConfigEnvironmentPage())
); );
gridLayout->addWidget( options, 0, 0 ); gridLayout->addWidget( options, 0, 0 );
@ -198,28 +198,28 @@ soundKonverter::soundKonverter()
//fileList = new FileList( cdManager, tagEngine, config, options, this, "fileList" ); //fileList = new FileList( cdManager, tagEngine, config, options, this, "fileList" );
gridLayout->addWidget( fileList, 1, 0 ); gridLayout->addWidget( fileList, 1, 0 );
gridLayout->setRowStretch( 1, 1 ); gridLayout->setRowStretch( 1, 1 );
/*connect( this, TQT_SIGNAL(windowMoved(int,int)), /*connect( this, TQ_SIGNAL(windowMoved(int,int)),
fileList, TQT_SLOT(moveOptionsEditor(int,int)) fileList, TQ_SLOT(moveOptionsEditor(int,int))
);*/ );*/
connect( fileList, TQT_SIGNAL(fileCountChanged(int)), connect( fileList, TQ_SIGNAL(fileCountChanged(int)),
this, TQT_SLOT(fileCountChanged(int)) this, TQ_SLOT(fileCountChanged(int))
); );
connect( fileList, TQT_SIGNAL(startedConversion()), connect( fileList, TQ_SIGNAL(startedConversion()),
this, TQT_SLOT(startedConversion()) this, TQ_SLOT(startedConversion())
); );
connect( fileList, TQT_SIGNAL(stopClicked()), connect( fileList, TQ_SIGNAL(stopClicked()),
this, TQT_SLOT(stopClicked()) this, TQ_SLOT(stopClicked())
); );
connect( fileList, TQT_SIGNAL(continueClicked()), connect( fileList, TQ_SIGNAL(continueClicked()),
this, TQT_SLOT(continueClicked()) this, TQ_SLOT(continueClicked())
); );
connect( fileList, TQT_SIGNAL(stoppedConversion()), connect( fileList, TQ_SIGNAL(stoppedConversion()),
this, TQT_SLOT(stoppedConversion()) this, TQ_SLOT(stoppedConversion())
); );
convert = new Convert( config, tagEngine, cdManager, fileList, logger ); convert = new Convert( config, tagEngine, cdManager, fileList, logger );
// connect( this, TQT_SIGNAL(setPriority(int)), // connect( this, TQ_SIGNAL(setPriority(int)),
// convert, TQT_SLOT(priorityChanged(int)) // convert, TQ_SLOT(priorityChanged(int))
// ); // );
// add a horizontal box layout for the add combobutton to the grid // add a horizontal box layout for the add combobutton to the grid
@ -237,8 +237,8 @@ soundKonverter::soundKonverter()
cAdd->insertItem( iconLoader->loadIcon("media-optical-cdaudio-unmounted",TDEIcon::Toolbar), i18n("Add CD tracks ...") ); cAdd->insertItem( iconLoader->loadIcon("media-optical-cdaudio-unmounted",TDEIcon::Toolbar), i18n("Add CD tracks ...") );
cAdd->insertItem( iconLoader->loadIcon("browser",TDEIcon::Toolbar), i18n("Add URL ...") ); cAdd->insertItem( iconLoader->loadIcon("browser",TDEIcon::Toolbar), i18n("Add URL ...") );
addBox->addWidget( cAdd ); addBox->addWidget( cAdd );
connect( cAdd, TQT_SIGNAL(clicked(int)), connect( cAdd, TQ_SIGNAL(clicked(int)),
this, TQT_SLOT(addClicked(int)) this, TQ_SLOT(addClicked(int))
); );
addBox->addSpacing( 18 ); addBox->addSpacing( 18 );
@ -247,8 +247,8 @@ soundKonverter::soundKonverter()
pStart->setFixedHeight( pStart->size().height() ); pStart->setFixedHeight( pStart->size().height() );
pStart->setEnabled( false ); pStart->setEnabled( false );
addBox->addWidget( pStart ); addBox->addWidget( pStart );
connect( pStart, TQT_SIGNAL(clicked()), connect( pStart, TQ_SIGNAL(clicked()),
fileList, TQT_SLOT(startConversion()) fileList, TQ_SLOT(startConversion())
); );
pStop = new KPushButton( iconLoader->loadIcon("process-stop",TDEIcon::Small), i18n("Stop"), widget, "pStop" ); pStop = new KPushButton( iconLoader->loadIcon("process-stop",TDEIcon::Small), i18n("Stop"), widget, "pStop" );
@ -261,29 +261,29 @@ soundKonverter::soundKonverter()
progressIndicator = new ProgressIndicator( systemTray, widget, "progressIndicator" ); progressIndicator = new ProgressIndicator( systemTray, widget, "progressIndicator" );
addBox->addWidget( progressIndicator ); addBox->addWidget( progressIndicator );
connect( fileList, TQT_SIGNAL(increaseTime(float)), connect( fileList, TQ_SIGNAL(increaseTime(float)),
progressIndicator, TQT_SLOT(increaseTime(float)) progressIndicator, TQ_SLOT(increaseTime(float))
); );
connect( fileList, TQT_SIGNAL(decreaseTime(float)), connect( fileList, TQ_SIGNAL(decreaseTime(float)),
progressIndicator, TQT_SLOT(decreaseTime(float)) progressIndicator, TQ_SLOT(decreaseTime(float))
); );
/*connect( fileList, TQT_SIGNAL(setTime(float)), /*connect( fileList, TQ_SIGNAL(setTime(float)),
progressIndicator, TQT_SLOT(setTime(float)) progressIndicator, TQ_SLOT(setTime(float))
);*/ );*/
connect( fileList, TQT_SIGNAL(finished(float)), connect( fileList, TQ_SIGNAL(finished(float)),
progressIndicator, TQT_SLOT(finished(float)) progressIndicator, TQ_SLOT(finished(float))
); );
connect( convert, TQT_SIGNAL(countTime(float)), connect( convert, TQ_SIGNAL(countTime(float)),
progressIndicator, TQT_SLOT(countTime(float)) progressIndicator, TQ_SLOT(countTime(float))
); );
connect( convert, TQT_SIGNAL(uncountTime(float)), connect( convert, TQ_SIGNAL(uncountTime(float)),
progressIndicator, TQT_SLOT(uncountTime(float)) progressIndicator, TQ_SLOT(uncountTime(float))
); );
connect( convert, TQT_SIGNAL(update(float)), connect( convert, TQ_SIGNAL(update(float)),
progressIndicator, TQT_SLOT(update(float)) progressIndicator, TQ_SLOT(update(float))
); );
connect( progressIndicator, TQT_SIGNAL(setTitle(const TQString&)), connect( progressIndicator, TQ_SIGNAL(setTitle(const TQString&)),
this, TQT_SLOT(setTitle(const TQString&)) this, TQ_SLOT(setTitle(const TQString&))
); );
cAdd->increaseHeight( /*progressIndicator->height() - cAdd->height()*/ 10 ); // FIXME detect the height automaticly cAdd->increaseHeight( /*progressIndicator->height() - cAdd->height()*/ 10 ); // FIXME detect the height automaticly
@ -340,11 +340,11 @@ void soundKonverter::openArgFiles( const TQStringList &files )
{ {
OptionsRequester* dialog = new OptionsRequester( config, files, this ); OptionsRequester* dialog = new OptionsRequester( config, files, this );
connect( dialog, TQT_SIGNAL(setCurrentOptions(const ConversionOptions&)), connect( dialog, TQ_SIGNAL(setCurrentOptions(const ConversionOptions&)),
options, TQT_SLOT(setCurrentOptions(const ConversionOptions&)) options, TQ_SLOT(setCurrentOptions(const ConversionOptions&))
); );
connect( dialog, TQT_SIGNAL(addFiles(TQStringList)), connect( dialog, TQ_SIGNAL(addFiles(TQStringList)),
fileList, TQT_SLOT(addFiles(TQStringList)) fileList, TQ_SLOT(addFiles(TQStringList))
); );
TQ_CHECK_PTR( dialog ); TQ_CHECK_PTR( dialog );
@ -364,8 +364,8 @@ void soundKonverter::openArgFiles( const TQStringList &files )
dialog->exec(); dialog->exec();
disconnect( dialog, TQT_SIGNAL(setCurrentOptions(const ConversionOptions&)), 0, 0 ); disconnect( dialog, TQ_SIGNAL(setCurrentOptions(const ConversionOptions&)), 0, 0 );
disconnect( dialog, TQT_SIGNAL(addFiles(TQStringList)), 0, 0 ); disconnect( dialog, TQ_SIGNAL(addFiles(TQStringList)), 0, 0 );
delete dialog; delete dialog;
} }
@ -528,11 +528,11 @@ void soundKonverter::showCdDialog( bool intern )
{ {
OptionsRequester* dialog = new OptionsRequester( config, "", this ); OptionsRequester* dialog = new OptionsRequester( config, "", this );
connect( dialog, TQT_SIGNAL(setCurrentOptions(const ConversionOptions&)), connect( dialog, TQ_SIGNAL(setCurrentOptions(const ConversionOptions&)),
options, TQT_SLOT(setCurrentOptions(const ConversionOptions&)) options, TQ_SLOT(setCurrentOptions(const ConversionOptions&))
); );
// connect( dialog, TQT_SIGNAL(addFiles(TQStringList)), // connect( dialog, TQ_SIGNAL(addFiles(TQStringList)),
// fileList, TQT_SLOT(addFiles(TQStringList)) // fileList, TQ_SLOT(addFiles(TQStringList))
// ); // );
TQ_CHECK_PTR( dialog ); TQ_CHECK_PTR( dialog );
@ -552,8 +552,8 @@ void soundKonverter::showCdDialog( bool intern )
dialog->exec(); dialog->exec();
disconnect( dialog, TQT_SIGNAL(setCurrentOptions(const ConversionOptions&)), 0, 0 ); disconnect( dialog, TQ_SIGNAL(setCurrentOptions(const ConversionOptions&)), 0, 0 );
// disconnect( dialog, TQT_SIGNAL(addFiles(TQStringList)), 0, 0 ); // disconnect( dialog, TQ_SIGNAL(addFiles(TQStringList)), 0, 0 );
delete dialog; delete dialog;
} }
@ -594,21 +594,21 @@ void soundKonverter::showCdDialog( bool intern )
if( !dialog->noCD ) if( !dialog->noCD )
{ {
connect( dialog, TQT_SIGNAL(addTracks(const TQString&,TQValueList<int>)), connect( dialog, TQ_SIGNAL(addTracks(const TQString&,TQValueList<int>)),
fileList, TQT_SLOT(addTracks(const TQString&,TQValueList<int>)) fileList, TQ_SLOT(addTracks(const TQString&,TQValueList<int>))
); );
connect( dialog, TQT_SIGNAL(addDisc(const TQString&)), connect( dialog, TQ_SIGNAL(addDisc(const TQString&)),
fileList, TQT_SLOT(addDisc(const TQString&)) fileList, TQ_SLOT(addDisc(const TQString&))
); );
/*connect( dialog, TQT_SIGNAL(openCuesheetEditor(const TQString&)), /*connect( dialog, TQ_SIGNAL(openCuesheetEditor(const TQString&)),
this, TQT_SLOT(openCuesheetEditor(const TQString&)) this, TQ_SLOT(openCuesheetEditor(const TQString&))
);*/ );*/
dialog->exec(); dialog->exec();
disconnect( dialog, TQT_SIGNAL(addTracks(const TQString&,TQValueList<int>)), 0, 0 ); disconnect( dialog, TQ_SIGNAL(addTracks(const TQString&,TQValueList<int>)), 0, 0 );
disconnect( dialog, TQT_SIGNAL(addDisc(const TQString&)), 0, 0 ); disconnect( dialog, TQ_SIGNAL(addDisc(const TQString&)), 0, 0 );
//disconnect( dialog, TQT_SIGNAL(openCuesheetEditor(const TQString&)), 0, 0 ); //disconnect( dialog, TQ_SIGNAL(openCuesheetEditor(const TQString&)), 0, 0 );
} }
delete dialog; delete dialog;
@ -639,8 +639,8 @@ void soundKonverter::showReplayGainScanner()
// TODO error message // TODO error message
return; return;
} }
// connect( this, TQT_SIGNAL(addFilesToReplayGainScanner(TQStringList)), // connect( this, TQ_SIGNAL(addFilesToReplayGainScanner(TQStringList)),
// replayGainScanner, TQT_SLOT(addFiles(TQStringList)) // replayGainScanner, TQ_SLOT(addFiles(TQStringList))
// ); // );
} }
replayGainScanner->show(); replayGainScanner->show();
@ -684,8 +684,8 @@ void soundKonverter::showLogViewer()
// TODO error message // TODO error message
return; return;
} }
// connect( convert, TQT_SIGNAL(finishedProcess(int,int)), // connect( convert, TQ_SIGNAL(finishedProcess(int,int)),
// logViewer, TQT_SLOT(processCompleted(int,int)) // logViewer, TQ_SLOT(processCompleted(int,int))
// ); // );
} }
logViewer->show(); logViewer->show();
@ -747,8 +747,8 @@ void soundKonverter::editToolbar()
{ {
saveMainWindowSettings( kapp->config(), "MainWindow" ); saveMainWindowSettings( kapp->config(), "MainWindow" );
KEditToolbar dlg( actionCollection() ); KEditToolbar dlg( actionCollection() );
connect( &dlg, TQT_SIGNAL(newToolbarConfig()), connect( &dlg, TQ_SIGNAL(newToolbarConfig()),
this, TQT_SLOT(newToolbarConfig()) this, TQ_SLOT(newToolbarConfig())
); );
dlg.exec(); dlg.exec();
} }

Loading…
Cancel
Save