MythTV  master
Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members

Web browsing widget. More...

#include <mythuiwebbrowser.h>

Inheritance diagram for MythUIWebBrowser:
Inheritance graph
[legend]
Collaboration diagram for MythUIWebBrowser:
Collaboration graph
[legend]

Public Slots

void Back (void)
 Got backward in page history. More...
 
void Forward (void)
 Got forward in page history. More...
 
void ZoomIn (void)
 Increase the text size. More...
 
void ZoomOut (void)
 Decrease the text size. More...
 
- Public Slots inherited from MythUIType
void LoseFocus ()
 
bool TakeFocus ()
 
void Activate ()
 
void Hide (void)
 
void Show (void)
 
void Refresh (void)
 
void UpdateDependState (bool isDefault)
 
void UpdateDependState (MythUIType *dependee, bool isDefault)
 

Signals

void loadStarted (void)
 
void loadFinished (bool ok)
 a page is starting to load More...
 
void loadProgress (int progress)
 a page has finished loading More...
 
void titleChanged (const QString &title)
 % of page loaded More...
 
void statusBarMessage (const QString &text)
 a pages title has changed More...
 
void iconChanged (void)
 link hit test messages More...
 
void fileDownloaded (QString filename)
 a pages fav icon has changed More...
 
- Signals inherited from MythUIType
void RequestUpdate ()
 
void RequestUpdate (const QRect &)
 
void RequestRegionUpdate (const QRect &)
 
void TakingFocus ()
 
void LosingFocus ()
 
void Showing ()
 
void Hiding ()
 
void Enabling ()
 
void Disabling ()
 
void FinishedMoving ()
 
void FinishedFading ()
 
void DependChanged (bool isDefault)
 

Public Member Functions

 MythUIWebBrowser (MythUIType *parent, const QString &name)
 the classes constructor More...
 
 ~MythUIWebBrowser ()
 the classes destructor More...
 
void Init (void)
 Initializes the widget ready for use. More...
 
void LoadPage (const QUrl &url)
 Loads the specified url and displays it. More...
 
void SetHtml (const QString &html, const QUrl &baseUrl=QUrl())
 Sets the content of the widget to the specified html. More...
 
void LoadUserStyleSheet (const QUrl &url)
 Sets the specified user style sheet. More...
 
bool keyPressEvent (QKeyEvent *event) override
 Key event handler. More...
 
void Pulse (void) override
 Pulse is called 70 times a second to trigger a single frame of an animation. More...
 
void Scroll (int dx, int dy)
 
QIcon GetIcon (void)
 Gets the current page's fav icon. More...
 
QUrl GetUrl (void)
 Gets the current page's url. More...
 
QString GetTitle (void)
 Gets the current page's title. More...
 
void SetActive (bool active)
 Toggles the active state of the widget. More...
 
bool IsActive (void)
 
bool IsInputToggled (void)
 returns true if all keypresses are to be passed to the web page More...
 
void SetInputToggled (bool inputToggled)
 
void SetZoom (float zoom)
 Set the text size to specific size. More...
 
float GetZoom (void)
 Get the current zoom level. More...
 
bool CanGoForward (void)
 Can go forward in page history. More...
 
bool CanGoBack (void)
 Can we go backward in page history. More...
 
QVariant evaluateJavaScript (const QString &scriptSource)
 Evaluates the JavaScript code in scriptSource. More...
 
void SetDefaultSaveDirectory (const QString &saveDir)
 
QString GetDefaultSaveDirectory (void)
 
void SetDefaultSaveFilename (const QString &filename)
 
QString GetDefaultSaveFilename (void)
 
- Public Member Functions inherited from MythUIType
 MythUIType (QObject *parent, const QString &name)
 
virtual void Reset (void)
 Reset the widget to it's original state, should not reset changes made by the theme. More...
 
void AddChild (MythUIType *child)
 Add a child UIType. More...
 
MythUITypeGetChild (const QString &name) const
 Get a named child of this UIType. More...
 
MythUITypeGetChildAt (const QPoint &p, bool recursive=true, bool focusable=true) const
 Return the first MythUIType at the given coordinates. More...
 
QList< MythUIType * > * GetAllChildren (void)
 Return a list of all child widgets. More...
 
void DeleteChild (const QString &name)
 Delete a named child of this UIType. More...
 
void DeleteChild (MythUIType *child)
 Delete the given UIType if it is a child of this UIType. More...
 
