22 QStringList &urlList,
float zoom)
24 m_urlList(urlList), m_pageList(NULL),
25 m_progressBar(NULL), m_titleText(NULL),
26 m_statusText(NULL), m_currentBrowser(-1),
27 m_zoom(zoom), m_menuPopup(NULL),
28 m_defaultFavIcon(NULL)
65 LOG(VB_GENERAL, LOG_ERR,
"Cannot load screen 'browser'");
73 QString favIcon =
"mb_default_favicon.png";
77 QImage image(favIcon);
92 connect(page, SIGNAL(loadProgress(
int)),
94 connect(page, SIGNAL(statusBarMessage(
const QString&)),
96 connect(page, SIGNAL(loadFinished(
bool)),
147 QString message = tr(
"Enter URL");
155 connect(dialog, SIGNAL(haveResult(QString)),
163 name.toAscii().constData());
168 QString newUrl =
url;
170 if (newUrl.isEmpty())
171 newUrl =
"http://www.google.com";
173 if (!newUrl.startsWith(
"http://") && !newUrl.startsWith(
"https://") &&
174 !newUrl.startsWith(
"file:/") )
175 newUrl.prepend(
"http://");
180 connect(page, SIGNAL(loadProgress(
int)),
182 connect(page, SIGNAL(statusBarMessage(
const QString&)),
184 connect(page, SIGNAL(loadFinished(
bool)),
234 if (!sUrl.startsWith(
"http://") && !sUrl.startsWith(
"https://") &&
235 !sUrl.startsWith(
"file:/") )
236 sUrl.prepend(
"http://");
270 true, mainStack,
"bookmarkeditor");
281 item->
SetText(tr(
"Loading..."));
337 bool handled =
false;
341 for (
int i = 0; i < actions.size() && !handled; i++)
344 QString
action = actions[i];
347 if (action ==
"MENU")
351 QString label = tr(
"Actions");
379 else if (action ==
"INFO")
386 else if (action ==
"ESCAPE")
390 else if (action ==
"PREVTAB")
396 else if (action ==
"NEXTTAB")
399 if (pos < m_pageList->GetCount() - 1)
402 else if (action ==
"DELETE")