summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/tools/designer/designer/mainwindowactions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/tools/designer/designer/mainwindowactions.cpp')
-rw-r--r--tqtinterface/qt4/tools/designer/designer/mainwindowactions.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/tqtinterface/qt4/tools/designer/designer/mainwindowactions.cpp b/tqtinterface/qt4/tools/designer/designer/mainwindowactions.cpp
index 281efdc..04fe15e 100644
--- a/tqtinterface/qt4/tools/designer/designer/mainwindowactions.cpp
+++ b/tqtinterface/qt4/tools/designer/designer/mainwindowactions.cpp
@@ -1042,7 +1042,7 @@ void MainWindow::fileNewDialog()
{
static int forms = 0;
TQString n = "Dialog" + TQString::number( ++forms );
- while ( currentProject->tqfindFormFile( n + ".ui" ) )
+ while ( currentProject->findFormFile( n + ".ui" ) )
n = "Dialog" + TQString::number( ++forms );
FormWindow *fw = 0;
FormFile *ff = new FormFile( n + ".ui", FALSE, currentProject );
@@ -1240,24 +1240,24 @@ void MainWindow::fileOpen( const TQString &filter, const TQString &extension, co
if ( !filename.isEmpty() ) {
TQFileInfo fi( filename );
- if ( fi.extension( FALSE ) == "pro" && ( extension.isEmpty() || extension.tqfind( ";pro" ) != -1 ) ) {
+ if ( fi.extension( FALSE ) == "pro" && ( extension.isEmpty() || extension.find( ";pro" ) != -1 ) ) {
addRecentlyOpened( filename, recentlyProjects );
openProject( filename );
- } else if ( fi.extension( FALSE ) == "ui" && ( extension.isEmpty() || extension.tqfind( ";ui" ) != -1 ) ) {
+ } else if ( fi.extension( FALSE ) == "ui" && ( extension.isEmpty() || extension.find( ";ui" ) != -1 ) ) {
if ( !inProject )
setCurrentProject( eProject );
openFormWindow( filename );
addRecentlyOpened( filename, recentlyFiles );
- } else if ( !extension.isEmpty() && extension.tqfind( ";" + fi.extension( FALSE ) ) != -1 ||
- additionalSources.tqfind( fi.extension( FALSE ) ) != additionalSources.end() ) {
- SourceFile *sf = project->tqfindSourceFile( project->makeRelative( filename ) );
+ } else if ( !extension.isEmpty() && extension.find( ";" + fi.extension( FALSE ) ) != -1 ||
+ additionalSources.find( fi.extension( FALSE ) ) != additionalSources.end() ) {
+ SourceFile *sf = project->findSourceFile( project->makeRelative( filename ) );
if ( !sf )
sf = new SourceFile( project->makeRelative( filename ), FALSE, project );
editSource( sf );
} else if ( extension.isEmpty() ) {
TQString filter;
for ( TQStringList::Iterator it2 = filterlist.begin(); it2 != filterlist.end(); ++it2 ) {
- if ( (*it2).tqcontains( "." + fi.extension( FALSE ), FALSE ) ) {
+ if ( (*it2).contains( "." + fi.extension( FALSE ), FALSE ) ) {
filter = *it2;
break;
}
@@ -1314,7 +1314,7 @@ FormWindow *MainWindow::openFormWindow( const TQString &filename, bool validFile
}
statusBar()->message( tr( "Reading file '%1'...").arg( filename ) );
- FormFile *ff2 = currentProject->tqfindFormFile( currentProject->makeRelative(filename) );
+ FormFile *ff2 = currentProject->findFormFile( currentProject->makeRelative(filename) );
if ( ff2 && ff2->formWindow() ) {
ff2->formWindow()->setFocus();
return ff2->formWindow();
@@ -1560,7 +1560,7 @@ void MainWindow::editPaste()
formWindow()->commandHistory()->setModified( TRUE );
} else {
TQMessageBox::information( this, tr( "Paste error" ),
- tr( "Can't paste widgets. Designer couldn't tqfind a container\n"
+ tr( "Can't paste widgets. Designer couldn't find a container\n"
"to paste into which does not contain a layout. Break the tqlayout\n"
"of the container you want to paste into and select this container\n"
"and then paste again." ) );
@@ -1958,14 +1958,14 @@ void MainWindow::searchFind()
!::tqqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) )
return;
- if ( !tqfindDialog )
- tqfindDialog = new FindDialog( this, 0, FALSE );
- tqfindDialog->show();
- tqfindDialog->raise();
- tqfindDialog->setEditor( ( (SourceEditor*)qWorkspace()->activeWindow() )->editorInterface(),
+ if ( !findDialog )
+ findDialog = new FindDialog( this, 0, FALSE );
+ findDialog->show();
+ findDialog->raise();
+ findDialog->setEditor( ( (SourceEditor*)qWorkspace()->activeWindow() )->editorInterface(),
( (SourceEditor*)qWorkspace()->activeWindow() )->object() );
- tqfindDialog->comboFind->setFocus();
- tqfindDialog->comboFind->lineEdit()->selectAll();
+ findDialog->comboFind->setFocus();
+ findDialog->comboFind->lineEdit()->selectAll();
}
void MainWindow::searchIncremetalFindMenu()
@@ -1980,7 +1980,7 @@ void MainWindow::searchIncremetalFind()
!::tqqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) )
return;
- ( (SourceEditor*)qWorkspace()->activeWindow() )->editorInterface()->tqfind( incrementalSearch->text(),
+ ( (SourceEditor*)qWorkspace()->activeWindow() )->editorInterface()->find( incrementalSearch->text(),
FALSE, FALSE, TRUE, FALSE );
}
@@ -1990,7 +1990,7 @@ void MainWindow::searchIncremetalFindNext()
!::tqqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) )
return;
- ( (SourceEditor*)qWorkspace()->activeWindow() )->editorInterface()->tqfind( incrementalSearch->text(),
+ ( (SourceEditor*)qWorkspace()->activeWindow() )->editorInterface()->find( incrementalSearch->text(),
FALSE, FALSE, TRUE, TRUE );
}
@@ -2000,14 +2000,14 @@ void MainWindow::searchReplace()
!::tqqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) )
return;
- if ( !tqreplaceDialog )
- tqreplaceDialog = new ReplaceDialog( this, 0, FALSE );
- tqreplaceDialog->show();
- tqreplaceDialog->raise();
- tqreplaceDialog->setEditor( ( (SourceEditor*)qWorkspace()->activeWindow() )->editorInterface(),
+ if ( !replaceDialog )
+ replaceDialog = new ReplaceDialog( this, 0, FALSE );
+ replaceDialog->show();
+ replaceDialog->raise();
+ replaceDialog->setEditor( ( (SourceEditor*)qWorkspace()->activeWindow() )->editorInterface(),
( (SourceEditor*)qWorkspace()->activeWindow() )->object() );
- tqreplaceDialog->comboFind->setFocus();
- tqreplaceDialog->comboFind->lineEdit()->selectAll();
+ replaceDialog->comboFind->setFocus();
+ replaceDialog->comboFind->lineEdit()->selectAll();
}
void MainWindow::searchGotoLine()