diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-06 11:29:57 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-06 11:29:57 +0900 |
commit | dcce5b1f2c449ed9a02b1752e0d74f147a83d07d (patch) | |
tree | d57fe27457a96451f1a67e2a2db268a441d917fc /doc/html/tqtextedit.html | |
parent | 649c4c61a1f1f479f4532b196f68df476cef2680 (diff) | |
download | tqt-rename/true-false-4.tar.gz tqt-rename/true-false-4.zip |
Replace TRUE/FALSE with boolean values true/false - part 4rename/true-false-4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/tqtextedit.html')
-rw-r--r-- | doc/html/tqtextedit.html | 104 |
1 files changed, 52 insertions, 52 deletions
diff --git a/doc/html/tqtextedit.html b/doc/html/tqtextedit.html index ef09c0d0d..a1efa62b6 100644 --- a/doc/html/tqtextedit.html +++ b/doc/html/tqtextedit.html @@ -52,7 +52,7 @@ body { background: #ffffff; color: black; } <li class=fn>TQString <a href="#context"><b>context</b></a> () const</li> <li class=fn>TQString <a href="#documentTitle"><b>documentTitle</b></a> () const</li> <li class=fn>void <a href="#getSelection"><b>getSelection</b></a> ( int * paraFrom, int * indexFrom, int * paraTo, int * indexTo, int selNum = 0 ) const</li> -<li class=fn>virtual bool <a href="#find"><b>find</b></a> ( const TQString & expr, bool cs, bool wo, bool forward = TRUE, int * para = 0, int * index = 0 )</li> +<li class=fn>virtual bool <a href="#find"><b>find</b></a> ( const TQString & expr, bool cs, bool wo, bool forward = true, int * para = 0, int * index = 0 )</li> <li class=fn>int <a href="#paragraphs"><b>paragraphs</b></a> () const</li> <li class=fn>int <a href="#lines"><b>lines</b></a> () const</li> <li class=fn>int <a href="#linesOfParagraph"><b>linesOfParagraph</b></a> ( int para ) const</li> @@ -113,7 +113,7 @@ body { background: #ffffff; color: black; } <li class=fn>void <a href="#setText"><b>setText</b></a> ( const TQString & txt )</li> <li class=fn>virtual void <a href="#setText-2"><b>setText</b></a> ( const TQString & text, const TQString & context )</li> <li class=fn>virtual void <a href="#setTextFormat"><b>setTextFormat</b></a> ( TextFormat f )</li> -<li class=fn>virtual void <a href="#selectAll"><b>selectAll</b></a> ( bool select = TRUE )</li> +<li class=fn>virtual void <a href="#selectAll"><b>selectAll</b></a> ( bool select = true )</li> <li class=fn>virtual void <a href="#setTabStopWidth"><b>setTabStopWidth</b></a> ( int ts )</li> <li class=fn>virtual void <a href="#zoomIn"><b>zoomIn</b></a> ( int range )</li> <li class=fn>virtual void <a href="#zoomIn-2"><b>zoomIn</b></a> ()</li> @@ -152,7 +152,7 @@ body { background: #ffffff; color: black; } <li class=fn>virtual void <a href="#setOverwriteMode"><b>setOverwriteMode</b></a> ( bool b )</li> <li class=fn>virtual void <a href="#scrollToBottom"><b>scrollToBottom</b></a> ()</li> <li class=fn>void <a href="#insert"><b>insert</b></a> ( const TQString & text, uint insertionFlags = CheckNewLines | RemoveSelected )</li> -<li class=fn>virtual void insert ( const TQString & text, bool indent, bool checkNewLine = TRUE, bool removeSelected = TRUE ) <em>(obsolete)</em></li> +<li class=fn>virtual void insert ( const TQString & text, bool indent, bool checkNewLine = true, bool removeSelected = true ) <em>(obsolete)</em></li> <li class=fn>virtual void <a href="#insertAt"><b>insertAt</b></a> ( const TQString & text, int para, int index )</li> <li class=fn>virtual void <a href="#removeParagraph"><b>removeParagraph</b></a> ( int para )</li> <li class=fn>virtual void <a href="#insertParagraph"><b>insertParagraph</b></a> ( const TQString & text, int para )</li> @@ -258,7 +258,7 @@ insert images for example (although you can read and correctly display files that have margins set and that include images). This mode is mostly useful for editing small amounts of rich text. <sup>1.</sup> -<tr bgcolor="#f0f0f0"> <td valign="top">Text Viewer <td valign="top">setReadOnly(TRUE) +<tr bgcolor="#f0f0f0"> <td valign="top">Text Viewer <td valign="top">setReadOnly(true) <td valign="top">Set text with setText() or <a href="#append">append</a>() (which has no undo history so is faster and uses less memory); text() returns plain or rich text depending on the <a href="#textFormat">textFormat</a>(). This mode @@ -355,7 +355,7 @@ for example: if ( file.<a href="tqfile.html#open">open</a>( <a href="tqfile.html#open">IO_WriteOnly</a> ) ) { <a href="tqtextstream.html">TQTextStream</a> stream( &file ); stream << textEdit->text(); - textEdit->setModified( FALSE ); + textEdit->setModified( false ); } </pre> @@ -451,7 +451,7 @@ custom tag, you could do the following: <a href="tqstylesheetitem.html">TQStyleSheetItem</a> * item = new <a href="tqstylesheetitem.html">TQStyleSheetItem</a>( log-><a href="#styleSheet">styleSheet</a>(), "mytag" ); item-><a href="tqstylesheetitem.html#setColor">setColor</a>( "red" ); item-><a href="tqstylesheetitem.html#setFontWeight">setFontWeight</a>( TQFont::Bold ); - item-><a href="tqstylesheetitem.html#setFontUnderline">setFontUnderline</a>( TRUE ); + item-><a href="tqstylesheetitem.html#setFontUnderline">setFontUnderline</a>( true ); log-><a href="#append">append</a>( "This is a <mytag>custom tag</mytag>!" ); </pre> @@ -495,7 +495,7 @@ and alignment at the new cursor position. <p> If the text changes, the <a href="#textChanged">textChanged</a>() signal is emitted, and if the user inserts a new line by pressing Return or Enter, <a href="#returnPressed">returnPressed</a>() is emitted. The <a href="#isModified">isModified</a>() function will return -TRUE if the text has been modified. +true if the text has been modified. <p> TQTextEdit provides command-based undo and redo. To set the depth of the command history use <a href="#setUndoDepth">setUndoDepth</a>() which defaults to 100 steps. To undo or redo the last operation call <a href="#undo">undo</a>() or <a href="#redo">redo</a>(). @@ -697,7 +697,7 @@ undo/redo history as well, use <a href="#insertParagraph">insertParagraph</a>(). See the <a href="tqtextedit.html#autoFormatting-prop">"autoFormatting"</a> property for details. <h3 class=fn>bool <a name="bold"></a>TQTextEdit::bold () const </h3> -Returns TRUE if the current format is bold; otherwise returns FALSE. +Returns true if the current format is bold; otherwise returns false. <p> <p>See also <a href="#setBold">setBold</a>(). <h3 class=fn>int <a name="charAt"></a>TQTextEdit::charAt ( const <a href="tqpoint.html">TQPoint</a> & pos, int * para ) const @@ -747,10 +747,10 @@ Copies any selected text (from selection 0) to the clipboard. <p> This signal is emitted when text is selected or de-selected in the text edit. <p> When text is selected this signal will be emitted with <em>yes</em> set -to TRUE. If no text has been selected or if the selected text is -de-selected this signal is emitted with <em>yes</em> set to FALSE. -<p> If <em>yes</em> is TRUE then <a href="#copy">copy</a>() can be used to copy the selection to -the clipboard. If <em>yes</em> is FALSE then copy() does nothing. +to true. If no text has been selected or if the selected text is +de-selected this signal is emitted with <em>yes</em> set to false. +<p> If <em>yes</em> is true then <a href="#copy">copy</a>() can be used to copy the selection to +the clipboard. If <em>yes</em> is false then copy() does nothing. <p> <p>See also <a href="#selectionChanged">selectionChanged</a>(). <h3 class=fn><a href="tqpopupmenu.html">TQPopupMenu</a> * <a name="createPopupMenu"></a>TQTextEdit::createPopupMenu ( const <a href="tqpoint.html">TQPoint</a> & pos )<tt> [virtual protected]</tt> @@ -857,24 +857,24 @@ necessary. Returns the font family of the current format. <p> <p>See also <a href="#setFamily">setFamily</a>(), <a href="#setCurrentFont">setCurrentFont</a>(), and <a href="#setPointSize">setPointSize</a>(). -<h3 class=fn>bool <a name="find"></a>TQTextEdit::find ( const <a href="tqstring.html">TQString</a> & expr, bool cs, bool wo, bool forward = TRUE, int * para = 0, int * index = 0 )<tt> [virtual]</tt> +<h3 class=fn>bool <a name="find"></a>TQTextEdit::find ( const <a href="tqstring.html">TQString</a> & expr, bool cs, bool wo, bool forward = true, int * para = 0, int * index = 0 )<tt> [virtual]</tt> </h3> -Finds the next occurrence of the string, <em>expr</em>. Returns TRUE if -<em>expr</em> was found; otherwise returns FALSE. +Finds the next occurrence of the string, <em>expr</em>. Returns true if +<em>expr</em> was found; otherwise returns false. <p> If <em>para</em> and <em>index</em> are both 0 the search begins from the current cursor position. If <em>para</em> and <em>index</em> are both not 0, the search begins from the <em>*index</em> character position in the <em>*para</em> paragraph. -<p> If <em>cs</em> is TRUE the search is case sensitive, otherwise it is -case insensitive. If <em>wo</em> is TRUE the search looks for whole word -matches only; otherwise it searches for any matching text. If <em>forward</em> is TRUE (the default) the search works forward from the +<p> If <em>cs</em> is true the search is case sensitive, otherwise it is +case insensitive. If <em>wo</em> is true the search looks for whole word +matches only; otherwise it searches for any matching text. If <em>forward</em> is true (the default) the search works forward from the starting position to the end of the text, otherwise it works backwards to the beginning of the text. -<p> If <em>expr</em> is found the function returns TRUE. If <em>index</em> and <em>para</em> are not 0, the number of the paragraph in which the first +<p> If <em>expr</em> is found the function returns true. If <em>index</em> and <em>para</em> are not 0, the number of the paragraph in which the first character of the match was found is put into <em>*para</em>, and the index position of that character within the paragraph is put into <em>*index</em>. -<p> If <em>expr</em> is not found the function returns FALSE. If <em>index</em> +<p> If <em>expr</em> is not found the function returns false. If <em>index</em> and <em>para</em> are not 0 and <em>expr</em> is not found, <em>*index</em> and <em>*para</em> are undefined. <p> Please note that this function will make the next occurrence of @@ -885,10 +885,10 @@ in case the document contains tables. <h3 class=fn>bool <a name="focusNextPrevChild"></a>TQTextEdit::focusNextPrevChild ( bool n )<tt> [virtual protected]</tt> </h3> -Reimplemented to allow tabbing through links. If <em>n</em> is TRUE the -tab moves the focus to the next child; if <em>n</em> is FALSE the tab -moves the focus to the previous child. Returns TRUE if the focus -was moved; otherwise returns FALSE. +Reimplemented to allow tabbing through links. If <em>n</em> is true the +tab moves the focus to the next child; if <em>n</em> is false the tab +moves the focus to the previous child. Returns true if the focus +was moved; otherwise returns false. <h3 class=fn><a href="tqfont.html">TQFont</a> <a name="font"></a>TQTextEdit::font () const </h3> @@ -922,7 +922,7 @@ are supported). It defaults to 0 (the default selection). <p> <p>See also <a href="#setSelection">setSelection</a>() and <a href="#selectedText-prop">selectedText</a>. <h3 class=fn>bool <a name="hasSelectedText"></a>TQTextEdit::hasSelectedText () const -</h3><p>Returns TRUE if some text is selected in selection 0; otherwise returns FALSE. +</h3><p>Returns true if some text is selected in selection 0; otherwise returns false. See the <a href="tqtextedit.html#hasSelectedText-prop">"hasSelectedText"</a> property for details. <h3 class=fn>int <a name="heightForWidth"></a>TQTextEdit::heightForWidth ( int w ) const<tt> [virtual]</tt> </h3> @@ -944,7 +944,7 @@ text (in selection 0) is removed before the text is inserted. <p> If the widget is in <a href="tqt.html#TextFormat-enum">LogText</a> mode this function will do nothing. <p> <p>See also <a href="#paste">paste</a>() and <a href="#pasteSubType">pasteSubType</a>(). -<h3 class=fn>void <a name="insert-2"></a>TQTextEdit::insert ( const <a href="tqstring.html">TQString</a> & text, bool indent, bool checkNewLine = TRUE, bool removeSelected = TRUE )<tt> [virtual slot]</tt> +<h3 class=fn>void <a name="insert-2"></a>TQTextEdit::insert ( const <a href="tqstring.html">TQString</a> & text, bool indent, bool checkNewLine = true, bool removeSelected = true )<tt> [virtual slot]</tt> </h3> <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code. <p> @@ -959,28 +959,28 @@ is -1, the text is appended. Use <a href="#append">append</a>() if the append op is performance critical. <h3 class=fn>bool <a name="isModified"></a>TQTextEdit::isModified () const -</h3><p>Returns TRUE if the document has been modified by the user; otherwise returns FALSE. +</h3><p>Returns true if the document has been modified by the user; otherwise returns false. See the <a href="tqtextedit.html#modified-prop">"modified"</a> property for details. <h3 class=fn>bool <a name="isOverwriteMode"></a>TQTextEdit::isOverwriteMode () const </h3><p>Returns the text edit's overwrite mode. See the <a href="tqtextedit.html#overwriteMode-prop">"overwriteMode"</a> property for details. <h3 class=fn>bool <a name="isReadOnly"></a>TQTextEdit::isReadOnly () const -</h3><p>Returns TRUE if the text edit is read-only; otherwise returns FALSE. +</h3><p>Returns true if the text edit is read-only; otherwise returns false. See the <a href="tqtextedit.html#readOnly-prop">"readOnly"</a> property for details. <h3 class=fn>bool <a name="isRedoAvailable"></a>TQTextEdit::isRedoAvailable () const </h3> -Returns TRUE if redo is available; otherwise returns FALSE. +Returns true if redo is available; otherwise returns false. <h3 class=fn>bool <a name="isUndoAvailable"></a>TQTextEdit::isUndoAvailable () const </h3> -Returns TRUE if undo is available; otherwise returns FALSE. +Returns true if undo is available; otherwise returns false. <h3 class=fn>bool <a name="isUndoRedoEnabled"></a>TQTextEdit::isUndoRedoEnabled () const -</h3><p>Returns TRUE if undo/redo is enabled; otherwise returns FALSE. +</h3><p>Returns true if undo/redo is enabled; otherwise returns false. See the <a href="tqtextedit.html#undoRedoEnabled-prop">"undoRedoEnabled"</a> property for details. <h3 class=fn>bool <a name="italic"></a>TQTextEdit::italic () const </h3> -Returns TRUE if the current format is italic; otherwise returns FALSE. +Returns true if the current format is italic; otherwise returns false. <p> <p>See also <a href="#setItalic">setItalic</a>(). <h3 class=fn>void <a name="keyPressEvent"></a>TQTextEdit::keyPressEvent ( <a href="tqkeyevent.html">TQKeyEvent</a> * e )<tt> [virtual protected]</tt> @@ -1014,7 +1014,7 @@ Returns the number of lines in paragraph <em>para</em>, or -1 if there is no paragraph with index <em>para</em>. <h3 class=fn>bool <a name="linkUnderline"></a>TQTextEdit::linkUnderline () const -</h3><p>Returns TRUE if hypertext links will be underlined; otherwise returns FALSE. +</h3><p>Returns true if hypertext links will be underlined; otherwise returns false. See the <a href="tqtextedit.html#linkUnderline-prop">"linkUnderline"</a> property for details. <h3 class=fn>int <a name="maxLogLines"></a>TQTextEdit::maxLogLines ()<tt> [slot]</tt> </h3> @@ -1032,7 +1032,7 @@ edit. </h3> <p> This signal is emitted when the modification status of the -document has changed. If <em>m</em> is TRUE, the document was modified, +document has changed. If <em>m</em> is true, the document was modified, otherwise the modification state has been reset to unmodified. <p> <p>See also <a href="#modified-prop">modified</a>. @@ -1112,7 +1112,7 @@ the undo/redo history, nothing happens. </h3> <p> This signal is emitted when the availability of redo changes. If -<em>yes</em> is TRUE, then <a href="#redo">redo</a>() will work until <a href="#redoAvailable">redoAvailable</a>( FALSE ) +<em>yes</em> is true, then <a href="#redo">redo</a>() will work until <a href="#redoAvailable">redoAvailable</a>( false ) is next emitted. <p> <p>See also <a href="#redo">redo</a>() and <a href="#undoDepth-prop">undoDepth</a>. @@ -1155,10 +1155,10 @@ the HTML anchor tag, e.g. <tt><a name="target"></tt>. Scrolls to the bottom of the document and does formatting if required. -<h3 class=fn>void <a name="selectAll"></a>TQTextEdit::selectAll ( bool select = TRUE )<tt> [virtual slot]</tt> +<h3 class=fn>void <a name="selectAll"></a>TQTextEdit::selectAll ( bool select = true )<tt> [virtual slot]</tt> </h3> -If <em>select</em> is TRUE (the default), all the text is selected as -selection 0. If <em>select</em> is FALSE any selected text is +If <em>select</em> is true (the default), all the text is selected as +selection 0. If <em>select</em> is false any selected text is unselected, i.e. the default selection (selection 0) is cleared. <p> <p>See also <a href="#selectedText-prop">selectedText</a>. @@ -1184,7 +1184,7 @@ horizontally). See the <a href="tqtextedit.html#autoFormatting-prop">"autoFormatting"</a> property for details. <h3 class=fn>void <a name="setBold"></a>TQTextEdit::setBold ( bool b )<tt> [virtual slot]</tt> </h3> -If <em>b</em> is TRUE sets the current format to bold; otherwise sets +If <em>b</em> is true sets the current format to bold; otherwise sets the current format to non-bold. <p> <p>See also <a href="#bold">bold</a>(). @@ -1213,7 +1213,7 @@ Sets the font family of the current format to <em>fontFamily</em>. <h3 class=fn>void <a name="setItalic"></a>TQTextEdit::setItalic ( bool b )<tt> [virtual slot]</tt> </h3> -If <em>b</em> is TRUE sets the current format to italic; otherwise sets +If <em>b</em> is true sets the current format to italic; otherwise sets the current format to non-italic. <p> <p>See also <a href="#italic">italic</a>(). @@ -1317,7 +1317,7 @@ edit's TQMimeSourceFactory when quering data. See the <a href="tqtextedit.html#textFormat-prop">"textFormat"</a> property for details. <h3 class=fn>void <a name="setUnderline"></a>TQTextEdit::setUnderline ( bool b )<tt> [virtual slot]</tt> </h3> -If <em>b</em> is TRUE sets the current format to underline; otherwise +If <em>b</em> is true sets the current format to underline; otherwise sets the current format to non-underline. <p> <p>See also <a href="#underline">underline</a>(). @@ -1365,7 +1365,7 @@ Returns the <a href="tqsyntaxhighlighter.html">TQSyntaxHighlighter</a> set on th returned if no syntax highlighter is set. <h3 class=fn>bool <a name="tabChangesFocus"></a>TQTextEdit::tabChangesFocus () const -</h3><p>Returns TRUE if TAB changes focus or is accepted as input; otherwise returns FALSE. +</h3><p>Returns true if TAB changes focus or is accepted as input; otherwise returns false. See the <a href="tqtextedit.html#tabChangesFocus-prop">"tabChangesFocus"</a> property for details. <h3 class=fn>int <a name="tabStopWidth"></a>TQTextEdit::tabStopWidth () const </h3><p>Returns the tab stop width in pixels. @@ -1399,8 +1399,8 @@ circumstances you might wish to use it. See the <a href="tqtextedit.html#textFormat-prop">"textFormat"</a> property for details. <h3 class=fn>bool <a name="underline"></a>TQTextEdit::underline () const </h3> -Returns TRUE if the current format is underlined; otherwise returns -FALSE. +Returns true if the current format is underlined; otherwise returns +false. <p> <p>See also <a href="#setUnderline">setUnderline</a>(). <h3 class=fn>void <a name="undo"></a>TQTextEdit::undo ()<tt> [virtual slot]</tt> @@ -1414,7 +1414,7 @@ the undo/redo history, nothing happens. </h3> <p> This signal is emitted when the availability of undo changes. If -<em>yes</em> is TRUE, then <a href="#undo">undo</a>() will work until <a href="#undoAvailable">undoAvailable</a>( FALSE ) +<em>yes</em> is true, then <a href="#undo">undo</a>() will work until <a href="#undoAvailable">undoAvailable</a>( false ) is next emitted. <p> <p>See also <a href="#undo">undo</a>() and <a href="#undoDepth-prop">undoDepth</a>. @@ -1492,8 +1492,8 @@ if present, otherwise an empty string. <p>Get this property's value with <a href="#length">length</a>(). <h3 class=fn>bool <a name="linkUnderline-prop"></a>linkUnderline</h3> <p>This property holds whether hypertext links will be underlined. -<p>If TRUE (the default) hypertext links will be displayed -underlined. If FALSE links will not be displayed underlined. +<p>If true (the default) hypertext links will be displayed +underlined. If false links will not be displayed underlined. <p>Set this property's value with <a href="#setLinkUnderline">setLinkUnderline</a>() and get this property's value with <a href="#linkUnderline">linkUnderline</a>(). <h3 class=fn>bool <a name="modified-prop"></a>modified</h3> @@ -1502,9 +1502,9 @@ underlined. If FALSE links will not be displayed underlined. <p>Set this property's value with <a href="#setModified">setModified</a>() and get this property's value with <a href="#isModified">isModified</a>(). <h3 class=fn>bool <a name="overwriteMode-prop"></a>overwriteMode</h3> <p>This property holds the text edit's overwrite mode. -<p>If FALSE (the default) characters entered by the user are inserted +<p>If false (the default) characters entered by the user are inserted with any characters to the right being moved out of the way. If -TRUE, the editor is in overwrite mode, i.e. characters entered by +true, the editor is in overwrite mode, i.e. characters entered by the user overwrite any characters to the right of the cursor position. @@ -1519,7 +1519,7 @@ text edit. The initial setting is an empty brush. <p>This property holds whether the text edit is read-only. <p>In a read-only text edit the user can only navigate through the text and select text; modifying the text is not possible. -<p> This property's default is FALSE. +<p> This property's default is false. <p>Set this property's value with <a href="#setReadOnly">setReadOnly</a>() and get this property's value with <a href="#isReadOnly">isReadOnly</a>(). <h3 class=fn><a href="tqstring.html">TQString</a> <a name="selectedText-prop"></a>selectedText</h3> @@ -1532,7 +1532,7 @@ text and select text; modifying the text is not possible. <h3 class=fn>bool <a name="tabChangesFocus-prop"></a>tabChangesFocus</h3> <p>This property holds whether TAB changes focus or is accepted as input. <p>In some occasions text edits should not allow the user to input tabulators or change indentation using the TAB key, as this breaks -the focus chain. The default is FALSE. +the focus chain. The default is false. <p> <p>Set this property's value with <a href="#setTabChangesFocus">setTabChangesFocus</a>() and get this property's value with <a href="#tabChangesFocus">tabChangesFocus</a>(). <h3 class=fn>int <a name="tabStopWidth-prop"></a>tabStopWidth</h3> @@ -1582,7 +1582,7 @@ is 100. <h3 class=fn>bool <a name="undoRedoEnabled-prop"></a>undoRedoEnabled</h3> <p>This property holds whether undo/redo is enabled. <p>When changing this property, the undo/redo history is cleared. -<p> The default is TRUE. +<p> The default is true. <p>Set this property's value with <a href="#setUndoRedoEnabled">setUndoRedoEnabled</a>() and get this property's value with <a href="#isUndoRedoEnabled">isUndoRedoEnabled</a>(). <h3 class=fn><a href="tqtextedit.html#WordWrap-enum">WordWrap</a> <a name="wordWrap-prop"></a>wordWrap</h3> |