MythTV
0.27pre
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Groups
Pages
mythplugins
mythbrowser
mythbrowser
mythbrowser.h
Go to the documentation of this file.
1
#ifndef MYTHBROWSER_H
2
#define MYTHBROWSER_H
3
4
#include <QUrl>
5
6
#include <
mythuiwebbrowser.h
>
7
#include <
mythuibuttonlist.h
>
8
#include <
mythuibutton.h
>
9
#include <
mythscreentype.h
>
10
#include <
mythdialogbox.h
>
11
#include <
mythuiprogressbar.h
>
12
13
#include "
bookmarkmanager.h
"
14
15
class
WebPage
;
16
17
class
MythBrowser
:
public
MythScreenType
18
{
19
Q_OBJECT
20
21
public
:
22
MythBrowser
(
MythScreenStack
*parent,
23
QStringList &urlList,
float
zoom);
24
~MythBrowser
();
25
26
bool
Create
(
void
);
27
bool
keyPressEvent
(QKeyEvent *);
28
29
void
setDefaultSaveDirectory
(
const
QString saveDir) {
m_defaultSaveDir
= saveDir; }
30
void
setDefaultSaveFilename
(
const
QString saveFile) {
m_defaultSaveFilename
= saveFile; }
31
32
MythImage
*
GetDefaultFavIcon
(
void
)
33
{
34
if
(
m_defaultFavIcon
)
35
m_defaultFavIcon
->
IncrRef
();
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
);
50
51
void
slotAddTab
(
const
QString &
url
=
""
,
bool
doSwitch =
true
);
52
void
slotDeleteTab
(
void
);
53
54
void
slotAddBookmark
(
void
);
55
56
void
slotLoadStarted
(
void
);
57
void
slotLoadFinished
(
bool
OK);
58
void
slotLoadProgress
(
int
progress
);
59
void
slotTitleChanged
(
const
QString &title);
60
void
slotStatusBarMessage
(
const
QString &text);
61
void
slotTabSelected
(
MythUIButtonListItem
*item);
62
void
slotTabLosingFocus
(
void
);
63
64
private
:
65
MythUIWebBrowser
*
activeBrowser
(
void
);
66
67
void
switchTab
(
int
newTab);
68
69
QStringList
m_urlList
;
70
71
MythUIButtonList
*
m_pageList
;
72
QList<WebPage*>
m_browserList
;
73
MythUIProgressBar
*
m_progressBar
;
74
MythUIText
*
m_titleText
;
75
MythUIText
*
m_statusText
;
76
MythUIButton
*
m_backButton
;
77
MythUIButton
*
m_forwardButton
;
78
MythUIButton
*
m_exitButton
;
79
80
int
m_currentBrowser
;
81
QUrl
m_url
;
82
float
m_zoom
;
83
QString
m_defaultSaveDir
;
84
QString
m_defaultSaveFilename
;
85
86
Bookmark
m_editBookmark
;
87
88
MythDialogBox
*
m_menuPopup
;
89
90
MythImage
*
m_defaultFavIcon
;
91
92
friend
class
WebPage
;
93
};
94
95
#endif
Generated on Fri May 24 2013 06:59:45 for MythTV by
1.8.1.2