KHTML
#include <khtmlview.h>

Public Types | |
enum | SmoothScrollingMode { SSMDisabled = 0, SSMWhenEfficient, SSMEnabled } |
Public Slots | |
void | layout () |
virtual void | resizeContents (int w, int h) |
Signals | |
void | cleared () |
void | findAheadActive (bool) |
void | finishedLayout () |
void | hideAccessKeys () |
void | repaintAccessKeys () |
void | zoomView (int) |
Protected Slots | |
void | slotPaletteChanged () |
Protected Member Functions | |
void | clear () |
virtual void | closeEvent (QCloseEvent *) |
void | doAutoScroll () |
virtual void | dragEnterEvent (QDragEnterEvent *) |
virtual void | dropEvent (QDropEvent *) |
virtual bool | event (QEvent *event) |
virtual bool | eventFilter (QObject *, QEvent *) |
virtual void | focusInEvent (QFocusEvent *) |
virtual bool | focusNextPrevChild (bool next) |
virtual void | focusOutEvent (QFocusEvent *) |
virtual void | hideEvent (QHideEvent *) |
void | keyPressEvent (QKeyEvent *_ke) |
void | keyReleaseEvent (QKeyEvent *_ke) |
virtual void | mouseDoubleClickEvent (QMouseEvent *) |
virtual void | mouseMoveEvent (QMouseEvent *) |
virtual void | mousePressEvent (QMouseEvent *) |
virtual void | mouseReleaseEvent (QMouseEvent *) |
virtual void | paintEvent (QPaintEvent *) |
virtual void | resizeEvent (QResizeEvent *event) |
virtual void | scrollContentsBy (int dx, int dy) |
void | setSmoothScrollingModeDefault (SmoothScrollingMode m) |
virtual void | showEvent (QShowEvent *) |
void | timerEvent (QTimerEvent *) |
virtual bool | viewportEvent (QEvent *e) |
virtual void | wheelEvent (QWheelEvent *) |
virtual bool | widgetEvent (QEvent *) |
Friends | |
void | khtml::applyRule (DOM::CSSProperty *prop) |
Additional Inherited Members | |
![]() | |
KHTMLWidgetPrivate * | m_kwp |
Detailed Description
Renders and displays HTML in a QScrollArea.
Suitable for use as an application's main view.
Definition at line 92 of file khtmlview.h.
Member Enumeration Documentation
Smooth Scrolling Mode enumeration.
- SSMDisabled smooth scrolling is disabled
- SSMWhenEfficient only use smooth scrolling on pages that do not require a full repaint of the content area when scrolling
- SSMAlways smooth scrolling is performed unconditionally
Enumerator | |
---|---|
SSMDisabled | |
SSMWhenEfficient | |
SSMEnabled |
Definition at line 305 of file khtmlview.h.
Constructor & Destructor Documentation
Constructs a KHTMLView.
Definition at line 549 of file khtmlview.cpp.
|
virtual |
Definition at line 563 of file khtmlview.cpp.
Member Function Documentation
Definition at line 3967 of file khtmlview.cpp.
|
protected |
Definition at line 621 of file khtmlview.cpp.
|
signal |
|
protectedvirtual |
Definition at line 1062 of file khtmlview.cpp.
int KHTMLView::contentsHeight | ( | ) | const |
Returns the contents area's height.
Definition at line 676 of file khtmlview.cpp.
Returns a point translated to viewport coordinates.
- Parameters
-
p the contents area point to translate
Definition at line 747 of file khtmlview.cpp.
Returns a point translated to viewport coordinates.
- Parameters
-
x x coordinate of contents area point to translate y y coordinate of contents area point to translate cx resulting x coordinate cy resulting y coordinate
Definition at line 752 of file khtmlview.cpp.
int KHTMLView::contentsWidth | ( | ) | const |
Returns the contents area's width.
Definition at line 671 of file khtmlview.cpp.
int KHTMLView::contentsX | ( | ) | const |
Returns the x coordinate of the contents area point that is currently located at the top left in the viewport.
Definition at line 690 of file khtmlview.cpp.
int KHTMLView::contentsY | ( | ) | const |
Returns the y coordinate of the contents area point that is currently located at the top left in the viewport.
Definition at line 695 of file khtmlview.cpp.
void KHTMLView::displayAccessKeys | ( | ) |
Display all accesskeys in small tooltips.
Definition at line 2502 of file khtmlview.cpp.
|
protected |
Definition at line 1887 of file khtmlview.cpp.
|
protectedvirtual |
Definition at line 3731 of file khtmlview.cpp.
|
protectedvirtual |
Definition at line 3737 of file khtmlview.cpp.
Definition at line 481 of file khtmlview.cpp.
Definition at line 2024 of file khtmlview.cpp.
|
signal |
|
signal |
This signal is used for internal layouting.
Don't use it to check if rendering finished. Use KHTMLPart completed() signal instead.
|
protectedvirtual |
Definition at line 3743 of file khtmlview.cpp.
Definition at line 1868 of file khtmlview.cpp.
|
protectedvirtual |
Definition at line 3754 of file khtmlview.cpp.
|
inline |
Definition at line 137 of file khtmlview.h.
|
signal |
|
protectedvirtual |
Definition at line 641 of file khtmlview.cpp.
|
protected |
Definition at line 1676 of file khtmlview.cpp.
|
protected |
Definition at line 1826 of file khtmlview.cpp.
|
slot |
ensure the display is up to date
Definition at line 954 of file khtmlview.cpp.
|
inline |
Returns the margin height.
A return value of -1 means the default value will be used.
Definition at line 161 of file khtmlview.h.
|
inline |
Returns the margin width.
A return value of -1 means the default value will be used.
Definition at line 149 of file khtmlview.h.
|
protectedvirtual |
Definition at line 1242 of file khtmlview.cpp.
|
protectedvirtual |
Definition at line 1301 of file khtmlview.cpp.
|
protectedvirtual |
Definition at line 1113 of file khtmlview.cpp.
|
protectedvirtual |
Definition at line 1545 of file khtmlview.cpp.
|
protectedvirtual |
Definition at line 869 of file khtmlview.cpp.
|
inline |
Returns a pointer to the KHTMLPart that is rendering the page.
Definition at line 135 of file khtmlview.h.
void KHTMLView::print | ( | bool | quick = false | ) |
Prints the HTML document.
- Parameters
-
quick if true, fully automated printing, without print dialog
Definition at line 3027 of file khtmlview.cpp.
|
signal |
void KHTMLView::repaintContents | ( | const QRect & | r | ) |
Requests an immediate repaint of the content area.
- Parameters
-
r the content area rectangle to repaint
Definition at line 800 of file khtmlview.cpp.
Definition at line 789 of file khtmlview.cpp.
Resize the contents area.
- Parameters
-
w the new width h the new height
Definition at line 681 of file khtmlview.cpp.
|
protectedvirtual |
Definition at line 837 of file khtmlview.cpp.
Scrolls the content area by a given amount.
- Parameters
-
x x offset y y offset
Definition at line 739 of file khtmlview.cpp.
Definition at line 3767 of file khtmlview.cpp.
Place the contents area point x/y at the top left of the viewport.
Definition at line 732 of file khtmlview.cpp.
|
virtual |
Sets horizontal scrollbar mode.
WARNING: do not call this method on a base class pointer unless you specifically want QAbstractScrollArea's variant (not recommended). QAbstractScrollArea::setHorizontalScrollBarPolicy is not virtual.
Definition at line 3392 of file khtmlview.cpp.
void KHTMLView::setMarginHeight | ( | int | y | ) |
Definition at line 948 of file khtmlview.cpp.
void KHTMLView::setMarginWidth | ( | int | x | ) |
Sets a margin in x direction.
Definition at line 942 of file khtmlview.cpp.
void KHTMLView::setSmoothScrollingMode | ( | SmoothScrollingMode | m | ) |
Set the smooth scrolling mode.
Smooth scrolling mode is normally controlled by the configuration file's SmoothScrolling key. Using this setter will override the configuration file's settings.
- Since
- 4.1
Definition at line 1085 of file khtmlview.cpp.
|
protected |
Definition at line 1093 of file khtmlview.cpp.
|
virtual |
Sets vertical scrollbar mode.
WARNING: do not call this method on a base class pointer unless you specifically want QAbstractScrollArea's variant (not recommended). QAbstractScrollArea::setVerticalScrollBarPolicy is not virtual.
Definition at line 3382 of file khtmlview.cpp.
void KHTMLView::setZoomLevel | ( | int | percent | ) |
Apply a zoom level to the content area.
- Parameters
-
percent a zoom level expressed as a percentage
Definition at line 1068 of file khtmlview.cpp.
|
protectedvirtual |
Definition at line 646 of file khtmlview.cpp.
|
protectedslot |
Definition at line 3230 of file khtmlview.cpp.
KHTMLView::SmoothScrollingMode KHTMLView::smoothScrollingMode | ( | ) | const |
|
protected |
Definition at line 3980 of file khtmlview.cpp.
void KHTMLView::updateContents | ( | const QRect & | r | ) |
Requests an update of the content area.
- Parameters
-
r the content area rectangle to update
Definition at line 784 of file khtmlview.cpp.
Definition at line 773 of file khtmlview.cpp.
Definition at line 1979 of file khtmlview.cpp.
Returns a point translated to contents area coordinates.
- Parameters
-
p the viewport point to translate
Definition at line 760 of file khtmlview.cpp.
Returns a point translated to contents area coordinates.
- Parameters
-
x x coordinate of viewport point to translate y y coordinate of viewport point to translate cx resulting x coordinate cy resulting y coordinate
Definition at line 765 of file khtmlview.cpp.
int KHTMLView::visibleHeight | ( | ) | const |
Returns the height of the viewport.
Definition at line 716 of file khtmlview.cpp.
int KHTMLView::visibleWidth | ( | ) | const |
Returns the width of the viewport.
Definition at line 700 of file khtmlview.cpp.
|
protectedvirtual |
Definition at line 3651 of file khtmlview.cpp.
Definition at line 2195 of file khtmlview.cpp.
int KHTMLView::zoomLevel | ( | ) | const |
Retrieve the current zoom level.
Definition at line 1080 of file khtmlview.cpp.
|
signal |
Friends And Related Function Documentation
|
friend |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Jul 10 2020 04:28:20 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.