MythTV master
mythbrowser.h
Go to the documentation of this file.
1#ifndef MYTHBROWSER_H
2#define MYTHBROWSER_H
3
4#include <QUrl>
5
6// MythTV
13
14#include "bookmarkmanager.h"
15
16class WebPage;
17
19{
20 Q_OBJECT
21
22 public:
23 MythBrowser(MythScreenStack *parent, QStringList &urlList);
24 ~MythBrowser() override;
25
26 bool Create(void) override; // MythScreenType
27 bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
28
29 void setDefaultSaveDirectory(const QString &saveDir) { m_defaultSaveDir = saveDir; }
30 void setDefaultSaveFilename(const QString &saveFile) { m_defaultSaveFilename = saveFile; }
31
33 {
36 return m_defaultFavIcon;
37 }
38
39 public slots:
40 void slotOpenURL(const QString &url);
41
42 protected slots:
43 void slotZoomIn();
44 void slotZoomOut();
45
46 void slotBack();
47 void slotForward();
48
49 void slotEnterURL(void) const;
50
51 void slotAddTab(const QString &url, bool doSwitch = true);
52 void slotAddTab() { slotAddTab(""); }
53 void slotDeleteTab(void);
54
55 void slotAddBookmark(void);
56
57 void slotLoadStarted(void);
58 void slotLoadFinished(bool OK);
59 void slotLoadProgress(int progress);
60 void slotTitleChanged(const QString &title);
61 void slotStatusBarMessage(const QString &text);
63 void slotTabLosingFocus(void);
64
65 private:
67
68 void switchTab(int newTab);
69
70 QStringList m_urlList;
71
73 QList<WebPage*> m_browserList;
80
82 QUrl m_url;
85
87
89
91
92 friend class WebPage;
93};
94
95#endif
void slotLoadFinished(bool OK)
MythImage * GetDefaultFavIcon(void)
Definition: mythbrowser.h:32
MythUIText * m_statusText
Definition: mythbrowser.h:76
void setDefaultSaveDirectory(const QString &saveDir)
Definition: mythbrowser.h:29
void slotForward()
void slotLoadProgress(int progress)
~MythBrowser() override
Definition: mythbrowser.cpp:24
void slotZoomIn()
QString m_defaultSaveDir
Definition: mythbrowser.h:83
MythBrowser(MythScreenStack *parent, QStringList &urlList)
Definition: mythbrowser.cpp:17
QString m_defaultSaveFilename
Definition: mythbrowser.h:84
MythImage * m_defaultFavIcon
Definition: mythbrowser.h:90
void slotStatusBarMessage(const QString &text)
Bookmark m_editBookmark
Definition: mythbrowser.h:86
MythUIButton * m_exitButton
Definition: mythbrowser.h:79
MythUIButton * m_forwardButton
Definition: mythbrowser.h:78
MythUIButton * m_backButton
Definition: mythbrowser.h:77
void slotTabLosingFocus(void)
int m_currentBrowser
Definition: mythbrowser.h:81
MythUIWebBrowser * activeBrowser(void)
MythUIButtonList * m_pageList
Definition: mythbrowser.h:72
void slotLoadStarted(void)
void slotTabSelected(MythUIButtonListItem *item)
QStringList m_urlList
Definition: mythbrowser.h:70
void slotZoomOut()
void slotOpenURL(const QString &url)
MythUIText * m_titleText
Definition: mythbrowser.h:75
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
void slotDeleteTab(void)
void slotAddBookmark(void)
MythUIProgressBar * m_progressBar
Definition: mythbrowser.h:74
void setDefaultSaveFilename(const QString &saveFile)
Definition: mythbrowser.h:30
void slotTitleChanged(const QString &title)
void switchTab(int newTab)
void slotAddTab()
Definition: mythbrowser.h:52
QList< WebPage * > m_browserList
Definition: mythbrowser.h:73
MythDialogBox * m_menuPopup
Definition: mythbrowser.h:88
bool Create(void) override
Definition: mythbrowser.cpp:36
void slotEnterURL(void) const
void slotBack()
Basic menu dialog, message and a list of options.
int IncrRef(void) override
Increments reference count.
Definition: mythimage.cpp:44
Screen in which all other widgets are contained and rendered.
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
A single button widget.
Definition: mythuibutton.h:22
Progress bar widget.
All purpose text widget, displays a text string.
Definition: mythuitext.h:29
Web browsing widget.
static constexpr int OK
Definition: dvbci.cpp:69
bool progress