void DeleteAllChildren (void)
 Delete all child widgets. More...
 
bool NeedsRedraw (void) const
 
void ResetNeedsRedraw (void)
 
void SetRedraw (void)
 
void SetChildNeedsRedraw (MythUIType *child)
 
bool CanTakeFocus (void) const
 Return if this widget can accept input focus. More...
 
void SetCanTakeFocus (bool set=true)
 Set whether this widget can take focus. More...
 
void SetFocusOrder (int)
 
bool IsEnabled (void) const
 
void SetEnabled (bool enable)
 
bool MoveToTop (void)
 
bool MoveChildToTop (MythUIType *child)
 
void ActivateAnimations (MythUIAnimation::Trigger trigger)
 
QList< MythUIAnimation * > * GetAnimations (void)
 
void Draw (MythPainter *p, int xoffset, int yoffset, int alphaMod=255, QRect clipRect=QRect())
 
void SetPosition (int x, int y)
 Convenience method, calls SetPosition(const MythPoint&) Override that instead to change functionality. More...
 
virtual void SetPosition (const MythPoint &point)
 
virtual MythPoint GetPosition (void) const
 
virtual void SetSize (const QSize &size)
 
virtual void SetMinSize (const MythPoint &size)
 Set the minimum size of this widget, for widgets which can be rescaled. More...
 
virtual QSize GetMinSize (void) const
 
virtual void SetArea (const MythRect &rect)
 
virtual void AdjustMinArea (int delta_x, int delta_y, int delta_w, int delta_h)
 Adjust the size of a sibling. More...
 
virtual void VanishSibling (void)
 
virtual void SetMinAreaParent (MythRect actual_area, MythRect allowed_area, MythUIType *child)
 Adjust the size of sibling objects within the button. More...
 
virtual void SetMinArea (const MythRect &rect)
 Set the minimum area based on the given size. More...
 
virtual MythRect GetArea (void) const
 If the object has a minimum area defined, return it, other wise return the default area. More...
 
virtual MythRect GetFullArea (void) const
 
virtual void RecalculateArea (bool recurse=true)
 
void ExpandArea (const MythRect &rect)
 
virtual QRegion GetDirtyArea (void) const
 
bool IsVisible (bool recurse=false) const
 
virtual void SetVisible (bool visible)
 
void MoveTo (QPoint destXY, QPoint speedXY)
 
void AdjustAlpha (int mode, int alphachange, int minalpha=0, int maxalpha=255)
 
void SetAlpha (int newalpha)
 
int GetAlpha (void) const
 
virtual bool gestureEvent (MythGestureEvent *event)
 Mouse click/movement handler, receives mouse gesture events from the QCoreApplication event loop. More...
 
virtual void mediaEvent (MythMediaEvent *event)
 Media/Device status event handler, received from MythMediaMonitor. More...
 
MythFontPropertiesGetFont (const QString &text) const
 
bool AddFont (const QString &text, MythFontProperties *fontProp)
 
void SetHelpText (const QString &text)
 
QString GetHelpText (void) const
 
void SetXMLLocation (const QString &filename, int where)
 
QString GetXMLLocation (void) const
 
void SetXMLName (const QString &name)
 
QString GetXMLName (void) const
 
bool IsDeferredLoading (bool recurse=false) const
 
void SetDeferLoad (bool defer)
 
virtual void LoadNow (void)
 Cause images in this and child widgets to be loaded. More...
 
bool ContainsPoint (const QPoint &point) const
 Check if the given point falls within this widgets area. More...
 
virtual MythPainterGetPainter (void)
 
void SetPainter (MythPainter *painter)
 
void SetCentre (UIEffects::Centre centre)
 
void SetZoom (float zoom)
 
void SetHorizontalZoom (float zoom)
 
void SetVerticalZoom (float zoom)
 
void SetAngle (float angle)
 
void SetDependIsDefault (bool isDefault)
 
void SetReverseDependence (MythUIType *dependee, bool reverse)
 
void SetDependsMap (QMap< QString, QString > dependsMap)
 
QMap< QString, QString > GetDependsMap () const
 

Protected Slots

void slotLoadStarted (void)
 a file has been downloaded More...
 
void slotLoadFinished (bool Ok)
 
void slotLoadProgress (int progress)
 
void slotTitleChanged (const QString &title)
 
void slotStatusBarMessage (const QString &text)
 
