diff options
Diffstat (limited to 'kdevdesigner/designer/sourceeditor.cpp')
-rw-r--r-- | kdevdesigner/designer/sourceeditor.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kdevdesigner/designer/sourceeditor.cpp b/kdevdesigner/designer/sourceeditor.cpp index 2850e20e..b7db3d2c 100644 --- a/kdevdesigner/designer/sourceeditor.cpp +++ b/kdevdesigner/designer/sourceeditor.cpp @@ -47,7 +47,7 @@ SourceEditor::SourceEditor( TQWidget *parent, EditorInterface *iface, LanguageIn lIface->addRef(); editor = iFace->editor( MainWindow::self->areEditorsReadOnly(), this, MainWindow::self->designerInterface() ); - iFace->onBreakPointChange( TQT_TQOBJECT(MainWindow::self), TQT_SLOT( breakPointsChanged() ) ); + iFace->onBreakPointChange( MainWindow::self, TQ_SLOT( breakPointsChanged() ) ); resize( 600, 400 ); setIcon( SmallIcon( "designer_filenew.png" , KDevDesignerPartFactory::instance()) ); } @@ -57,7 +57,7 @@ SourceEditor::~SourceEditor() saveBreakPoints(); editor = 0; if ( formWindow() ) { - formWindow()->formFile()->setCodeEdited( FALSE ); + formWindow()->formFile()->setCodeEdited( false ); formWindow()->formFile()->setEditor( 0 ); } else if ( sourceFile() ) { sourceFile()->setEditor( 0 ); @@ -74,16 +74,16 @@ void SourceEditor::setObject( TQObject *o, Project *p ) if ( sourceFile() ) sourceFile()->setEditor( 0 ); if ( formWindow() ) { - formWindow()->formFile()->setCodeEdited( FALSE ); + formWindow()->formFile()->setCodeEdited( false ); formWindow()->formFile()->setEditor( 0 ); } - if ( ::tqqt_cast<FormWindow*>(o) ) - ( (FormWindow*)o )->formFile()->setCodeEdited( TRUE ); + if ( ::tqt_cast<FormWindow*>(o) ) + ( (FormWindow*)o )->formFile()->setCodeEdited( true ); save(); - bool changed = FALSE; + bool changed = false; if ( &(*obj) != o ) { saveBreakPoints(); - changed = TRUE; + changed = true; } obj = o; pro = p; @@ -104,7 +104,7 @@ void SourceEditor::setObject( TQObject *o, Project *p ) if ( formWindow()->isFake() ) iFace->setContext( pro->objectForFakeFormFile( formWindow()->formFile() ) ); else - iFace->setContext( TQT_TQOBJECT(formWindow()->mainContainer()) ); + iFace->setContext( formWindow()->mainContainer() ); } else { iFace->setContext( 0 ); } @@ -119,9 +119,9 @@ TQString SourceEditor::sourceOfObject( TQObject *o, const TQString &, TQString txt; if ( !o ) return txt; - if ( ::tqqt_cast<FormWindow*>(o) ) + if ( ::tqt_cast<FormWindow*>(o) ) txt = ( (FormWindow*)o )->formFile()->code(); - else if ( ::tqqt_cast<SourceFile*>(o) ) + else if ( ::tqt_cast<SourceFile*>(o) ) txt = ( (SourceFile*)o )->text(); return txt; } @@ -235,7 +235,7 @@ void SourceEditor::resetContext() if ( formWindow()->isFake() ) iFace->setContext( pro->objectForFakeFormFile( formWindow()->formFile() ) ); else - iFace->setContext( TQT_TQOBJECT(formWindow()->mainContainer()) ); + iFace->setContext( formWindow()->mainContainer() ); } else { iFace->setContext( 0 ); } @@ -244,7 +244,7 @@ void SourceEditor::resetContext() void SourceEditor::setFocus() { if ( formWindow() ) - formWindow()->formFile()->setCodeEdited( TRUE ); + formWindow()->formFile()->setCodeEdited( true ); if ( editor ) editor->setFocus(); } @@ -302,19 +302,19 @@ bool SourceEditor::saveAs() return formWindow()->formFile()->saveAs(); else if ( sourceFile() ) return sourceFile()->saveAs(); - return FALSE; + return false; } SourceFile *SourceEditor::sourceFile() const { - if ( !::tqqt_cast<SourceFile*>((TQObject *)obj) ) + if ( !::tqt_cast<SourceFile*>((TQObject *)obj) ) return 0; return (SourceFile*)(TQObject*)obj; } FormWindow *SourceEditor::formWindow() const { - if ( !::tqqt_cast<FormWindow*>((TQObject *)obj) ) + if ( !::tqt_cast<FormWindow*>((TQObject *)obj) ) return 0; return (FormWindow*)(TQObject*)obj; } |