|
|
|
@ -102,7 +102,7 @@ KRenameImpl::KRenameImpl( TQWidget* p, KMenuBar* m, TQPushButton* finish )
|
|
|
|
|
|
|
|
|
|
m_switching = false;
|
|
|
|
|
|
|
|
|
|
kapp->dcopClient()->registerAs( kapp->name() );
|
|
|
|
|
tdeApp->dcopClient()->registerAs( tdeApp->name() );
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -157,7 +157,7 @@ void KRenameImpl::setup( bool wizardmode )
|
|
|
|
|
connect( preview, TQ_SIGNAL( removeItem(int) ), this, TQ_SLOT( removeFile(int) ));
|
|
|
|
|
connect( preview, TQ_SIGNAL( addFile() ), this, TQ_SLOT( addFile() ));
|
|
|
|
|
connect( undorequester, TQ_SIGNAL( urlSelected(const TQString &)), this, TQ_SLOT( changeUndoScriptName() ));
|
|
|
|
|
connect( kapp, TQ_SIGNAL( aboutToQuit() ), this, TQ_SLOT( saveConfig() ) );
|
|
|
|
|
connect( tdeApp, TQ_SIGNAL( aboutToQuit() ), this, TQ_SLOT( saveConfig() ) );
|
|
|
|
|
connect( buttonMove, TQ_SIGNAL( clicked()), fileList, TQ_SLOT( moveMode() ));
|
|
|
|
|
connect( checkName, TQ_SIGNAL( clicked()), this, TQ_SLOT( toggleName() ));
|
|
|
|
|
connect( buttonNumber, TQ_SIGNAL( clicked()), this, TQ_SLOT( changeNumbers() ));
|
|
|
|
@ -283,7 +283,7 @@ void KRenameImpl::parseCommandline()
|
|
|
|
|
// so let's wait for file adding to finish first
|
|
|
|
|
// before starting.
|
|
|
|
|
while( fileList->runningAddListeners() > 0 )
|
|
|
|
|
kapp->processEvents();
|
|
|
|
|
tdeApp->processEvents();
|
|
|
|
|
|
|
|
|
|
if( fileList->count() )
|
|
|
|
|
// start renaming
|
|
|
|
@ -987,7 +987,7 @@ void KRenameImpl::removeFile( int index )
|
|
|
|
|
|
|
|
|
|
void KRenameImpl::help()
|
|
|
|
|
{
|
|
|
|
|
kapp->invokeHelp();
|
|
|
|
|
tdeApp->invokeHelp();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void KRenameImpl::start()
|
|
|
|
@ -1011,7 +1011,7 @@ void KRenameImpl::start()
|
|
|
|
|
filename->saveSettings();
|
|
|
|
|
extemplate->saveSettings();
|
|
|
|
|
|
|
|
|
|
TDEConfig * config = kapp->config();
|
|
|
|
|
TDEConfig * config = tdeApp->config();
|
|
|
|
|
config->setGroup("FileExtension");
|
|
|
|
|
config->writeEntry("FileExtensionCombo", comboExtension->currentItem() );
|
|
|
|
|
|
|
|
|
@ -1258,7 +1258,7 @@ void KRenameImpl::updatePreview()
|
|
|
|
|
|
|
|
|
|
void KRenameImpl::loadConfig()
|
|
|
|
|
{
|
|
|
|
|
TDEConfig* config = kapp->config();
|
|
|
|
|
TDEConfig* config = tdeApp->config();
|
|
|
|
|
|
|
|
|
|
config->setGroup("HistSize");
|
|
|
|
|
m_hist = config->readNumEntry("HistoryItems", 10 );
|
|
|
|
@ -1324,7 +1324,7 @@ void KRenameImpl::loadConfig()
|
|
|
|
|
|
|
|
|
|
void KRenameImpl::saveConfig()
|
|
|
|
|
{
|
|
|
|
|
TDEConfig* config = kapp->config();
|
|
|
|
|
TDEConfig* config = tdeApp->config();
|
|
|
|
|
|
|
|
|
|
config->setGroup("HistSize");
|
|
|
|
|
config->writeEntry("HistoryItems", m_hist );
|
|
|
|
@ -1610,7 +1610,7 @@ void KRenameImpl::changeNumbers()
|
|
|
|
|
|
|
|
|
|
void KRenameImpl::about()
|
|
|
|
|
{
|
|
|
|
|
TDEAboutApplication * d = new TDEAboutApplication( kapp->aboutData(), parent );
|
|
|
|
|
TDEAboutApplication * d = new TDEAboutApplication( tdeApp->aboutData(), parent );
|
|
|
|
|
d->show();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1663,7 +1663,7 @@ void KRenameImpl::changeParent( TQWidget* p, KMenuBar* m, TQPushButton* finish,
|
|
|
|
|
|
|
|
|
|
TQWidget* KRenameImpl::launch( TQRect rect, const KURL::List & list, KRenameImpl* impl, bool loadprofile )
|
|
|
|
|
{
|
|
|
|
|
TDEConfig* config = kapp->config();
|
|
|
|
|
TDEConfig* config = tdeApp->config();
|
|
|
|
|
config->setGroup("GUISettings");
|
|
|
|
|
bool firststart = config->readBoolEntry( "firststart", true );
|
|
|
|
|
bool wizardmode = config->readBoolEntry( "GUIWizardMode", false );
|
|
|
|
@ -1693,7 +1693,7 @@ TQWidget* KRenameImpl::launch( TQRect rect, const KURL::List & list, KRenameImpl
|
|
|
|
|
w = (TQWidget*)krename;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
kapp->setMainWidget( w );
|
|
|
|
|
tdeApp->setMainWidget( w );
|
|
|
|
|
|
|
|
|
|
for( unsigned int i = 0; i < list.count(); i++ )
|
|
|
|
|
k->addFileOrDir( list[i] );
|
|
|
|
|