void slotIconChanged (void)
 
void slotLinkClicked (const QUrl &url)
 
void slotTopScreenChanged (MythScreenType *screen)
 
void slotScrollBarShowing (void)
 
void slotScrollBarHiding (void)
 

Protected Member Functions

void Finalize (void) override
 Perform any post-xml parsing initialisation tasks. More...
 
void UpdateBuffer (void)
 
void HandleMouseAction (const QString &action)
 
void SetBackgroundColor (QColor color)
 Sets the default background color. More...
 
void ResetScrollBars (void)
 
void UpdateScrollBars (void)
 
bool IsOnTopScreen (void)
 is our containing screen the top screen? More...
 
void DrawSelf (MythPainter *p, int xoffset, int yoffset, int alphaMod, QRect clipRect) override
 
bool ParseElement (const QString &filename, QDomElement &element, bool showWarnings) override
 Parse the xml definition of this widget setting the state of the object accordingly. More...
 
void CopyFrom (MythUIType *base) override
 Copy this widgets state from another. More...
 
void CreateCopy (MythUIType *parent) override
 Copy the state of this widget to the one given, it must be of the same type. More...
 
- Protected Member Functions inherited from MythUIType
virtual ~MythUIType ()
 
void customEvent (QEvent *event) override
 
void AddFocusableChildrenToList (QMap< int, MythUIType * > &focusList)
 
void HandleAlphaPulse ()
 Handle one frame of an alpha (transparency) change animation. More...
 
void HandleMovementPulse ()
 Handle one frame of a movement animation. More...
 
int CalcAlpha (int alphamod)
 
int NormX (const int width)
 
int NormY (const int height)
 
void ConnectDependants (bool recurse=false)
 

Protected Attributes

MythScreenTypem_parentScreen
 
MythWebViewm_browser
 
MythRect m_browserArea
 
MythRect m_actualBrowserArea
 
MythImagem_image
 
bool m_active
 
bool m_wasActive
 
bool m_initialized
 
QTime m_lastUpdateTime
 
int m_updateInterval
 
float m_zoom
 
QColor m_bgColor
 
QUrl m_widgetUrl
 
QString m_userCssFile
 
QString m_defaultSaveDir
 
QString m_defaultSaveFilename
 
bool m_inputToggled
 
QString m_lastMouseAction
 
int m_mouseKeyCount
 
QTime m_lastMouseActionTime
 
MythUIScrollBarm_horizontalScrollbar
 
MythUIScrollBarm_verticalScrollbar
 
MythUIAnimation m_scrollAnimation
 
QPoint m_destinationScrollPos
 
- Protected Attributes inherited from MythUIType
QList< MythUIType * > m_ChildrenList
 
QMap< QString, QString > m_dependsMap
 
QList< QPair< MythUIType *, bool > > m_dependsValue
 
QList< int > m_dependOperator
 
bool m_Visible {true}
 
bool m_HasFocus {false}
 
bool m_CanHaveFocus {false}
 
bool m_Enabled {true}
 
bool m_EnableInitiator {false}
 
bool m_Initiator {false}
 
bool m_Vanish {false}
 
bool m_Vanished {false}
 
bool m_IsDependDefault {false}
 
QMap< MythUIType *, boolm_ReverseDepend
 
int m_focusOrder {0}
 
MythRect m_Area {0,0,0,0}
 
MythRect m_MinArea {0,0,0,0}
 
MythPoint m_MinSize
 
QRegion m_DirtyRegion {0,0,0,0}
 
bool m_NeedsRedraw {false}
 
UIEffects m_Effects
 
int m_AlphaChangeMode {0}
 
int m_AlphaChange {0}
 
int m_AlphaMin {0}
 
int m_AlphaMax {255}
 
bool m_Moving {false}
 
QPoint m_XYDestination {0,0}
 
QPoint m_XYSpeed {0,0}
 
FontMapm_Fonts {nullptr}
 
MythUITypem_Parent {nullptr}
 
MythPainterm_Painter {nullptr}
 
QList< MythUIAnimation * > m_animations
 
QString m_helptext
 
QString m_xmlName
 
QString m_xmlLocation
 
bool m_deferload {false}
 
QColor m_BorderColor {Qt::black}
 

Additional Inherited Members

- Static Public Member Functions inherited from XMLParseBase
static QString getFirstText (QDomElement &element)
 
static bool parseBool (const QString &text)
 
