• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libplasma

Plasma::WebContent

Plasma::WebContent Class Reference

#include <webcontent.h>

Inheritance diagram for Plasma::WebContent:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 39 of file webcontent.h.


Signals

void loadFinished (bool success)
void loadProgress (int percent)

Public Member Functions

QRectF geometry () const
QWebFrame * mainFrame () const
QWebPage * page () const
void setGeometry (const QRectF &geometry)
void setHtml (const QString &html, const QUrl &baseUrl=QUrl())
void setHtml (const QByteArray &html, const QUrl &baseUrl=QUrl())
void setPage (QWebPage *page)
void setUrl (const QUrl &url)
 WebContent (QGraphicsItem *parent=0)
 ~WebContent ()

Protected Member Functions

void contextMenuEvent (QGraphicsSceneContextMenuEvent *event)
void dragEnterEvent (QGraphicsSceneDragDropEvent *event)
void dragLeaveEvent (QGraphicsSceneDragDropEvent *event)
void dragMoveEvent (QGraphicsSceneDragDropEvent *event)
void dropEvent (QGraphicsSceneDragDropEvent *event)
void focusInEvent (QFocusEvent *event)
void focusOutEvent (QFocusEvent *event)
void keyPressEvent (QKeyEvent *event)
void keyReleaseEvent (QKeyEvent *event)
void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event)
void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
void mousePressEvent (QGraphicsSceneMouseEvent *event)
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
void wheelEvent (QGraphicsSceneWheelEvent *event)

Constructor & Destructor Documentation

Plasma::WebContent::WebContent ( QGraphicsItem *  parent = 0  )  [explicit]

Definition at line 52 of file webcontent.cpp.

Plasma::WebContent::~WebContent (  ) 

Definition at line 61 of file webcontent.cpp.


Member Function Documentation

void Plasma::WebContent::contextMenuEvent ( QGraphicsSceneContextMenuEvent *  event  )  [protected]

Definition at line 197 of file webcontent.cpp.

void Plasma::WebContent::dragEnterEvent ( QGraphicsSceneDragDropEvent *  event  )  [protected]

Definition at line 277 of file webcontent.cpp.

void Plasma::WebContent::dragLeaveEvent ( QGraphicsSceneDragDropEvent *  event  )  [protected]

Definition at line 293 of file webcontent.cpp.

void Plasma::WebContent::dragMoveEvent ( QGraphicsSceneDragDropEvent *  event  )  [protected]

Definition at line 308 of file webcontent.cpp.

void Plasma::WebContent::dropEvent ( QGraphicsSceneDragDropEvent *  event  )  [protected]

Definition at line 326 of file webcontent.cpp.

void Plasma::WebContent::focusInEvent ( QFocusEvent *  event  )  [protected]

Definition at line 259 of file webcontent.cpp.

void Plasma::WebContent::focusOutEvent ( QFocusEvent *  event  )  [protected]

Definition at line 268 of file webcontent.cpp.

QRectF Plasma::WebContent::geometry (  )  const

Reimplementation.

Definition at line 90 of file webcontent.cpp.

void Plasma::WebContent::keyPressEvent ( QKeyEvent *  event  )  [protected]

Definition at line 231 of file webcontent.cpp.

void Plasma::WebContent::keyReleaseEvent ( QKeyEvent *  event  )  [protected]

Definition at line 245 of file webcontent.cpp.

void Plasma::WebContent::loadFinished ( bool  success  )  [signal]

This signal is emitted when loading is completed.

Parameters:
success true if the content was loaded successfully, otherwise false

void Plasma::WebContent::loadProgress ( int  percent  )  [signal]

During loading progress, this signal is emitted.

The values are always between 0 and 100, inclusive.

Parameters:
percent the estimated amount the loading is complete

QWebFrame * Plasma::WebContent::mainFrame (  )  const

The main web frame associated with this item.

Definition at line 122 of file webcontent.cpp.

void Plasma::WebContent::mouseDoubleClickEvent ( QGraphicsSceneMouseEvent *  event  )  [protected]

Definition at line 167 of file webcontent.cpp.

void Plasma::WebContent::mouseMoveEvent ( QGraphicsSceneMouseEvent *  event  )  [protected]

Definition at line 137 of file webcontent.cpp.

void Plasma::WebContent::mousePressEvent ( QGraphicsSceneMouseEvent *  event  )  [protected]

Definition at line 152 of file webcontent.cpp.

void Plasma::WebContent::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event  )  [protected]

Definition at line 182 of file webcontent.cpp.

QWebPage * Plasma::WebContent::page (  )  const

The QWebPage associated with this item.

Useful when more of the features of the full QWebPage object need to be accessed.

Definition at line 117 of file webcontent.cpp.

void Plasma::WebContent::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = 0 
) [protected]

Reimplementation.

Definition at line 127 of file webcontent.cpp.

void Plasma::WebContent::setGeometry ( const QRectF &  geometry  ) 

Reimplementation.

Definition at line 342 of file webcontent.cpp.

void Plasma::WebContent::setHtml ( const QString &  html,
const QUrl &  baseUrl = QUrl() 
)

Sets the html to be shown along with a base URL to be used to resolve relative references.

Parameters:
html the html (in utf8) to display in the content area
baseUrl the base url for relative references

Definition at line 82 of file webcontent.cpp.

void Plasma::WebContent::setHtml ( const QByteArray &  html,
const QUrl &  baseUrl = QUrl() 
)

Sets the html to be shown along with a base URL to be used to resolve relative references.

Parameters:
html the html (in utf8) to display in the content area
baseUrl the base url for relative references

Definition at line 74 of file webcontent.cpp.

void Plasma::WebContent::setPage ( QWebPage *  page  ) 

Sets the page to use in this item.

The owner of the webpage remains, however if this WebContent object is the owner of the current page, then the current page is deleted

Parameters:
page the page to set in this view

Definition at line 99 of file webcontent.cpp.

void Plasma::WebContent::setUrl ( const QUrl &  url  ) 

Sets the URL to display.

Loading may happen asynchronously.

Parameters:
url the location of the content to load.

Definition at line 66 of file webcontent.cpp.

void Plasma::WebContent::wheelEvent ( QGraphicsSceneWheelEvent *  event  )  [protected]

Definition at line 212 of file webcontent.cpp.


The documentation for this class was generated from the following files:
  • webcontent.h
  • webcontent.cpp

libplasma

Skip menu "libplasma"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal