summaryrefslogtreecommitdiffstats
path: root/tools/designer/editor/editor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/designer/editor/editor.cpp')
-rw-r--r--tools/designer/editor/editor.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/tools/designer/editor/editor.cpp b/tools/designer/editor/editor.cpp
index 58b5ed90d..7d1f91754 100644
--- a/tools/designer/editor/editor.cpp
+++ b/tools/designer/editor/editor.cpp
@@ -41,14 +41,14 @@
#include <ntqaccel.h>
Editor::Editor( const TQString &fn, TQWidget *parent, const char *name )
- : TQTextEdit( parent, name ), hasError( FALSE )
+ : TQTextEdit( parent, name ), hasError( false )
{
document()->setFormatter( new TQTextFormatterBreakInWords );
if ( !fn.isEmpty() )
load( fn );
setHScrollBarMode( TQScrollView::AlwaysOff );
setVScrollBarMode( TQScrollView::AlwaysOn );
- document()->setUseFormatCollection( FALSE );
+ document()->setUseFormatCollection( false );
parenMatcher = new ParenMatcher;
connect( this, TQ_SIGNAL( cursorPositionChanged( TQTextCursor * ) ),
this, TQ_SLOT( cursorPosChanged( TQTextCursor * ) ) );
@@ -57,14 +57,14 @@ Editor::Editor( const TQString &fn, TQWidget *parent, const char *name )
document()->addSelection( Step );
document()->setSelectionColor( Error, red );
document()->setSelectionColor( Step, yellow );
- document()->setInvertSelectionText( Error, FALSE );
- document()->setInvertSelectionText( Step, FALSE );
+ document()->setInvertSelectionText( Error, false );
+ document()->setInvertSelectionText( Step, false );
document()->addSelection( ParenMatcher::Match );
document()->addSelection( ParenMatcher::Mismatch );
document()->setSelectionColor( ParenMatcher::Match, TQColor( 204, 232, 195 ) );
document()->setSelectionColor( ParenMatcher::Mismatch, TQt::magenta );
- document()->setInvertSelectionText( ParenMatcher::Match, FALSE );
- document()->setInvertSelectionText( ParenMatcher::Mismatch, FALSE );
+ document()->setInvertSelectionText( ParenMatcher::Match, false );
+ document()->setInvertSelectionText( ParenMatcher::Mismatch, false );
accelComment = new TQAccel( this );
accelComment->connectItem( accelComment->insertItem( ALT + Key_C ),
@@ -72,7 +72,7 @@ Editor::Editor( const TQString &fn, TQWidget *parent, const char *name )
accelUncomment = new TQAccel( this );
accelUncomment->connectItem( accelUncomment->insertItem( ALT + Key_U ),
this, TQ_SLOT( uncommentSelection() ) );
- editable = TRUE;
+ editable = true;
}
Editor::~Editor()
@@ -87,7 +87,7 @@ void Editor::cursorPosChanged( TQTextCursor *c )
repaintChanged();
if ( hasError ) {
emit clearErrorMarker();
- hasError = FALSE;
+ hasError = false;
}
}
@@ -113,7 +113,7 @@ void Editor::save( const TQString &fn )
void Editor::configChanged()
{
document()->invalidate();
- viewport()->repaint( FALSE );
+ viewport()->repaint( false );
}
void Editor::setErrorSelection( int line )
@@ -128,8 +128,8 @@ void Editor::setErrorSelection( int line )
document()->setSelectionStart( Error, c );
c.gotoLineEnd();
document()->setSelectionEnd( Error, c );
- hasError = TRUE;
- viewport()->repaint( FALSE );
+ hasError = true;
+ viewport()->repaint( false );
}
void Editor::setStepSelection( int line )
@@ -144,13 +144,13 @@ void Editor::setStepSelection( int line )
document()->setSelectionStart( Step, c );
c.gotoLineEnd();
document()->setSelectionEnd( Step, c );
- viewport()->repaint( FALSE );
+ viewport()->repaint( false );
}
void Editor::clearStepSelection()
{
document()->removeSelection( Step );
- viewport()->repaint( FALSE );
+ viewport()->repaint( false );
}
void Editor::doChangeInterval()
@@ -175,7 +175,7 @@ void Editor::commentSelection()
}
document()->removeSelection( TQTextDocument::Standard );
repaintChanged();
- setModified( TRUE );
+ setModified( true );
}
void Editor::uncommentSelection()
@@ -195,7 +195,7 @@ void Editor::uncommentSelection()
}
document()->removeSelection( TQTextDocument::Standard );
repaintChanged();
- setModified( TRUE );
+ setModified( true );
}
TQPopupMenu *Editor::createPopupMenu( const TQPoint &p )