|
|
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 |
BCI: This function is provided for compatibility reasons only and will be removed in KDE3.0. use sendEvent(view, Key_Tab) instead. Move the view towards the next link and draw a cursor around it
bool gotoPrevLink ()
| gotoPrevLink |
BCI: This function is provided for compatibility reasons only and will be removed in KDE3.0 use sendEvent(view, Key_BackTab) instead. Move the view towards the next link and draw a cursor around it
void toggleActLink (bool)
| toggleActLink |
BCI: This function is provided for compatibility reasons only and will be removed in KDE3.0 use sendEvent(view, Key_Return) instead. 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 focusOutEvent ( QFocusEvent * )
| focusOutEvent |
[protected virtual]
void viewportMouseDoubleClickEvent ( QMouseEvent * )
| viewportMouseDoubleClickEvent |
[protected virtual]
This function emits the doubleClick() signal when the user double clicks a 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 viewportWheelEvent (QWheelEvent*)
| viewportWheelEvent |
[protected virtual]
Reimplemented from QScrollView.
void keyPressEvent ( QKeyEvent *_ke )
| keyPressEvent |
[protected]
void keyReleaseEvent ( QKeyEvent *_ke )
| keyReleaseEvent |
[protected]
void doAutoScroll ()
| doAutoScroll |
[protected]
Scroll the view
void slotPaletteChanged ()
| slotPaletteChanged |
[protected slots slot]
Generated by: dfaure on kde.faure.org on Thu Jan 17 22:18:15 2002, using kdoc 2.0a53. |