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.h | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) (limited to 'src/webview.h') diff --git a/src/webview.h b/src/webview.h index 2b3b97a4..60c8c9fc 100644 --- a/src/webview.h +++ b/src/webview.h @@ -30,9 +30,6 @@ // KDE Includes -#include - -// Qt Includes #include // Forward Declarations @@ -44,39 +41,29 @@ class WebView : public KWebView Q_OBJECT public: - explicit WebView(QWidget *parent = 0); + explicit WebView(QWidget *parent); ~WebView(); - - WebPage *page(); - KUrl url() const; - QString lastStatusBarText() const; - int progress(); + + WebPage *page() { return m_page; } QPoint mousePos(); - + protected: void contextMenuEvent(QContextMenuEvent *event); void mousePressEvent(QMouseEvent *event);// need to be ported void mouseMoveEvent(QMouseEvent *event); void keyPressEvent(QKeyEvent *event); - + private slots: - void setStatusBarText(const QString &string); void search(); - void updateProgress(int progress); - void loadFinished(bool); void printFrame(); - void viewImage(Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers); void openLinkInNewWindow(); void openLinkInNewTab(); + void viewImage(Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers); - void loadInNewTab(const KUrl &url); - private: WebPage *const m_page; - int m_progress; - QString m_statusBarText; QPoint m_mousePos; }; -- cgit v1.2.1