static bool parseBool (QDomElement &element)
 
static MythPoint parsePoint (const QString &text, bool normalize=true)
 
static MythPoint parsePoint (QDomElement &element, bool normalize=true)
 
static QSize parseSize (const QString &text, bool normalize=true)
 
static QSize parseSize (QDomElement &element, bool normalize=true)
 
static MythRect parseRect (const QString &text, bool normalize=true)
 
static MythRect parseRect (QDomElement &element, bool normalize=true)
 
static int parseAlignment (const QString &text)
 
static int parseAlignment (QDomElement &element)
 
static QBrush parseGradient (const QDomElement &element)
 
static QString parseText (QDomElement &element)
 
static MythUITypeGetGlobalObjectStore (void)
 
static void ClearGlobalObjectStore (void)
 
static void ParseChildren (const QString &filename, QDomElement &element, MythUIType *parent, bool showWarnings)
 
static MythUITypeParseUIType (const QString &filename, QDomElement &element, const QString &type, MythUIType *parent, MythScreenType *screen, bool showWarnings, QMap< QString, QString > &parentDependsMap)
 
static bool WindowExists (const QString &xmlfile, const QString &windowname)
 
static bool LoadWindowFromXML (const QString &xmlfile, const QString &windowname, MythUIType *parent)
 
static bool LoadBaseTheme (void)
 
static bool LoadBaseTheme (const QString &baseTheme)
 
static bool CopyWindowFromBase (const QString &windowname, MythScreenType *win)
 

Detailed Description

Web browsing widget.

Provide a web browser widget.

Can load and render local and remote html. Supports netscape plugins.

This widget can display HTML documents from the net, a file or passed to it as a QString.

This is how you would add the widget to a theme file :-

 <webbrowser name="webbrowser">
      <url>http://www.google.com/</url>
      <area>20,55,760,490</area>
      <zoom>1.4</zoom>
      <background color="white"/>
 </webbrowser>

area is the screen area the widget should use. zoom is the initial text size. background is the default background color to use.

The widget has two modes of operation active and inactive. When it's active and has focus it will show the mouse pointer, links will respond when clicked, the highlighed link can be changed and activated using the keyboard. In inactive mode it will just display a static image of the web document, you can scroll it but that is all.

One thing to be aware of is you cannot show popups above this widget when it is in active mode and has focus so either call Active(false) or move the focus to another widget before showing the popup.

Definition at line 132 of file mythuiwebbrowser.h.

Constructor & Destructor Documentation

◆ MythUIWebBrowser()

MythUIWebBrowser::MythUIWebBrowser ( MythUIType parent,
const QString &  name 
)

the classes constructor

Parameters
parentthe parent of this widget
namethe name of this widget

Definition at line 819 of file mythuiwebbrowser.cpp.

Referenced by CreateCopy().

◆ ~MythUIWebBrowser()

MythUIWebBrowser::~MythUIWebBrowser ( void  )

the classes destructor

Definition at line 1018 of file mythuiwebbrowser.cpp.

Member Function Documentation

◆ Init()

void MythUIWebBrowser::Init ( void  )

Initializes the widget ready for use.

Note
This is usually called for you when the widget is finalized during the theme file parsing but if you manually add this widget to a screen you will have to call this function after setting the widgets screen area.

Definition at line 855 of file mythuiwebbrowser.cpp.

Referenced by MythFlashPlayer::Create(), and Finalize().

◆ LoadPage()

void MythUIWebBrowser::LoadPage ( const QUrl &  url)

Loads the specified url and displays it.

Parameters
urlThe url to load

Definition at line 1039 of file mythuiwebbrowser.cpp.

Referenced by MythFlashPlayer::Create(), Init(), MythBrowser::slotAddTab(), slotLinkClicked(), and MythBrowser::slotOpenURL().

◆ SetHtml()

void MythUIWebBrowser::SetHtml ( const QString &  html,
const QUrl &  baseUrl = QUrl() 
)

Sets the content of the widget to the specified html.

Parameters
htmlthe html to display
baseUrlExternal objects referenced in the HTML document are located relative to baseUrl.

Definition at line 1055 of file mythuiwebbrowser.cpp.

◆ LoadUserStyleSheet()

void MythUIWebBrowser::LoadUserStyleSheet ( const QUrl &  url)

Sets the specified user style sheet.

Parameters
urlThe url to the style sheet

