class KHTMLView


Definition#include <khtmlview.h>
InheritsQScrollView
Annotated List
Files
Globals
Hierarchy
Index
Main

Public Methods

Signals

Public Static Methods


Detailed Description

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 )

Construct a KHTMLView.

KHTMLView ()

[virtual]

KHTMLPartpart ()

[const]

Retrieve a pointer to the KHTMLPart that is rendering the page.

int  frameWidth ()

[const]

bool  gotoNextLink ()

Move the view towards the next link and draw a cursor around it

bool  gotoPrevLink ()

Move the view towards the next link and draw a cursor around it

void  toggleActLink (bool)

visualize that the item under the cursor has been pressed (true) or released(false)

void  setMarginWidth (int x)

Set a margin in x direction.

int  marginWidth ()

[const]

Retrieve the margin width.

A return value of -1 means the default value will be used.

void  setMarginHeight (int y)

int  marginHeight ()

void  setVScrollBarMode ( ScrollBarMode mode )

[virtual]

void  setHScrollBarMode ( ScrollBarMode mode )

[virtual]

void  print ()

Print the HTML document.

void  layout (bool force = false)

const QList<KHTMLView> * viewList ()

[static]

private: void  setLinkCursor (DOM::HTMLElementImpl *)

void  cleared ()

[signal]

protected: void  clear ()

[signal]

void  paintElement ( khtml::RenderObject *o, int x, int y )

[signal]

void  resizeEvent ( QResizeEvent * event )

[virtual signal]

bool  focusNextPrevChild ( bool next )

[virtual signal]

void  drawContents ( QPainter * p, int clipx, int clipy, int clipw, int cliph )

[virtual signal]

void  viewportMousePressEvent ( QMouseEvent * )

[virtual signal]

void  viewportMouseDoubleClickEvent ( QMouseEvent * )

[virtual signal]

This function emits the doubleClick() signal when the user double clicks a <a href=...> tag.

void  viewportMouseMoveEvent (QMouseEvent *)

[virtual signal]

This function is called when the user moves the mouse.

void  viewportMouseReleaseEvent (QMouseEvent *)

[virtual signal]

this function is called when the user releases a mouse button.

void  keyPressEvent ( QKeyEvent *_ke )

[signal]

void  keyReleaseEvent ( QKeyEvent *_ke )

[signal]

void  doAutoScroll ()

[signal]

Scroll the view

private: /** * move the view towards the currently selected node * and paint the cursor */ bool  gotoLink ()

[signal]

bool  gotoLink (DOM::HTMLElementImpl *)

[signal]

move the view towards a given element. Note: currently this works only if the node is an anchor

bool  gotoLink (bool)

[signal]

move the view towards the next node or the last node from this one.

void  useSlowRepaints ()

[signal]

void  init ()

[signal]

DOM::NodeImpl * nodeUnderMouse ()

[const signal]

void  restoreScrollBar ()

[signal]