KDE 4.4 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

KHTMLSettings Class Reference

from PyKDE4.khtml import *

Detailed Description

Settings for the HTML view.


Enumerations

KAnimationAdvice { KAnimationDisabled, KAnimationLoopOnce, KAnimationEnabled }
KDNSPrefetch { KDNSPrefetchDisabled, KDNSPrefetchOnlyWWWAndSLD, KDNSPrefetchEnabled }
KJSWindowFocusPolicy { KJSWindowFocusAllow, KJSWindowFocusIgnore }
KJSWindowMovePolicy { KJSWindowMoveAllow, KJSWindowMoveIgnore }
KJSWindowOpenPolicy { KJSWindowOpenAllow, KJSWindowOpenAsk, KJSWindowOpenDeny, KJSWindowOpenSmart }
KJSWindowResizePolicy { KJSWindowResizeAllow, KJSWindowResizeIgnore }
KJSWindowStatusPolicy { KJSWindowStatusAllow, KJSWindowStatusIgnore }
KJavaScriptAdvice { KJavaScriptDunno, KJavaScriptAccept, KJavaScriptReject }
KSmoothScrollingMode { KSmoothScrollingDisabled, KSmoothScrollingWhenEfficient, KSmoothScrollingEnabled }

Methods

 __init__ (self)
 __init__ (self, KHTMLSettings other)
bool accessKeysEnabled (self)
QString adFilteredBy (self, QString url, bool isWhiteListed=0)
 addAdFilter (self, QString url)
QString adviceToStr (self, KHTMLSettings.KJavaScriptAdvice _advice)
bool allowTabulation (self)
bool autoLoadImages (self)
bool autoSpellCheck (self)
QString availableFamilies (self)
QColor baseColor (self)
bool changeCursor (self)
QString cursiveFontName (self)
KHTMLSettings.KDNSPrefetch dnsPrefetch (self)
QString encoding (self)
[QPair] fallbackAccessKeysAssignments (self)
QString fantasyFontName (self)
QString fixedFontName (self)
bool followSystemColors (self)
bool hoverLink (self)
 init (self)
 init (self, KConfig config, bool reset=1)
bool isAdFilterEnabled (self)
bool isAdFiltered (self, QString url)
bool isAutoDelayedActionsEnabled (self)
bool isBackRightClickEnabled (self)
bool isFormCompletionEnabled (self)
bool isHideAdsEnabled (self)
bool isJavaEnabled (self, QString hostname=QString())
bool isJavaScriptDebugEnabled (self, QString hostname=QString())
bool isJavaScriptEnabled (self, QString hostname=QString())
bool isJavaScriptErrorReportingEnabled (self, QString hostname=QString())
bool isOpenMiddleClickEnabled (self)
bool isPluginsEnabled (self, QString hostname=QString())
bool jsErrorsEnabled (self)
bool jsPopupBlockerPassivePopup (self)
QColor linkColor (self)
int maxFormCompletionItems (self)
int mediumFontSize (self)
int minFontSize (self)
QString sansSerifFontName (self)
QString serifFontName (self)
 setFixedFontName (self, QString n)
 setJSErrorsEnabled (self, bool enabled)
 setJSPopupBlockerPassivePopup (self, bool enabled)
 setStdFontName (self, QString n)
QString settingsToCSS (self)
KHTMLSettings.KAnimationAdvice showAnimations (self)
KHTMLSettings.KSmoothScrollingMode smoothScrolling (self)
QString stdFontName (self)
KHTMLSettings.KJavaScriptAdvice strToAdvice (self, QString _str)
QColor textColor (self)
bool underlineLink (self)
bool unfinishedImageFrame (self)
QString userStyleSheet (self)
QColor vLinkColor (self)
KHTMLSettings.KJSWindowFocusPolicy windowFocusPolicy (self, QString hostname=QString())
KHTMLSettings.KJSWindowMovePolicy windowMovePolicy (self, QString hostname=QString())
KHTMLSettings.KJSWindowOpenPolicy windowOpenPolicy (self, QString hostname=QString())
KHTMLSettings.KJSWindowResizePolicy windowResizePolicy (self, QString hostname=QString())
KHTMLSettings.KJSWindowStatusPolicy windowStatusPolicy (self, QString hostname=QString())

Method Documentation

__init__ (   self )
__init__ (  self,
KHTMLSettings  other
)
bool accessKeysEnabled (   self )
QString adFilteredBy (  self,
QString  url,
bool  isWhiteListed=0
)

identify the filter which matches url.