Definition at line 1069 of file mythuiwebbrowser.cpp.

Referenced by Init().

◆ keyPressEvent()

bool MythUIWebBrowser::keyPressEvent ( QKeyEvent *  event)
overridevirtual

Key event handler.

Parameters
eventKeypress event

Reimplemented from MythUIType.

Definition at line 1504 of file mythuiwebbrowser.cpp.

Referenced by MythFlashPlayer::keyPressEvent().

◆ Pulse()

void MythUIWebBrowser::Pulse ( void  )
overridevirtual

Pulse is called 70 times a second to trigger a single frame of an animation.

This changes the alpha value of the widget

Reimplemented from MythUIType.

Definition at line 1462 of file mythuiwebbrowser.cpp.

◆ Scroll()

void MythUIWebBrowser::Scroll ( int  dx,
int  dy 
)

Definition at line 1308 of file mythuiwebbrowser.cpp.

Referenced by keyPressEvent().

◆ GetIcon()

QIcon MythUIWebBrowser::GetIcon ( void  )

Gets the current page's fav icon.

Returns
return the icon if one is available

Definition at line 1261 of file mythuiwebbrowser.cpp.

◆ GetUrl()

QUrl MythUIWebBrowser::GetUrl ( void  )

Gets the current page's url.

Returns
return the url

Definition at line 1274 of file mythuiwebbrowser.cpp.

Referenced by MythBrowser::slotAddBookmark().

◆ GetTitle()

QString MythUIWebBrowser::GetTitle ( void  )

Gets the current page's title.

Returns
return the page title

Definition at line 1287 of file mythuiwebbrowser.cpp.

◆ SetActive()

void MythUIWebBrowser::SetActive ( bool  active)

Toggles the active state of the widget.

Parameters
activethe new active state
Note
When in an active state the widget will show the mouse pointer, generate status bar changed signals, allow the active link to be changed using the keyboard etc.
Warning
If you want to show another screen or popup above the screen owning a MythUIWebBrowser you must first set the active state to false.

Definition at line 1110 of file mythuiwebbrowser.cpp.

Referenced by MythFlashPlayer::Create(), Init(), slotScrollBarHiding(), slotScrollBarShowing(), and slotTopScreenChanged().

◆ IsActive()

bool MythUIWebBrowser::IsActive ( void  )
inline

Definition at line 156 of file mythuiwebbrowser.h.

◆ IsInputToggled()

bool MythUIWebBrowser::IsInputToggled ( void  )
inline

returns true if all keypresses are to be passed to the web page

Definition at line 159 of file mythuiwebbrowser.h.

Referenced by MythWebView::keyPressEvent().

◆ SetInputToggled()

void MythUIWebBrowser::SetInputToggled ( bool  inputToggled)
inline

Definition at line 160 of file mythuiwebbrowser.h.

◆ SetZoom()

void MythUIWebBrowser::SetZoom ( float  zoom)

Set the text size to specific size.

Parameters
zoomThe size to use. Useful values are between 0.3 and 5.0

Definition at line 1163 of file mythuiwebbrowser.cpp.

Referenced by Init(), ZoomIn(), and ZoomOut().

◆ GetZoom()

float MythUIWebBrowser::GetZoom ( void  )

Get the current zoom level.

Returns
the zoom level

Definition at line 1204 of file mythuiwebbrowser.cpp.

◆ CanGoForward()

bool MythUIWebBrowser::CanGoForward ( void  )

Can go forward in page history.

Returns
Return true if it is possible to go forward in the pages visited history

Definition at line 1214 of file mythuiwebbrowser.cpp.

◆ CanGoBack()

bool MythUIWebBrowser::CanGoBack ( void  )

Can we go backward in page history.

Returns
Return true if it is possible to go backward in the pages visited history

Definition at line 1227 of file mythuiwebbrowser.cpp.

◆ evaluateJavaScript()

QVariant MythUIWebBrowser::evaluateJavaScript ( const QString &  scriptSource)

Evaluates the JavaScript code in scriptSource.

Returns
QVariant

Definition at line 1298 of file mythuiwebbrowser.cpp.

Referenced by MythFlashPlayer::evaluateJavaScript(), and MythWebView::keyPressEvent().

◆ SetDefaultSaveDirectory()

void MythUIWebBrowser::SetDefaultSaveDirectory ( const QString &  saveDir)

Definition at line 1184 of file mythuiwebbrowser.cpp.

