|
|
@ -83,21 +83,21 @@ TQString pageTitle[] = {
|
|
|
|
I18N_NOOP( "File&name" )
|
|
|
|
I18N_NOOP( "File&name" )
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
KPushButton* createButton( KGuiItem item, TQWidget* tqparent )
|
|
|
|
KPushButton* createButton( KGuiItem item, TQWidget* parent )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return new KPushButton( item.iconSet(), item.text(), tqparent );
|
|
|
|
return new KPushButton( item.iconSet(), item.text(), parent );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
KRenameImpl::KRenameImpl( TQWidget* p, KMenuBar* m, TQPushButton* finish )
|
|
|
|
KRenameImpl::KRenameImpl( TQWidget* p, KMenuBar* m, TQPushButton* finish )
|
|
|
|
: DCOPObject( "KRename" ), TQObject( (TQObject*)p ),
|
|
|
|
: DCOPObject( "KRename" ), TQObject( (TQObject*)p ),
|
|
|
|
tqparent( p ), menuBar( m ), finishButton( finish )
|
|
|
|
parent( p ), menuBar( m ), finishButton( finish )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_hasCommandlineProfile = false;
|
|
|
|
m_hasCommandlineProfile = false;
|
|
|
|
|
|
|
|
|
|
|
|
// Load Plugins
|
|
|
|
// Load Plugins
|
|
|
|
plugin = PluginLoader::instance();
|
|
|
|
plugin = PluginLoader::instance();
|
|
|
|
helpDialogData = new HelpDialogData();
|
|
|
|
helpDialogData = new HelpDialogData();
|
|
|
|
// Maybe tqparent instead of 0 but might crash when switching from wizard to tab mode
|
|
|
|
// Maybe parent instead of 0 but might crash when switching from wizard to tab mode
|
|
|
|
helpDialog = new HelpDialog( helpDialogData, NULL, NULL, false );
|
|
|
|
helpDialog = new HelpDialog( helpDialogData, NULL, NULL, false );
|
|
|
|
|
|
|
|
|
|
|
|
m_switching = false;
|
|
|
|
m_switching = false;
|
|
|
@ -115,7 +115,7 @@ int KRenameImpl::numRealTimePreview = -1;
|
|
|
|
|
|
|
|
|
|
|
|
void KRenameImpl::setup( bool wizardmode )
|
|
|
|
void KRenameImpl::setup( bool wizardmode )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
tqparent->setCaption( "KRename" ); // "KRename by Dominik Seichter
|
|
|
|
parent->setCaption( "KRename" ); // "KRename by Dominik Seichter
|
|
|
|
setupActions();
|
|
|
|
setupActions();
|
|
|
|
setupPages();
|
|
|
|
setupPages();
|
|
|
|
updateCount();
|
|
|
|
updateCount();
|
|
|
@ -295,9 +295,9 @@ void KRenameImpl::setupActions()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KActionCollection* actionCollection = new KActionCollection( this );
|
|
|
|
KActionCollection* actionCollection = new KActionCollection( this );
|
|
|
|
|
|
|
|
|
|
|
|
KPopupMenu* mnuExtra = new KPopupMenu( tqparent );
|
|
|
|
KPopupMenu* mnuExtra = new KPopupMenu( parent );
|
|
|
|
KPopupMenu* mnuSettings = new KPopupMenu( tqparent );
|
|
|
|
KPopupMenu* mnuSettings = new KPopupMenu( parent );
|
|
|
|
KHelpMenu* mnuHelp = new KHelpMenu( tqparent );
|
|
|
|
KHelpMenu* mnuHelp = new KHelpMenu( parent );
|
|
|
|
|
|
|
|
|
|
|
|
menuBar->insertItem( i18n("E&xtras"), mnuExtra );
|
|
|
|
menuBar->insertItem( i18n("E&xtras"), mnuExtra );
|
|
|
|
mnuExtra->insertItem( i18n("&Profiles..."), this, TQT_SLOT( manageProfiles() ) );
|
|
|
|
mnuExtra->insertItem( i18n("&Profiles..."), this, TQT_SLOT( manageProfiles() ) );
|
|
|
@ -332,7 +332,7 @@ void KRenameImpl::setupPages()
|
|
|
|
|
|
|
|
|
|
|
|
void KRenameImpl::setupPage1()
|
|
|
|
void KRenameImpl::setupPage1()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
page_1 = new TQWidget( tqparent );
|
|
|
|
page_1 = new TQWidget( parent );
|
|
|
|
|
|
|
|
|
|
|
|
pageLayout = new TQHBoxLayout( page_1, 11, 6 );
|
|
|
|
pageLayout = new TQHBoxLayout( page_1, 11, 6 );
|
|
|
|
Layout3 = new TQVBoxLayout( 0, 0, 6 );
|
|
|
|
Layout3 = new TQVBoxLayout( 0, 0, 6 );
|
|
|
@ -414,7 +414,7 @@ void KRenameImpl::setupPage1()
|
|
|
|
|
|
|
|
|
|
|
|
void KRenameImpl::setupPage2()
|
|
|
|
void KRenameImpl::setupPage2()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
page_2 = new TQWidget( tqparent );
|
|
|
|
page_2 = new TQWidget( parent );
|
|
|
|
|
|
|
|
|
|
|
|
pageLayout_2 = new TQVBoxLayout( page_2, 6, 6 );
|
|
|
|
pageLayout_2 = new TQVBoxLayout( page_2, 6, 6 );
|
|
|
|
|
|
|
|
|
|
|
@ -481,7 +481,7 @@ void KRenameImpl::setupPage2()
|
|
|
|
|
|
|
|
|
|
|
|
void KRenameImpl::setupPage3()
|
|
|
|
void KRenameImpl::setupPage3()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
page_3 = new KJanusWidget( tqparent, "janus", KJanusWidget::TreeList );
|
|
|
|
page_3 = new KJanusWidget( parent, "janus", KJanusWidget::TreeList );
|
|
|
|
page_3->setShowIconsInTreeList( true );
|
|
|
|
page_3->setShowIconsInTreeList( true );
|
|
|
|
page_3->setTreeListAutoResize( true );
|
|
|
|
page_3->setTreeListAutoResize( true );
|
|
|
|
|
|
|
|
|
|
|
@ -492,7 +492,7 @@ void KRenameImpl::setupPage3()
|
|
|
|
|
|
|
|
|
|
|
|
void KRenameImpl::setupPage4()
|
|
|
|
void KRenameImpl::setupPage4()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
page_4 = new TQWidget( tqparent );
|
|
|
|
page_4 = new TQWidget( parent );
|
|
|
|
pageLayout_4 = new TQVBoxLayout( page_4, 11, 6 );
|
|
|
|
pageLayout_4 = new TQVBoxLayout( page_4, 11, 6 );
|
|
|
|
|
|
|
|
|
|
|
|
fileTab = new TQWidgetStack( page_4 );
|
|
|
|
fileTab = new TQWidgetStack( page_4 );
|
|
|
@ -587,7 +587,7 @@ void KRenameImpl::setupFileTab1()
|
|
|
|
help.append("[$x-y];;" + i18n("character x to y of old filename") );
|
|
|
|
help.append("[$x-y];;" + i18n("character x to y of old filename") );
|
|
|
|
help.append("[$x;y];;" + i18n("y characters of old filename starting at x") );
|
|
|
|
help.append("[$x;y];;" + i18n("y characters of old filename starting at x") );
|
|
|
|
help.append("[$dirname];;" + i18n("insert name of directory") );
|
|
|
|
help.append("[$dirname];;" + i18n("insert name of directory") );
|
|
|
|
help.append("[$dirname.];;" + i18n("insert name of tqparent directory") );
|
|
|
|
help.append("[$dirname.];;" + i18n("insert name of parent directory") );
|
|
|
|
help.append("[#length-0];;" + i18n("insert the length of the input filename") );
|
|
|
|
help.append("[#length-0];;" + i18n("insert the length of the input filename") );
|
|
|
|
helpDialogData->add( i18n("Built-in Functions:" ), &help, SmallIcon("krename"), true );
|
|
|
|
helpDialogData->add( i18n("Built-in Functions:" ), &help, SmallIcon("krename"), true );
|
|
|
|
|
|
|
|
|
|
|
@ -875,7 +875,7 @@ void KRenameImpl::setupTab1()
|
|
|
|
* Draw plugin user interfaces
|
|
|
|
* Draw plugin user interfaces
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
TQFrame* tqparent;
|
|
|
|
TQFrame* parent;
|
|
|
|
TQVBoxLayout* Layout;
|
|
|
|
TQVBoxLayout* Layout;
|
|
|
|
TQVBoxLayout* gLayout;
|
|
|
|
TQVBoxLayout* gLayout;
|
|
|
|
TQGroupBox* g;
|
|
|
|
TQGroupBox* g;
|
|
|
@ -892,13 +892,13 @@ void KRenameImpl::setupTab1()
|
|
|
|
while ( it.current() ) {
|
|
|
|
while ( it.current() ) {
|
|
|
|
if( !(*it)->plugin->alwaysUsed() )
|
|
|
|
if( !(*it)->plugin->alwaysUsed() )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
tqparent = page_3->addPage( (*it)->plugin->getName(), TQString(), (*it)->plugin->getIcon() );
|
|
|
|
parent = page_3->addPage( (*it)->plugin->getName(), TQString(), (*it)->plugin->getIcon() );
|
|
|
|
|
|
|
|
|
|
|
|
Layout = new TQVBoxLayout( tqparent, 11, 6, "Layout");
|
|
|
|
Layout = new TQVBoxLayout( parent, 11, 6, "Layout");
|
|
|
|
g = new TQGroupBox( tqparent );
|
|
|
|
g = new TQGroupBox( parent );
|
|
|
|
gLayout = new TQVBoxLayout( g, 11, 6, "gLayout" );
|
|
|
|
gLayout = new TQVBoxLayout( g, 11, 6, "gLayout" );
|
|
|
|
|
|
|
|
|
|
|
|
(*it)->check = new TQCheckBox( i18n("&Use this plugin"), tqparent );
|
|
|
|
(*it)->check = new TQCheckBox( i18n("&Use this plugin"), parent );
|
|
|
|
connect( (*it)->check, TQT_SIGNAL( clicked() ), this, TQT_SLOT( pluginHelpChanged() ) );
|
|
|
|
connect( (*it)->check, TQT_SIGNAL( clicked() ), this, TQT_SLOT( pluginHelpChanged() ) );
|
|
|
|
connect( (*it)->plugin, TQT_SIGNAL( previewChanged( Plugin* ) ), this, TQT_SLOT( updatePluginPreview( Plugin* ) ) );
|
|
|
|
connect( (*it)->plugin, TQT_SIGNAL( previewChanged( Plugin* ) ), this, TQT_SLOT( updatePluginPreview( Plugin* ) ) );
|
|
|
|
Layout->addWidget( (*it)->check );
|
|
|
|
Layout->addWidget( (*it)->check );
|
|
|
@ -919,7 +919,7 @@ void KRenameImpl::addFile()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
bool auto_up = false;
|
|
|
|
bool auto_up = false;
|
|
|
|
|
|
|
|
|
|
|
|
DSDirSelectDialog* dsd = new DSDirSelectDialog( tqparent );
|
|
|
|
DSDirSelectDialog* dsd = new DSDirSelectDialog( parent );
|
|
|
|
if( dsd->exec() == TQDialog::Accepted ) {
|
|
|
|
if( dsd->exec() == TQDialog::Accepted ) {
|
|
|
|
KURL::List slist = dsd->selectedURLs();
|
|
|
|
KURL::List slist = dsd->selectedURLs();
|
|
|
|
KURL::List::Iterator it = slist.begin();
|
|
|
|
KURL::List::Iterator it = slist.begin();
|
|
|
@ -1022,12 +1022,12 @@ void KRenameImpl::start()
|
|
|
|
if( setupBatchRenamer( b, false ) )
|
|
|
|
if( setupBatchRenamer( b, false ) )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
p->show();
|
|
|
|
p->show();
|
|
|
|
tqparent->hide();
|
|
|
|
parent->hide();
|
|
|
|
b->processFiles( p, this );
|
|
|
|
b->processFiles( p, this );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Memory leak!!! : ??
|
|
|
|
// Memory leak!!! : ??
|
|
|
|
//delete tqparent;
|
|
|
|
//delete parent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void KRenameImpl::enableControls()
|
|
|
|
void KRenameImpl::enableControls()
|
|
|
@ -1046,16 +1046,16 @@ void KRenameImpl::enableControls()
|
|
|
|
bool KRenameImpl::checkErrors()
|
|
|
|
bool KRenameImpl::checkErrors()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if( filename->text().isEmpty() ) {
|
|
|
|
if( filename->text().isEmpty() ) {
|
|
|
|
KMessageBox::sorry( tqparent, i18n("Specify a template to use for renaming files.") );
|
|
|
|
KMessageBox::sorry( parent, i18n("Specify a template to use for renaming files.") );
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if( dirname->text().isEmpty() && !optionRename->isChecked()) {
|
|
|
|
if( dirname->text().isEmpty() && !optionRename->isChecked()) {
|
|
|
|
KMessageBox::sorry( tqparent, i18n("Please give a destination directory !") );
|
|
|
|
KMessageBox::sorry( parent, i18n("Please give a destination directory !") );
|
|
|
|
emit showPage( 2 );
|
|
|
|
emit showPage( 2 );
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if( checkUndoScript->isChecked() && !optionCopy->isChecked() && undorequester->url().isEmpty() ) {
|
|
|
|
if( checkUndoScript->isChecked() && !optionCopy->isChecked() && undorequester->url().isEmpty() ) {
|
|
|
|
KMessageBox::sorry( tqparent, i18n("Please give the name of the undo script!") );
|
|
|
|
KMessageBox::sorry( parent, i18n("Please give the name of the undo script!") );
|
|
|
|
showPage( 2 );
|
|
|
|
showPage( 2 );
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1164,7 +1164,7 @@ bool KRenameImpl::setupBatchRenamer( BatchRenamer* b, bool preview )
|
|
|
|
|
|
|
|
|
|
|
|
if( !KIO::NetAccess::exists( KURL( url ) ) )
|
|
|
|
if( !KIO::NetAccess::exists( KURL( url ) ) )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int m = KMessageBox::warningContinueCancel( tqparent, i18n("The directory %1 does not exist. "
|
|
|
|
int m = KMessageBox::warningContinueCancel( parent, i18n("The directory %1 does not exist. "
|
|
|
|
"KRename will create it for you.").tqarg( url ) );
|
|
|
|
"KRename will create it for you.").tqarg( url ) );
|
|
|
|
if( m == KMessageBox::Cancel )
|
|
|
|
if( m == KMessageBox::Cancel )
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
@ -1278,12 +1278,12 @@ void KRenameImpl::loadConfig()
|
|
|
|
CoordDialog::m_inversion = config->readBoolEntry("Inverse", false);
|
|
|
|
CoordDialog::m_inversion = config->readBoolEntry("Inverse", false);
|
|
|
|
m_wizard = config->readBoolEntry( "GUIWizardMode", true );
|
|
|
|
m_wizard = config->readBoolEntry( "GUIWizardMode", true );
|
|
|
|
|
|
|
|
|
|
|
|
int width = config->readNumEntry( "Width", tqparent->width() );
|
|
|
|
int width = config->readNumEntry( "Width", parent->width() );
|
|
|
|
int height = config->readNumEntry( "Height", tqparent->height() );
|
|
|
|
int height = config->readNumEntry( "Height", parent->height() );
|
|
|
|
if( config->readBoolEntry("Maximized", false ) ) {
|
|
|
|
if( config->readBoolEntry("Maximized", false ) ) {
|
|
|
|
tqparent->showMaximized();
|
|
|
|
parent->showMaximized();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
tqparent->resize( width, height );
|
|
|
|
parent->resize( width, height );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
refreshColumnMode();
|
|
|
|
refreshColumnMode();
|
|
|
@ -1305,7 +1305,7 @@ void KRenameImpl::loadConfig()
|
|
|
|
checkName->setEnabled( false );
|
|
|
|
checkName->setEnabled( false );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//tqparent->show();
|
|
|
|
//parent->show();
|
|
|
|
page_1->setEnabled( false );
|
|
|
|
page_1->setEnabled( false );
|
|
|
|
KApplication::setOverrideCursor( TQt::WaitCursor );
|
|
|
|
KApplication::setOverrideCursor( TQt::WaitCursor );
|
|
|
|
plugin->loadPlugins( m_loadplugins );
|
|
|
|
plugin->loadPlugins( m_loadplugins );
|
|
|
@ -1329,11 +1329,11 @@ void KRenameImpl::saveConfig()
|
|
|
|
config->writeEntry("firststart", false );
|
|
|
|
config->writeEntry("firststart", false );
|
|
|
|
config->writeEntry("ImagePreview", checkPreview->isChecked() );
|
|
|
|
config->writeEntry("ImagePreview", checkPreview->isChecked() );
|
|
|
|
config->writeEntry("StartIndex", m_index );
|
|
|
|
config->writeEntry("StartIndex", m_index );
|
|
|
|
config->writeEntry("Maximized", tqparent->isMaximized() );
|
|
|
|
config->writeEntry("Maximized", parent->isMaximized() );
|
|
|
|
config->writeEntry("Width", tqparent->width() );
|
|
|
|
config->writeEntry("Width", parent->width() );
|
|
|
|
config->writeEntry("Height", tqparent->height() );
|
|
|
|
config->writeEntry("Height", parent->height() );
|
|
|
|
config->writeEntry("XPos", tqparent->x() );
|
|
|
|
config->writeEntry("XPos", parent->x() );
|
|
|
|
config->writeEntry("YPos", tqparent->y() );
|
|
|
|
config->writeEntry("YPos", parent->y() );
|
|
|
|
config->writeEntry("LoadFilePlugins", m_loadplugins );
|
|
|
|
config->writeEntry("LoadFilePlugins", m_loadplugins );
|
|
|
|
config->writeEntry("ColumnAutosize", m_autosize );
|
|
|
|
config->writeEntry("ColumnAutosize", m_autosize );
|
|
|
|
config->writeEntry("Name", checkName->isChecked() );
|
|
|
|
config->writeEntry("Name", checkName->isChecked() );
|
|
|
@ -1349,7 +1349,7 @@ void KRenameImpl::saveConfig()
|
|
|
|
|
|
|
|
|
|
|
|
void KRenameImpl::replace()
|
|
|
|
void KRenameImpl::replace()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ReplaceDialog* r = new ReplaceDialog( rep, tqparent );
|
|
|
|
ReplaceDialog* r = new ReplaceDialog( rep, parent );
|
|
|
|
if( r->exec() == TQDialog::Accepted )
|
|
|
|
if( r->exec() == TQDialog::Accepted )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
rep = r->getList();
|
|
|
|
rep = r->getList();
|
|
|
@ -1377,7 +1377,7 @@ void KRenameImpl::toggleName()
|
|
|
|
|
|
|
|
|
|
|
|
void KRenameImpl::preferences()
|
|
|
|
void KRenameImpl::preferences()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ConfDialog* cd = new ConfDialog( tqparent, "cd" );
|
|
|
|
ConfDialog* cd = new ConfDialog( parent, "cd" );
|
|
|
|
cd->setLoadPlugins( m_loadplugins );
|
|
|
|
cd->setLoadPlugins( m_loadplugins );
|
|
|
|
cd->setThumbSize( fileList->getPreviewSize() );
|
|
|
|
cd->setThumbSize( fileList->getPreviewSize() );
|
|
|
|
cd->setAutosize( m_autosize );
|
|
|
|
cd->setAutosize( m_autosize );
|
|
|
@ -1414,21 +1414,21 @@ void KRenameImpl::changeGUIMode()
|
|
|
|
/* GUI Mode was changed by the user */
|
|
|
|
/* GUI Mode was changed by the user */
|
|
|
|
saveConfig();
|
|
|
|
saveConfig();
|
|
|
|
|
|
|
|
|
|
|
|
int x = tqparent->x();
|
|
|
|
int x = parent->x();
|
|
|
|
int y = tqparent->y();
|
|
|
|
int y = parent->y();
|
|
|
|
int w = tqparent->width();
|
|
|
|
int w = parent->width();
|
|
|
|
int h = tqparent->height();
|
|
|
|
int h = parent->height();
|
|
|
|
|
|
|
|
|
|
|
|
TQWidget* oldtqparent = tqparent;
|
|
|
|
TQWidget* oldparent = parent;
|
|
|
|
TQWidget* krename = KRenameImpl::launch( TQRect( x, y, w, h ), TQStringList(), this, false );
|
|
|
|
TQWidget* krename = KRenameImpl::launch( TQRect( x, y, w, h ), TQStringList(), this, false );
|
|
|
|
|
|
|
|
|
|
|
|
m_switching = true;
|
|
|
|
m_switching = true;
|
|
|
|
oldtqparent->removeChild( this );
|
|
|
|
oldparent->removeChild( this );
|
|
|
|
oldtqparent->hide();
|
|
|
|
oldparent->hide();
|
|
|
|
krename->insertChild( this );
|
|
|
|
krename->insertChild( this );
|
|
|
|
krename->show();
|
|
|
|
krename->show();
|
|
|
|
|
|
|
|
|
|
|
|
oldtqparent->close();
|
|
|
|
oldparent->close();
|
|
|
|
m_switching = false;
|
|
|
|
m_switching = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1460,7 +1460,7 @@ void KRenameImpl::moveDown()
|
|
|
|
|
|
|
|
|
|
|
|
void KRenameImpl::undo()
|
|
|
|
void KRenameImpl::undo()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
UndoDialog* u = new UndoDialog( tqparent );
|
|
|
|
UndoDialog* u = new UndoDialog( parent );
|
|
|
|
u->exec();
|
|
|
|
u->exec();
|
|
|
|
delete u;
|
|
|
|
delete u;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1519,7 +1519,7 @@ void KRenameImpl::getCoordinates()
|
|
|
|
TQFileInfo fi( name );
|
|
|
|
TQFileInfo fi( name );
|
|
|
|
TQString extension;
|
|
|
|
TQString extension;
|
|
|
|
splitFilename( &fi, &name, &extension );
|
|
|
|
splitFilename( &fi, &name, &extension );
|
|
|
|
CoordDialog* cd = new CoordDialog( name, tqparent );
|
|
|
|
CoordDialog* cd = new CoordDialog( name, parent );
|
|
|
|
if( cd->exec() == TQDialog::Accepted ) {
|
|
|
|
if( cd->exec() == TQDialog::Accepted ) {
|
|
|
|
TQString t = filename->text();
|
|
|
|
TQString t = filename->text();
|
|
|
|
|
|
|
|
|
|
|
@ -1588,7 +1588,7 @@ void KRenameImpl::updateHist()
|
|
|
|
|
|
|
|
|
|
|
|
void KRenameImpl::changeNumbers()
|
|
|
|
void KRenameImpl::changeNumbers()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
NumberDialog* nd = new NumberDialog( skip, tqparent );
|
|
|
|
NumberDialog* nd = new NumberDialog( skip, parent );
|
|
|
|
nd->spinIndex->setValue( m_index );
|
|
|
|
nd->spinIndex->setValue( m_index );
|
|
|
|
nd->spinStep->setValue( m_step );
|
|
|
|
nd->spinStep->setValue( m_step );
|
|
|
|
nd->checkResetCounter->setChecked( m_reset );
|
|
|
|
nd->checkResetCounter->setChecked( m_reset );
|
|
|
@ -1606,7 +1606,7 @@ void KRenameImpl::changeNumbers()
|
|
|
|
|
|
|
|
|
|
|
|
void KRenameImpl::about()
|
|
|
|
void KRenameImpl::about()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KAboutApplication * d = new KAboutApplication( kapp->aboutData(), tqparent );
|
|
|
|
KAboutApplication * d = new KAboutApplication( kapp->aboutData(), parent );
|
|
|
|
d->show();
|
|
|
|
d->show();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1633,23 +1633,23 @@ void KRenameImpl::setWizardMode( bool mode )
|
|
|
|
|
|
|
|
|
|
|
|
void KRenameImpl::changeParent( TQWidget* p, KMenuBar* m, TQPushButton* finish, TQRect r )
|
|
|
|
void KRenameImpl::changeParent( TQWidget* p, KMenuBar* m, TQPushButton* finish, TQRect r )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
tqparent = p;
|
|
|
|
parent = p;
|
|
|
|
menuBar = m;
|
|
|
|
menuBar = m;
|
|
|
|
finishButton = finish;
|
|
|
|
finishButton = finish;
|
|
|
|
|
|
|
|
|
|
|
|
connect( finishButton, TQT_SIGNAL( clicked()), this, TQT_SLOT( start() ));
|
|
|
|
connect( finishButton, TQT_SIGNAL( clicked()), this, TQT_SLOT( start() ));
|
|
|
|
|
|
|
|
|
|
|
|
if( !r.isNull() ) {
|
|
|
|
if( !r.isNull() ) {
|
|
|
|
tqparent->resize( r.size() );
|
|
|
|
parent->resize( r.size() );
|
|
|
|
tqparent->move( r.x(), r.y() );
|
|
|
|
parent->move( r.x(), r.y() );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
setupActions();
|
|
|
|
setupActions();
|
|
|
|
|
|
|
|
|
|
|
|
page_1->reparent( tqparent, TQPoint( 0, 0 ) );
|
|
|
|
page_1->reparent( parent, TQPoint( 0, 0 ) );
|
|
|
|
page_2->reparent( tqparent, TQPoint( 0, 0 ) );
|
|
|
|
page_2->reparent( parent, TQPoint( 0, 0 ) );
|
|
|
|
page_3->reparent( tqparent, TQPoint( 0, 0 ) );
|
|
|
|
page_3->reparent( parent, TQPoint( 0, 0 ) );
|
|
|
|
page_4->reparent( tqparent, TQPoint( 0, 0 ) );
|
|
|
|
page_4->reparent( parent, TQPoint( 0, 0 ) );
|
|
|
|
|
|
|
|
|
|
|
|
emit pageDone( page_1, i18n( pageTitle[0] ) );
|
|
|
|
emit pageDone( page_1, i18n( pageTitle[0] ) );
|
|
|
|
emit pageDone( page_2, i18n( pageTitle[1] ) );
|
|
|
|
emit pageDone( page_2, i18n( pageTitle[1] ) );
|
|
|
@ -1802,13 +1802,13 @@ void KRenameImpl::reloadFilePluginData()
|
|
|
|
|
|
|
|
|
|
|
|
void KRenameImpl::manageProfiles()
|
|
|
|
void KRenameImpl::manageProfiles()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ProfileDlg dlg( this, tqparent, "dlg" );
|
|
|
|
ProfileDlg dlg( this, parent, "dlg" );
|
|
|
|
dlg.exec();
|
|
|
|
dlg.exec();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void KRenameImpl::getHelpDialogString( TQLineEdit* edit )
|
|
|
|
void KRenameImpl::getHelpDialogString( TQLineEdit* edit )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
HelpDialog hdlg( helpDialogData, tqparent, "hdlg", true );
|
|
|
|
HelpDialog hdlg( helpDialogData, parent, "hdlg", true );
|
|
|
|
hdlg.setLineEdit( edit );
|
|
|
|
hdlg.setLineEdit( edit );
|
|
|
|
hdlg.updateHeadline();
|
|
|
|
hdlg.updateHeadline();
|
|
|
|
hdlg.updateItems();
|
|
|
|
hdlg.updateItems();
|
|
|
|