Parameters:
url  the URL to test.
isWhiteListed  if not NULL, set to true if the URL matched a whitelist filter; set to false if it matched a blacklist filter.

Returns:
the filter string that matched, or QString() if no filter matched.
Since:
4.4

addAdFilter (  self,
QString  url
)
QString adviceToStr (  self,
KHTMLSettings.KJavaScriptAdvice  _advice
)
bool allowTabulation (   self )
bool autoLoadImages (   self )
bool autoSpellCheck (   self )
QString availableFamilies (   self )
QColor baseColor (   self )
bool changeCursor (   self )
QString cursiveFontName (   self )
KHTMLSettings.KDNSPrefetch dnsPrefetch (   self )
QString encoding (   self )
[QPair] fallbackAccessKeysAssignments (   self )
QString fantasyFontName (   self )
QString fixedFontName (   self )
bool followSystemColors (   self )
bool hoverLink (   self )
init (   self )

Read settings from config.

Parameters:
config  is a pointer to KConfig object.
reset  if true, settings are always set; if false, settings are only set if the config file has a corresponding key.

init (  self,
KConfig  config,
bool  reset=1
)

Read settings from config.

Parameters:
config  is a pointer to KConfig object.
reset  if true, settings are always set; if false, settings are only set if the config file has a corresponding key.

bool isAdFilterEnabled (   self )
bool isAdFiltered (  self,
QString  url
)

tests whether url is filtered.

Parameters:
url  the URL to test.

Returns:
true if the URL is blacklisted and is not whitelisted.

bool isAutoDelayedActionsEnabled (   self )
bool isBackRightClickEnabled (   self )
bool isFormCompletionEnabled (   self )
bool isHideAdsEnabled (   self )
bool isJavaEnabled (  self,
QString  hostname=QString()
)
bool isJavaScriptDebugEnabled (  self,
QString  hostname=QString()
)
bool isJavaScriptEnabled (  self,
QString  hostname=QString()
)
bool isJavaScriptErrorReportingEnabled (  self,
QString  hostname=QString()
)
bool isOpenMiddleClickEnabled (   self )
bool isPluginsEnabled (  self,
QString  hostname=QString()
)
bool jsErrorsEnabled (   self )
bool jsPopupBlockerPassivePopup (   self )
QColor linkColor (   self )
int maxFormCompletionItems (   self )
int mediumFontSize (   self )
int minFontSize (   self )
QString sansSerifFontName (   self )
QString serifFontName (   self )
setFixedFontName (  self,
QString  n
)
setJSErrorsEnabled (  self,
bool  enabled
)
setJSPopupBlockerPassivePopup (  self,
bool  enabled
)
setStdFontName (  self,
QString  n
)
QString settingsToCSS (   self )
KHTMLSettings.KAnimationAdvice showAnimations (   self )
KHTMLSettings.KSmoothScrollingMode smoothScrolling (   self )
QString stdFontName (   self )
KHTMLSettings.KJavaScriptAdvice strToAdvice (  self,
QString  _str
)
QColor textColor (   self )
bool underlineLink (   self )
bool unfinishedImageFrame (   self )
QString userStyleSheet (   self )
QColor vLinkColor (   self )
KHTMLSettings.KJSWindowFocusPolicy windowFocusPolicy (  self,
QString  hostname=QString()
)
KHTMLSettings.KJSWindowMovePolicy windowMovePolicy (  self,
QString  hostname=QString()
)
KHTMLSettings.KJSWindowOpenPolicy windowOpenPolicy (  self,
QString  hostname=QString()
)
KHTMLSettings.KJSWindowResizePolicy windowResizePolicy (  self,
QString  hostname=QString()
)
KHTMLSettings.KJSWindowStatusPolicy windowStatusPolicy (  self,
QString  hostname=QString()
)

Enumeration Documentation

KAnimationAdvice
Enumerator:

KDNSPrefetch
Enumerator:

KJSWindowFocusPolicy
Enumerator:

KJSWindowMovePolicy
Enumerator:

KJSWindowOpenPolicy
Enumerator:

KJSWindowResizePolicy
Enumerator:

KJSWindowStatusPolicy
Enumerator:

KJavaScriptAdvice
Enumerator:

KSmoothScrollingMode
Enumerator:

  • Full Index

Modules

  • akonadi
  • dnssd
  • kdecore
  • kdeui
  • khtml
  • kio
  • knewstuff
  • kparts
  • kutils
  • nepomuk
  • phonon
  • plasma
  • polkitqt
  • solid
  • soprano
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal