@ -120,47 +120,47 @@ void KRenameImpl::setup( bool wizardmode )
setupPages ( ) ;
updateCount ( ) ;
connect ( buttonAdd , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( addFile ( ) ) ) ;
connect ( buttonRemoveAll , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( clearList ( ) ) ) ;
connect ( buttonRemove , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( removeFile ( ) ) ) ;
connect ( buttonHelp , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( showTokenHelp ( ) ) ) ;
connect ( finishButton , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( start ( ) ) ) ;
connect ( checkExtension , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( enableControls ( ) ) ) ;
connect ( optionRename , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( enableControls ( ) ) ) ;
connect ( optionMove , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( enableControls ( ) ) ) ;
connect ( optionCopy , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( enableControls ( ) ) ) ;
connect ( optionLink , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( enableControls ( ) ) ) ;
connect ( checkUndoScript , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( enableControls ( ) ) ) ;
connect ( fileList , TQ T _SIGNAL( updateCount ( ) ) , this , TQ T _SLOT( updateCount ( ) ) ) ;
connect ( fileList , TQ T _SIGNAL( updatePreview ( ) ) , this , TQ T _SLOT( updatePreview ( ) ) ) ;
connect ( fileList , TQ T _SIGNAL( deletePressed ( ) ) , this , TQ T _SLOT( removeFile ( ) ) ) ;
connect ( fileList , TQ T _SIGNAL( addFiles ( ) ) , this , TQ T _SLOT( addFile ( ) ) ) ;
connect ( buttonUp , TQ T _SIGNAL( clicked ( ) ) , fileList , TQ T _SLOT( moveUp ( ) ) ) ;
connect ( buttonDown , TQ T _SIGNAL( clicked ( ) ) , fileList , TQ T _SLOT( moveDown ( ) ) ) ;
connect ( buttonUp , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( updatePreview ( ) ) ) ;
connect ( buttonDown , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( updatePreview ( ) ) ) ;
connect ( buttonUp2 , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( moveUp ( ) ) ) ;
connect ( buttonDown2 , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( moveDown ( ) ) ) ;
connect ( buttonReplace , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( replace ( ) ) ) ;
connect ( buttonEasyReplace , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( replace ( ) ) ) ;
connect ( buttonCoord , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( getCoordinates ( ) ) ) ;
connect ( comboSort , TQ T _SIGNAL( activated ( int ) ) , fileList , TQ T _SLOT( setSorting ( int ) ) ) ;
connect ( buttonAdd , TQ _SIGNAL( clicked ( ) ) , this , TQ _SLOT( addFile ( ) ) ) ;
connect ( buttonRemoveAll , TQ _SIGNAL( clicked ( ) ) , this , TQ _SLOT( clearList ( ) ) ) ;
connect ( buttonRemove , TQ _SIGNAL( clicked ( ) ) , this , TQ _SLOT( removeFile ( ) ) ) ;
connect ( buttonHelp , TQ _SIGNAL( clicked ( ) ) , this , TQ _SLOT( showTokenHelp ( ) ) ) ;
connect ( finishButton , TQ _SIGNAL( clicked ( ) ) , this , TQ _SLOT( start ( ) ) ) ;
connect ( checkExtension , TQ _SIGNAL( clicked ( ) ) , this , TQ _SLOT( enableControls ( ) ) ) ;
connect ( optionRename , TQ _SIGNAL( clicked ( ) ) , this , TQ _SLOT( enableControls ( ) ) ) ;
connect ( optionMove , TQ _SIGNAL( clicked ( ) ) , this , TQ _SLOT( enableControls ( ) ) ) ;
connect ( optionCopy , TQ _SIGNAL( clicked ( ) ) , this , TQ _SLOT( enableControls ( ) ) ) ;
connect ( optionLink , TQ _SIGNAL( clicked ( ) ) , this , TQ _SLOT( enableControls ( ) ) ) ;
connect ( checkUndoScript , TQ _SIGNAL( clicked ( ) ) , this , TQ _SLOT( enableControls ( ) ) ) ;
connect ( fileList , TQ _SIGNAL( updateCount ( ) ) , this , TQ _SLOT( updateCount ( ) ) ) ;
connect ( fileList , TQ _SIGNAL( updatePreview ( ) ) , this , TQ _SLOT( updatePreview ( ) ) ) ;
connect ( fileList , TQ _SIGNAL( deletePressed ( ) ) , this , TQ _SLOT( removeFile ( ) ) ) ;
connect ( fileList , TQ _SIGNAL( addFiles ( ) ) , this , TQ _SLOT( addFile ( ) ) ) ;
connect ( buttonUp , TQ _SIGNAL( clicked ( ) ) , fileList , TQ _SLOT( moveUp ( ) ) ) ;
connect ( buttonDown , TQ _SIGNAL( clicked ( ) ) , fileList , TQ _SLOT( moveDown ( ) ) ) ;
connect ( buttonUp , TQ _SIGNAL( clicked ( ) ) , this , TQ _SLOT( updatePreview ( ) ) ) ;
connect ( buttonDown , TQ _SIGNAL( clicked ( ) ) , this , TQ _SLOT( updatePreview ( ) ) ) ;
connect ( buttonUp2 , TQ _SIGNAL( clicked ( ) ) , this , TQ _SLOT( moveUp ( ) ) ) ;
connect ( buttonDown2 , TQ _SIGNAL( clicked ( ) ) , this , TQ _SLOT( moveDown ( ) ) ) ;
connect ( buttonReplace , TQ _SIGNAL( clicked ( ) ) , this , TQ _SLOT( replace ( ) ) ) ;
connect ( buttonEasyReplace , TQ _SIGNAL( clicked ( ) ) , this , TQ _SLOT( replace ( ) ) ) ;
connect ( buttonCoord , TQ _SIGNAL( clicked ( ) ) , this , TQ _SLOT( getCoordinates ( ) ) ) ;
connect ( comboSort , TQ _SIGNAL( activated ( int ) ) , fileList , TQ _SLOT( setSorting ( int ) ) ) ;
connect ( filename , TQ T _SIGNAL( delayedTextChanged ( ) ) , this , TQ T _SLOT( updatePreview ( ) ) ) ;
connect ( extemplate , TQ T _SIGNAL( delayedTextChanged ( ) ) , this , TQ T _SLOT( updatePreview ( ) ) ) ;
connect ( checkExtension , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( updatePreview ( ) ) ) ;
connect ( comboExtension , TQ T _SIGNAL( activated ( int ) ) , this , TQ T _SLOT( updatePreview ( ) ) ) ;
connect ( checkPreview , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( toggleImagePreview ( ) ) ) ;
connect ( preview , TQ T _SIGNAL( itemChanged ( ) ) , this , TQ T _SLOT( updatePreview ( ) ) ) ;
connect ( preview , TQ T _SIGNAL( removeItem ( int ) ) , this , TQ T _SLOT( removeFile ( int ) ) ) ;
connect ( preview , TQ T _SIGNAL( addFile ( ) ) , this , TQ T _SLOT( addFile ( ) ) ) ;
connect ( undorequester , TQ T _SIGNAL( urlSelected ( const TQString & ) ) , this , TQ T _SLOT( changeUndoScriptName ( ) ) ) ;
connect ( kapp , TQ T _SIGNAL( aboutToQuit ( ) ) , this , TQ T _SLOT( saveConfig ( ) ) ) ;
connect ( buttonMove , TQ T _SIGNAL( clicked ( ) ) , fileList , TQ T _SLOT( moveMode ( ) ) ) ;
connect ( checkName , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( toggleName ( ) ) ) ;
connect ( buttonNumber , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( changeNumbers ( ) ) ) ;
connect ( filename , TQ _SIGNAL( delayedTextChanged ( ) ) , this , TQ _SLOT( updatePreview ( ) ) ) ;
connect ( extemplate , TQ _SIGNAL( delayedTextChanged ( ) ) , this , TQ _SLOT( updatePreview ( ) ) ) ;
connect ( checkExtension , TQ _SIGNAL( clicked ( ) ) , this , TQ _SLOT( updatePreview ( ) ) ) ;
connect ( comboExtension , TQ _SIGNAL( activated ( int ) ) , this , TQ _SLOT( updatePreview ( ) ) ) ;
connect ( checkPreview , TQ _SIGNAL( clicked ( ) ) , this , TQ _SLOT( toggleImagePreview ( ) ) ) ;
connect ( preview , TQ _SIGNAL( itemChanged ( ) ) , this , TQ _SLOT( updatePreview ( ) ) ) ;
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 ( 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 ( ) ) ) ;
// Load Configuration
loadConfig ( ) ;
@ -287,7 +287,7 @@ void KRenameImpl::parseCommandline()
if ( fileList - > count ( ) )
// start renaming
TQTimer : : singleShot ( 200 , this , TQ T _SLOT( start ( ) ) ) ;
TQTimer : : singleShot ( 200 , this , TQ _SLOT( start ( ) ) ) ;
}
}
@ -300,23 +300,23 @@ void KRenameImpl::setupActions()
KHelpMenu * mnuHelp = new KHelpMenu ( parent ) ;
menuBar - > insertItem ( i18n ( " E&xtras " ) , mnuExtra ) ;
mnuExtra - > insertItem ( i18n ( " &Profiles... " ) , this , TQ T _SLOT( manageProfiles ( ) ) ) ;
mnuExtra - > insertItem ( i18n ( " &Profiles... " ) , this , TQ _SLOT( manageProfiles ( ) ) ) ;
mnuExtra - > insertSeparator ( ) ;
mnuExtra - > insertItem ( SmallIcon ( " edit-undo " ) , i18n ( " &Undo Old Renaming Action... " ) , this , TQ T _SLOT( undo ( ) ) ) ;
mnuExtra - > insertItem ( SmallIcon ( " edit-undo " ) , i18n ( " &Undo Old Renaming Action... " ) , this , TQ _SLOT( undo ( ) ) ) ;
menuBar - > insertItem ( i18n ( " &Settings " ) , mnuSettings ) ;
menuBar - > insertSeparator ( ) ;
menuBar - > insertItem ( i18n ( " &Help " ) , mnuHelp - > menu ( ) ) ;
TDEAction * prefAct = KStdAction : : preferences ( this , TQ T _SLOT( preferences ( ) ) , actionCollection ) ;
loadPlugins = new TDEAction ( i18n ( " &Load TDE file plugins " ) , 0 , this , TQ T _SLOT( loadFilePlugins ( ) ) , actionCollection ) ;
TDEAction * reloadAct = new TDEAction ( i18n ( " &Reload Plugin Data " ) , 0 , this , TQ T _SLOT( reloadFilePluginData ( ) ) , actionCollection ) ;
TDEAction * prefAct = KStdAction : : preferences ( this , TQ _SLOT( preferences ( ) ) , actionCollection ) ;
loadPlugins = new TDEAction ( i18n ( " &Load TDE file plugins " ) , 0 , this , TQ _SLOT( loadFilePlugins ( ) ) , actionCollection ) ;
TDEAction * reloadAct = new TDEAction ( i18n ( " &Reload Plugin Data " ) , 0 , this , TQ _SLOT( reloadFilePluginData ( ) ) , actionCollection ) ;
prefAct - > plug ( mnuSettings ) ;
mnuSettings - > insertSeparator ( ) ;
loadPlugins - > plug ( mnuSettings ) ;
reloadAct - > plug ( mnuSettings ) ;
connect ( mnuHelp , TQ T _SIGNAL( showAboutApplication ( ) ) , this , TQ T _SLOT( about ( ) ) ) ;
connect ( mnuHelp , TQ _SIGNAL( showAboutApplication ( ) ) , this , TQ _SLOT( about ( ) ) ) ;
}
void KRenameImpl : : setupPages ( )
@ -721,16 +721,16 @@ void KRenameImpl::setupFileTab2()
enableControls ( ) ;
connect ( comboPrefix , TQ T _SIGNAL( textChanged ( const TQString & ) ) , this , TQ T _SLOT( changed ( ) ) ) ;
connect ( comboSuffix , TQ T _SIGNAL( textChanged ( const TQString & ) ) , this , TQ T _SLOT( changed ( ) ) ) ;
connect ( comboKRenameFilename , TQ T _SIGNAL( activated ( int ) ) , this , TQ T _SLOT( changed ( ) ) ) ;
connect ( comboCustom , TQ T _SIGNAL( textChanged ( const TQString & ) ) , this , TQ T _SLOT( changed ( ) ) ) ;
connect ( comboKRenamePrefix , TQ T _SIGNAL( activated ( int ) ) , this , TQ T _SLOT( changed ( ) ) ) ;
connect ( comboKRenameExtension , TQ T _SIGNAL( activated ( int ) ) , this , TQ T _SLOT( changed ( ) ) ) ;
connect ( comboCustomExtension , TQ T _SIGNAL( textChanged ( const TQString & ) ) , this , TQ T _SLOT( changed ( ) ) ) ;
connect ( comboKRenameSuffix , TQ T _SIGNAL( activated ( int ) ) , this , TQ T _SLOT( changed ( ) ) ) ;
connect ( spinNull , TQ T _SIGNAL( valueChanged ( int ) ) , this , TQ T _SLOT( changed ( ) ) ) ;
connect ( spinStart , TQ T _SIGNAL( valueChanged ( int ) ) , this , TQ T _SLOT( changed ( ) ) ) ;
connect ( comboPrefix , TQ _SIGNAL( textChanged ( const TQString & ) ) , this , TQ _SLOT( changed ( ) ) ) ;
connect ( comboSuffix , TQ _SIGNAL( textChanged ( const TQString & ) ) , this , TQ _SLOT( changed ( ) ) ) ;
connect ( comboKRenameFilename , TQ _SIGNAL( activated ( int ) ) , this , TQ _SLOT( changed ( ) ) ) ;
connect ( comboCustom , TQ _SIGNAL( textChanged ( const TQString & ) ) , this , TQ _SLOT( changed ( ) ) ) ;
connect ( comboKRenamePrefix , TQ _SIGNAL( activated ( int ) ) , this , TQ _SLOT( changed ( ) ) ) ;
connect ( comboKRenameExtension , TQ _SIGNAL( activated ( int ) ) , this , TQ _SLOT( changed ( ) ) ) ;
connect ( comboCustomExtension , TQ _SIGNAL( textChanged ( const TQString & ) ) , this , TQ _SLOT( changed ( ) ) ) ;
connect ( comboKRenameSuffix , TQ _SIGNAL( activated ( int ) ) , this , TQ _SLOT( changed ( ) ) ) ;
connect ( spinNull , TQ _SIGNAL( valueChanged ( int ) ) , this , TQ _SLOT( changed ( ) ) ) ;
connect ( spinStart , TQ _SIGNAL( valueChanged ( int ) ) , this , TQ _SLOT( changed ( ) ) ) ;
buttonEasy1 - > setIconSet ( SmallIcon ( " help " ) ) ;
buttonEasy2 - > setIconSet ( SmallIcon ( " help " ) ) ;
@ -744,10 +744,10 @@ void KRenameImpl::setupFileTab2()
const TQString easy_text ( i18n ( " <qt>Insert a special KRename command which inserts file information into the filename.</qt> " ) ) ;
connect ( buttonEasy1 , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( slotEasy1 ( ) ) ) ;
connect ( buttonEasy2 , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( slotEasy2 ( ) ) ) ;
connect ( buttonEasy3 , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( slotEasy3 ( ) ) ) ;
connect ( buttonEasy4 , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( slotEasy4 ( ) ) ) ;
connect ( buttonEasy1 , TQ _SIGNAL( clicked ( ) ) , this , TQ _SLOT( slotEasy1 ( ) ) ) ;
connect ( buttonEasy2 , TQ _SIGNAL( clicked ( ) ) , this , TQ _SLOT( slotEasy2 ( ) ) ) ;
connect ( buttonEasy3 , TQ _SIGNAL( clicked ( ) ) , this , TQ _SLOT( slotEasy3 ( ) ) ) ;
connect ( buttonEasy4 , TQ _SIGNAL( clicked ( ) ) , this , TQ _SLOT( slotEasy4 ( ) ) ) ;
TQToolTip : : add ( buttonEasy1 , easy_text ) ;
TQToolTip : : add ( buttonEasy2 , easy_text ) ;
@ -899,8 +899,8 @@ void KRenameImpl::setupTab1()
gLayout = new TQVBoxLayout ( g , 11 , 6 , " gLayout " ) ;
( * it ) - > check = new TQCheckBox ( i18n ( " &Use this plugin " ) , parent ) ;
connect ( ( * it ) - > check , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( pluginHelpChanged ( ) ) ) ;
connect ( ( * it ) - > plugin , TQ T _SIGNAL( previewChanged ( Plugin * ) ) , this , TQ T _SLOT( updatePluginPreview ( Plugin * ) ) ) ;
connect ( ( * it ) - > check , TQ _SIGNAL( clicked ( ) ) , this , TQ _SLOT( pluginHelpChanged ( ) ) ) ;
connect ( ( * it ) - > plugin , TQ _SIGNAL( previewChanged ( Plugin * ) ) , this , TQ _SLOT( updatePluginPreview ( Plugin * ) ) ) ;
Layout - > addWidget ( ( * it ) - > check ) ;
( * it ) - > plugin - > drawInterface ( g , gLayout ) ;
@ -1641,7 +1641,7 @@ void KRenameImpl::changeParent( TQWidget* p, KMenuBar* m, TQPushButton* finish,
menuBar = m ;
finishButton = finish ;
connect ( finishButton , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( start ( ) ) ) ;
connect ( finishButton , TQ _SIGNAL( clicked ( ) ) , this , TQ _SLOT( start ( ) ) ) ;
if ( ! r . isNull ( ) ) {
parent - > resize ( r . size ( ) ) ;