Referenced by MythBrowser::Create().

◆ GetDefaultSaveDirectory()

QString MythUIWebBrowser::GetDefaultSaveDirectory ( void  )
inline

Definition at line 171 of file mythuiwebbrowser.h.

Referenced by MythWebView::doDownloadRequested().

◆ SetDefaultSaveFilename()

void MythUIWebBrowser::SetDefaultSaveFilename ( const QString &  filename)

Definition at line 1192 of file mythuiwebbrowser.cpp.

Referenced by MythBrowser::Create().

◆ GetDefaultSaveFilename()

QString MythUIWebBrowser::GetDefaultSaveFilename ( void  )
inline

Definition at line 174 of file mythuiwebbrowser.h.

Referenced by MythWebView::doDownloadRequested().

◆ Back

void MythUIWebBrowser::Back ( void  )
slot

Got backward in page history.

Definition at line 1238 of file mythuiwebbrowser.cpp.

Referenced by keyPressEvent(), and MythBrowser::slotBack().

◆ Forward

void MythUIWebBrowser::Forward ( void  )
slot

Got forward in page history.

Definition at line 1249 of file mythuiwebbrowser.cpp.

Referenced by keyPressEvent(), and MythBrowser::slotForward().

◆ ZoomIn

void MythUIWebBrowser::ZoomIn ( void  )
slot

Increase the text size.

Definition at line 1146 of file mythuiwebbrowser.cpp.

Referenced by keyPressEvent(), and MythBrowser::slotZoomIn().

◆ ZoomOut

void MythUIWebBrowser::ZoomOut ( void  )
slot

Decrease the text size.

Definition at line 1154 of file mythuiwebbrowser.cpp.

Referenced by keyPressEvent(), and MythBrowser::slotZoomOut().

◆ loadStarted

void MythUIWebBrowser::loadStarted ( void  )
signal

Referenced by Init(), and slotLoadStarted().

◆ loadFinished

void MythUIWebBrowser::loadFinished ( bool  ok)
signal

a page is starting to load

Referenced by Init(), and slotLoadFinished().

◆ loadProgress

void MythUIWebBrowser::loadProgress ( int  progress)
signal

a page has finished loading

Referenced by Init(), and slotLoadProgress().

◆ titleChanged

void MythUIWebBrowser::titleChanged ( const QString &  title)
signal

% of page loaded

Referenced by Init(), and slotTitleChanged().

◆ statusBarMessage

void MythUIWebBrowser::statusBarMessage ( const QString &  text)
signal

a pages title has changed

Referenced by Init(), and slotStatusBarMessage().

◆ iconChanged

void MythUIWebBrowser::iconChanged ( void  )
signal

link hit test messages

Referenced by Init(), and slotIconChanged().

◆ fileDownloaded

void MythUIWebBrowser::fileDownloaded ( QString  filename)
signal

a pages fav icon has changed

◆ slotLoadStarted

void MythUIWebBrowser::slotLoadStarted ( void  )
protectedslot

a file has been downloaded

Definition at line 1334 of file mythuiwebbrowser.cpp.

Referenced by Init().

◆ slotLoadFinished

void MythUIWebBrowser::slotLoadFinished ( bool  Ok)
protectedslot

Definition at line 1340 of file mythuiwebbrowser.cpp.

Referenced by Init().

◆ slotLoadProgress

void MythUIWebBrowser::slotLoadProgress ( int  progress)
protectedslot

Definition at line 1346 of file mythuiwebbrowser.cpp.

Referenced by Init().

◆ slotTitleChanged

void MythUIWebBrowser::slotTitleChanged ( const QString &  title)
protectedslot

Definition at line 1351 of file mythuiwebbrowser.cpp.

Referenced by Init().

◆ slotStatusBarMessage

void MythUIWebBrowser::slotStatusBarMessage ( const QString &  text)
protectedslot

Definition at line 1356 of file mythuiwebbrowser.cpp.

Referenced by Init(), keyPressEvent(), and SetZoom().

◆ slotIconChanged

void MythUIWebBrowser::slotIconChanged ( void  )
protectedslot

Definition at line 1366 of file mythuiwebbrowser.cpp.

Referenced by Init().

◆ slotLinkClicked

void MythUIWebBrowser::slotLinkClicked ( const QUrl &  url)
protectedslot

Definition at line 1361 of file mythuiwebbrowser.cpp.

