diff options
Diffstat (limited to 'src/webview.h')
-rw-r--r-- | src/webview.h | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/src/webview.h b/src/webview.h index 263b2ec4..71e3047f 100644 --- a/src/webview.h +++ b/src/webview.h @@ -2,8 +2,8 @@ * * This file is a part of the rekonq project * -* Copyright (C) 2008-2009 by Andrea Diamantini <adjam7 at gmail dot com> -* Copyright (C) 2009 by Lionel Chauvin <megabigbug@yahoo.fr> +* Copyright (C) 2008-2010 by Andrea Diamantini <adjam7 at gmail dot com> +* Copyright (C) 2009-2010 by Lionel Chauvin <megabigbug@yahoo.fr> * * * This program is free software; you can redistribute it and/or @@ -11,9 +11,9 @@ * published by the Free Software Foundation; either version 2 of * the License or (at your option) version 3 or any later version * accepted by the membership of KDE e.V. (or its successor approved -* by the membership of KDE e.V.), which shall act as a proxy +* by the membership of KDE e.V.), which shall act as a proxy * defined in Section 14 of version 3 of the license. -* +* * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the @@ -28,8 +28,9 @@ #ifndef WEBVIEW_H #define WEBVIEW_H -// Local Includes -#include "application.h" + +// Rekonq Includes +#include "rekonq_defines.h" // KDE Includes #include <KWebView> @@ -38,7 +39,7 @@ class WebPage; -class WebView : public KWebView +class REKONQ_TESTS_EXPORT WebView : public KWebView { Q_OBJECT @@ -46,12 +47,12 @@ public: explicit WebView(QWidget *parent); ~WebView(); - WebPage *page() { return m_page; } + WebPage *page(); QPoint mousePos(); protected: void contextMenuEvent(QContextMenuEvent *event); - void mousePressEvent(QMouseEvent *event);// need to be ported + void mousePressEvent(QMouseEvent *event); void mouseMoveEvent(QMouseEvent *event); void keyPressEvent(QKeyEvent *event); @@ -63,16 +64,24 @@ private slots: void loadUrlInNewTab(const KUrl &); void openLinkInNewWindow(); void openLinkInNewTab(); - + void viewImage(Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers); void inspect(); + void scrollFrameChanged(); + signals: void loadUrl(const KUrl &, const Rekonq::OpenType &); - + private: - WebPage *const m_page; - QPoint m_mousePos; + QPoint _mousePos; + QPoint _clickPos; + + QTimer *_scrollTimer; + int _VScrollSpeed; + int _HScrollSpeed; + bool _canEnableAutoScroll; + bool _isAutoScrollEnabled; }; #endif |