|
|
Render and display HTML in a QScrollView.
Suitable for use as an application's main view.
KHTMLView ( KHTMLPart *part, QWidget *parent, const char *name=0 )
| KHTMLView |
Construct a KHTMLView.
~KHTMLView ()
| ~KHTMLView |
[virtual]
KHTMLPart * part ()
| part |
[const]
Retrieve a pointer to the KHTMLPart that is rendering the page.
int frameWidth ()
| frameWidth |
[const]
bool gotoNextLink ()
| gotoNextLink |
Move the view towards the next link and draw a cursor around it
bool gotoPrevLink ()
| gotoPrevLink |
Move the view towards the next link and draw a cursor around it
void toggleActLink (bool)
| toggleActLink |
visualize that the item under the cursor has been pressed (true) or released(false)
void setMarginWidth (int x)
| setMarginWidth |
Set a margin in x direction.
int marginWidth ()
| marginWidth |
[const]
Retrieve the margin width.
A return value of -1 means the default value will be used.
void setMarginHeight (int y)
| setMarginHeight |
int marginHeight ()
| marginHeight |
void setVScrollBarMode ( ScrollBarMode mode )
| setVScrollBarMode |
[virtual]
Reimplemented from QScrollView.
void setHScrollBarMode ( ScrollBarMode mode )
| setHScrollBarMode |
[virtual]
Reimplemented from QScrollView.
void print ()
|
Print the HTML document.
void paint (QPainter *p, const QRect &rc, int yOff = 0, bool *more = 0)
| paint |
Paint the HTML document to a QPainter. The document will be scaled to match the width of rc and clipped to fit in the height. yOff determines the vertical offset in the document to start with. more, if nonzero will be set to true if the documents extends beyond the rc or false if everything below yOff was painted.
void layout (bool force = false)
| layout |
const QList<KHTMLView> * viewList ()
| viewList |
[static]
void cleared ()
| cleared |
[signal]
void clear ()
| clear |
[protected]
void resizeEvent ( QResizeEvent * event )
| resizeEvent |
[protected virtual]
Reimplemented from QScrollView.
void showEvent ( QShowEvent * )
| showEvent |
[protected virtual]
void hideEvent ( QHideEvent *)
| hideEvent |
[protected virtual]
bool focusNextPrevChild ( bool next )
| focusNextPrevChild |
[protected virtual]
Reimplemented from QScrollView.
void drawContents ( QPainter * p, int clipx, int clipy, int clipw, int cliph )
| drawContents |
[protected virtual]
Reimplemented from QScrollView.
void viewportMousePressEvent ( QMouseEvent * )
| viewportMousePressEvent |
[protected virtual]
Reimplemented from QScrollView.
void viewportMouseDoubleClickEvent ( QMouseEvent * )
| viewportMouseDoubleClickEvent |
[protected virtual]
This function emits the doubleClick() signal when the user double clicks a <a href=...> tag.
Reimplemented from QScrollView.
void viewportMouseMoveEvent (QMouseEvent *)
| viewportMouseMoveEvent |
[protected virtual]
This function is called when the user moves the mouse.
Reimplemented from QScrollView.
void viewportMouseReleaseEvent (QMouseEvent *)
| viewportMouseReleaseEvent |
[protected virtual]
this function is called when the user releases a mouse button.
Reimplemented from QScrollView.
void keyPressEvent ( QKeyEvent *_ke )
| keyPressEvent |
[protected]
void keyReleaseEvent ( QKeyEvent *_ke )
| keyReleaseEvent |
[protected]
void doAutoScroll ()
| doAutoScroll |
[protected]
Scroll the view
Generated by: faure on ftp.kde.com on Wed Jun 20 13:27:11 2001, using kdoc 2.0a53. |