Referenced by Init().

◆ slotTopScreenChanged

void MythUIWebBrowser::slotTopScreenChanged ( MythScreenType screen)
protectedslot

Definition at line 1384 of file mythuiwebbrowser.cpp.

Referenced by Init(), and slotScrollBarHiding().

◆ slotScrollBarShowing

void MythUIWebBrowser::slotScrollBarShowing ( void  )
protectedslot

Definition at line 1371 of file mythuiwebbrowser.cpp.

Referenced by Init().

◆ slotScrollBarHiding

void MythUIWebBrowser::slotScrollBarHiding ( void  )
protectedslot

Definition at line 1378 of file mythuiwebbrowser.cpp.

Referenced by Init().

◆ Finalize()

void MythUIWebBrowser::Finalize ( void  )
overrideprotectedvirtual

Perform any post-xml parsing initialisation tasks.

This is called after the widget has been created and it's state established by ParseElement() or CopyFrom(). A derived class should use this to perform any initialisation tasks which should occur after this point.

Reimplemented from MythUIType.

Definition at line 841 of file mythuiwebbrowser.cpp.

◆ UpdateBuffer()

void MythUIWebBrowser::UpdateBuffer ( void  )
protected

◆ HandleMouseAction()

void MythUIWebBrowser::HandleMouseAction ( const QString &  action)
protected

Definition at line 1639 of file mythuiwebbrowser.cpp.

Referenced by keyPressEvent().

◆ SetBackgroundColor()

void MythUIWebBrowser::SetBackgroundColor ( QColor  color)
protected

Sets the default background color.

Parameters
colorthe color to use
Note
This will only be used if the HTML document being displayed doesn't specify a background color to use.

Definition at line 1086 of file mythuiwebbrowser.cpp.

Referenced by Init().

◆ ResetScrollBars()

void MythUIWebBrowser::ResetScrollBars ( void  )
protected

Definition at line 1701 of file mythuiwebbrowser.cpp.

Referenced by LoadPage(), SetHtml(), SetZoom(), and slotLoadStarted().

◆ UpdateScrollBars()

void MythUIWebBrowser::UpdateScrollBars ( void  )
protected

Definition at line 1417 of file mythuiwebbrowser.cpp.

Referenced by UpdateBuffer().

◆ IsOnTopScreen()

bool MythUIWebBrowser::IsOnTopScreen ( void  )
protected

is our containing screen the top screen?

Definition at line 1397 of file mythuiwebbrowser.cpp.

Referenced by slotTopScreenChanged().

◆ DrawSelf()

void MythUIWebBrowser::DrawSelf ( MythPainter p,
int  xoffset,
int  yoffset,
int  alphaMod,
QRect  clipRect 
)
overrideprotectedvirtual

Reimplemented from MythUIType.

Definition at line 1488 of file mythuiwebbrowser.cpp.

◆ ParseElement()

bool MythUIWebBrowser::ParseElement ( const QString &  filename,
QDomElement &  element,
bool  showWarnings 
)
overrideprotectedvirtual

Parse the xml definition of this widget setting the state of the object accordingly.

Reimplemented from MythUIType.

Definition at line 1719 of file mythuiwebbrowser.cpp.

◆ CopyFrom()

void MythUIWebBrowser::CopyFrom ( MythUIType base)
overrideprotectedvirtual

Copy this widgets state from another.

Reimplemented from MythUIType.

Definition at line 1770 of file mythuiwebbrowser.cpp.

Referenced by CreateCopy().

◆ CreateCopy()

void MythUIWebBrowser::CreateCopy ( MythUIType parent)
overrideprotectedvirtual

Copy the state of this widget to the one given, it must be of the same type.

Reimplemented from MythUIType.

Definition at line 1796 of file mythuiwebbrowser.cpp.

Member Data Documentation

◆ m_parentScreen

MythScreenType* MythUIWebBrowser::m_parentScreen
protected

Definition at line 220 of file mythuiwebbrowser.h.

Referenced by Init(), and IsOnTopScreen().

◆ m_browser

MythWebView* MythUIWebBrowser::m_browser
protected

◆ m_browserArea

MythRect MythUIWebBrowser::m_browserArea
protected

Definition at line 223 of file mythuiwebbrowser.h.

Referenced by CopyFrom(), Init(), and ParseElement().

◆ m_actualBrowserArea

MythRect MythUIWebBrowser::m_actualBrowserArea
protected

