summaryrefslogtreecommitdiffstats
path: root/tqt
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-04-04 13:24:41 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-04-04 13:59:21 +0900
commit3f2dc73d5a565121db00f4a0f050a48910b51623 (patch)
tree3a2f1b4b88fc316e2c3d87b5e83058cb346b2852 /tqt
parent3c23eba2e71e6aebeb7ff5091fc69d050170e1d1 (diff)
downloadtqscintilla-master.tar.gz
tqscintilla-master.zip
Replace TRUE/FALSE with boolean values true/falseHEADmaster
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tqt')
-rw-r--r--tqt/PlatTQt.cpp4
-rw-r--r--tqt/SciListBox.cpp2
-rw-r--r--tqt/ScintillaTQt.cpp4
-rw-r--r--tqt/tqextscintilla.cpp86
-rw-r--r--tqt/tqextscintilla.h110
-rw-r--r--tqt/tqextscintillaapis.cpp14
-rw-r--r--tqt/tqextscintillaapis.h2
-rw-r--r--tqt/tqextscintillabase.cpp22
-rw-r--r--tqt/tqextscintillabase.h2
-rw-r--r--tqt/tqextscintillacommand.h2
-rw-r--r--tqt/tqextscintillacommandset.cpp14
-rw-r--r--tqt/tqextscintillacommandset.h4
-rw-r--r--tqt/tqextscintillalexer.cpp34
-rw-r--r--tqt/tqextscintillalexer.h10
-rw-r--r--tqt/tqextscintillalexerbash.cpp30
-rw-r--r--tqt/tqextscintillalexerbash.h16
-rw-r--r--tqt/tqextscintillalexerbatch.cpp4
-rw-r--r--tqt/tqextscintillalexercpp.cpp52
-rw-r--r--tqt/tqextscintillalexercpp.h38
-rw-r--r--tqt/tqextscintillalexercsharp.cpp2
-rw-r--r--tqt/tqextscintillalexercss.cpp28
-rw-r--r--tqt/tqextscintillalexercss.h16
-rw-r--r--tqt/tqextscintillalexerhtml.cpp44
-rw-r--r--tqt/tqextscintillalexerhtml.h22
-rw-r--r--tqt/tqextscintillalexerjavascript.cpp2
-rw-r--r--tqt/tqextscintillalexerlua.cpp14
-rw-r--r--tqt/tqextscintillalexerlua.h10
-rw-r--r--tqt/tqextscintillalexerperl.cpp32
-rw-r--r--tqt/tqextscintillalexerperl.h16
-rw-r--r--tqt/tqextscintillalexerpov.cpp36
-rw-r--r--tqt/tqextscintillalexerpov.h22
-rw-r--r--tqt/tqextscintillalexerproperties.cpp14
-rw-r--r--tqt/tqextscintillalexerproperties.h10
-rw-r--r--tqt/tqextscintillalexerpython.cpp32
-rw-r--r--tqt/tqextscintillalexerpython.h16
-rw-r--r--tqt/tqextscintillalexerruby.cpp2
-rw-r--r--tqt/tqextscintillalexersql.cpp34
-rw-r--r--tqt/tqextscintillalexersql.h22
-rw-r--r--tqt/tqextscintillamacro.cpp8
-rw-r--r--tqt/tqextscintillamacro.h2
-rw-r--r--tqt/tqextscintillaprinter.cpp24
-rw-r--r--tqt/tqextscintillaprinter.h6
42 files changed, 432 insertions, 432 deletions
diff --git a/tqt/PlatTQt.cpp b/tqt/PlatTQt.cpp
index cdc5553..00c013b 100644
--- a/tqt/PlatTQt.cpp
+++ b/tqt/PlatTQt.cpp
@@ -338,7 +338,7 @@ void SurfaceImpl::AlphaRectangle(PRectangle rc, int cornerSize,
TQImage img(w, h, 32);
img.fill(convertTQRgb(fill, alphaFill));
- img.setAlphaBuffer(TRUE);
+ img.setAlphaBuffer(true);
// Assume that "cornerSize" means outline width.
if (cornerSize > 0)
@@ -413,7 +413,7 @@ void SurfaceImpl::DrawTextClipped(PRectangle rc,Font &font_,int ybase,
{
SetClip(rc);
DrawTextNoClip(rc,font_,ybase,s,len,fore,back);
- painter -> setClipping(FALSE);
+ painter -> setClipping(false);
}
void SurfaceImpl::DrawTextTransparent(PRectangle rc,Font &font_,int ybase,
diff --git a/tqt/SciListBox.cpp b/tqt/SciListBox.cpp
index f1c0e82..414b65d 100644
--- a/tqt/SciListBox.cpp
+++ b/tqt/SciListBox.cpp
@@ -182,7 +182,7 @@ int ListBoxX::Length()
void ListBoxX::Select(int n)
{
- slb -> setSelected(n,TRUE);
+ slb -> setSelected(n,true);
}
diff --git a/tqt/ScintillaTQt.cpp b/tqt/ScintillaTQt.cpp
index 15bbc20..756a77a 100644
--- a/tqt/ScintillaTQt.cpp
+++ b/tqt/ScintillaTQt.cpp
@@ -622,9 +622,9 @@ void ScintillaTQt::ClaimSelection()
if (text.s)
{
- cb -> setSelectionMode(TRUE);
+ cb -> setSelectionMode(true);
cb -> setText(text.s);
- cb -> setSelectionMode(FALSE);
+ cb -> setSelectionMode(false);
}
}
diff --git a/tqt/tqextscintilla.cpp b/tqt/tqextscintilla.cpp
index 3660adc..66dfd71 100644
--- a/tqt/tqextscintilla.cpp
+++ b/tqt/tqextscintilla.cpp
@@ -51,11 +51,11 @@ static const char *defaultWordChars = "_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMN
// The ctor.
TQextScintilla::TQextScintilla(TQWidget *parent,const char *name,WFlags f)
: TQextScintillaBase(parent,name,f), allocatedMarkers(0), oldPos(-1),
- selText(FALSE), fold(NoFoldStyle), autoInd(FALSE),
+ selText(false), fold(NoFoldStyle), autoInd(false),
braceMode(NoBraceMatch), acSource(AcsDocument), acThresh(-1),
acStart(""), acAPIs(0), ctAPIs(0), maxCallTips(-1),
- showSingle(FALSE), modified(FALSE), explicit_fillups(FALSE),
- fillups_enabled(FALSE), saved_fillups("")
+ showSingle(false), modified(false), explicit_fillups(false),
+ fillups_enabled(false), saved_fillups("")
{
connect(this,TQ_SIGNAL(SCN_MODIFYATTEMPTRO()),
TQ_SIGNAL(modificationAttempted()));
@@ -212,7 +212,7 @@ void TQextScintilla::handleCharAdded(int ch)
if (isAutoCStartChar(ch))
{
cancelList();
- startAutoCompletion(acSource, FALSE, FALSE);
+ startAutoCompletion(acSource, false, false);
}
return;
@@ -232,9 +232,9 @@ void TQextScintilla::handleCharAdded(int ch)
// See if we might want to start auto-completion.
if (!isCallTipActive())
if (isAutoCStartChar(ch))
- startAutoCompletion(acSource, FALSE, FALSE);
+ startAutoCompletion(acSource, false, false);
else if (acThresh >= 1 && isWordChar(ch))
- startAutoCompletion(acSource, TRUE, FALSE);
+ startAutoCompletion(acSource, true, false);
}
@@ -647,7 +647,7 @@ int TQextScintilla::blockIndent(int line)
}
-// Return TRUE if all characters starting at spos up to, but not including
+// Return true if all characters starting at spos up to, but not including
// epos, are spaces or tabs.
bool TQextScintilla::rangeIsWhitespace(long spos,long epos)
{
@@ -656,12 +656,12 @@ bool TQextScintilla::rangeIsWhitespace(long spos,long epos)
char ch = SendScintilla(SCI_GETCHARAT,spos);
if (ch != ' ' && ch != '\t')
- return FALSE;
+ return false;
++spos;
}
- return TRUE;
+ return true;
}
@@ -777,7 +777,7 @@ int TQextScintilla::findStyledWord(const char *text,int style,const char *words)
}
-// Return TRUE if the code page is UTF8.
+// Return true if the code page is UTF8.
bool TQextScintilla::isUtf8()
{
return (SendScintilla(SCI_GETCODEPAGE) == SC_CP_UTF8);
@@ -1041,7 +1041,7 @@ void TQextScintilla::foldClick(int lineClick,int bstate)
{
// Ensure all children are visible.
SendScintilla(SCI_SETFOLDEXPANDED,lineClick,1);
- foldExpand(lineClick,TRUE,TRUE,100,levelClick);
+ foldExpand(lineClick,true,true,100,levelClick);
}
else if (bstate & ControlButton)
{
@@ -1049,13 +1049,13 @@ void TQextScintilla::foldClick(int lineClick,int bstate)
{
// Contract this line and all its children.
SendScintilla(SCI_SETFOLDEXPANDED,lineClick,0L);
- foldExpand(lineClick,FALSE,TRUE,0,levelClick);
+ foldExpand(lineClick,false,true,0,levelClick);
}
else
{
// Expand this line and all its children.
SendScintilla(SCI_SETFOLDEXPANDED,lineClick,1);
- foldExpand(lineClick,TRUE,TRUE,100,levelClick);
+ foldExpand(lineClick,true,true,100,levelClick);
}
}
else
@@ -1109,10 +1109,10 @@ void TQextScintilla::foldExpand(int &line,bool doExpand,bool force,
if (!SendScintilla(SCI_GETFOLDEXPANDED,line))
SendScintilla(SCI_SETFOLDEXPANDED,line,1);
- foldExpand(line,TRUE,force,visLevels - 1);
+ foldExpand(line,true,force,visLevels - 1);
}
else
- foldExpand(line,FALSE,force,visLevels - 1);
+ foldExpand(line,false,force,visLevels - 1);
}
else
line++;
@@ -1127,7 +1127,7 @@ void TQextScintilla::foldAll(bool children)
recolor();
int maxLine = SendScintilla(SCI_GETLINECOUNT);
- bool expanding = TRUE;
+ bool expanding = true;
for (int lineSeek = 0; lineSeek < maxLine; lineSeek++)
{
@@ -1151,7 +1151,7 @@ void TQextScintilla::foldAll(bool children)
if (expanding)
{
SendScintilla(SCI_SETFOLDEXPANDED,line,1);
- foldExpand(line,TRUE,FALSE,0,level);
+ foldExpand(line,true,false,0,level);
line--;
}
else
@@ -1183,7 +1183,7 @@ void TQextScintilla::foldChanged(int line,int levelNow,int levelPrev)
// Removing the fold from one that has been contracted
// so should expand. Otherwise lines are left
// invisible with no way to make them visible.
- foldExpand(line,TRUE,FALSE,0,levelPrev);
+ foldExpand(line,true,false,0,levelPrev);
}
}
}
@@ -1255,10 +1255,10 @@ bool TQextScintilla::findFirst(const TQString &expr,bool re,bool cs,bool wo,
bool wrap,bool forward,int line,int index,
bool show)
{
- findState.inProgress = FALSE;
+ findState.inProgress = false;
if (expr.isEmpty())
- return FALSE;
+ return false;
findState.expr = expr;
findState.wrap = wrap;
@@ -1288,7 +1288,7 @@ bool TQextScintilla::findFirst(const TQString &expr,bool re,bool cs,bool wo,
bool TQextScintilla::findNext()
{
if (!findState.inProgress)
- return FALSE;
+ return false;
return doFind();
}
@@ -1320,8 +1320,8 @@ bool TQextScintilla::doFind()
if (pos == -1)
{
- findState.inProgress = FALSE;
- return FALSE;
+ findState.inProgress = false;
+ return false;
}
// It was found.
@@ -1348,8 +1348,8 @@ bool TQextScintilla::doFind()
else if ((findState.startpos = targstart - 1) < 0)
findState.startpos = 0;
- findState.inProgress = TRUE;
- return TRUE;
+ findState.inProgress = true;
+ return true;
}
@@ -1453,8 +1453,8 @@ void TQextScintilla::handleSavePointReached()
{
if (modified)
{
- modified = FALSE;
- emit modificationChanged(FALSE);
+ modified = false;
+ emit modificationChanged(false);
}
}
@@ -1464,8 +1464,8 @@ void TQextScintilla::handleSavePointLeft()
{
if (!modified)
{
- modified = TRUE;
- emit modificationChanged(TRUE);
+ modified = true;
+ emit modificationChanged(true);
}
}
@@ -2611,7 +2611,7 @@ long TQextScintilla::checkBrace(long pos,int brace_style,bool &colonMode)
if (!lex.isNull() && strcmp(lex -> lexer(),"python") == 0)
{
brace_pos = pos;
- colonMode = TRUE;
+ colonMode = true;
}
}
else if (ch && strchr("[](){}<>",ch))
@@ -2631,11 +2631,11 @@ long TQextScintilla::checkBrace(long pos,int brace_style,bool &colonMode)
}
-// Find a brace and it's match. Return TRUE if the current position is inside
+// Find a brace and it's match. Return true if the current position is inside
// a pair of braces.
bool TQextScintilla::findMatchingBrace(long &brace,long &other,BraceMatch mode)
{
- bool colonMode = FALSE;
+ bool colonMode = false;
int brace_style = (lex.isNull() ? -1 : lex -> braceStyle());
brace = -1;
@@ -2646,14 +2646,14 @@ bool TQextScintilla::findMatchingBrace(long &brace,long &other,BraceMatch mode)
if (caretPos > 0)
brace = checkBrace(caretPos - 1,brace_style,colonMode);
- bool isInside = FALSE;
+ bool isInside = false;
if (brace < 0 && mode == SloppyBraceMatch)
{
brace = checkBrace(caretPos,brace_style,colonMode);
if (brace >= 0 && !colonMode)
- isInside = TRUE;
+ isInside = true;
}
if (brace >= 0)
@@ -2680,14 +2680,14 @@ bool TQextScintilla::findMatchingBrace(long &brace,long &other,BraceMatch mode)
// Move to the matching brace.
void TQextScintilla::moveToMatchingBrace()
{
- gotoMatchingBrace(FALSE);
+ gotoMatchingBrace(false);
}
// Select to the matching brace.
void TQextScintilla::selectToMatchingBrace()
{
- gotoMatchingBrace(TRUE);
+ gotoMatchingBrace(true);
}
@@ -2798,14 +2798,14 @@ void TQextScintilla::setAutoCompletionAPIs(TQextScintillaAPIs *apis)
// Explicitly auto-complete from all sources.
void TQextScintilla::autoCompleteFromAll()
{
- startAutoCompletion(AcsAll, FALSE, showSingle);
+ startAutoCompletion(AcsAll, false, showSingle);
}
// Explicitly auto-complete from the APIs.
void TQextScintilla::autoCompleteFromAPIs()
{
- startAutoCompletion(AcsAPIs, FALSE, showSingle);
+ startAutoCompletion(AcsAPIs, false, showSingle);
}
@@ -2814,18 +2814,18 @@ void TQextScintilla::autoCompleteFromDocument()
{
// If we are not in a word then ignore.
if (currentCharInWord())
- startAutoCompletion(AcsDocument, FALSE, showSingle);
+ startAutoCompletion(AcsDocument, false, showSingle);
}
-// Return TRUE if the current character (ie. the one before the carat) is part
+// Return true if the current character (ie. the one before the carat) is part
// of a word.
bool TQextScintilla::currentCharInWord()
{
long pos = SendScintilla(SCI_GETCURRENTPOS);
if (pos <= 0)
- return FALSE;
+ return false;
return isWordChar(SendScintilla(SCI_GETCHARAT,pos - 1));
}
@@ -2874,7 +2874,7 @@ void TQextScintilla::setAutoCompletionFillups(const char *fillups)
fillups = "";
SendScintilla(SCI_AUTOCSETFILLUPS, fillups);
- fillups_enabled = explicit_fillups = TRUE;
+ fillups_enabled = explicit_fillups = true;
// Save them in case we need to reenable them at some point.
saved_fillups = fillups;
@@ -2979,7 +2979,7 @@ bool TQextScintilla::ensureRW()
bool ro = isReadOnly();
if (ro)
- setReadOnly(FALSE);
+ setReadOnly(false);
return ro;
}
diff --git a/tqt/tqextscintilla.h b/tqt/tqextscintilla.h
index fa2e590..1ab0daa 100644
--- a/tqt/tqextscintilla.h
+++ b/tqt/tqextscintilla.h
@@ -283,7 +283,7 @@ public:
//! Destroys the TQextScintilla instance.
virtual ~TQextScintilla();
- //! Returns TRUE if auto-completion lists are case sensitive.
+ //! Returns true if auto-completion lists are case sensitive.
//!
//! \sa setAutoCompletionCaseSensitivity()
bool autoCompletionCaseSensitivity();
@@ -293,14 +293,14 @@ public:
//! \sa setAutoCompletionFillups(), setAutoCompletionFillupsEnabled()
bool autoCompletionFillupsEnabled();
- //! Returns TRUE if the rest of the word to the right of the current
+ //! Returns true if the rest of the word to the right of the current
//! cursor is removed when an item from an auto-completion list is
//! selected.
//!
//! \sa setAutoCompletionReplaceWord()
bool autoCompletionReplaceWord();
- //! Returns TRUE if the only item in an auto-completion list with a
+ //! Returns true if the only item in an auto-completion list with a
//! single entry is automatically used and the list not displayed.
//!
//! \sa setAutoCompletionShowSingle()
@@ -318,13 +318,13 @@ public:
//! \sa setAutoCompletionThreshold()
int autoCompletionThreshold() const {return acThresh;}
- //! Returns TRUE if auto-indentation is enabled.
+ //! Returns true if auto-indentation is enabled.
//!
//! \sa setAutoIndent()
bool autoIndent() const {return autoInd;}
- //! Returns TRUE if the backspace key unindents a line instead of
- //! deleting a character. The default is FALSE.
+ //! Returns true if the backspace key unindents a line instead of
+ //! deleting a character. The default is false.
//!
//! \sa setBackspaceUnindents(), tabIndents(), setTabIndents()
bool backspaceUnindents();
@@ -402,22 +402,22 @@ public:
//! \sa setEolVisibility()
bool eolVisibility();
- //! Find the next occurrence of the string \a expr and return TRUE if
- //! \a expr was found, otherwise returns FALSE. If \a expr is found it
+ //! Find the next occurrence of the string \a expr and return true if
+ //! \a expr was found, otherwise returns false. If \a expr is found it
//! becomes the current selection.
//!
- //! If \a re is TRUE then \a expr is interpreted as a regular
+ //! If \a re is true then \a expr is interpreted as a regular
//! expression rather than a simple string.
//!
- //! If \a cs is TRUE then the search is case sensitive.
+ //! If \a cs is true then the search is case sensitive.
//!
- //! If \a wo is TRUE then the search looks for whole word matches only,
+ //! If \a wo is true then the search looks for whole word matches only,
//! otherwise it searches for any matching text.
//!
- //! If \a wrap is TRUE then the search wraps around the end of the
+ //! If \a wrap is true then the search wraps around the end of the
//! text.
//!
- //! If \a forward is TRUE (the default) then the search is forward from
+ //! If \a forward is true (the default) then the search is forward from
//! the starting position to the end of the text, otherwise it is
//! backwards to the beginning of the text.
//!
@@ -425,13 +425,13 @@ public:
//! search begins from the current cursor position. Otherwise the
//! search begins at position \a index of line \a line.
//!
- //! If \a show is TRUE (the default) then any text found is made
+ //! If \a show is true (the default) then any text found is made
//! visible (ie. it is unfolded).
//!
//! \sa findNext(), replace()
virtual bool findFirst(const TQString &expr,bool re,bool cs,bool wo,
- bool wrap,bool forward = TRUE,int line = -1,
- int index = -1,bool show = TRUE);
+ bool wrap,bool forward = true,int line = -1,
+ int index = -1,bool show = true);
//! Find the next occurence of the string found using findFirst().
//!
@@ -464,7 +464,7 @@ public:
void getSelection(int *lineFrom,int *indexFrom,
int *lineTo,int *indexTo);
- //! Returns TRUE if some text is selected.
+ //! Returns true if some text is selected.
//!
//! \sa selectedText()
bool hasSelectedText() const {return selText;}
@@ -474,13 +474,13 @@ public:
//! \sa setIndentation()
int indentation(int line);
- //! Returns TRUE if the display of indentation guides is enabled.
+ //! Returns true if the display of indentation guides is enabled.
//!
//! \sa setIndentationGuides()
bool indentationGuides();
- //! Returns TRUE if indentations are created using tabs and spaces,
- //! rather than just spaces. The default is TRUE.
+ //! Returns true if indentations are created using tabs and spaces,
+ //! rather than just spaces. The default is true.
//!
//! \sa setIndentationsUseTabs()
bool indentationsUseTabs();
@@ -491,34 +491,34 @@ public:
//! \sa setIndentationWidth(), tabWidth()
int indentationWidth();
- //! Returns TRUE if a call tip is currently active.
+ //! Returns true if a call tip is currently active.
bool isCallTipActive();
- //! Returns TRUE if an auto-completion or user defined list is
+ //! Returns true if an auto-completion or user defined list is
//! currently active.
bool isListActive();
- //! Returns TRUE if the text has been modified.
+ //! Returns true if the text has been modified.
//!
//! \sa setModified(), modificationChanged()
bool isModified();
- //! Returns TRUE if the text edit is read-only.
+ //! Returns true if the text edit is read-only.
//!
//! \sa setReadOnly()
bool isReadOnly();
- //! Returns TRUE if there is something that can be redone.
+ //! Returns true if there is something that can be redone.
//!
//! \sa redo()
bool isRedoAvailable();
- //! Returns TRUE if there is something that can be undone.
+ //! Returns true if there is something that can be undone.
//!
//! \sa undo()
bool isUndoAvailable();
- //! Returns TRUE if text is interpreted as being UTF8 encoded. The
+ //! Returns true if text is interpreted as being UTF8 encoded. The
//! default is to interpret the text as Latin1 encoded.
//!
//! \sa setUtf8()
@@ -543,7 +543,7 @@ public:
//! \sa setLexer()
TQextScintillaLexer *lexer() const;
- //! Returns TRUE if line numbers are enabled for margin \a margin.
+ //! Returns true if line numbers are enabled for margin \a margin.
//!
//! \sa setMarginLineNumbers(), TQextScintillaBase::SCI_GETMARGINTYPEN
bool marginLineNumbers(int margin);
@@ -554,7 +554,7 @@ public:
//! TQextScintillaBase::SCI_GETMARGINMASKN
int marginMarkerMask(int margin);
- //! Returns TRUE if margin \a margin is sensitive to mouse clicks.
+ //! Returns true if margin \a margin is sensitive to mouse clicks.
//!
//! \sa setMarginSensitivity(), marginClicked(),
//! TQextScintillaBase::SCI_GETMARGINTYPEN
@@ -831,8 +831,8 @@ public:
//! The standard command set is returned.
TQextScintillaCommandSet *standardCommands() const {return stdCmds;}
- //! Returns TRUE if the tab key indents a line instead of inserting a
- //! tab character. The default is TRUE.
+ //! Returns true if the tab key indents a line instead of inserting a
+ //! tab character. The default is true.
//!
//! \sa setTabIndents(), backspaceUnindents(), setBackspaceUnindents()
bool tabIndents();
@@ -923,7 +923,7 @@ public slots:
//! pressed. If \a children is not set (the default) then only the top
//! level fold points are affected, otherwise the state of all fold
//! points are changed.
- virtual void foldAll(bool children = FALSE);
+ virtual void foldAll(bool children = false);
//! If the line \a line is folded then it is unfolded. Otherwise it is
//! folded. This has the same effect as clicking in the fold margin.
@@ -969,35 +969,35 @@ public slots:
//! \sa setSelectionForegroundColor(), resetSelectionBackgroundColor()
virtual void resetSelectionForegroundColor();
- //! If \a select is TRUE (the default) then all the text is selected.
- //! If \a select is FALSE then any currently selected text is
+ //! If \a select is true (the default) then all the text is selected.
+ //! If \a select is false then any currently selected text is
//! deselected.
- virtual void selectAll(bool select = TRUE);
+ virtual void selectAll(bool select = true);
//! If the cursor is either side of a brace character then move it to
//! the position of the corresponding brace and select the text between
//! the braces.
virtual void selectToMatchingBrace();
- //! If \a cs is TRUE then auto-completion lists are case sensitive.
- //! The default is TRUE.
+ //! If \a cs is true then auto-completion lists are case sensitive.
+ //! The default is true.
//!
//! \sa autoCompletionCaseSensitivity()
virtual void setAutoCompletionCaseSensitivity(bool cs);
- //! If \a replace is TRUE then when an item from an auto-completion
+ //! If \a replace is true then when an item from an auto-completion
//! list is selected, the rest of the word to the right of the current
- //! cursor is removed. The default is FALSE.
+ //! cursor is removed. The default is false.
//!
//! \sa autoCompletionReplaceWord()
virtual void setAutoCompletionReplaceWord(bool replace);
- //! If \a single is TRUE then when there is only a single entry in an
+ //! If \a single is true then when there is only a single entry in an
//! auto-completion list it is automatically used and the list is not
//! displayed. This only has an effect when auto-completion is
//! explicitly requested (using autoCompleteFromAPIs() and
//! autoCompleteFromDocument()) and has no effect when auto-completion
- //! is triggered as the user types. The default is FALSE.
+ //! is triggered as the user types. The default is false.
//!
//! \sa autoCompletionShowSingle()
virtual void setAutoCompletionShowSingle(bool single);
@@ -1018,8 +1018,8 @@ public slots:
//! \sa autoCompletionThreshold(), setAutoCompletionStartCharacters()
virtual void setAutoCompletionThreshold(int thresh);
- //! If \a autoindent is TRUE then auto-indentation is enabled. The
- //! default is FALSE.
+ //! If \a autoindent is true then auto-indentation is enabled. The
+ //! default is false.
//!
//! \sa autoIndent()
virtual void setAutoIndent(bool autoindent);
@@ -1030,7 +1030,7 @@ public slots:
//! \sa braceMatching()
virtual void setBraceMatching(BraceMatch bm);
- //! If \a deindent is TRUE then the backspace key will unindent a line
+ //! If \a deindent is true then the backspace key will unindent a line
//! rather then delete a character.
//!
//! \sa backspaceUnindents(), tabIndents(), setTabIndents()
@@ -1072,7 +1072,7 @@ public slots:
//! \sa eolMode()
virtual void setEolMode(EolMode mode);
- //! If \a visible is TRUE then end-of-lines are made visible. The
+ //! If \a visible is true then end-of-lines are made visible. The
//! default is that they are invisible.
//!
//! \sa eolVisibility()
@@ -1105,7 +1105,7 @@ public slots:
//! \sa setIndentationGuidesBackgroundColor()
virtual void setIndentationGuidesForegroundColor(const TQColor &col);
- //! If \a tabs is TRUE then indentations are created using tabs and
+ //! If \a tabs is true then indentations are created using tabs and
//! spaces, rather than just spaces.
//!
//! \sa indentationsUseTabs()
@@ -1172,8 +1172,8 @@ public slots:
virtual void setMarginWidth(int margin,const TQString &s);
//! Sets the modified state of the text edit to \a m. Note that it is
- //! only possible to clear the modified state (where \a m is FALSE).
- //! Attempts to set the modified state (where \a m is TRUE) are
+ //! only possible to clear the modified state (where \a m is false).
+ //! Attempts to set the modified state (where \a m is true) are
//! ignored.
//!
//! \sa isModified(), modificationChanged()
@@ -1209,7 +1209,7 @@ public slots:
//! \sa resetSelectionForegroundColor(), setSelectionBackgroundColor()
virtual void setSelectionForegroundColor(const TQColor &col);
- //! If \a indent is TRUE then the tab key will indent a line rather
+ //! If \a indent is true then the tab key will indent a line rather
//! then insert a tab character.
//!
//! \sa tabIndents(), backspaceUnindents(), setBackspaceUnindents()
@@ -1226,7 +1226,7 @@ public slots:
//! \sa text()
virtual void setText(const TQString &text);
- //! Sets the current text encoding. If \a cp is TRUE then UTF8 is
+ //! Sets the current text encoding. If \a cp is true then UTF8 is
//! used, otherwise Latin1 is used.
//!
//! \sa isUtf8()
@@ -1300,9 +1300,9 @@ signals:
void cursorPositionChanged(int line,int pos);
//! This signal is emitted whenever text is selected or de-selected.
- //! \a yes is TRUE if text has been selected and FALSE if text has been
- //! deselected. If \a yes is TRUE then copy() can be used to copy the
- //! selection to the clipboard. If \a yes is FALSE then copy() does
+ //! \a yes is true if text has been selected and false if text has been
+ //! deselected. If \a yes is true then copy() can be used to copy the
+ //! selection to the clipboard. If \a yes is false then copy() does
//! nothing.
//!
//! \sa copy(), selectionChanged()
@@ -1324,7 +1324,7 @@ signals:
void modificationAttempted();
//! This signal is emitted whenever the modification state of the text
- //! changes. \a m is TRUE if the text has been modified.
+ //! changes. \a m is true if the text has been modified.
//!
//! \sa isModified(), setModified()
void modificationChanged(bool m);
@@ -1388,7 +1388,7 @@ private:
long simpleFind();
void foldClick(int lineClick,int bstate);
void foldChanged(int line,int levelNow,int levelPrev);
- void foldExpand(int &line,bool doExpand,bool force = FALSE,
+ void foldExpand(int &line,bool doExpand,bool force = false,
int visLevels = 0,int level = -1);
void setFoldMarker(int marknr,int mark = SC_MARK_EMPTY);
TQString convertText(const char *s);
diff --git a/tqt/tqextscintillaapis.cpp b/tqt/tqextscintillaapis.cpp
index 635b439..06622f5 100644
--- a/tqt/tqextscintillaapis.cpp
+++ b/tqt/tqextscintillaapis.cpp
@@ -30,7 +30,7 @@
// The ctor.
-TQextScintillaAPIs::TQextScintillaAPIs() : sorted(TRUE), ctcursor(0)
+TQextScintillaAPIs::TQextScintillaAPIs() : sorted(true), ctcursor(0)
{
}
@@ -47,7 +47,7 @@ bool TQextScintillaAPIs::load(const TQString &fname)
TQFile f(fname);
if (!f.open(IO_ReadOnly))
- return FALSE;
+ return false;
TQTextStream ts(&f);
@@ -61,9 +61,9 @@ bool TQextScintillaAPIs::load(const TQString &fname)
apis.append(line);
}
- sorted = FALSE;
+ sorted = false;
- return TRUE;
+ return true;
}
@@ -71,7 +71,7 @@ bool TQextScintillaAPIs::load(const TQString &fname)
void TQextScintillaAPIs::add(const TQString &entry)
{
apis.append(entry);
- sorted = FALSE;
+ sorted = false;
}
@@ -79,7 +79,7 @@ void TQextScintillaAPIs::add(const TQString &entry)
void TQextScintillaAPIs::clear()
{
apis.clear();
- sorted = TRUE;
+ sorted = true;
}
@@ -208,6 +208,6 @@ void TQextScintillaAPIs::ensureSorted()
if (!sorted)
{
apis.sort();
- sorted = TRUE;
+ sorted = true;
}
}
diff --git a/tqt/tqextscintillaapis.h b/tqt/tqextscintillaapis.h
index 351f18d..eb37783 100644
--- a/tqt/tqextscintillaapis.h
+++ b/tqt/tqextscintillaapis.h
@@ -55,7 +55,7 @@ public:
void add(const TQString &entry);
//! Load the API information from the file named \a fname, adding it to
- //! the current set. Returns TRUE if successful, otherwise FALSE.
+ //! the current set. Returns true if successful, otherwise false.
bool load(const TQString &fname);
//! Deletes all API information.
diff --git a/tqt/tqextscintillabase.cpp b/tqt/tqextscintillabase.cpp
index 8d02345..01afc67 100644
--- a/tqt/tqextscintillabase.cpp
+++ b/tqt/tqextscintillabase.cpp
@@ -62,7 +62,7 @@
// Remember if we have linked the lexers.
-static bool lexersLinked = FALSE;
+static bool lexersLinked = false;
// The list of instances.
static TQPtrList<TQextScintillaBase> poolList;
@@ -78,8 +78,8 @@ TQextScintillaBase::TQextScintillaBase(TQWidget *parent,const char *name,WFlags
txtarea = new TQWidget(this,0,WRepaintNoErase|WResizeNoErase);
txtarea -> setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding,TQSizePolicy::Expanding));
- txtarea -> setMouseTracking(TRUE);
- txtarea -> setAcceptDrops(TRUE);
+ txtarea -> setMouseTracking(true);
+ txtarea -> setAcceptDrops(true);
txtarea -> setFocusPolicy(WheelFocus);
txtarea -> setFocusProxy(this);
layout -> addWidget(txtarea,0,0);
@@ -105,7 +105,7 @@ TQextScintillaBase::TQextScintillaBase(TQWidget *parent,const char *name,WFlags
{
Scintilla_LinkLexers();
- lexersLinked = TRUE;
+ lexersLinked = true;
}
TQClipboard *cb = TQApplication::clipboard();
@@ -213,7 +213,7 @@ bool TQextScintillaBase::eventFilter(TQObject *o,TQEvent *e)
if (o != txtarea)
return TQWidget::eventFilter(o,e);
- bool used = TRUE;
+ bool used = true;
switch (e -> type())
{
@@ -266,7 +266,7 @@ bool TQextScintillaBase::eventFilter(TQObject *o,TQEvent *e)
break;
default:
- used = FALSE;
+ used = false;
}
return used;
@@ -337,14 +337,14 @@ void TQextScintillaBase::mousePress(TQMouseEvent *me)
if (cb -> supportsSelection())
{
- cb -> setSelectionMode(TRUE);
+ cb -> setSelectionMode(true);
int pos = sci -> PositionFromLocation(pt);
sci -> SetSelection(pos,pos);
sci -> Paste();
- cb -> setSelectionMode(FALSE);
+ cb -> setSelectionMode(false);
}
break;
@@ -507,7 +507,7 @@ void TQextScintillaBase::keyPressEvent(TQKeyEvent *ke)
}
}
- bool consumed = FALSE;
+ bool consumed = false;
if (key)
{
@@ -519,7 +519,7 @@ void TQextScintillaBase::keyPressEvent(TQKeyEvent *ke)
// the return value of KeyDown() will be true, but consumed
// will incorrectly be false.
if (sci -> KeyDown(key,shift,ctrl,alt,&consumed) && !consumed)
- consumed = TRUE;
+ consumed = true;
}
else if (sci -> IsUnicodeMode())
{
@@ -529,7 +529,7 @@ void TQextScintillaBase::keyPressEvent(TQKeyEvent *ke)
sci -> AddCharUTF(s.data(),s.length());
- consumed = TRUE;
+ consumed = true;
}
}
diff --git a/tqt/tqextscintillabase.h b/tqt/tqextscintillabase.h
index 053e999..79cb5c8 100644
--- a/tqt/tqextscintillabase.h
+++ b/tqt/tqextscintillabase.h
@@ -2251,7 +2251,7 @@ public:
signals:
//! This signal is emitted when text is selected or de-selected.
- //! \a yes is TRUE if text has been selected and FALSE if text has been
+ //! \a yes is true if text has been selected and false if text has been
//! deselected.
void TQSCN_SELCHANGED(bool yes);
diff --git a/tqt/tqextscintillacommand.h b/tqt/tqextscintillacommand.h
index 3d8db30..5b4d7b2 100644
--- a/tqt/tqextscintillacommand.h
+++ b/tqt/tqextscintillacommand.h
@@ -70,7 +70,7 @@ public:
//! \sa setAlternateKey(), key()
int alternateKey() const {return qaltkey;}
- //! If the key \a key is valid then TRUE is returned.
+ //! If the key \a key is valid then true is returned.
static bool validKey(int key);
//! The user friendly description of the command is returned.
diff --git a/tqt/tqextscintillacommandset.cpp b/tqt/tqextscintillacommandset.cpp
index 500649c..86fa881 100644
--- a/tqt/tqextscintillacommandset.cpp
+++ b/tqt/tqextscintillacommandset.cpp
@@ -569,7 +569,7 @@ TQextScintillaCommandSet::TQextScintillaCommandSet(TQextScintilla *qs) : tqsci(q
},
};
- cmds.setAutoDelete(TRUE);
+ cmds.setAutoDelete(true);
// Clear the default map.
tqsci -> SendScintilla(TQextScintillaBase::SCI_CLEARALLCMDKEYS);
@@ -582,7 +582,7 @@ TQextScintillaCommandSet::TQextScintillaCommandSet(TQextScintilla *qs) : tqsci(q
// Read the command set from settings.
bool TQextScintillaCommandSet::readSettings(TQSettings &qs,const char *prefix)
{
- bool rc = TRUE;
+ bool rc = true;
TQString skey;
for (TQextScintillaCommand *cmd = cmds.first(); cmd; cmd = cmds.next())
@@ -598,7 +598,7 @@ bool TQextScintillaCommandSet::readSettings(TQSettings &qs,const char *prefix)
if (ok)
cmd -> setKey(key);
else
- rc = FALSE;
+ rc = false;
// Read the alternate key.
key = qs.readNumEntry(skey + "alt",0,&ok);
@@ -606,7 +606,7 @@ bool TQextScintillaCommandSet::readSettings(TQSettings &qs,const char *prefix)
if (ok)
cmd -> setAlternateKey(key);
else
- rc = FALSE;
+ rc = false;
}
return rc;
@@ -616,7 +616,7 @@ bool TQextScintillaCommandSet::readSettings(TQSettings &qs,const char *prefix)
// Write the command set to settings.
bool TQextScintillaCommandSet::writeSettings(TQSettings &qs,const char *prefix)
{
- bool rc = TRUE;
+ bool rc = true;
TQString skey;
for (const TQextScintillaCommand *cmd = cmds.first(); cmd; cmd = cmds.next())
@@ -625,11 +625,11 @@ bool TQextScintillaCommandSet::writeSettings(TQSettings &qs,const char *prefix)
// Write the key.
if (!qs.writeEntry(skey + "key",cmd -> key()))
- rc = FALSE;
+ rc = false;
// Write the alternate key.
if (!qs.writeEntry(skey + "alt",cmd -> alternateKey()))
- rc = FALSE;
+ rc = false;
}
return rc;
diff --git a/tqt/tqextscintillacommandset.h b/tqt/tqextscintillacommandset.h
index e0ab601..18f3d90 100644
--- a/tqt/tqextscintillacommandset.h
+++ b/tqt/tqextscintillacommandset.h
@@ -44,14 +44,14 @@ class TQEXTSCINTILLA_EXPORT TQextScintillaCommandSet
public:
//! The key bindings for each command in the set are read from the
//! settings \a qs. \a prefix is prepended to the key of each entry.
- //! TRUE is returned if there was no error.
+ //! true is returned if there was no error.
//!
//! \sa writeSettings()
bool readSettings(TQSettings &qs,const char *prefix = "/Scintilla");
//! The key bindings for each command in the set are written to the
//! settings \a qs. \a prefix is prepended to the key of each entry.
- //! TRUE is returned if there was no error.
+ //! true is returned if there was no error.
//!
//! \sa readSettings()
bool writeSettings(TQSettings &qs,const char *prefix = "/Scintilla");
diff --git a/tqt/tqextscintillalexer.cpp b/tqt/tqextscintillalexer.cpp
index 5663415..aa6dd0e 100644
--- a/tqt/tqextscintillalexer.cpp
+++ b/tqt/tqextscintillalexer.cpp
@@ -135,7 +135,7 @@ TQColor TQextScintillaLexer::color(int) const
// Returns the end-of-line fill for a style.
bool TQextScintillaLexer::eolFill(int) const
{
- return FALSE;
+ return false;
}
@@ -205,7 +205,7 @@ void TQextScintillaLexer::setDefaultPaper(const TQColor &c)
// Read properties from the settings.
bool TQextScintillaLexer::readProperties(TQSettings &,const TQString &)
{
- return TRUE;
+ return true;
}
@@ -218,14 +218,14 @@ void TQextScintillaLexer::refreshProperties()
// Write properties to the settings.
bool TQextScintillaLexer::writeProperties(TQSettings &,const TQString &) const
{
- return TRUE;
+ return true;
}
// Restore the user settings.
bool TQextScintillaLexer::readSettings(TQSettings &qs,const char *prefix)
{
- bool ok, flag, rc = TRUE;
+ bool ok, flag, rc = true;
int num;
TQString key;
@@ -244,7 +244,7 @@ bool TQextScintillaLexer::readSettings(TQSettings &qs,const char *prefix)
if (ok)
emit colorChanged(TQColor((num >> 16) & 0xff,(num >> 8) & 0xff,num & 0xff),i);
else
- rc = FALSE;
+ rc = false;
// Read the end-of-line fill.
flag = qs.readBoolEntry(key + "eolfill",0,&ok);
@@ -252,7 +252,7 @@ bool TQextScintillaLexer::readSettings(TQSettings &qs,const char *prefix)
if (ok)
emit eolFillChanged(flag,i);
else
- rc = FALSE;
+ rc = false;
// Read the font
TQStringList fdesc;
@@ -272,7 +272,7 @@ bool TQextScintillaLexer::readSettings(TQSettings &qs,const char *prefix)
emit fontChanged(f,i);
}
else
- rc = FALSE;
+ rc = false;
// Read the background colour.
num = qs.readNumEntry(key + "paper",0,&ok);
@@ -280,14 +280,14 @@ bool TQextScintillaLexer::readSettings(TQSettings &qs,const char *prefix)
if (ok)
emit paperChanged(TQColor((num >> 16) & 0xff,(num >> 8) & 0xff,num & 0xff),i);
else
- rc = FALSE;
+ rc = false;
}
// Read the properties.
key.sprintf("%s/%s/properties/",prefix,language());
if (!readProperties(qs,key))
- rc = FALSE;
+ rc = false;
refreshProperties();
@@ -299,7 +299,7 @@ bool TQextScintillaLexer::readSettings(TQSettings &qs,const char *prefix)
if (ok)
autoIndStyle = num;
else
- rc = FALSE;
+ rc = false;
return rc;
}
@@ -308,7 +308,7 @@ bool TQextScintillaLexer::readSettings(TQSettings &qs,const char *prefix)
// Save the user settings.
bool TQextScintillaLexer::writeSettings(TQSettings &qs,const char *prefix) const
{
- bool rc = TRUE;
+ bool rc = true;
TQString key;
// Write the styles.
@@ -328,11 +328,11 @@ bool TQextScintillaLexer::writeSettings(TQSettings &qs,const char *prefix) const
num = (c.red() << 16) | (c.green() << 8) | c.blue();
if (!qs.writeEntry(key + "color",num))
- rc = FALSE;
+ rc = false;
// Write the end-of-line fill.
if (!qs.writeEntry(key + "eolfill",eolFill(i)))
- rc = FALSE;
+ rc = false;
// Write the font
TQStringList fdesc;
@@ -348,27 +348,27 @@ bool TQextScintillaLexer::writeSettings(TQSettings &qs,const char *prefix) const
fdesc += fmt.arg((int)f.underline());
if (!qs.writeEntry(key + "font",fdesc,','))
- rc = FALSE;
+ rc = false;
// Write the background colour.
c = paper(i);
num = (c.red() << 16) | (c.green() << 8) | c.blue();
if (!qs.writeEntry(key + "paper",num))
- rc = FALSE;
+ rc = false;
}
// Write the properties.
key.sprintf("%s/%s/properties/",prefix,language());
if (!writeProperties(qs,key))
- rc = FALSE;
+ rc = false;
// Write the rest.
key.sprintf("%s/%s/",prefix,language());
if (!qs.writeEntry(key + "autoindentstyle",autoIndStyle))
- rc = FALSE;
+ rc = false;
return rc;
}
diff --git a/tqt/tqextscintillalexer.h b/tqt/tqextscintillalexer.h
index d0bbdc4..b3bbb5b 100644
--- a/tqt/tqextscintillalexer.h
+++ b/tqt/tqextscintillalexer.h
@@ -122,7 +122,7 @@ public:
virtual TQColor color(int style) const;
//! Returns the end-of-line for style number \a style. The default is
- //! FALSE.
+ //! false.
virtual bool eolFill(int style) const;
//! Returns the font for style number \a style. The default font is
@@ -173,7 +173,7 @@ public:
//! The colour, paper, font and end-of-line for each style number, and
//! all lexer specific properties are read from the settings \a qs.
- //! \a prefix is prepended to the key of each entry. TRUE is returned
+ //! \a prefix is prepended to the key of each entry. true is returned
//! if there was no error.
//!
//! \sa writeSettings(), TQextScintilla::setLexer()
@@ -181,7 +181,7 @@ public:
//! The colour, paper, font and end-of-line for each style number, and
//! all lexer specific properties are written to the settings \a qs.
- //! \a prefix is prepended to the key of each entry. TRUE is returned
+ //! \a prefix is prepended to the key of each entry. true is returned
//! if there was no error.
//!
//! \sa readSettings()
@@ -250,13 +250,13 @@ signals:
protected:
//! The lexer's properties are read from the settings \a qs. \a prefix
//! (which has a trailing '/') should be used as a prefix to the key of
- //! each setting. TRUE is returned if there is no error.
+ //! each setting. true is returned if there is no error.
//!
virtual bool readProperties(TQSettings &qs,const TQString &prefix);
//! The lexer's properties are written to the settings \a qs.
//! \a prefix (which has a trailing '/') should be used as a prefix to
- //! the key of each setting. TRUE is returned if there is no error.
+ //! the key of each setting. true is returned if there is no error.
//!
virtual bool writeProperties(TQSettings &qs,const TQString &prefix) const;
diff --git a/tqt/tqextscintillalexerbash.cpp b/tqt/tqextscintillalexerbash.cpp
index dcea90a..95727b7 100644
--- a/tqt/tqextscintillalexerbash.cpp
+++ b/tqt/tqextscintillalexerbash.cpp
@@ -33,8 +33,8 @@
// The ctor.
TQextScintillaLexerBash::TQextScintillaLexerBash(TQObject *parent,
const char *name)
- : TQextScintillaLexer(parent,name), fold_comments(FALSE),
- fold_compact(TRUE)
+ : TQextScintillaLexer(parent,name), fold_comments(false),
+ fold_compact(true)
{
}
@@ -117,10 +117,10 @@ bool TQextScintillaLexerBash::eolFill(int style) const
switch (style)
{
case SingleQuotedHereDocument:
- return TRUE;
+ return true;
}
- return FALSE;
+ return false;
}
@@ -142,7 +142,7 @@ TQFont TQextScintillaLexerBash::font(int style) const
case Keyword:
case Operator:
f = TQextScintillaLexer::font(style);
- f.setBold(TRUE);
+ f.setBold(true);
break;
case DoubleQuotedString:
@@ -286,24 +286,24 @@ void TQextScintillaLexerBash::refreshProperties()
// Read properties from the settings.
bool TQextScintillaLexerBash::readProperties(TQSettings &qs,const TQString &prefix)
{
- int rc = TRUE;
+ bool rc = true;
bool ok, flag;
// Read the fold comments flag.
- flag = qs.readBoolEntry(prefix + "foldcomments",FALSE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldcomments",false,&ok);
if (ok)
fold_comments = flag;
else
- rc = FALSE;
+ rc = false;
// Read the fold compact flag.
- flag = qs.readBoolEntry(prefix + "foldcompact",TRUE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldcompact",true,&ok);
if (ok)
fold_compact = flag;
else
- rc = FALSE;
+ rc = false;
return rc;
}
@@ -312,21 +312,21 @@ bool TQextScintillaLexerBash::readProperties(TQSettings &qs,const TQString &pref
// Write properties to the settings.
bool TQextScintillaLexerBash::writeProperties(TQSettings &qs,const TQString &prefix) const
{
- int rc = TRUE;
+ bool rc = true;
// Write the fold comments flag.
if (!qs.writeEntry(prefix + "foldcomments",fold_comments))
- rc = FALSE;
+ rc = false;
// Write the fold compact flag.
if (!qs.writeEntry(prefix + "foldcompact",fold_compact))
- rc = FALSE;
+ rc = false;
return rc;
}
-// Return TRUE if comments can be folded.
+// Return true if comments can be folded.
bool TQextScintillaLexerBash::foldComments() const
{
return fold_comments;
@@ -349,7 +349,7 @@ void TQextScintillaLexerBash::setCommentProp()
}
-// Return TRUE if folds are compact.
+// Return true if folds are compact.
bool TQextScintillaLexerBash::foldCompact() const
{
return fold_compact;
diff --git a/tqt/tqextscintillalexerbash.h b/tqt/tqextscintillalexerbash.h
index 3d27904..b04c835 100644
--- a/tqt/tqextscintillalexerbash.h
+++ b/tqt/tqextscintillalexerbash.h
@@ -138,25 +138,25 @@ public:
//! propertyChanged() signal as required.
void refreshProperties();
- //! Returns TRUE if multi-line comment blocks can be folded.
+ //! Returns true if multi-line comment blocks can be folded.
//!
//! \sa setFoldComments()
bool foldComments() const;
- //! Returns TRUE if trailing blank lines are included in a fold block.
+ //! Returns true if trailing blank lines are included in a fold block.
//!
//! \sa setFoldCompact()
bool foldCompact() const;
public slots:
- //! If \a fold is TRUE then multi-line comment blocks can be folded.
- //! The default is FALSE.
+ //! If \a fold is true then multi-line comment blocks can be folded.
+ //! The default is false.
//!
//! \sa foldComments()
virtual void setFoldComments(bool fold);
- //! If \a fold is TRUE then trailing blank lines are included in a fold
- //! block. The default is TRUE.
+ //! If \a fold is true then trailing blank lines are included in a fold
+ //! block. The default is true.
//!
//! \sa foldCompact()
virtual void setFoldCompact(bool fold);
@@ -164,13 +164,13 @@ public slots:
protected:
//! The lexer's properties are read from the settings \a qs. \a prefix
//! (which has a trailing '/') should be used as a prefix to the key of
- //! each setting. TRUE is returned if there is no error.
+ //! each setting. true is returned if there is no error.
//!
bool readProperties(TQSettings &qs,const TQString &prefix);
//! The lexer's properties are written to the settings \a qs.
//! \a prefix (which has a trailing '/') should be used as a prefix to
- //! the key of each setting. TRUE is returned if there is no error.
+ //! the key of each setting. true is returned if there is no error.
//!
bool writeProperties(TQSettings &qs,const TQString &prefix) const;
diff --git a/tqt/tqextscintillalexerbatch.cpp b/tqt/tqextscintillalexerbatch.cpp
index 3789d69..3ce40b5 100644
--- a/tqt/tqextscintillalexerbatch.cpp
+++ b/tqt/tqextscintillalexerbatch.cpp
@@ -119,7 +119,7 @@ TQFont TQextScintillaLexerBatch::font(int style) const
case Keyword:
f = TQextScintillaLexer::font(style);
- f.setBold(TRUE);
+ f.setBold(true);
break;
case ExternalCommand:
@@ -128,7 +128,7 @@ TQFont TQextScintillaLexerBatch::font(int style) const
#else
f = TQFont("Bitstream Vera Sans Mono",9);
#endif
- f.setBold(TRUE);
+ f.setBold(true);
break;
default:
diff --git a/tqt/tqextscintillalexercpp.cpp b/tqt/tqextscintillalexercpp.cpp
index be0eb63..1de27e3 100644
--- a/tqt/tqextscintillalexercpp.cpp
+++ b/tqt/tqextscintillalexercpp.cpp
@@ -33,9 +33,9 @@
// The ctor.
TQextScintillaLexerCPP::TQextScintillaLexerCPP(TQObject *parent,const char *name,
bool caseInsensitiveKeywords)
- : TQextScintillaLexer(parent,name), fold_atelse(FALSE),
- fold_comments(FALSE), fold_compact(TRUE), fold_preproc(TRUE),
- style_preproc(FALSE), nocase(caseInsensitiveKeywords)
+ : TQextScintillaLexer(parent,name), fold_atelse(false),
+ fold_comments(false), fold_compact(true), fold_preproc(true),
+ style_preproc(false), nocase(caseInsensitiveKeywords)
{
}
@@ -185,7 +185,7 @@ TQFont TQextScintillaLexerCPP::font(int style) const
case Keyword:
case Operator:
f = TQextScintillaLexer::font(style);
- f.setBold(TRUE);
+ f.setBold(true);
break;
case DoubleQuotedString:
@@ -327,48 +327,48 @@ void TQextScintillaLexerCPP::refreshProperties()
// Read properties from the settings.
bool TQextScintillaLexerCPP::readProperties(TQSettings &qs,const TQString &prefix)
{
- int rc = TRUE;
+ bool rc = true;
bool ok, flag;
// Read the fold at else flag.
- flag = qs.readBoolEntry(prefix + "foldatelse",FALSE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldatelse",false,&ok);
if (ok)
fold_atelse = flag;
else
- rc = FALSE;
+ rc = false;
// Read the fold comments flag.
- flag = qs.readBoolEntry(prefix + "foldcomments",FALSE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldcomments",false,&ok);
if (ok)
fold_comments = flag;
else
- rc = FALSE;
+ rc = false;
// Read the fold compact flag.
- flag = qs.readBoolEntry(prefix + "foldcompact",TRUE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldcompact",true,&ok);
if (ok)
fold_compact = flag;
else
- rc = FALSE;
+ rc = false;
// Read the fold preprocessor flag.
- flag = qs.readBoolEntry(prefix + "foldpreprocessor",TRUE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldpreprocessor",true,&ok);
if (ok)
fold_preproc = flag;
else
- rc = FALSE;
+ rc = false;
// Read the style preprocessor flag.
- flag = qs.readBoolEntry(prefix + "stylepreprocessor",FALSE,&ok);
+ flag = qs.readBoolEntry(prefix + "stylepreprocessor",false,&ok);
if (ok)
style_preproc = flag;
else
- rc = FALSE;
+ rc = false;
return rc;
}
@@ -377,33 +377,33 @@ bool TQextScintillaLexerCPP::readProperties(TQSettings &qs,const TQString &prefi
// Write properties to the settings.
bool TQextScintillaLexerCPP::writeProperties(TQSettings &qs,const TQString &prefix) const
{
- int rc = TRUE;
+ bool rc = true;
// Write the fold at else flag.
if (!qs.writeEntry(prefix + "foldatelse",fold_atelse))
- rc = FALSE;
+ rc = false;
// Write the fold comments flag.
if (!qs.writeEntry(prefix + "foldcomments",fold_comments))
- rc = FALSE;
+ rc = false;
// Write the fold compact flag.
if (!qs.writeEntry(prefix + "foldcompact",fold_compact))
- rc = FALSE;
+ rc = false;
// Write the fold preprocessor flag.
if (!qs.writeEntry(prefix + "foldpreprocessor",fold_preproc))
- rc = FALSE;
+ rc = false;
// Write the style preprocessor flag.
if (!qs.writeEntry(prefix + "stylepreprocessor",style_preproc))
- rc = FALSE;
+ rc = false;
return rc;
}
-// Return TRUE if else can be folded.
+// Return true if else can be folded.
bool TQextScintillaLexerCPP::foldAtElse() const
{
return fold_atelse;
@@ -426,7 +426,7 @@ void TQextScintillaLexerCPP::setAtElseProp()
}
-// Return TRUE if comments can be folded.
+// Return true if comments can be folded.
bool TQextScintillaLexerCPP::foldComments() const
{
return fold_comments;
@@ -449,7 +449,7 @@ void TQextScintillaLexerCPP::setCommentProp()
}
-// Return TRUE if folds are compact.
+// Return true if folds are compact.
bool TQextScintillaLexerCPP::foldCompact() const
{
return fold_compact;
@@ -472,7 +472,7 @@ void TQextScintillaLexerCPP::setCompactProp()
}
-// Return TRUE if preprocessor blocks can be folded.
+// Return true if preprocessor blocks can be folded.
bool TQextScintillaLexerCPP::foldPreprocessor() const
{
return fold_preproc;
@@ -495,7 +495,7 @@ void TQextScintillaLexerCPP::setPreprocProp()
}
-// Return TRUE if preprocessor lines are styled.
+// Return true if preprocessor lines are styled.
bool TQextScintillaLexerCPP::stylePreprocessor() const
{
return style_preproc;
diff --git a/tqt/tqextscintillalexercpp.h b/tqt/tqextscintillalexercpp.h
index 36e024f..cf09372 100644
--- a/tqt/tqextscintillalexercpp.h
+++ b/tqt/tqextscintillalexercpp.h
@@ -111,10 +111,10 @@ public:
//! Construct a TQextScintillaLexerCPP with parent \a parent and name
//! \a name. \a parent is typically the TQextScintilla instance.
- //! \a caseInsensitiveKeywords is TRUE if the lexer ignores the case of
+ //! \a caseInsensitiveKeywords is true if the lexer ignores the case of
//! keywords.
TQextScintillaLexerCPP(TQObject *parent = 0,const char *name = 0,
- bool caseInsensitiveKeywords = FALSE);
+ bool caseInsensitiveKeywords = false);
//! Destroys the TQextScintillaLexerCPP instance.
virtual ~TQextScintillaLexerCPP();
@@ -178,59 +178,59 @@ public:
//! propertyChanged() signal as required.
void refreshProperties();
- //! Returns TRUE if "} else {" lines can be folded.
+ //! Returns true if "} else {" lines can be folded.
//!
//! \sa setFoldAtElse()
bool foldAtElse() const;
- //! Returns TRUE if multi-line comment blocks can be folded.
+ //! Returns true if multi-line comment blocks can be folded.
//!
//! \sa setFoldComments()
bool foldComments() const;
- //! Returns TRUE if trailing blank lines are included in a fold block.
+ //! Returns true if trailing blank lines are included in a fold block.
//!
//! \sa setFoldCompact()
bool foldCompact() const;
- //! Returns TRUE if preprocessor blocks can be folded.
+ //! Returns true if preprocessor blocks can be folded.
//!
//! \sa setFoldPreprocessor()
bool foldPreprocessor() const;
- //! Returns TRUE if preprocessor lines (after the preprocessor
+ //! Returns true if preprocessor lines (after the preprocessor
//! directive) are styled.
//!
//! \sa setStylePreprocessor()
bool stylePreprocessor() const;
public slots:
- //! If \a fold is TRUE then "} else {" lines can be folded. The
- //! default is FALSE.
+ //! If \a fold is true then "} else {" lines can be folded. The
+ //! default is false.
//!
//! \sa foldAtElse()
virtual void setFoldAtElse(bool fold);
- //! If \a fold is TRUE then multi-line comment blocks can be folded.
- //! The default is FALSE.
+ //! If \a fold is true then multi-line comment blocks can be folded.
+ //! The default is false.
//!
//! \sa foldComments()
virtual void setFoldComments(bool fold);
- //! If \a fold is TRUE then trailing blank lines are included in a fold
- //! block. The default is TRUE.
+ //! If \a fold is true then trailing blank lines are included in a fold
+ //! block. The default is true.
//!
//! \sa foldCompact()
virtual void setFoldCompact(bool fold);
- //! If \a fold is TRUE then preprocessor blocks can be folded. The
- //! default is TRUE.
+ //! If \a fold is true then preprocessor blocks can be folded. The
+ //! default is true.
//!
//! \sa foldPreprocessor()
virtual void setFoldPreprocessor(bool fold);
- //! If \a style is TRUE then preprocessor lines (after the preprocessor
- //! directive) are styled. The default is FALSE.
+ //! If \a style is true then preprocessor lines (after the preprocessor
+ //! directive) are styled. The default is false.
//!
//! \sa stylePreprocessor()
virtual void setStylePreprocessor(bool style);
@@ -238,14 +238,14 @@ public slots:
protected:
//! The lexer's properties are read from the settings \a qs. \a prefix
//! (which has a trailing '/') should be used as a prefix to the key of
- //! each setting. TRUE is returned if there is no error.
+ //! each setting. true is returned if there is no error.
//!
//! \sa writeProperties()
bool readProperties(TQSettings &qs,const TQString &prefix);
//! The lexer's properties are written to the settings \a qs.
//! \a prefix (which has a trailing '/') should be used as a prefix to
- //! the key of each setting. TRUE is returned if there is no error.
+ //! the key of each setting. true is returned if there is no error.
//!
//! \sa readProperties()
bool writeProperties(TQSettings &qs,const TQString &prefix) const;
diff --git a/tqt/tqextscintillalexercsharp.cpp b/tqt/tqextscintillalexercsharp.cpp
index a6e5385..5795a3b 100644
--- a/tqt/tqextscintillalexercsharp.cpp
+++ b/tqt/tqextscintillalexercsharp.cpp
@@ -63,7 +63,7 @@ TQColor TQextScintillaLexerCSharp::color(int style) const
bool TQextScintillaLexerCSharp::eolFill(int style) const
{
if (style == VerbatimString)
- return TRUE;
+ return true;
return TQextScintillaLexerCPP::eolFill(style);
}
diff --git a/tqt/tqextscintillalexercss.cpp b/tqt/tqextscintillalexercss.cpp
index c120a9d..0cb475f 100644
--- a/tqt/tqextscintillalexercss.cpp
+++ b/tqt/tqextscintillalexercss.cpp
@@ -32,8 +32,8 @@
// The ctor.
TQextScintillaLexerCSS::TQextScintillaLexerCSS(TQObject *parent,const char *name)
- : TQextScintillaLexer(parent,name), fold_comments(FALSE),
- fold_compact(TRUE)
+ : TQextScintillaLexer(parent,name), fold_comments(false),
+ fold_compact(true)
{
}
@@ -155,11 +155,11 @@ TQFont TQextScintillaLexerCSS::font(int style) const
case Tag:
case Important:
case AtRule:
- f.setBold(TRUE);
+ f.setBold(true);
break;
case IDSelector:
- f.setItalic(TRUE);
+ f.setItalic(true);
break;
}
}
@@ -293,24 +293,24 @@ void TQextScintillaLexerCSS::refreshProperties()
// Read properties from the settings.
bool TQextScintillaLexerCSS::readProperties(TQSettings &qs,const TQString &prefix)
{
- int rc = TRUE;
+ bool rc = true;
bool ok, flag;
// Read the fold comments flag.
- flag = qs.readBoolEntry(prefix + "foldcomments",FALSE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldcomments",false,&ok);
if (ok)
fold_comments = flag;
else
- rc = FALSE;
+ rc = false;
// Read the fold compact flag.
- flag = qs.readBoolEntry(prefix + "foldcompact",TRUE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldcompact",true,&ok);
if (ok)
fold_compact = flag;
else
- rc = FALSE;
+ rc = false;
return rc;
}
@@ -319,21 +319,21 @@ bool TQextScintillaLexerCSS::readProperties(TQSettings &qs,const TQString &prefi
// Write properties to the settings.
bool TQextScintillaLexerCSS::writeProperties(TQSettings &qs,const TQString &prefix) const
{
- int rc = TRUE;
+ bool rc = true;
// Write the fold comments flag.
if (!qs.writeEntry(prefix + "foldcomments",fold_comments))
- rc = FALSE;
+ rc = false;
// Write the fold compact flag.
if (!qs.writeEntry(prefix + "foldcompact",fold_compact))
- rc = FALSE;
+ rc = false;
return rc;
}
-// Return TRUE if comments can be folded.
+// Return true if comments can be folded.
bool TQextScintillaLexerCSS::foldComments() const
{
return fold_comments;
@@ -356,7 +356,7 @@ void TQextScintillaLexerCSS::setCommentProp()
}
-// Return TRUE if folds are compact.
+// Return true if folds are compact.
bool TQextScintillaLexerCSS::foldCompact() const
{
return fold_compact;
diff --git a/tqt/tqextscintillalexercss.h b/tqt/tqextscintillalexercss.h
index 976ff07..ae97180 100644
--- a/tqt/tqextscintillalexercss.h
+++ b/tqt/tqextscintillalexercss.h
@@ -142,25 +142,25 @@ public:
//! propertyChanged() signal as required.
void refreshProperties();
- //! Returns TRUE if multi-line comment blocks can be folded.
+ //! Returns true if multi-line comment blocks can be folded.
//!
//! \sa setFoldComments()
bool foldComments() const;
- //! Returns TRUE if trailing blank lines are included in a fold block.
+ //! Returns true if trailing blank lines are included in a fold block.
//!
//! \sa setFoldCompact()
bool foldCompact() const;
public slots:
- //! If \a fold is TRUE then multi-line comment blocks can be folded.
- //! The default is FALSE.
+ //! If \a fold is true then multi-line comment blocks can be folded.
+ //! The default is false.
//!
//! \sa foldComments()
virtual void setFoldComments(bool fold);
- //! If \a fold is TRUE then trailing blank lines are included in a fold
- //! block. The default is TRUE.
+ //! If \a fold is true then trailing blank lines are included in a fold
+ //! block. The default is true.
//!
//! \sa foldCompact()
virtual void setFoldCompact(bool fold);
@@ -168,13 +168,13 @@ public slots:
protected:
//! The lexer's properties are read from the settings \a qs. \a prefix
//! (which has a trailing '/') should be used as a prefix to the key of
- //! each setting. TRUE is returned if there is no error.
+ //! each setting. true is returned if there is no error.
//!
bool readProperties(TQSettings &qs,const TQString &prefix);
//! The lexer's properties are written to the settings \a qs.
//! \a prefix (which has a trailing '/') should be used as a prefix to
- //! the key of each setting. TRUE is returned if there is no error.
+ //! the key of each setting. true is returned if there is no error.
//!
bool writeProperties(TQSettings &qs,const TQString &prefix) const;
diff --git a/tqt/tqextscintillalexerhtml.cpp b/tqt/tqextscintillalexerhtml.cpp
index f993b58..0941b47 100644
--- a/tqt/tqextscintillalexerhtml.cpp
+++ b/tqt/tqextscintillalexerhtml.cpp
@@ -35,8 +35,8 @@
// The ctor.
TQextScintillaLexerHTML::TQextScintillaLexerHTML(TQObject *parent,
const char *name)
- : TQextScintillaLexer(parent,name), fold_compact(TRUE),
- fold_preproc(TRUE), case_sens_tags(FALSE)
+ : TQextScintillaLexer(parent,name), fold_compact(true),
+ fold_preproc(true), case_sens_tags(false)
{
}
@@ -283,7 +283,7 @@ bool TQextScintillaLexerHTML::eolFill(int style) const
case ASPPythonOperator:
case ASPPythonIdentifier:
case PHPDefault:
- return TRUE;
+ return true;
}
return TQextScintillaLexer::eolFill(style);
@@ -324,7 +324,7 @@ TQFont TQextScintillaLexerHTML::font(int style) const
case ASPPythonFunctionMethodName:
case ASPPythonOperator:
f = TQextScintillaLexer::font(style);
- f.setBold(TRUE);
+ f.setBold(true);
break;
case JavaScriptDefault:
@@ -340,7 +340,7 @@ TQFont TQextScintillaLexerHTML::font(int style) const
#else
f = TQFont("Bitstream Vera Serif",9);
#endif
- f.setBold(TRUE);
+ f.setBold(true);
break;
case JavaScriptComment:
@@ -391,7 +391,7 @@ TQFont TQextScintillaLexerHTML::font(int style) const
#else
f = TQFont("Bitstream Vera Serif",9);
#endif
- f.setBold(TRUE);
+ f.setBold(true);
break;
case PythonDoubleQuotedString:
@@ -409,7 +409,7 @@ TQFont TQextScintillaLexerHTML::font(int style) const
case PHPVariable:
case PHPDoubleQuotedVariable:
f = TQextScintillaLexer::font(style);
- f.setItalic(TRUE);
+ f.setItalic(true);
break;
case PHPCommentLine:
@@ -418,7 +418,7 @@ TQFont TQextScintillaLexerHTML::font(int style) const
#else
f = TQFont("Bitstream Vera Serif",9);
#endif
- f.setItalic(TRUE);
+ f.setItalic(true);
break;
default:
@@ -1014,32 +1014,32 @@ void TQextScintillaLexerHTML::refreshProperties()
// Read properties from the settings.
bool TQextScintillaLexerHTML::readProperties(TQSettings &qs,const TQString &prefix)
{
- int rc = TRUE;
+ bool rc = true;
bool ok, flag;
// Read the fold compact flag.
- flag = qs.readBoolEntry(prefix + "foldcompact",TRUE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldcompact",true,&ok);
if (ok)
fold_compact = flag;
else
- rc = FALSE;
+ rc = false;
// Read the fold preprocessor flag.
- flag = qs.readBoolEntry(prefix + "foldpreprocessor",FALSE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldpreprocessor",false,&ok);
if (ok)
fold_preproc = flag;
else
- rc = FALSE;
+ rc = false;
// Read the case sensitive tags flag.
- flag = qs.readBoolEntry(prefix + "casesensitivetags",FALSE,&ok);
+ flag = qs.readBoolEntry(prefix + "casesensitivetags",false,&ok);
if (ok)
case_sens_tags = flag;
else
- rc = FALSE;
+ rc = false;
return rc;
}
@@ -1048,25 +1048,25 @@ bool TQextScintillaLexerHTML::readProperties(TQSettings &qs,const TQString &pref
// Write properties to the settings.
bool TQextScintillaLexerHTML::writeProperties(TQSettings &qs,const TQString &prefix) const
{
- int rc = TRUE;
+ bool rc = true;
// Write the fold compact flag.
if (!qs.writeEntry(prefix + "foldcompact",fold_compact))
- rc = FALSE;
+ rc = false;
// Write the fold preprocessor flag.
if (!qs.writeEntry(prefix + "foldpreprocessor",fold_preproc))
- rc = FALSE;
+ rc = false;
// Write the case sensitive tags flag.
if (!qs.writeEntry(prefix + "casesensitivetags",case_sens_tags))
- rc = FALSE;
+ rc = false;
return rc;
}
-// Return TRUE if tags are case sensitive.
+// Return true if tags are case sensitive.
bool TQextScintillaLexerHTML::caseSensitiveTags() const
{
return case_sens_tags;
@@ -1089,7 +1089,7 @@ void TQextScintillaLexerHTML::setCaseSensTagsProp()
}
-// Return TRUE if folds are compact.
+// Return true if folds are compact.
bool TQextScintillaLexerHTML::foldCompact() const
{
return fold_compact;
@@ -1112,7 +1112,7 @@ void TQextScintillaLexerHTML::setCompactProp()
}
-// Return TRUE if preprocessor blocks can be folded.
+// Return true if preprocessor blocks can be folded.
bool TQextScintillaLexerHTML::foldPreprocessor() const
{
return fold_preproc;
diff --git a/tqt/tqextscintillalexerhtml.h b/tqt/tqextscintillalexerhtml.h
index 77e5c1b..0089fce 100644
--- a/tqt/tqextscintillalexerhtml.h
+++ b/tqt/tqextscintillalexerhtml.h
@@ -422,36 +422,36 @@ public:
//! propertyChanged() signal as required.
void refreshProperties();
- //! Returns TRUE if trailing blank lines are included in a fold block.
+ //! Returns true if trailing blank lines are included in a fold block.
//!
//! \sa setFoldCompact()
bool foldCompact() const;
- //! Returns TRUE if preprocessor blocks can be folded.
+ //! Returns true if preprocessor blocks can be folded.
//!
//! \sa setFoldPreprocessor()
bool foldPreprocessor() const;
- //! Returns TRUE if tags are case sensitive.
+ //! Returns true if tags are case sensitive.
//!
//! \sa setCaseSensitiveTags()
bool caseSensitiveTags() const;
public slots:
- //! If \a fold is TRUE then trailing blank lines are included in a fold
- //! block. The default is TRUE.
+ //! If \a fold is true then trailing blank lines are included in a fold
+ //! block. The default is true.
//!
//! \sa foldCompact()
virtual void setFoldCompact(bool fold);
- //! If \a fold is TRUE then preprocessor blocks can be folded. The
- //! default is FALSE.
+ //! If \a fold is true then preprocessor blocks can be folded. The
+ //! default is false.
//!
//! \sa foldPreprocessor()
virtual void setFoldPreprocessor(bool fold);
- //! If \a sens is TRUE then tags are case sensitive. The default is
- //! FALSE.
+ //! If \a sens is true then tags are case sensitive. The default is
+ //! false.
//!
//! \sa caseSensitiveTags()
virtual void setCaseSensitiveTags(bool sens);
@@ -459,13 +459,13 @@ public slots:
protected:
//! The lexer's properties are read from the settings \a qs. \a prefix
//! (which has a trailing '/') should be used as a prefix to the key of
- //! each setting. TRUE is returned if there is no error.
+ //! each setting. true is returned if there is no error.
//!
bool readProperties(TQSettings &qs,const TQString &prefix);
//! The lexer's properties are written to the settings \a qs.
//! \a prefix (which has a trailing '/') should be used as a prefix to
- //! the key of each setting. TRUE is returned if there is no error.
+ //! the key of each setting. true is returned if there is no error.
//!
bool writeProperties(TQSettings &qs,const TQString &prefix) const;
diff --git a/tqt/tqextscintillalexerjavascript.cpp b/tqt/tqextscintillalexerjavascript.cpp
index b51660b..f8510c7 100644
--- a/tqt/tqextscintillalexerjavascript.cpp
+++ b/tqt/tqextscintillalexerjavascript.cpp
@@ -73,7 +73,7 @@ TQColor TQextScintillaLexerJavaScript::color(int style) const
bool TQextScintillaLexerJavaScript::eolFill(int style) const
{
if (style == Regex)
- return TRUE;
+ return true;
return TQextScintillaLexerCPP::eolFill(style);
}
diff --git a/tqt/tqextscintillalexerlua.cpp b/tqt/tqextscintillalexerlua.cpp
index 97676fd..1b627bb 100644
--- a/tqt/tqextscintillalexerlua.cpp
+++ b/tqt/tqextscintillalexerlua.cpp
@@ -32,7 +32,7 @@
// The ctor.
TQextScintillaLexerLua::TQextScintillaLexerLua(TQObject *parent, const char *name)
- : TQextScintillaLexer(parent,name), fold_compact(TRUE)
+ : TQextScintillaLexer(parent,name), fold_compact(true)
{
}
@@ -298,16 +298,16 @@ void TQextScintillaLexerLua::refreshProperties()
// Read properties from the settings.
bool TQextScintillaLexerLua::readProperties(TQSettings &qs,const TQString &prefix)
{
- int rc = TRUE;
+ bool rc = true;
bool ok, flag;
// Read the fold compact flag.
- flag = qs.readBoolEntry(prefix + "foldcompact",TRUE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldcompact",true,&ok);
if (ok)
fold_compact = flag;
else
- rc = FALSE;
+ rc = false;
return rc;
}
@@ -316,17 +316,17 @@ bool TQextScintillaLexerLua::readProperties(TQSettings &qs,const TQString &prefi
// Write properties to the settings.
bool TQextScintillaLexerLua::writeProperties(TQSettings &qs,const TQString &prefix) const
{
- int rc = TRUE;
+ bool rc = true;
// Write the fold compact flag.
if (!qs.writeEntry(prefix + "foldcompact",fold_compact))
- rc = FALSE;
+ rc = false;
return rc;
}
-// Return TRUE if folds are compact.
+// Return true if folds are compact.
bool TQextScintillaLexerLua::foldCompact() const
{
return fold_compact;
diff --git a/tqt/tqextscintillalexerlua.h b/tqt/tqextscintillalexerlua.h
index 3f8ddf8..62e00c9 100644
--- a/tqt/tqextscintillalexerlua.h
+++ b/tqt/tqextscintillalexerlua.h
@@ -140,14 +140,14 @@ public:
//! propertyChanged() signal as required.
void refreshProperties();
- //! Returns TRUE if trailing blank lines are included in a fold block.
+ //! Returns true if trailing blank lines are included in a fold block.
//!
//! \sa setFoldCompact()
bool foldCompact() const;
public slots:
- //! If \a fold is TRUE then trailing blank lines are included in a fold
- //! block. The default is TRUE.
+ //! If \a fold is true then trailing blank lines are included in a fold
+ //! block. The default is true.
//!
//! \sa foldCompact()
virtual void setFoldCompact(bool fold);
@@ -155,13 +155,13 @@ public slots:
protected:
//! The lexer's properties are read from the settings \a qs. \a prefix
//! (which has a trailing '/') should be used as a prefix to the key of
- //! each setting. TRUE is returned if there is no error.
+ //! each setting. true is returned if there is no error.
//!
bool readProperties(TQSettings &qs,const TQString &prefix);
//! The lexer's properties are written to the settings \a qs.
//! \a prefix (which has a trailing '/') should be used as a prefix to
- //! the key of each setting. TRUE is returned if there is no error.
+ //! the key of each setting. true is returned if there is no error.
//!
bool writeProperties(TQSettings &qs,const TQString &prefix) const;
diff --git a/tqt/tqextscintillalexerperl.cpp b/tqt/tqextscintillalexerperl.cpp
index e9858c5..1c294e1 100644
--- a/tqt/tqextscintillalexerperl.cpp
+++ b/tqt/tqextscintillalexerperl.cpp
@@ -33,8 +33,8 @@
// The ctor.
TQextScintillaLexerPerl::TQextScintillaLexerPerl(TQObject *parent,
const char *name)
- : TQextScintillaLexer(parent,name), fold_comments(FALSE),
- fold_compact(TRUE)
+ : TQextScintillaLexer(parent,name), fold_comments(false),
+ fold_compact(true)
{
}
@@ -140,10 +140,10 @@ bool TQextScintillaLexerPerl::eolFill(int style) const
case DoubleQuotedHereDocument:
case BacktickHereDocument:
case PODVerbatim:
- return TRUE;
+ return true;
}
- return FALSE;
+ return false;
}
@@ -174,7 +174,7 @@ TQFont TQextScintillaLexerPerl::font(int style) const
case Operator:
case DoubleQuotedHereDocument:
f = TQextScintillaLexer::font(style);
- f.setBold(TRUE);
+ f.setBold(true);
break;
case DoubleQuotedString:
@@ -190,7 +190,7 @@ TQFont TQextScintillaLexerPerl::font(int style) const
case BacktickHereDocument:
f = TQextScintillaLexer::font(style);
- f.setItalic(TRUE);
+ f.setItalic(true);
break;
default:
@@ -399,24 +399,24 @@ void TQextScintillaLexerPerl::refreshProperties()
// Read properties from the settings.
bool TQextScintillaLexerPerl::readProperties(TQSettings &qs,const TQString &prefix)
{
- int rc = TRUE;
+ bool rc = true;
bool ok, flag;
// Read the fold comments flag.
- flag = qs.readBoolEntry(prefix + "foldcomments",FALSE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldcomments",false,&ok);
if (ok)
fold_comments = flag;
else
- rc = FALSE;
+ rc = false;
// Read the fold compact flag.
- flag = qs.readBoolEntry(prefix + "foldcompact",TRUE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldcompact",true,&ok);
if (ok)
fold_compact = flag;
else
- rc = FALSE;
+ rc = false;
return rc;
}
@@ -425,21 +425,21 @@ bool TQextScintillaLexerPerl::readProperties(TQSettings &qs,const TQString &pref
// Write properties to the settings.
bool TQextScintillaLexerPerl::writeProperties(TQSettings &qs,const TQString &prefix) const
{
- int rc = TRUE;
+ bool rc = true;
// Write the fold comments flag.
if (!qs.writeEntry(prefix + "foldcomments",fold_comments))
- rc = FALSE;
+ rc = false;
// Write the fold compact flag.
if (!qs.writeEntry(prefix + "foldcompact",fold_compact))
- rc = FALSE;
+ rc = false;
return rc;
}
-// Return TRUE if comments can be folded.
+// Return true if comments can be folded.
bool TQextScintillaLexerPerl::foldComments() const
{
return fold_comments;
@@ -462,7 +462,7 @@ void TQextScintillaLexerPerl::setCommentProp()
}
-// Return TRUE if folds are compact.
+// Return true if folds are compact.
bool TQextScintillaLexerPerl::foldCompact() const
{
return fold_compact;
diff --git a/tqt/tqextscintillalexerperl.h b/tqt/tqextscintillalexerperl.h
index a359c0d..0778501 100644
--- a/tqt/tqextscintillalexerperl.h
+++ b/tqt/tqextscintillalexerperl.h
@@ -180,25 +180,25 @@ public:
//! propertyChanged() signal as required.
void refreshProperties();
- //! Returns TRUE if multi-line comment blocks can be folded.
+ //! Returns true if multi-line comment blocks can be folded.
//!
//! \sa setFoldComments()
bool foldComments() const;
- //! Returns TRUE if trailing blank lines are included in a fold block.
+ //! Returns true if trailing blank lines are included in a fold block.
//!
//! \sa setFoldCompact()
bool foldCompact() const;
public slots:
- //! If \a fold is TRUE then multi-line comment blocks can be folded.
- //! The default is FALSE.
+ //! If \a fold is true then multi-line comment blocks can be folded.
+ //! The default is false.
//!
//! \sa foldComments()
virtual void setFoldComments(bool fold);
- //! If \a fold is TRUE then trailing blank lines are included in a fold
- //! block. The default is TRUE.
+ //! If \a fold is true then trailing blank lines are included in a fold
+ //! block. The default is true.
//!
//! \sa foldCompact()
virtual void setFoldCompact(bool fold);
@@ -206,13 +206,13 @@ public slots:
protected:
//! The lexer's properties are read from the settings \a qs. \a prefix
//! (which has a trailing '/') should be used as a prefix to the key of
- //! each setting. TRUE is returned if there is no error.
+ //! each setting. true is returned if there is no error.
//!
bool readProperties(TQSettings &qs,const TQString &prefix);
//! The lexer's properties are written to the settings \a qs.
//! \a prefix (which has a trailing '/') should be used as a prefix to
- //! the key of each setting. TRUE is returned if there is no error.
+ //! the key of each setting. true is returned if there is no error.
//!
bool writeProperties(TQSettings &qs,const TQString &prefix) const;
diff --git a/tqt/tqextscintillalexerpov.cpp b/tqt/tqextscintillalexerpov.cpp
index da75b4f..763caf0 100644
--- a/tqt/tqextscintillalexerpov.cpp
+++ b/tqt/tqextscintillalexerpov.cpp
@@ -32,8 +32,8 @@
// The ctor.
TQextScintillaLexerPOV::TQextScintillaLexerPOV(TQObject *parent,const char *name)
- : TQextScintillaLexer(parent,name), fold_comments(FALSE),
- fold_compact(TRUE), fold_directives(FALSE)
+ : TQextScintillaLexer(parent,name), fold_comments(false),
+ fold_compact(true), fold_directives(false)
{
}
@@ -139,7 +139,7 @@ TQFont TQextScintillaLexerPOV::font(int style) const
case UnclosedString:
case PredefinedIdentifiers:
f = TQextScintillaLexer::font(style);
- f.setBold(TRUE);
+ f.setBold(true);
break;
case BadDirective:
@@ -148,7 +148,7 @@ TQFont TQextScintillaLexerPOV::font(int style) const
#else
f = TQFont("Bitstream Vera Serif",9);
#endif
- f.setItalic(TRUE);
+ f.setItalic(true);
break;
default:
@@ -370,32 +370,32 @@ void TQextScintillaLexerPOV::refreshProperties()
// Read properties from the settings.
bool TQextScintillaLexerPOV::readProperties(TQSettings &qs,const TQString &prefix)
{
- int rc = TRUE;
+ bool rc = true;
bool ok, flag;
// Read the fold comments flag.
- flag = qs.readBoolEntry(prefix + "foldcomments",FALSE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldcomments",false,&ok);
if (ok)
fold_comments = flag;
else
- rc = FALSE;
+ rc = false;
// Read the fold compact flag.
- flag = qs.readBoolEntry(prefix + "foldcompact",TRUE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldcompact",true,&ok);
if (ok)
fold_compact = flag;
else
- rc = FALSE;
+ rc = false;
// Read the fold directives flag.
- flag = qs.readBoolEntry(prefix + "folddirectives",FALSE,&ok);
+ flag = qs.readBoolEntry(prefix + "folddirectives",false,&ok);
if (ok)
fold_directives = flag;
else
- rc = FALSE;
+ rc = false;
return rc;
}
@@ -404,25 +404,25 @@ bool TQextScintillaLexerPOV::readProperties(TQSettings &qs,const TQString &prefi
// Write properties to the settings.
bool TQextScintillaLexerPOV::writeProperties(TQSettings &qs,const TQString &prefix) const
{
- int rc = TRUE;
+ bool rc = true;
// Write the fold comments flag.
if (!qs.writeEntry(prefix + "foldcomments",fold_comments))
- rc = FALSE;
+ rc = false;
// Write the fold compact flag.
if (!qs.writeEntry(prefix + "foldcompact",fold_compact))
- rc = FALSE;
+ rc = false;
// Write the fold directives flag.
if (!qs.writeEntry(prefix + "folddirectives",fold_directives))
- rc = FALSE;
+ rc = false;
return rc;
}
-// Return TRUE if comments can be folded.
+// Return true if comments can be folded.
bool TQextScintillaLexerPOV::foldComments() const
{
return fold_comments;
@@ -445,7 +445,7 @@ void TQextScintillaLexerPOV::setCommentProp()
}
-// Return TRUE if folds are compact.
+// Return true if folds are compact.
bool TQextScintillaLexerPOV::foldCompact() const
{
return fold_compact;
@@ -468,7 +468,7 @@ void TQextScintillaLexerPOV::setCompactProp()
}
-// Return TRUE if directives can be folded.
+// Return true if directives can be folded.
bool TQextScintillaLexerPOV::foldDirectives() const
{
return fold_directives;
diff --git a/tqt/tqextscintillalexerpov.h b/tqt/tqextscintillalexerpov.h
index d1ef6b2..7d524cd 100644
--- a/tqt/tqextscintillalexerpov.h
+++ b/tqt/tqextscintillalexerpov.h
@@ -150,36 +150,36 @@ public:
//! propertyChanged() signal as required.
void refreshProperties();
- //! Returns TRUE if multi-line comment blocks can be folded.
+ //! Returns true if multi-line comment blocks can be folded.
//!
//! \sa setFoldComments()
bool foldComments() const;
- //! Returns TRUE if trailing blank lines are included in a fold block.
+ //! Returns true if trailing blank lines are included in a fold block.
//!
//! \sa setFoldCompact()
bool foldCompact() const;
- //! Returns TRUE if directives can be folded.
+ //! Returns true if directives can be folded.
//!
//! \sa setFoldDirectives()
bool foldDirectives() const;
public slots:
- //! If \a fold is TRUE then multi-line comment blocks can be folded.
- //! The default is FALSE.
+ //! If \a fold is true then multi-line comment blocks can be folded.
+ //! The default is false.
//!
//! \sa foldComments()
virtual void setFoldComments(bool fold);
- //! If \a fold is TRUE then trailing blank lines are included in a fold
- //! block. The default is TRUE.
+ //! If \a fold is true then trailing blank lines are included in a fold
+ //! block. The default is true.
//!
//! \sa foldCompact()
virtual void setFoldCompact(bool fold);
- //! If \a fold is TRUE then directives can be folded. The default is
- //! FALSE.
+ //! If \a fold is true then directives can be folded. The default is
+ //! false.
//!
//! \sa foldDirectives()
virtual void setFoldDirectives(bool fold);
@@ -187,13 +187,13 @@ public slots:
protected:
//! The lexer's properties are read from the settings \a qs. \a prefix
//! (which has a trailing '/') should be used as a prefix to the key of
- //! each setting. TRUE is returned if there is no error.
+ //! each setting. true is returned if there is no error.
//!
bool readProperties(TQSettings &qs,const TQString &prefix);
//! The lexer's properties are written to the settings \a qs.
//! \a prefix (which has a trailing '/') should be used as a prefix to
- //! the key of each setting. TRUE is returned if there is no error.
+ //! the key of each setting. true is returned if there is no error.
//!
bool writeProperties(TQSettings &qs,const TQString &prefix) const;
diff --git a/tqt/tqextscintillalexerproperties.cpp b/tqt/tqextscintillalexerproperties.cpp
index 1acc9c6..aed15ab 100644
--- a/tqt/tqextscintillalexerproperties.cpp
+++ b/tqt/tqextscintillalexerproperties.cpp
@@ -32,7 +32,7 @@
// The ctor.
TQextScintillaLexerProperties::TQextScintillaLexerProperties(TQObject *parent,const char *name)
- : TQextScintillaLexer(parent,name), fold_compact(TRUE)
+ : TQextScintillaLexer(parent,name), fold_compact(true)
{
}
@@ -156,16 +156,16 @@ void TQextScintillaLexerProperties::refreshProperties()
// Read properties from the settings.
bool TQextScintillaLexerProperties::readProperties(TQSettings &qs,const TQString &prefix)
{
- int rc = TRUE;
+ bool rc = true;
bool ok, flag;
// Read the fold compact flag.
- flag = qs.readBoolEntry(prefix + "foldcompact",TRUE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldcompact",true,&ok);
if (ok)
fold_compact = flag;
else
- rc = FALSE;
+ rc = false;
return rc;
}
@@ -174,17 +174,17 @@ bool TQextScintillaLexerProperties::readProperties(TQSettings &qs,const TQString
// Write properties to the settings.
bool TQextScintillaLexerProperties::writeProperties(TQSettings &qs,const TQString &prefix) const
{
- int rc = TRUE;
+ bool rc = true;
// Write the fold compact flag.
if (!qs.writeEntry(prefix + "foldcompact",fold_compact))
- rc = FALSE;
+ rc = false;
return rc;
}
-// Return TRUE if folds are compact.
+// Return true if folds are compact.
bool TQextScintillaLexerProperties::foldCompact() const
{
return fold_compact;
diff --git a/tqt/tqextscintillalexerproperties.h b/tqt/tqextscintillalexerproperties.h
index b95189c..a6cad64 100644
--- a/tqt/tqextscintillalexerproperties.h
+++ b/tqt/tqextscintillalexerproperties.h
@@ -101,14 +101,14 @@ public:
//! propertyChanged() signal as required.
void refreshProperties();
- //! Returns TRUE if trailing blank lines are included in a fold block.
+ //! Returns true if trailing blank lines are included in a fold block.
//!
//! \sa setFoldCompact()
bool foldCompact() const;
public slots:
- //! If \a fold is TRUE then trailing blank lines are included in a fold
- //! block. The default is TRUE.
+ //! If \a fold is true then trailing blank lines are included in a fold
+ //! block. The default is true.
//!
//! \sa foldCompact()
virtual void setFoldCompact(bool fold);
@@ -116,14 +116,14 @@ public slots:
protected:
//! The lexer's properties are read from the settings \a qs. \a prefix
//! (which has a trailing '/') should be used as a prefix to the key of
- //! each setting. TRUE is returned if there is no error.
+ //! each setting. true is returned if there is no error.
//!
//! \sa writeProperties()
bool readProperties(TQSettings &qs,const TQString &prefix);
//! The lexer's properties are written to the settings \a qs.
//! \a prefix (which has a trailing '/') should be used as a prefix to
- //! the key of each setting. TRUE is returned if there is no error.
+ //! the key of each setting. true is returned if there is no error.
//!
//! \sa readProperties()
bool writeProperties(TQSettings &qs,const TQString &prefix) const;
diff --git a/tqt/tqextscintillalexerpython.cpp b/tqt/tqextscintillalexerpython.cpp
index c1962f0..46fa85e 100644
--- a/tqt/tqextscintillalexerpython.cpp
+++ b/tqt/tqextscintillalexerpython.cpp
@@ -40,8 +40,8 @@ const char *TQextScintillaLexerPython::keywordClass =
// The ctor.
TQextScintillaLexerPython::TQextScintillaLexerPython(TQObject *parent,
const char *name)
- : TQextScintillaLexer(parent,name), fold_comments(FALSE),
- fold_quotes(FALSE), indent_warn(NoWarning)
+ : TQextScintillaLexer(parent,name), fold_comments(false),
+ fold_quotes(false), indent_warn(NoWarning)
{
}
@@ -188,7 +188,7 @@ TQFont TQextScintillaLexerPython::font(int style) const
case FunctionMethodName:
case Operator:
f = TQextScintillaLexer::font(style);
- f.setBold(TRUE);
+ f.setBold(true);
break;
default:
@@ -289,24 +289,24 @@ void TQextScintillaLexerPython::refreshProperties()
// Read properties from the settings.
bool TQextScintillaLexerPython::readProperties(TQSettings &qs,const TQString &prefix)
{
- int rc = TRUE, num;
- bool ok, flag;
+ int num;
+ bool ok, flag, rc = true;
// Read the fold comments flag.
- flag = qs.readBoolEntry(prefix + "foldcomments",FALSE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldcomments",false,&ok);
if (ok)
fold_comments = flag;
else
- rc = FALSE;
+ rc = false;
// Read the fold quotes flag.
- flag = qs.readBoolEntry(prefix + "foldquotes",FALSE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldquotes",false,&ok);
if (ok)
fold_quotes = flag;
else
- rc = FALSE;
+ rc = false;
// Read the indentation warning.
num = qs.readNumEntry(prefix + "indentwarning",(int)NoWarning,&ok);
@@ -314,7 +314,7 @@ bool TQextScintillaLexerPython::readProperties(TQSettings &qs,const TQString &pr
if (ok)
indent_warn = (IndentationWarning)num;
else
- rc = FALSE;
+ rc = false;
return rc;
}
@@ -323,25 +323,25 @@ bool TQextScintillaLexerPython::readProperties(TQSettings &qs,const TQString &pr
// Write properties to the settings.
bool TQextScintillaLexerPython::writeProperties(TQSettings &qs,const TQString &prefix) const
{
- int rc = TRUE;
+ bool rc = true;
// Write the fold comments flag.
if (!qs.writeEntry(prefix + "foldcomments",fold_comments))
- rc = FALSE;
+ rc = false;
// Write the fold quotes flag.
if (!qs.writeEntry(prefix + "foldquotes",fold_quotes))
- rc = FALSE;
+ rc = false;
// Write the indentation warning.
if (!qs.writeEntry(prefix + "indentwarning",(int)indent_warn))
- rc = FALSE;
+ rc = false;
return rc;
}
-// Return TRUE if comments can be folded.
+// Return true if comments can be folded.
bool TQextScintillaLexerPython::foldComments() const
{
return fold_comments;
@@ -364,7 +364,7 @@ void TQextScintillaLexerPython::setCommentProp()
}
-// Return TRUE if quotes can be folded.
+// Return true if quotes can be folded.
bool TQextScintillaLexerPython::foldQuotes() const
{
return fold_quotes;
diff --git a/tqt/tqextscintillalexerpython.h b/tqt/tqextscintillalexerpython.h
index 5d93f73..285f2bb 100644
--- a/tqt/tqextscintillalexerpython.h
+++ b/tqt/tqextscintillalexerpython.h
@@ -175,12 +175,12 @@ public:
//! propertyChanged() signal as required.
void refreshProperties();
- //! Returns TRUE if indented comment blocks can be folded.
+ //! Returns true if indented comment blocks can be folded.
//!
//! \sa setFoldComments()
bool foldComments() const;
- //! Returns TRUE if triple quoted strings can be folded.
+ //! Returns true if triple quoted strings can be folded.
//!
//! \sa setFoldQuotes()
bool foldQuotes() const;
@@ -192,14 +192,14 @@ public:
IndentationWarning indentationWarning() const;
public slots:
- //! If \a fold is TRUE then indented comment blocks can be folded. The
- //! default is FALSE.
+ //! If \a fold is true then indented comment blocks can be folded. The
+ //! default is false.
//!
//! \sa foldComments()
virtual void setFoldComments(bool fold);
- //! If \a fold is TRUE then triple quoted strings can be folded. The
- //! default is FALSE.
+ //! If \a fold is true then triple quoted strings can be folded. The
+ //! default is false.
//!
//! \sa foldQuotes()
virtual void setFoldQuotes(bool fold);
@@ -213,13 +213,13 @@ public slots:
protected:
//! The lexer's properties are read from the settings \a qs. \a prefix
//! (which has a trailing '/') should be used as a prefix to the key of
- //! each setting. TRUE is returned if there is no error.
+ //! each setting. true is returned if there is no error.
//!
bool readProperties(TQSettings &qs,const TQString &prefix);
//! The lexer's properties are written to the settings \a qs.
//! \a prefix (which has a trailing '/') should be used as a prefix to
- //! the key of each setting. TRUE is returned if there is no error.
+ //! the key of each setting. true is returned if there is no error.
//!
bool writeProperties(TQSettings &qs,const TQString &prefix) const;
diff --git a/tqt/tqextscintillalexerruby.cpp b/tqt/tqextscintillalexerruby.cpp
index a6bca4e..9834332 100644
--- a/tqt/tqextscintillalexerruby.cpp
+++ b/tqt/tqextscintillalexerruby.cpp
@@ -215,7 +215,7 @@ TQFont TQextScintillaLexerRuby::font(int style) const
case ModuleName:
case DemotedKeyword:
f = TQextScintillaLexer::font(style);
- f.setBold(TRUE);
+ f.setBold(true);
break;
default:
diff --git a/tqt/tqextscintillalexersql.cpp b/tqt/tqextscintillalexersql.cpp
index 7d296ea..454e69a 100644
--- a/tqt/tqextscintillalexersql.cpp
+++ b/tqt/tqextscintillalexersql.cpp
@@ -32,8 +32,8 @@
// The ctor.
TQextScintillaLexerSQL::TQextScintillaLexerSQL(TQObject *parent,const char *name)
- : TQextScintillaLexer(parent,name), fold_comments(FALSE),
- fold_compact(TRUE), backslash_escapes(FALSE)
+ : TQextScintillaLexer(parent,name), fold_comments(false),
+ fold_compact(true), backslash_escapes(false)
{
}
@@ -153,7 +153,7 @@ TQFont TQextScintillaLexerSQL::font(int style) const
case Keyword:
case Operator:
f = TQextScintillaLexer::font(style);
- f.setBold(TRUE);
+ f.setBold(true);
break;
case DoubleQuotedString:
@@ -334,32 +334,32 @@ void TQextScintillaLexerSQL::refreshProperties()
// Read properties from the settings.
bool TQextScintillaLexerSQL::readProperties(TQSettings &qs,const TQString &prefix)
{
- int rc = TRUE;
+ bool rc = true;
bool ok, flag;
// Read the fold comments flag.
- flag = qs.readBoolEntry(prefix + "foldcomments",FALSE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldcomments",false,&ok);
if (ok)
fold_comments = flag;
else
- rc = FALSE;
+ rc = false;
// Read the fold compact flag.
- flag = qs.readBoolEntry(prefix + "foldcompact",TRUE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldcompact",true,&ok);
if (ok)
fold_compact = flag;
else
- rc = FALSE;
+ rc = false;
// Read the backslash escapes flag.
- flag = qs.readBoolEntry(prefix + "backslashescapes",FALSE,&ok);
+ flag = qs.readBoolEntry(prefix + "backslashescapes",false,&ok);
if (ok)
backslash_escapes = flag;
else
- rc = FALSE;
+ rc = false;
return rc;
}
@@ -368,25 +368,25 @@ bool TQextScintillaLexerSQL::readProperties(TQSettings &qs,const TQString &prefi
// Write properties to the settings.
bool TQextScintillaLexerSQL::writeProperties(TQSettings &qs,const TQString &prefix) const
{
- int rc = TRUE;
+ bool rc = true;
// Write the fold comments flag.
if (!qs.writeEntry(prefix + "foldcomments",fold_comments))
- rc = FALSE;
+ rc = false;
// Write the fold compact flag.
if (!qs.writeEntry(prefix + "foldcompact",fold_compact))
- rc = FALSE;
+ rc = false;
// Write the backslash escapes flag.
if (!qs.writeEntry(prefix + "backslashescapes",backslash_escapes))
- rc = FALSE;
+ rc = false;
return rc;
}
-// Return TRUE if comments can be folded.
+// Return true if comments can be folded.
bool TQextScintillaLexerSQL::foldComments() const
{
return fold_comments;
@@ -409,7 +409,7 @@ void TQextScintillaLexerSQL::setCommentProp()
}
-// Return TRUE if folds are compact.
+// Return true if folds are compact.
bool TQextScintillaLexerSQL::foldCompact() const
{
return fold_compact;
@@ -432,7 +432,7 @@ void TQextScintillaLexerSQL::setCompactProp()
}
-// Return TRUE if backslash escapes are enabled.
+// Return true if backslash escapes are enabled.
bool TQextScintillaLexerSQL::backslashEscapes() const
{
return backslash_escapes;
diff --git a/tqt/tqextscintillalexersql.h b/tqt/tqextscintillalexersql.h
index 190eb62..fb2e881 100644
--- a/tqt/tqextscintillalexersql.h
+++ b/tqt/tqextscintillalexersql.h
@@ -161,36 +161,36 @@ public:
//! propertyChanged() signal as required.
void refreshProperties();
- //! Returns TRUE if multi-line comment blocks can be folded.
+ //! Returns true if multi-line comment blocks can be folded.
//!
//! \sa setFoldComments()
bool foldComments() const;
- //! Returns TRUE if trailing blank lines are included in a fold block.
+ //! Returns true if trailing blank lines are included in a fold block.
//!
//! \sa setFoldCompact()
bool foldCompact() const;
- //! Returns TRUE if backslash escapes are enabled.
+ //! Returns true if backslash escapes are enabled.
//!
//! \sa setBackslashEscapes()
bool backslashEscapes() const;
public slots:
- //! If \a fold is TRUE then multi-line comment blocks can be folded.
- //! The default is FALSE.
+ //! If \a fold is true then multi-line comment blocks can be folded.
+ //! The default is false.
//!
//! \sa foldComments()
virtual void setFoldComments(bool fold);
- //! If \a fold is TRUE then trailing blank lines are included in a fold
- //! block. The default is TRUE.
+ //! If \a fold is true then trailing blank lines are included in a fold
+ //! block. The default is true.
//!
//! \sa foldCompact()
virtual void setFoldCompact(bool fold);
- //! If \a enable is TRUE then backslash escapes are enabled. The
- //! default is FALSE.
+ //! If \a enable is true then backslash escapes are enabled. The
+ //! default is false.
//!
//! \sa backslashEscapes()
virtual void setBackslashEscapes(bool enable);
@@ -198,13 +198,13 @@ public slots:
protected:
//! The lexer's properties are read from the settings \a qs. \a prefix
//! (which has a trailing '/') should be used as a prefix to the key of
- //! each setting. TRUE is returned if there is no error.
+ //! each setting. true is returned if there is no error.
//!
bool readProperties(TQSettings &qs,const TQString &prefix);
//! The lexer's properties are written to the settings \a qs.
//! \a prefix (which has a trailing '/') should be used as a prefix to
- //! the key of each setting. TRUE is returned if there is no error.
+ //! the key of each setting. true is returned if there is no error.
//!
bool writeProperties(TQSettings &qs,const TQString &prefix) const;
diff --git a/tqt/tqextscintillamacro.cpp b/tqt/tqextscintillamacro.cpp
index 25ea696..523b3e1 100644
--- a/tqt/tqextscintillamacro.cpp
+++ b/tqt/tqextscintillamacro.cpp
@@ -67,7 +67,7 @@ void TQextScintillaMacro::clear()
// Read a macro from a string.
bool TQextScintillaMacro::load(const TQCString &asc)
{
- bool rc = TRUE;
+ bool rc = true;
macro.clear();
@@ -109,7 +109,7 @@ bool TQextScintillaMacro::load(const TQCString &asc)
if (!sp)
{
- rc = FALSE;
+ rc = false;
break;
}
@@ -121,7 +121,7 @@ bool TQextScintillaMacro::load(const TQCString &asc)
if (ch == '"' || ch <= ' ' || ch >= 0x7f)
{
- rc = FALSE;
+ rc = false;
break;
}
@@ -132,7 +132,7 @@ bool TQextScintillaMacro::load(const TQCString &asc)
if ((b1 = fromHex(*sp++)) < 0 ||
(b2 = fromHex(*sp++)) < 0)
{
- rc = FALSE;
+ rc = false;
break;
}
diff --git a/tqt/tqextscintillamacro.h b/tqt/tqextscintillamacro.h
index 11f07ce..67a3885 100644
--- a/tqt/tqextscintillamacro.h
+++ b/tqt/tqextscintillamacro.h
@@ -63,7 +63,7 @@ public:
void clear();
//! Load the macro from the printable ASCII representation \a asc.
- //! Returns TRUE if there was no error.
+ //! Returns true if there was no error.
//!
//! \sa save()
bool load(const TQCString &asc);
diff --git a/tqt/tqextscintillaprinter.cpp b/tqt/tqextscintillaprinter.cpp
index a7dd282..969d802 100644
--- a/tqt/tqextscintillaprinter.cpp
+++ b/tqt/tqextscintillaprinter.cpp
@@ -57,7 +57,7 @@ int TQextScintillaPrinter::printRange(TQextScintillaBase *tqsb,int from,int to)
{
// Sanity check.
if (!tqsb)
- return FALSE;
+ return false;
// Setup the printing area.
TQPaintDeviceMetrics metrics(this);
@@ -90,11 +90,11 @@ int TQextScintillaPrinter::printRange(TQextScintillaBase *tqsb,int from,int to)
}
if (startPos >= endPos)
- return FALSE;
+ return false;
TQPainter painter(this);
bool reverse = (pageOrder() == LastPageFirst);
- bool needNewPage = FALSE;
+ bool needNewPage = false;
tqsb -> SendScintilla(TQextScintillaBase::SCI_SETPRINTMAGNIFICATION,mag);
tqsb -> SendScintilla(TQextScintillaBase::SCI_SETPRINTWRAPMODE,wrap);
@@ -116,7 +116,7 @@ int TQextScintillaPrinter::printRange(TQextScintillaBase *tqsb,int from,int to)
// See if we are going to render this page, or just see
// how much would fit onto it.
- bool render = FALSE;
+ bool render = false;
if (pgFrom == 0 || pgFrom <= currPage)
{
@@ -124,15 +124,15 @@ int TQextScintillaPrinter::printRange(TQextScintillaBase *tqsb,int from,int to)
pageStarts.push(pos);
else
{
- render = TRUE;
+ render = true;
if (needNewPage)
{
if (!newPage())
- return FALSE;
+ return false;
}
else
- needNewPage = TRUE;
+ needNewPage = true;
}
}
@@ -159,19 +159,19 @@ int TQextScintillaPrinter::printRange(TQextScintillaBase *tqsb,int from,int to)
if (needNewPage)
{
if (!newPage())
- return FALSE;
+ return false;
}
else
- needNewPage = TRUE;
+ needNewPage = true;
TQRect area = def_area;
- formatPage(painter,TRUE,area,currPage);
- tqsb -> SendScintilla(TQextScintillaBase::SCI_FORMATRANGE,TRUE,&painter,area,pos,ePos);
+ formatPage(painter,true,area,currPage);
+ tqsb -> SendScintilla(TQextScintillaBase::SCI_FORMATRANGE,true,&painter,area,pos,ePos);
}
}
- return TRUE;
+ return true;
}
diff --git a/tqt/tqextscintillaprinter.h b/tqt/tqextscintillaprinter.h
index 7a0f3c9..f625df0 100644
--- a/tqt/tqextscintillaprinter.h
+++ b/tqt/tqextscintillaprinter.h
@@ -51,10 +51,10 @@ public:
//! Format a page, by adding headers and footers for example, before
//! the document text is drawn on it. \a painter is the painter to be
- //! used to add customised text and graphics. \a drawing is TRUE if
+ //! used to add customised text and graphics. \a drawing is true if
//! the page is actually being drawn rather than being sized.
//! \a painter drawing methods must only be called when \a drawing is
- //! TRUE. \a area is the area of the page that will be used to draw
+ //! true. \a area is the area of the page that will be used to draw
//! the text. This should be modified if it is necessary to reserve
//! space for any customised text or graphics. By default the area is
//! relative to the printable area of the page. Use
@@ -78,7 +78,7 @@ public:
//! Print a range of lines from the Scintilla instance \a tqsb. \a from
//! is the first line to print and a negative value signifies the first
//! line of text. \a to is the last line to print and a negative value
- //! signifies the last line of text. TRUE is returned if there was no
+ //! signifies the last line of text. true is returned if there was no
//! error.
virtual int printRange(TQextScintillaBase *tqsb,int from = -1,
int to = -1);