From 4d495175043c399fdca6e1bb4c74ef176fc76fb4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Aug 2025 11:29:57 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Signed-off-by: Michele Calgaro --- doc/html/tqtextedit.html | 104 +++++++++++++++++++++++------------------------ 1 file changed, 52 insertions(+), 52 deletions(-) (limited to 'doc/html/tqtextedit.html') 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; }
  • TQString context () const
  • TQString documentTitle () const
  • void getSelection ( int * paraFrom, int * indexFrom, int * paraTo, int * indexTo, int selNum = 0 ) const
  • -
  • virtual bool find ( const TQString & expr, bool cs, bool wo, bool forward = TRUE, int * para = 0, int * index = 0 )
  • +
  • virtual bool find ( const TQString & expr, bool cs, bool wo, bool forward = true, int * para = 0, int * index = 0 )
  • int paragraphs () const
  • int lines () const
  • int linesOfParagraph ( int para ) const
  • @@ -113,7 +113,7 @@ body { background: #ffffff; color: black; }
  • void setText ( const TQString & txt )
  • virtual void setText ( const TQString & text, const TQString & context )
  • virtual void setTextFormat ( TextFormat f )
  • -
  • virtual void selectAll ( bool select = TRUE )
  • +
  • virtual void selectAll ( bool select = true )
  • virtual void setTabStopWidth ( int ts )
  • virtual void zoomIn ( int range )
  • virtual void zoomIn ()
  • @@ -152,7 +152,7 @@ body { background: #ffffff; color: black; }
  • virtual void setOverwriteMode ( bool b )
  • virtual void scrollToBottom ()
  • void insert ( const TQString & text, uint insertionFlags = CheckNewLines | RemoveSelected )
  • -
  • virtual void insert ( const TQString & text, bool indent, bool checkNewLine = TRUE, bool removeSelected = TRUE )  (obsolete)
  • +
  • virtual void insert ( const TQString & text, bool indent, bool checkNewLine = true, bool removeSelected = true )  (obsolete)
  • virtual void insertAt ( const TQString & text, int para, int index )
  • virtual void removeParagraph ( int para )
  • virtual void insertParagraph ( const TQString & text, int para )
  • @@ -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. 1. - Text Viewer setReadOnly(TRUE) + Text Viewer setReadOnly(true) Set text with setText() or append() (which has no undo history so is faster and uses less memory); text() returns plain or rich text depending on the textFormat(). This mode @@ -355,7 +355,7 @@ for example: if ( file.open( IO_WriteOnly ) ) { TQTextStream stream( &file ); stream << textEdit->text(); - textEdit->setModified( FALSE ); + textEdit->setModified( false ); } @@ -451,7 +451,7 @@ custom tag, you could do the following: TQStyleSheetItem * item = new TQStyleSheetItem( log->styleSheet(), "mytag" ); item->setColor( "red" ); item->setFontWeight( TQFont::Bold ); - item->setFontUnderline( TRUE ); + item->setFontUnderline( true ); log->append( "This is a <mytag>custom tag</mytag>!" ); @@ -495,7 +495,7 @@ and alignment at the new cursor position.

    If the text changes, the textChanged() signal is emitted, and if the user inserts a new line by pressing Return or Enter, returnPressed() is emitted. The isModified() function will return -TRUE if the text has been modified. +true if the text has been modified.

    TQTextEdit provides command-based undo and redo. To set the depth of the command history use setUndoDepth() which defaults to 100 steps. To undo or redo the last operation call undo() or redo(). @@ -697,7 +697,7 @@ undo/redo history as well, use insertParagraph(). See the "autoFormatting" property for details.

    bool TQTextEdit::bold () const

    -Returns TRUE if the current format is bold; otherwise returns FALSE. +Returns true if the current format is bold; otherwise returns false.

    See also setBold().

    int TQTextEdit::charAt ( const TQPoint & pos, int * para ) const @@ -747,10 +747,10 @@ Copies any selected text (from selection 0) to the clipboard.

    This signal is emitted when text is selected or de-selected in the text edit.

    When text is selected this signal will be emitted with yes set -to TRUE. If no text has been selected or if the selected text is -de-selected this signal is emitted with yes set to FALSE. -

    If yes is TRUE then copy() can be used to copy the selection to -the clipboard. If yes 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 yes set to false. +

    If yes is true then copy() can be used to copy the selection to +the clipboard. If yes is false then copy() does nothing.

    See also selectionChanged().

    TQPopupMenu * TQTextEdit::createPopupMenu ( const TQPoint & pos ) [virtual protected] @@ -857,24 +857,24 @@ necessary. Returns the font family of the current format.

    See also setFamily(), setCurrentFont(), and setPointSize(). -

    bool TQTextEdit::find ( const TQString & expr, bool cs, bool wo, bool forward = TRUE, int * para = 0, int * index = 0 ) [virtual] +

    bool TQTextEdit::find ( const TQString & expr, bool cs, bool wo, bool forward = true, int * para = 0, int * index = 0 ) [virtual]

    -Finds the next occurrence of the string, expr. Returns TRUE if -expr was found; otherwise returns FALSE. +Finds the next occurrence of the string, expr. Returns true if +expr was found; otherwise returns false.

    If para and index are both 0 the search begins from the current cursor position. If para and index are both not 0, the search begins from the *index character position in the *para paragraph. -

    If cs is TRUE the search is case sensitive, otherwise it is -case insensitive. If wo is TRUE the search looks for whole word -matches only; otherwise it searches for any matching text. If forward is TRUE (the default) the search works forward from the +

    If cs is true the search is case sensitive, otherwise it is +case insensitive. If wo is true the search looks for whole word +matches only; otherwise it searches for any matching text. If forward 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. -

    If expr is found the function returns TRUE. If index and para are not 0, the number of the paragraph in which the first +

    If expr is found the function returns true. If index and para are not 0, the number of the paragraph in which the first character of the match was found is put into *para, and the index position of that character within the paragraph is put into *index. -

    If expr is not found the function returns FALSE. If index +

    If expr is not found the function returns false. If index and para are not 0 and expr is not found, *index and *para are undefined.

    Please note that this function will make the next occurrence of @@ -885,10 +885,10 @@ in case the document contains tables.

    bool TQTextEdit::focusNextPrevChild ( bool n ) [virtual protected]

    -Reimplemented to allow tabbing through links. If n is TRUE the -tab moves the focus to the next child; if n 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 n is true the +tab moves the focus to the next child; if n is false the tab +moves the focus to the previous child. Returns true if the focus +was moved; otherwise returns false.

    TQFont TQTextEdit::font () const

    @@ -922,7 +922,7 @@ are supported). It defaults to 0 (the default selection).

    See also setSelection() and selectedText.

    bool TQTextEdit::hasSelectedText () const -

    Returns TRUE if some text is selected in selection 0; otherwise returns FALSE. +

    Returns true if some text is selected in selection 0; otherwise returns false. See the "hasSelectedText" property for details.

    int TQTextEdit::heightForWidth ( int w ) const [virtual]

    @@ -944,7 +944,7 @@ text (in selection 0) is removed before the text is inserted.

    If the widget is in LogText mode this function will do nothing.

    See also paste() and pasteSubType(). -

    void TQTextEdit::insert ( const TQString & text, bool indent, bool checkNewLine = TRUE, bool removeSelected = TRUE ) [virtual slot] +

    void TQTextEdit::insert ( const TQString & text, bool indent, bool checkNewLine = true, bool removeSelected = true ) [virtual slot]

    This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code.

    @@ -959,28 +959,28 @@ is -1, the text is appended. Use append() if the append op is performance critical.

    bool TQTextEdit::isModified () const -

    Returns TRUE if the document has been modified by the user; otherwise returns FALSE. +

    Returns true if the document has been modified by the user; otherwise returns false. See the "modified" property for details.

    bool TQTextEdit::isOverwriteMode () const

    Returns the text edit's overwrite mode. See the "overwriteMode" property for details.

    bool TQTextEdit::isReadOnly () const -

    Returns TRUE if the text edit is read-only; otherwise returns FALSE. +

    Returns true if the text edit is read-only; otherwise returns false. See the "readOnly" property for details.

    bool TQTextEdit::isRedoAvailable () const

    -Returns TRUE if redo is available; otherwise returns FALSE. +Returns true if redo is available; otherwise returns false.

    bool TQTextEdit::isUndoAvailable () const

    -Returns TRUE if undo is available; otherwise returns FALSE. +Returns true if undo is available; otherwise returns false.

    bool TQTextEdit::isUndoRedoEnabled () const -

    Returns TRUE if undo/redo is enabled; otherwise returns FALSE. +

    Returns true if undo/redo is enabled; otherwise returns false. See the "undoRedoEnabled" property for details.

    bool TQTextEdit::italic () const

    -Returns TRUE if the current format is italic; otherwise returns FALSE. +Returns true if the current format is italic; otherwise returns false.

    See also setItalic().

    void TQTextEdit::keyPressEvent ( TQKeyEvent * e ) [virtual protected] @@ -1014,7 +1014,7 @@ Returns the number of lines in paragraph para, or -1 if there is no paragraph with index para.

    bool TQTextEdit::linkUnderline () const -

    Returns TRUE if hypertext links will be underlined; otherwise returns FALSE. +

    Returns true if hypertext links will be underlined; otherwise returns false. See the "linkUnderline" property for details.

    int TQTextEdit::maxLogLines () [slot]

    @@ -1032,7 +1032,7 @@ edit.

    This signal is emitted when the modification status of the -document has changed. If m is TRUE, the document was modified, +document has changed. If m is true, the document was modified, otherwise the modification state has been reset to unmodified.

    See also modified. @@ -1112,7 +1112,7 @@ the undo/redo history, nothing happens.

    This signal is emitted when the availability of redo changes. If -yes is TRUE, then redo() will work until redoAvailable( FALSE ) +yes is true, then redo() will work until redoAvailable( false ) is next emitted.

    See also redo() and undoDepth. @@ -1155,10 +1155,10 @@ the HTML anchor tag, e.g. <a name="target">. Scrolls to the bottom of the document and does formatting if required. -

    void TQTextEdit::selectAll ( bool select = TRUE ) [virtual slot] +

    void TQTextEdit::selectAll ( bool select = true ) [virtual slot]

    -If select is TRUE (the default), all the text is selected as -selection 0. If select is FALSE any selected text is +If select is true (the default), all the text is selected as +selection 0. If select is false any selected text is unselected, i.e. the default selection (selection 0) is cleared.

    See also selectedText. @@ -1184,7 +1184,7 @@ horizontally). See the "autoFormatting" property for details.

    void TQTextEdit::setBold ( bool b ) [virtual slot]

    -If b is TRUE sets the current format to bold; otherwise sets +If b is true sets the current format to bold; otherwise sets the current format to non-bold.

    See also bold(). @@ -1213,7 +1213,7 @@ Sets the font family of the current format to fontFamily.

    void TQTextEdit::setItalic ( bool b ) [virtual slot]

    -If b is TRUE sets the current format to italic; otherwise sets +If b is true sets the current format to italic; otherwise sets the current format to non-italic.

    See also italic(). @@ -1317,7 +1317,7 @@ edit's TQMimeSourceFactory when quering data. See the "textFormat" property for details.

    void TQTextEdit::setUnderline ( bool b ) [virtual slot]

    -If b is TRUE sets the current format to underline; otherwise +If b is true sets the current format to underline; otherwise sets the current format to non-underline.

    See also underline(). @@ -1365,7 +1365,7 @@ Returns the TQSyntaxHighlighter set on th returned if no syntax highlighter is set.

    bool TQTextEdit::tabChangesFocus () const -

    Returns TRUE if TAB changes focus or is accepted as input; otherwise returns FALSE. +

    Returns true if TAB changes focus or is accepted as input; otherwise returns false. See the "tabChangesFocus" property for details.

    int TQTextEdit::tabStopWidth () const

    Returns the tab stop width in pixels. @@ -1399,8 +1399,8 @@ circumstances you might wish to use it. See the "textFormat" property for details.

    bool TQTextEdit::underline () const

    -Returns TRUE if the current format is underlined; otherwise returns -FALSE. +Returns true if the current format is underlined; otherwise returns +false.

    See also setUnderline().

    void TQTextEdit::undo () [virtual slot] @@ -1414,7 +1414,7 @@ the undo/redo history, nothing happens.

    This signal is emitted when the availability of undo changes. If -yes is TRUE, then undo() will work until undoAvailable( FALSE ) +yes is true, then undo() will work until undoAvailable( false ) is next emitted.

    See also undo() and undoDepth. @@ -1492,8 +1492,8 @@ if present, otherwise an empty string.

    Get this property's value with length().

    bool linkUnderline

    This property holds whether hypertext links will be underlined. -

    If TRUE (the default) hypertext links will be displayed -underlined. If FALSE links will not be displayed underlined. +

    If true (the default) hypertext links will be displayed +underlined. If false links will not be displayed underlined.

    Set this property's value with setLinkUnderline() and get this property's value with linkUnderline().

    bool modified

    @@ -1502,9 +1502,9 @@ underlined. If FALSE links will not be displayed underlined.

    Set this property's value with setModified() and get this property's value with isModified().

    bool overwriteMode

    This property holds the text edit's overwrite mode. -

    If FALSE (the default) characters entered by the user are inserted +

    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.

    This property holds whether the text edit is read-only.

    In a read-only text edit the user can only navigate through the text and select text; modifying the text is not possible. -

    This property's default is FALSE. +

    This property's default is false.

    Set this property's value with setReadOnly() and get this property's value with isReadOnly().

    TQString selectedText

    @@ -1532,7 +1532,7 @@ text and select text; modifying the text is not possible.

    bool tabChangesFocus

    This property holds whether TAB changes focus or is accepted as input.

    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.

    Set this property's value with setTabChangesFocus() and get this property's value with tabChangesFocus().

    int tabStopWidth

    @@ -1582,7 +1582,7 @@ is 100.

    bool undoRedoEnabled

    This property holds whether undo/redo is enabled.

    When changing this property, the undo/redo history is cleared. -

    The default is TRUE. +

    The default is true.

    Set this property's value with setUndoRedoEnabled() and get this property's value with isUndoRedoEnabled().

    WordWrap wordWrap

    -- cgit v1.2.3