Definition at line 224 of file mythuiwebbrowser.h.

Referenced by DrawSelf(), Init(), keyPressEvent(), and UpdateScrollBars().

◆ m_image

MythImage* MythUIWebBrowser::m_image
protected

Definition at line 226 of file mythuiwebbrowser.h.

Referenced by DrawSelf(), Init(), UpdateBuffer(), and ~MythUIWebBrowser().

◆ m_active

bool MythUIWebBrowser::m_active
protected

◆ m_wasActive

bool MythUIWebBrowser::m_wasActive
protected

◆ m_initialized

bool MythUIWebBrowser::m_initialized
protected

Definition at line 230 of file mythuiwebbrowser.h.

Referenced by Init().

◆ m_lastUpdateTime

QTime MythUIWebBrowser::m_lastUpdateTime
protected

Definition at line 231 of file mythuiwebbrowser.h.

Referenced by Pulse().

◆ m_updateInterval

int MythUIWebBrowser::m_updateInterval
protected

Definition at line 232 of file mythuiwebbrowser.h.

Referenced by CopyFrom(), ParseElement(), and Pulse().

◆ m_zoom

float MythUIWebBrowser::m_zoom
protected

Definition at line 234 of file mythuiwebbrowser.h.

Referenced by CopyFrom(), GetZoom(), Init(), ParseElement(), SetZoom(), ZoomIn(), and ZoomOut().

◆ m_bgColor

QColor MythUIWebBrowser::m_bgColor
protected

Definition at line 235 of file mythuiwebbrowser.h.

Referenced by CopyFrom(), Init(), and ParseElement().

◆ m_widgetUrl

QUrl MythUIWebBrowser::m_widgetUrl
protected

Definition at line 236 of file mythuiwebbrowser.h.

Referenced by CopyFrom(), Init(), and ParseElement().

◆ m_userCssFile

QString MythUIWebBrowser::m_userCssFile
protected

Definition at line 237 of file mythuiwebbrowser.h.

Referenced by CopyFrom(), Init(), and ParseElement().

◆ m_defaultSaveDir

QString MythUIWebBrowser::m_defaultSaveDir
protected

Definition at line 238 of file mythuiwebbrowser.h.

Referenced by CopyFrom(), and SetDefaultSaveDirectory().

◆ m_defaultSaveFilename

QString MythUIWebBrowser::m_defaultSaveFilename
protected

Definition at line 239 of file mythuiwebbrowser.h.

Referenced by CopyFrom(), and SetDefaultSaveFilename().

◆ m_inputToggled

bool MythUIWebBrowser::m_inputToggled
protected

Definition at line 241 of file mythuiwebbrowser.h.

Referenced by keyPressEvent().

◆ m_lastMouseAction

QString MythUIWebBrowser::m_lastMouseAction
protected

Definition at line 242 of file mythuiwebbrowser.h.

Referenced by HandleMouseAction().

◆ m_mouseKeyCount

int MythUIWebBrowser::m_mouseKeyCount
protected

Definition at line 243 of file mythuiwebbrowser.h.

Referenced by HandleMouseAction().

◆ m_lastMouseActionTime

QTime MythUIWebBrowser::m_lastMouseActionTime
protected

Definition at line 244 of file mythuiwebbrowser.h.

Referenced by HandleMouseAction().

◆ m_horizontalScrollbar

MythUIScrollBar* MythUIWebBrowser::m_horizontalScrollbar
protected

Definition at line 246 of file mythuiwebbrowser.h.

Referenced by Init(), ResetScrollBars(), and UpdateScrollBars().

◆ m_verticalScrollbar

MythUIScrollBar* MythUIWebBrowser::m_verticalScrollbar
protected

Definition at line 247 of file mythuiwebbrowser.h.

Referenced by Init(), ResetScrollBars(), and UpdateScrollBars().

◆ m_scrollAnimation

MythUIAnimation MythUIWebBrowser::m_scrollAnimation
protected

Definition at line 248 of file mythuiwebbrowser.h.

Referenced by CopyFrom(), MythUIWebBrowser(), ParseElement(), Pulse(), and Scroll().

◆ m_destinationScrollPos

QPoint MythUIWebBrowser::m_destinationScrollPos
protected

Definition at line 249 of file mythuiwebbrowser.h.

Referenced by Pulse(), and Scroll().


The documentation for this class was generated from the following files: