summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/mainwindowactions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/designer/mainwindowactions.cpp')
-rw-r--r--kdevdesigner/designer/mainwindowactions.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/kdevdesigner/designer/mainwindowactions.cpp b/kdevdesigner/designer/mainwindowactions.cpp
index 9ea32977..9733097e 100644
--- a/kdevdesigner/designer/mainwindowactions.cpp
+++ b/kdevdesigner/designer/mainwindowactions.cpp
@@ -958,15 +958,15 @@ void MainWindow::setupWindowActions()
int j = 0;
for ( int i = 0; i < int( windows.count() ); ++i ) {
TQWidget *w = windows.at( i );
- if ( !::tqqt_cast<FormWindow*>(w) && !::tqqt_cast<SourceEditor*>(w) )
+ if ( !::tqt_cast<FormWindow*>(w) && !::tqt_cast<SourceEditor*>(w) )
continue;
- if ( ::tqqt_cast<FormWindow*>(w) && ( ( (FormWindow*)w )->isFake() ) )
+ if ( ::tqt_cast<FormWindow*>(w) && ( ( (FormWindow*)w )->isFake() ) )
continue;
j++;
TQString itemText;
if ( j < 10 )
itemText = TQString("&%1 ").arg( j );
- if ( ::tqqt_cast<FormWindow*>(w) )
+ if ( ::tqt_cast<FormWindow*>(w) )
itemText += w->name();
else
itemText += w->caption();
@@ -1085,9 +1085,9 @@ void MainWindow::fileClose()
} else {
TQWidget *w = qworkspace->activeWindow();
if ( w ) {
- if ( ::tqqt_cast<FormWindow*>(w) )
+ if ( ::tqt_cast<FormWindow*>(w) )
( (FormWindow*)w )->formFile()->close();
- else if ( ::tqqt_cast<SourceEditor*>(w) )
+ else if ( ::tqt_cast<SourceEditor*>(w) )
( (SourceEditor*)w )->close();
}
}
@@ -1132,14 +1132,14 @@ void MainWindow::fileCloseProject()
while ( wit.current() ) {
TQWidget *w = wit.current();
++wit;
- if ( ::tqqt_cast<FormWindow*>(w) ) {
+ if ( ::tqt_cast<FormWindow*>(w) ) {
if ( ( (FormWindow*)w )->project() == pro ) {
if ( ( (FormWindow*)w )->formFile()->editor() )
windows.removeRef( ( (FormWindow*)w )->formFile()->editor() );
if ( !( (FormWindow*)w )->formFile()->close() )
return;
}
- } else if ( ::tqqt_cast<SourceEditor*>(w) ) {
+ } else if ( ::tqt_cast<SourceEditor*>(w) ) {
if ( !( (SourceEditor*)w )->close() )
return;
}
@@ -1157,7 +1157,7 @@ void MainWindow::fileCloseProject()
}
if ( !windows.isEmpty() ) {
for ( TQWidget *w = windows.first(); w; w = windows.next() ) {
- if ( !::tqqt_cast<FormWindow*>(w) )
+ if ( !::tqt_cast<FormWindow*>(w) )
continue;
w->setFocus();
activeWindowChanged( w );
@@ -1354,7 +1354,7 @@ bool MainWindow::fileSaveForm()
TQWidget *w = qWorkspace()->activeWindow();
if ( w ) {
- if ( ::tqqt_cast<SourceEditor*>(w) ) {
+ if ( ::tqt_cast<SourceEditor*>(w) ) {
SourceEditor *se = (SourceEditor*)w;
if ( se->formWindow() )
fw = se->formWindow();
@@ -1387,9 +1387,9 @@ bool MainWindow::fileSaveAs()
TQWidget *w = qworkspace->activeWindow();
if ( !w )
return TRUE;
- if ( ::tqqt_cast<FormWindow*>(w) )
+ if ( ::tqt_cast<FormWindow*>(w) )
return ( (FormWindow*)w )->formFile()->saveAs();
- else if ( ::tqqt_cast<SourceEditor*>(w) )
+ else if ( ::tqt_cast<SourceEditor*>(w) )
return ( (SourceEditor*)w )->saveAs();
return FALSE;
}
@@ -1486,7 +1486,7 @@ void MainWindow::createNewTemplate()
void MainWindow::editUndo()
{
if ( qWorkspace()->activeWindow() &&
- ::tqqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) ) {
+ ::tqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) ) {
( (SourceEditor*)qWorkspace()->activeWindow() )->editUndo();
return;
}
@@ -1497,7 +1497,7 @@ void MainWindow::editUndo()
void MainWindow::editRedo()
{
if ( qWorkspace()->activeWindow() &&
- ::tqqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) ) {
+ ::tqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) ) {
( (SourceEditor*)qWorkspace()->activeWindow() )->editRedo();
return;
}
@@ -1508,7 +1508,7 @@ void MainWindow::editRedo()
void MainWindow::editCut()
{
if ( qWorkspace()->activeWindow() &&
- ::tqqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) ) {
+ ::tqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) ) {
( (SourceEditor*)qWorkspace()->activeWindow() )->editCut();
return;
}
@@ -1519,7 +1519,7 @@ void MainWindow::editCut()
void MainWindow::editCopy()
{
if ( qWorkspace()->activeWindow() &&
- ::tqqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) ) {
+ ::tqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) ) {
( (SourceEditor*)qWorkspace()->activeWindow() )->editCopy();
return;
}
@@ -1530,7 +1530,7 @@ void MainWindow::editCopy()
void MainWindow::editPaste()
{
if ( qWorkspace()->activeWindow() &&
- ::tqqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) ) {
+ ::tqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) ) {
( (SourceEditor*)qWorkspace()->activeWindow() )->editPaste();
return;
}
@@ -1569,7 +1569,7 @@ void MainWindow::editDelete()
void MainWindow::editSelectAll()
{
if ( qWorkspace()->activeWindow() &&
- ::tqqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) ) {
+ ::tqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) ) {
( (SourceEditor*)qWorkspace()->activeWindow() )->editSelectAll();
return;
}
@@ -1948,7 +1948,7 @@ void MainWindow::editPreferences()
void MainWindow::searchFind()
{
if ( !qWorkspace()->activeWindow() ||
- !::tqqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) )
+ !::tqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) )
return;
if ( !findDialog )
@@ -1970,7 +1970,7 @@ void MainWindow::searchIncremetalFindMenu()
void MainWindow::searchIncremetalFind()
{
if ( !qWorkspace()->activeWindow() ||
- !::tqqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) )
+ !::tqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) )
return;
( (SourceEditor*)qWorkspace()->activeWindow() )->editorInterface()->find( incrementalSearch->text(),
@@ -1980,7 +1980,7 @@ void MainWindow::searchIncremetalFind()
void MainWindow::searchIncremetalFindNext()
{
if ( !qWorkspace()->activeWindow() ||
- !::tqqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) )
+ !::tqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) )
return;
( (SourceEditor*)qWorkspace()->activeWindow() )->editorInterface()->find( incrementalSearch->text(),
@@ -1990,7 +1990,7 @@ void MainWindow::searchIncremetalFindNext()
void MainWindow::searchReplace()
{
if ( !qWorkspace()->activeWindow() ||
- !::tqqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) )
+ !::tqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) )
return;
if ( !replaceDialog )
@@ -2006,7 +2006,7 @@ void MainWindow::searchReplace()
void MainWindow::searchGotoLine()
{
if ( !qWorkspace()->activeWindow() ||
- !::tqqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) )
+ !::tqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) )
return;
if ( !gotoLineDialog )