diff options
author | Michele Calgaro <[email protected]> | 2024-06-08 12:56:43 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-06-08 12:56:43 +0900 |
commit | 0cf411b09cf5d8970b873a338a69eae98d5ce5d8 (patch) | |
tree | 107cf55759cc3138bb1e0035b479bcd92127403a /doc/man/man3/tqtextbrowser.3qt | |
parent | e6077c30d14e9d662e8843c554db86c0d366d0b6 (diff) | |
download | tqt3-0cf411b09cf5d8970b873a338a69eae98d5ce5d8.tar.gz tqt3-0cf411b09cf5d8970b873a338a69eae98d5ce5d8.zip |
Rename text nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'doc/man/man3/tqtextbrowser.3qt')
-rw-r--r-- | doc/man/man3/tqtextbrowser.3qt | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/doc/man/man3/tqtextbrowser.3qt b/doc/man/man3/tqtextbrowser.3qt index f045cb4a6..2caf9554f 100644 --- a/doc/man/man3/tqtextbrowser.3qt +++ b/doc/man/man3/tqtextbrowser.3qt @@ -1,5 +1,5 @@ '\" t -.TH QTextBrowser 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQTextBrowser 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- .\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the .\" license file included in the distribution for a complete license .\" statement. @@ -7,16 +7,16 @@ .ad l .nh .SH NAME -QTextBrowser \- Rich text browser with hypertext navigation +TQTextBrowser \- Rich text browser with hypertext navigation .SH SYNOPSIS -\fC#include <ntqtextbrowser.h>\fR +\fC#include <tqtextbrowser.h>\fR .PP -Inherits QTextEdit. +Inherits TQTextEdit. .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQTextBrowser\fR ( TQWidget * parent = 0, const char * name = 0 )" +.BI "\fBTQTextBrowser\fR ( TQWidget * parent = 0, const char * name = 0 )" .br .ti -1c .BI "TQString \fBsource\fR () const" @@ -89,13 +89,13 @@ Inherits QTextEdit. .br .in -1c .SH DESCRIPTION -The QTextBrowser class provides a rich text browser with hypertext navigation. +The TQTextBrowser class provides a rich text browser with hypertext navigation. .PP -This class extends QTextEdit (in read-only mode), adding some navigation functionality so that users can follow links in hypertext documents. The contents of QTextEdit is set with setText(), but QTextBrowser has an additional function, setSource(), which makes it possible to set the text to a named document. The name is looked up in the text view's mime source factory. If a document name ends with an anchor (for example, "\fC#anchor"\fR), the text browser automatically scrolls to that position (using scrollToAnchor()). When the user clicks on a hyperlink, the browser will call setSource() itself, with the link's \fChref\fR value as argument. You can track the current source by connetion to the sourceChanged() signal. +This class extends TQTextEdit (in read-only mode), adding some navigation functionality so that users can follow links in hypertext documents. The contents of TQTextEdit is set with setText(), but TQTextBrowser has an additional function, setSource(), which makes it possible to set the text to a named document. The name is looked up in the text view's mime source factory. If a document name ends with an anchor (for example, "\fC#anchor"\fR), the text browser automatically scrolls to that position (using scrollToAnchor()). When the user clicks on a hyperlink, the browser will call setSource() itself, with the link's \fChref\fR value as argument. You can track the current source by connetion to the sourceChanged() signal. .PP -QTextBrowser provides backward() and forward() slots which you can use to implement Back and Forward buttons. The home() slot sets the text to the very first document displayed. The linkClicked() signal is emitted when the user clicks a link. +TQTextBrowser provides backward() and forward() slots which you can use to implement Back and Forward buttons. The home() slot sets the text to the very first document displayed. The linkClicked() signal is emitted when the user clicks a link. .PP -By using QTextEdit::setMimeSourceFactory() you can provide your own subclass of QMimeSourceFactory. This makes it possible to access data from anywhere, for example from a network or from a database. See QMimeSourceFactory::data() for details. +By using TQTextEdit::setMimeSourceFactory() you can provide your own subclass of QMimeSourceFactory. This makes it possible to access data from anywhere, for example from a network or from a database. See QMimeSourceFactory::data() for details. .PP If you intend using the mime factory to read the data directly from the file system, you may have to specify the encoding for the file extension you are using. For example: .PP @@ -106,9 +106,9 @@ If you intend using the mime factory to read the data directly from the file sys .fi This is to ensure that the factory is able to resolve the document names. .PP -QTextBrowser interprets the tags it processes in accordance with the default style sheet. Change the style sheet with setStyleSheet(); see QStyleSheet for details. +TQTextBrowser interprets the tags it processes in accordance with the default style sheet. Change the style sheet with setStyleSheet(); see QStyleSheet for details. .PP -If you want to provide your users with editable rich text use QTextEdit. If you want a text browser without hypertext navigation use QTextEdit, and use QTextEdit::setReadOnly() to disable editing. If you just need to display a small piece of rich text use QSimpleRichText or QLabel. +If you want to provide your users with editable rich text use TQTextEdit. If you want a text browser without hypertext navigation use TQTextEdit, and use TQTextEdit::setReadOnly() to disable editing. If you just need to display a small piece of rich text use QSimpleRichText or QLabel. .PP .ce 1 .B "[Image Omitted]" @@ -119,41 +119,41 @@ If you want to provide your users with editable rich text use QTextEdit. If you .PP See also Advanced Widgets, Help System, and Text Related Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QTextBrowser::QTextBrowser ( TQWidget * parent = 0, const char * name = 0 )" -Constructs an empty QTextBrowser called \fIname\fR, with parent \fIparent\fR. -.SH "void QTextBrowser::anchorClicked ( const TQString & name, const TQString & link )\fC [signal]\fR" +.SH "TQTextBrowser::TQTextBrowser ( TQWidget * parent = 0, const char * name = 0 )" +Constructs an empty TQTextBrowser called \fIname\fR, with parent \fIparent\fR. +.SH "void TQTextBrowser::anchorClicked ( const TQString & name, const TQString & link )\fC [signal]\fR" This signal is emitted when the user clicks an anchor. The \fIlink\fR is the value of the \fChref\fR i.e. the name of the target document. The \fIname\fR is the name of the anchor. .PP See also linkClicked(). -.SH "void QTextBrowser::backward ()\fC [virtual slot]\fR" +.SH "void TQTextBrowser::backward ()\fC [virtual slot]\fR" Changes the document displayed to the previous document in the list of documents built by navigating links. Does nothing if there is no previous document. .PP See also forward() and backwardAvailable(). .PP Example: helpviewer/helpwindow.cpp. -.SH "void QTextBrowser::backwardAvailable ( bool available )\fC [signal]\fR" +.SH "void TQTextBrowser::backwardAvailable ( bool available )\fC [signal]\fR" This signal is emitted when the availability of backward() changes. \fIavailable\fR is FALSE when the user is at home(); otherwise it is TRUE. .PP Example: helpviewer/helpwindow.cpp. -.SH "void QTextBrowser::forward ()\fC [virtual slot]\fR" +.SH "void TQTextBrowser::forward ()\fC [virtual slot]\fR" Changes the document displayed to the next document in the list of documents built by navigating links. Does nothing if there is no next document. .PP See also backward() and forwardAvailable(). .PP Example: helpviewer/helpwindow.cpp. -.SH "void QTextBrowser::forwardAvailable ( bool available )\fC [signal]\fR" +.SH "void TQTextBrowser::forwardAvailable ( bool available )\fC [signal]\fR" This signal is emitted when the availability of forward() changes. \fIavailable\fR is TRUE after the user navigates backward() and FALSE when the user navigates or goes forward(). .PP Example: helpviewer/helpwindow.cpp. -.SH "void QTextBrowser::highlighted ( const TQString & link )\fC [signal]\fR" +.SH "void TQTextBrowser::highlighted ( const TQString & link )\fC [signal]\fR" This signal is emitted when the user has selected but not activated a link in the document. \fIlink\fR is the value of the \fChref\fR i.e. the name of the target document. .PP Example: helpviewer/helpwindow.cpp. -.SH "void QTextBrowser::home ()\fC [virtual slot]\fR" +.SH "void TQTextBrowser::home ()\fC [virtual slot]\fR" Changes the document displayed to be the first document the browser displayed. .PP Example: helpviewer/helpwindow.cpp. -.SH "void QTextBrowser::keyPressEvent ( QKeyEvent * e )\fC [virtual protected]\fR" +.SH "void TQTextBrowser::keyPressEvent ( QKeyEvent * e )\fC [virtual protected]\fR" The event \fIe\fR is used to provide the following keyboard shortcuts: <center>.nf .TS l - l. Keypress Action Alt+Left Arrow backward() Alt+Right Arrow forward() Alt+Up Arrow @@ -161,20 +161,20 @@ l - l. Keypress Action Alt+Left Arrow backward() Alt+Right Arrow forward() Alt+U .fi </center> .PP -Reimplemented from QTextEdit. -.SH "void QTextBrowser::linkClicked ( const TQString & link )\fC [signal]\fR" +Reimplemented from TQTextEdit. +.SH "void TQTextBrowser::linkClicked ( const TQString & link )\fC [signal]\fR" This signal is emitted when the user clicks a link. The \fIlink\fR is the value of the \fChref\fR i.e. the name of the target document. .PP The \fIlink\fR will be the absolute location of the document, based on the value of the anchor's href tag and the current context of the document. .PP See also anchorClicked() and context(). -.SH "void QTextBrowser::reload ()\fC [virtual slot]\fR" +.SH "void TQTextBrowser::reload ()\fC [virtual slot]\fR" Reloads the current set source. -.SH "void QTextBrowser::setSource ( const TQString & name )\fC [virtual slot]\fR" +.SH "void TQTextBrowser::setSource ( const TQString & name )\fC [virtual slot]\fR" Sets the name of the displayed document to \fIname\fR. See the "source" property for details. -.SH "TQString QTextBrowser::source () const" +.SH "TQString TQTextBrowser::source () const" Returns the name of the displayed document. See the "source" property for details. -.SH "void QTextBrowser::sourceChanged ( const TQString & src )\fC [signal]\fR" +.SH "void TQTextBrowser::sourceChanged ( const TQString & src )\fC [signal]\fR" This signal is emitted when the mime source has changed, \fIsrc\fR being the new source. .PP Source changes happen both programmatically when calling setSource(), forward(), backword() or home() or when the user clicks on links or presses the equivalent key sequences. @@ -206,7 +206,7 @@ This property holds whether undo and redo are enabled. .PP .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqtextbrowser.html +.BR http://doc.trolltech.com/tqtextbrowser.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the |