From 412e9b019ad5c868dd0c5573bf185a32cca31b7d Mon Sep 17 00:00:00 2001 From: Bernhard Beschow Date: Mon, 14 Dec 2009 17:43:05 +0100 Subject: factor out WebTab class from WebView * it basically represents a tab in rekonq * everything that happens within one tab should go here (wallet bar, find bar?) --- src/webview.cpp | 55 ------------------------------------------------------- 1 file changed, 55 deletions(-) (limited to 'src/webview.cpp') diff --git a/src/webview.cpp b/src/webview.cpp index b4b3cd70..25de0a98 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -59,17 +59,10 @@ WebView::WebView(QWidget* parent) : KWebView(parent, false) , m_page( new WebPage(this) ) - , m_progress(0) , m_mousePos(QPoint(0,0)) { setPage(m_page); - connect(m_page, SIGNAL(statusBarMessage(const QString&)), this, SLOT(setStatusBarText(const QString&))); - connect(this, SIGNAL(loadProgress(int)), this, SLOT(updateProgress(int))); - connect(this, SIGNAL(loadFinished(bool)), this, SLOT(loadFinished(bool))); - - connect(this, SIGNAL(linkMiddleOrCtrlClicked(const KUrl &)), this, SLOT(loadInNewTab(const KUrl &)) ); - // download system connect(this, SIGNAL(linkShiftClicked(const KUrl &)), m_page, SLOT(downloadUrl(const KUrl &))); connect(m_page, SIGNAL(downloadRequested(const QNetworkRequest &)), m_page, SLOT(downloadRequest(const QNetworkRequest &))); @@ -81,36 +74,6 @@ WebView::~WebView() } -WebPage *WebView::page() -{ - return m_page; -} - - -KUrl WebView::url() const -{ - return KUrl(QWebView::url()); -} - - -int WebView::progress() -{ - return m_progress; -} - - -QString WebView::lastStatusBarText() const -{ - return m_statusBarText; -} - - -void WebView::setStatusBarText(const QString &string) -{ - m_statusBarText = string; -} - - void WebView::contextMenuEvent(QContextMenuEvent *event) { QWebHitTestResult result = page()->mainFrame()->hitTestContent(event->pos()); @@ -357,18 +320,6 @@ void WebView::search() } -void WebView::updateProgress(int p) -{ - m_progress = p; -} - - -void WebView::loadFinished(bool) -{ - m_progress = 0; -} - - void WebView::printFrame() { Application::instance()->mainWindow()->printRequested(page()->currentFrame()); @@ -423,9 +374,3 @@ void WebView::keyPressEvent(QKeyEvent *event) QWebView::keyPressEvent(event); } - - -void WebView::loadInNewTab(const KUrl &url) -{ - Application::instance()->loadUrl(url, Rekonq::NewCurrentTab); -} -- cgit v1.2.1