summaryrefslogtreecommitdiff
path: root/src/webview.h
diff options
context:
space:
mode:
authorMarc Deop <damnshock@gmail.com>2012-01-12 23:46:03 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-01-12 23:46:03 +0100
commitc89d16a2e9eba8514e263c679faa355b90c59d2e (patch)
tree0e0469c9a1d70bd2ed9c8a0087d90789675daef9 /src/webview.h
parentLet keys autoscroll work also when middle click use is disabled (diff)
downloadrekonq-c89d16a2e9eba8514e263c679faa355b90c59d2e.tar.xz
Access Keys navigation
Ported access keys navigation system from Arora and adapted to rekonq code. Also (by adjam), get sure access keys are removed on loadStarted REVIEW:103601 REVIEWED-BY: adjam
Diffstat (limited to 'src/webview.h')
-rw-r--r--src/webview.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/webview.h b/src/webview.h
index 95f27f17..0d94aaf6 100644
--- a/src/webview.h
+++ b/src/webview.h
@@ -37,6 +37,8 @@
//Qt Includes
#include <QtCore/QTime>
+#include <QLabel>
+#include <QToolTip>
// Forward Declarations
class WebPage;
@@ -100,6 +102,11 @@ private Q_SLOTS:
void stopScrolling();
void changeWindowIcon();
+ void accessKeyShortcut();
+ void hideAccessKeys();
+
+ void loadStarted();
+
Q_SIGNALS:
void loadUrl(const KUrl &, const Rekonq::OpenType &);
void zoomChanged(int);
@@ -107,6 +114,11 @@ Q_SIGNALS:
void openNextInHistory();
private:
+ bool checkForAccessKey(QKeyEvent *event);
+ void showAccessKeys();
+ void makeAccessKeyLabel(const QChar &accessKey, const QWebElement &element);
+
+private:
QPoint m_mousePos;
QPoint m_clickPos;
@@ -125,6 +137,11 @@ private:
bool m_smoothScrolling;
int m_dy;
int m_smoothScrollSteps;
+
+ // Access Keys
+ QList<QLabel*> m_accessKeyLabels;
+ QHash<QChar, QWebElement> m_accessKeyNodes;
+ bool m_accessKeysPressed;
};
#endif