diff options
Diffstat (limited to 'doc/html/tqtextedit.html')
| -rw-r--r-- | doc/html/tqtextedit.html | 42 | 
1 files changed, 21 insertions, 21 deletions
| diff --git a/doc/html/tqtextedit.html b/doc/html/tqtextedit.html index 4b116521b..f04732d00 100644 --- a/doc/html/tqtextedit.html +++ b/doc/html/tqtextedit.html @@ -275,9 +275,9 @@ margins, images, etc., is planned for a later TQt release.</small>  <p> TQTextEdit can be used as a syntax highlighting editor when used in  conjunction with <a href="tqsyntaxhighlighter.html">TQSyntaxHighlighter</a>.  <p> We recommend that you always call <a href="#setTextFormat">setTextFormat</a>() to set the mode -you want to use. If you use <a href="ntqt.html#TextFormat-enum">AutoText</a> then <a href="#setText">setText</a>() and +you want to use. If you use <a href="tqt.html#TextFormat-enum">AutoText</a> then <a href="#setText">setText</a>() and  <a href="#append">append</a>() will try to determine whether the text they are given is -plain text or rich text. If you use <a href="ntqt.html#TextFormat-enum">RichText</a> then setText() and +plain text or rich text. If you use <a href="tqt.html#TextFormat-enum">RichText</a> then setText() and  append() will assume that the text they are given is rich text.  <a href="#insert">insert</a>() simply inserts the text it is given.  <p> TQTextEdit works on paragraphs and characters. A paragraph is a @@ -417,7 +417,7 @@ the locations of files and images. It is passed to the  <p> <a name="logtextmode"></a>  <h4> Using TQTextEdit in LogText Mode  </h4> -<a name="1-1-2"></a><p> Setting the text format to <a href="ntqt.html#TextFormat-enum">LogText</a> puts the widget in a special +<a name="1-1-2"></a><p> Setting the text format to <a href="tqt.html#TextFormat-enum">LogText</a> puts the widget in a special  mode which is optimized for very large texts. Editing, word wrap,  and rich text support are disabled in this mode (the widget is  explicitly made read-only). This allows the text to be stored in a @@ -448,7 +448,7 @@ tag does not necessarily have to be closed. A valid example:  custom tag, you could do the following:  <pre>      TQTextEdit * log = new TQTextEdit( this ); -    log-><a href="#setTextFormat">setTextFormat</a>( TQt::<a href="ntqt.html#TextFormat-enum">LogText</a> ); +    log-><a href="#setTextFormat">setTextFormat</a>( TQt::<a href="tqt.html#TextFormat-enum">LogText</a> );      <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 ); @@ -671,7 +671,7 @@ Constructs an empty TQTextEdit called <em>name</em>, with parent <em>parent</em>  Returns the alignment of the current paragraph.  <p> <p>See also <a href="#setAlignment">setAlignment</a>(). -<h3 class=fn><a href="tqstring.html">TQString</a> <a name="anchorAt"></a>TQTextEdit::anchorAt ( const <a href="tqpoint.html">TQPoint</a> & pos, <a href="ntqt.html#AnchorAttribute-enum">AnchorAttribute</a> attr ) +<h3 class=fn><a href="tqstring.html">TQString</a> <a name="anchorAt"></a>TQTextEdit::anchorAt ( const <a href="tqpoint.html">TQPoint</a> & pos, <a href="tqt.html#AnchorAttribute-enum">AnchorAttribute</a> attr )  </h3>  If there is an anchor at position <em>pos</em> (in contents  coordinates), the text for attribute <em>attr</em> is returned, @@ -942,7 +942,7 @@ behavior, but you can use <a href="tqstring.html#replace">TQString::replace</a>(  before inserting it.) If <a href="#TextInsertionFlags-enum">RemoveSelected</a> is set, any selected  text (in selection 0) is removed before the text is inserted.  <p> The default flags are <a href="#TextInsertionFlags-enum">CheckNewLines</a> | <a href="#TextInsertionFlags-enum">RemoveSelected</a>. -<p> If the widget is in <a href="ntqt.html#TextFormat-enum">LogText</a> mode this function will do nothing. +<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> @@ -1019,7 +1019,7 @@ is no paragraph with index <em>para</em>.  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> -Returns the maximum number of lines TQTextEdit can hold in <a href="ntqt.html#TextFormat-enum">LogText</a> mode. By default the number of lines is unlimited, which +Returns the maximum number of lines TQTextEdit can hold in <a href="tqt.html#TextFormat-enum">LogText</a> mode. By default the number of lines is unlimited, which  is signified by a value of -1.  <h3 class=fn><a href="tqmimesourcefactory.html">TQMimeSourceFactory</a> * <a name="mimeSourceFactory"></a>TQTextEdit::mimeSourceFactory () const @@ -1175,8 +1175,8 @@ See the <a href="tqtextedit.html#selectedText-prop">"selectedText"</a> property  <h3 class=fn>void <a name="setAlignment"></a>TQTextEdit::setAlignment ( int a )<tt> [virtual slot]</tt>  </h3>  Sets the alignment of the current paragraph to <em>a</em>. Valid -alignments are <a href="ntqt.html#AlignmentFlags-enum">TQt::AlignLeft</a>, <a href="ntqt.html#AlignmentFlags-enum">TQt::AlignRight</a>, -<a href="ntqt.html#AlignmentFlags-enum">TQt::AlignJustify</a> and <a href="ntqt.html#AlignmentFlags-enum">TQt::AlignCenter</a> (which centers +alignments are <a href="tqt.html#AlignmentFlags-enum">TQt::AlignLeft</a>, <a href="tqt.html#AlignmentFlags-enum">TQt::AlignRight</a>, +<a href="tqt.html#AlignmentFlags-enum">TQt::AlignJustify</a> and <a href="tqt.html#AlignmentFlags-enum">TQt::AlignCenter</a> (which centers  horizontally).  <p>Reimplemented in <a href="tqmultilineedit.html#setAlignment">TQMultiLineEdit</a>. @@ -1198,7 +1198,7 @@ Sets the color of the current format, i.e. of the text, to <em>c</em>.  </h3>  <p> Sets the font of the current format to <em>f</em>. -<p> If the widget is in <a href="ntqt.html#TextFormat-enum">LogText</a> mode this function will do +<p> If the widget is in <a href="tqt.html#TextFormat-enum">LogText</a> mode this function will do  nothing. Use <a href="tqwidget.html#setFont">setFont</a>() instead.  <p> <p>See also <a href="#currentFont">currentFont</a>(), <a href="#setPointSize">setPointSize</a>(), and <a href="#setFamily">setFamily</a>(). @@ -1223,7 +1223,7 @@ the current format to non-italic.  See the <a href="tqtextedit.html#linkUnderline-prop">"linkUnderline"</a> property for details.  <h3 class=fn>void <a name="setMaxLogLines"></a>TQTextEdit::setMaxLogLines ( int limit )<tt> [slot]</tt>  </h3> -Sets the maximum number of lines a TQTextEdit can hold in <a href="ntqt.html#TextFormat-enum">LogText</a> mode to <em>limit</em>. If <em>limit</em> is -1 (the default), this +Sets the maximum number of lines a TQTextEdit can hold in <a href="tqt.html#TextFormat-enum">LogText</a> mode to <em>limit</em>. If <em>limit</em> is -1 (the default), this  signifies an unlimited number of lines.  <p> <b>Warning:</b> Never use formatting tags that span more than one line  when the maximum log lines is set. When lines are removed from the @@ -1302,7 +1302,7 @@ This is an overloaded member function, provided for convenience. It behaves esse  <p> Changes the text of the text edit to the string <em>text</em> and the  context to <em>context</em>. Any previous text is removed.  <p> <em>text</em> may be interpreted either as plain text or as rich text, -depending on the <a href="#textFormat">textFormat</a>(). The default setting is <a href="ntqt.html#TextFormat-enum">AutoText</a>, +depending on the <a href="#textFormat">textFormat</a>(). The default setting is <a href="tqt.html#TextFormat-enum">AutoText</a>,  i.e. the text edit auto-detects the format from <em>text</em>.  <p> For rich text the rendering style and available tags are defined  by a <a href="#styleSheet">styleSheet</a>(); see <a href="tqstylesheet.html">TQStyleSheet</a> for details. @@ -1313,7 +1313,7 @@ edit's TQMimeSourceFactory when quering data.  <p> Note that the undo/redo history is cleared by this function.  <p> <p>See also <a href="#text-prop">text</a> and <a href="#textFormat-prop">textFormat</a>. -<h3 class=fn>void <a name="setTextFormat"></a>TQTextEdit::setTextFormat ( <a href="ntqt.html#TextFormat-enum">TextFormat</a> f )<tt> [virtual slot]</tt> +<h3 class=fn>void <a name="setTextFormat"></a>TQTextEdit::setTextFormat ( <a href="tqt.html#TextFormat-enum">TextFormat</a> f )<tt> [virtual slot]</tt>  </h3><p>Sets the text format: rich text, plain text, log text or auto text to <em>f</em>.  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> @@ -1378,7 +1378,7 @@ See the <a href="tqtextedit.html#text-prop">"text"</a> property for details.  </h3>  This is an overloaded member function, provided for convenience. It behaves essentially like the above function.  <p> Returns the text of paragraph <em>para</em>. -<p> If <a href="#textFormat">textFormat</a>() is <a href="ntqt.html#TextFormat-enum">RichText</a> the text will contain HTML +<p> If <a href="#textFormat">textFormat</a>() is <a href="tqt.html#TextFormat-enum">RichText</a> the text will contain HTML  formatting tags.  <h3 class=fn>void <a name="textChanged"></a>TQTextEdit::textChanged ()<tt> [signal]</tt> @@ -1395,7 +1395,7 @@ formatting tags.  <p> <b>Warning:</b> TQTextCursor is not in the public API, but in special  circumstances you might wish to use it. -<h3 class=fn><a href="ntqt.html#TextFormat-enum">TextFormat</a> <a name="textFormat"></a>TQTextEdit::textFormat () const +<h3 class=fn><a href="tqt.html#TextFormat-enum">TextFormat</a> <a name="textFormat"></a>TQTextEdit::textFormat () const  </h3><p>Returns the text format: rich text, plain text, log text or auto text.  See the <a href="tqtextedit.html#textFormat-prop">"textFormat"</a> property for details.  <h3 class=fn>bool <a name="underline"></a>TQTextEdit::underline () const @@ -1479,7 +1479,7 @@ to disable all automatic formatting.  <p>Set this property's value with <a href="#setAutoFormatting">setAutoFormatting</a>() and get this property's value with <a href="#autoFormatting">autoFormatting</a>().  <h3 class=fn><a href="tqstring.html">TQString</a> <a name="documentTitle-prop"></a>documentTitle</h3>  <p>This property holds the title of the document parsed from the text. -<p>For <a href="ntqt.html#TextFormat-enum">PlainText</a> the title will be an empty string. For <a href="ntqt.html#TextFormat-enum">RichText</a> the title will be the text between the <tt><title></tt> tags, +<p>For <a href="tqt.html#TextFormat-enum">PlainText</a> the title will be an empty string. For <a href="tqt.html#TextFormat-enum">RichText</a> the title will be the text between the <tt><title></tt> tags,  if present, otherwise an empty string.  <p>Get this property's value with <a href="#documentTitle">documentTitle</a>(). @@ -1525,8 +1525,8 @@ text and select text; modifying the text is not possible.  <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>  <p>This property holds the selected text (from selection 0) or an empty string if there is no currently selected text (in selection 0). -<p>The text is always returned as <a href="ntqt.html#TextFormat-enum">PlainText</a> if the <a href="#textFormat">textFormat</a>() is -<a href="ntqt.html#TextFormat-enum">PlainText</a> or <a href="ntqt.html#TextFormat-enum">AutoText</a>, otherwise it is returned as HTML. +<p>The text is always returned as <a href="tqt.html#TextFormat-enum">PlainText</a> if the <a href="#textFormat">textFormat</a>() is +<a href="tqt.html#TextFormat-enum">PlainText</a> or <a href="tqt.html#TextFormat-enum">AutoText</a>, otherwise it is returned as HTML.  <p> <p>See also <a href="#hasSelectedText-prop">hasSelectedText</a>.  <p>Get this property's value with <a href="#selectedText">selectedText</a>(). @@ -1545,7 +1545,7 @@ the focus chain. The default is FALSE.  <p>There is no default text.  <p> On setting, any previous text is deleted.  <p> The text may be interpreted either as plain text or as rich text, -depending on the <a href="#textFormat">textFormat</a>(). The default setting is <a href="ntqt.html#TextFormat-enum">AutoText</a>, +depending on the <a href="#textFormat">textFormat</a>(). The default setting is <a href="tqt.html#TextFormat-enum">AutoText</a>,  i.e. the text edit auto-detects the format of the text.  <p> For richtext, calling <a href="#text">text</a>() on an editable TQTextEdit will cause  the text to be regenerated from the textedit. This may mean that @@ -1554,7 +1554,7 @@ was set.  <p> <p>See also <a href="#textFormat-prop">textFormat</a>.  <p>Set this property's value with <a href="#setText">setText</a>() and get this property's value with <a href="#text">text</a>(). -<h3 class=fn><a href="ntqt.html#TextFormat-enum">TextFormat</a> <a name="textFormat-prop"></a>textFormat</h3> +<h3 class=fn><a href="tqt.html#TextFormat-enum">TextFormat</a> <a name="textFormat-prop"></a>textFormat</h3>  <p>This property holds the text format: rich text, plain text, log text or auto text.  <p>The text format is one of the following:  <ul> @@ -1568,7 +1568,7 @@ defined in the default stylesheet <a href="tqstylesheet.html#defaultSheet">TQSty  limited set of formatting tags (color, bold, underline and italic  settings).  <li> AutoText - this is the default. The text edit autodetects which -rendering style is best, <a href="ntqt.html#TextFormat-enum">PlainText</a> or <a href="ntqt.html#TextFormat-enum">RichText</a>. This is done +rendering style is best, <a href="tqt.html#TextFormat-enum">PlainText</a> or <a href="tqt.html#TextFormat-enum">RichText</a>. This is done  by using the <a href="tqstylesheet.html#mightBeRichText">TQStyleSheet::mightBeRichText</a>() function.  </ul> | 
