summaryrefslogtreecommitdiff
path: root/src/webview.h
diff options
context:
space:
mode:
authorBernhard Beschow <bbeschow@cs.tu-berlin.de>2009-12-14 17:43:05 +0100
committerBernhard Beschow <bbeschow@cs.tu-berlin.de>2009-12-14 21:55:50 +0100
commit412e9b019ad5c868dd0c5573bf185a32cca31b7d (patch)
tree1a1ee0cddabefdd62e2bef39eef47e52d222e7f9 /src/webview.h
parentrekonq 0.3.21 (diff)
downloadrekonq-412e9b019ad5c868dd0c5573bf185a32cca31b7d.tar.xz
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?)
Diffstat (limited to 'src/webview.h')
-rw-r--r--src/webview.h25
1 files changed, 6 insertions, 19 deletions
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 <KUrl>
-
-// Qt Includes
#include <KWebView>
// 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;
};