DAZ Script |
---|
DzTextBrowser ( DzWidget parent ) |
DAZ Script | |
---|---|
void | backward () |
void | clearHistory () |
void | forward () |
String | historyTitle ( Number index ) |
String | historyUrl ( Number index ) |
void | home () |
void | reload () |
void | anchorClicked ( String name, String link ) |
void | backwardAvailable ( Boolean available ) |
void | forwardAvailable ( Boolean available ) |
void | highlighted ( String link ) |
void | historyChanged () |
void | linkClicked ( String link ) |
void | sourceChanged ( String src ) |
Extends DzTextEdit (in read-only mode), adding functionality that allows users to navigate hyper-linked documents.
Holds the number of locations backward in the history. (Read Only)
Since:
Holds the number of locations forward in the history. (Read Only)
Since:
Holds whether the browser can go backward in the document history. (Read Only)
Since:
Holds whether the browser can go forward in the document history. (Read Only)
Since:
Holds whether the browser should open links to external sources using DzApp::showUrl() instead of emitting the anchorClicked() signal. Links are considered external if their scheme is not 'file://'.
Since:
Holds whether the browser should automatically open links the user tries to activate by mouse or keyboard.
Since:
Holds the search paths used by the browser to find supporting content.
Since:
Holds the name of the displayed document. This will be empty if the URL is invalid, if no document is displayed, or if the source is unknown.
When setting this property the browser attempts to find a document with the specified name in searchPaths and the directory of the current source, unless the value is an absolute path. It also checks for optional anchors and scrolls the document accordingly.
If the first tag in the document is <qt type=detail>, the document is displayed as a popup rather than as new document in the browser itself. Otherwise, the document is displayed normally in the browser with the text set to the contents of the named document with DzTextEdit::html.
DzTextBrowser( DzWidget parent )
Creates a text browser widget as a child of the given parent widget.
Parameter(s):
void : backward()
Changes the document displayed to the previous document in the list built by navigating links. Does nothing if there is no previous document.
void : clearHistory()
Clears the history of visited documents and disables the forward and backward navigation.
Since:
void : forward()
Changes the document displayed to the next document in the list built by navigating links. Does nothing if there is no next document.
String : historyTitle( Number index )
Parameter(s):
Return Value:
Since:
String : historyUrl( Number index )
Parameter(s):
Return Value:
Since:
void : home()
Changes the current document displayed to be the first document displayed.
void : reload()
Reloads the current document.
void : anchorClicked( String name, String link )
Signature:“anchorClicked(const QString&,const QString&)”
Emitted when the user clicks an anchor.
Parameter(s):
void : backwardAvailable( Boolean available )
Signature:“backwardAvailable(bool)”
Emitted when the availability of backward() changes.
Parameter(s):
void : forwardAvailable( Boolean available )
Signature:“forwardAvailable(bool)”
Emitted when the availability of forward() changes.
Parameter(s):
void : highlighted( String link )
Signature:“highlighted(const QString&)”
Emitted when the user selects a link but does not activate it.
Parameter(s):
void : historyChanged()
Signature:“historyChanged()”
Emitted when the history changes.
void : linkClicked( String link )
Signature:“linkClicked(const QString&)”
Emitted when the user clicks a link.
Parameter(s):
Attention:
link
will be the absolute location of the document, based on the value of the anchor's href tag.void : sourceChanged( String src )
Signature:“sourceChanged(const QString&)”
Emitted when the mime source of the browser changes.
Parameter(s):