diff options
Diffstat (limited to 'tools/designer/plugins/cppeditor/editorinterfaceimpl.cpp')
-rw-r--r-- | tools/designer/plugins/cppeditor/editorinterfaceimpl.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tools/designer/plugins/cppeditor/editorinterfaceimpl.cpp b/tools/designer/plugins/cppeditor/editorinterfaceimpl.cpp index 84ec3dd8d..68b030fe5 100644 --- a/tools/designer/plugins/cppeditor/editorinterfaceimpl.cpp +++ b/tools/designer/plugins/cppeditor/editorinterfaceimpl.cpp @@ -76,7 +76,7 @@ TQWidget *EditorInterfaceImpl::editor( bool readonly, { if ( !viewManager ) { ( (EditorInterfaceImpl*)this )->viewManager = new ViewManager( parent, 0 ); - ( (EditorInterfaceImpl*)this )->viewManager->showMarkerWidget( FALSE ); + ( (EditorInterfaceImpl*)this )->viewManager->showMarkerWidget( false ); if ( iface ) iface->queryInterface( IID_Designer, (TQUnknownInterface**) &dIface ); CppEditor *e = new CppEditor( TQString::null, viewManager, "editor", dIface ); @@ -95,7 +95,7 @@ void EditorInterfaceImpl::setText( const TQString &txt ) CppEditor *e = (CppEditor*)viewManager->currentView(); disconnect( e, TQ_SIGNAL( modificationChanged( bool ) ), this, TQ_SLOT( modificationChanged( bool ) ) ); e->setText( txt ); - e->setModified( FALSE ); + e->setModified( false ); connect( e, TQ_SIGNAL( modificationChanged( bool ) ), this, TQ_SLOT( modificationChanged( bool ) ) ); } @@ -112,14 +112,14 @@ TQString EditorInterfaceImpl::text() const bool EditorInterfaceImpl::isUndoAvailable() const { if ( !viewManager || !viewManager->currentView() ) - return FALSE; + return false; return ( (CppEditor*)viewManager->currentView() )->isUndoAvailable(); } bool EditorInterfaceImpl::isRedoAvailable() const { if ( !viewManager || !viewManager->currentView() ) - return FALSE; + return false; return ( (CppEditor*)viewManager->currentView() )->isRedoAvailable(); } @@ -168,7 +168,7 @@ void EditorInterfaceImpl::selectAll() bool EditorInterfaceImpl::find( const TQString &expr, bool cs, bool wo, bool forward, bool startAtCursor ) { if ( !viewManager || !viewManager->currentView() ) - return FALSE; + return false; CppEditor *e = (CppEditor*)viewManager->currentView(); if ( startAtCursor ) return e->find( expr, cs, wo, forward ); @@ -180,9 +180,9 @@ bool EditorInterfaceImpl::replace( const TQString &find, const TQString &replace bool forward, bool startAtCursor, bool replaceAll ) { if ( !viewManager || !viewManager->currentView() ) - return FALSE; + return false; CppEditor *e = (CppEditor*)viewManager->currentView(); - bool ok = FALSE; + bool ok = false; if ( startAtCursor ) { ok = e->find( find, cs, wo, forward ); } else { @@ -192,7 +192,7 @@ bool EditorInterfaceImpl::replace( const TQString &find, const TQString &replace if ( ok ) { e->removeSelectedText(); - e->insert( replace, FALSE, FALSE ); + e->insert( replace, false, false ); } if ( !replaceAll || !ok ) { @@ -204,16 +204,16 @@ bool EditorInterfaceImpl::replace( const TQString &find, const TQString &replace return ok; } - bool ok2 = TRUE; + bool ok2 = true; while ( ok2 ) { ok2 = e->find( find, cs, wo, forward ); if ( ok2 ) { e->removeSelectedText(); - e->insert( replace, FALSE, FALSE ); + e->insert( replace, false, false ); } } - return TRUE; + return true; } void EditorInterfaceImpl::gotoLine( int line ) @@ -295,7 +295,7 @@ void EditorInterfaceImpl::setModified( bool m ) bool EditorInterfaceImpl::isModified() const { if ( !viewManager ) - return FALSE; + return false; return ( (CppEditor*)viewManager->currentView() )->isModified(); } @@ -320,7 +320,7 @@ void EditorInterfaceImpl::intervalChanged() { if ( !dIface ) return; - updateTimer->start( 2000, TRUE ); + updateTimer->start( 2000, true ); } void EditorInterfaceImpl::update() |