From 925725bfcf0f3ffba5107949bc8424e1fd6d1902 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 21 Dec 2010 21:59:23 +0100 Subject: Icon at the right of the urlbar that allows to add an opensearch engine introduce search icon description file downloaded after validation, not before icons updated when engine added add opensearch xml description files sync desktop file => fix add webshortcut use db_opensearch.json file to track opensearch engines create an opensearch description only when the engine support suggestions remove opensearch description when an engine is deleted in the webshortcut setting dialog popup: disable ok button when webshortcut is already used Lionel Chauvin is the man having done this big, big, big work!! I'm just merging ;) --- src/webtab.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src/webtab.h') diff --git a/src/webtab.h b/src/webtab.h index 12f528d9..7b7c3c7a 100644 --- a/src/webtab.h +++ b/src/webtab.h @@ -33,6 +33,7 @@ #include "rekonq_defines.h" // Local Includes +#include "webpage.h" #include "webview.h" // KDE Includes @@ -46,6 +47,7 @@ class UrlBar; class PreviewSelectorBar; class WalletBar; class NotificationBar; +class QPoint; class REKONQ_TESTS_EXPORT WebTab : public QWidget @@ -66,26 +68,32 @@ public: void insertBar(NotificationBar* bar); bool hasRSSInfo(); + bool isPageLoading(); + bool hasNewSearchEngine(); KParts::ReadOnlyPart *part() { return m_part; } void setPart(KParts::ReadOnlyPart *p, const KUrl &u); - + private Q_SLOTS: void updateProgress(int progress); void loadFinished(bool); void createWalletBar(const QString &, const QUrl &); - void showRSSInfo(QPoint pos); + void showRSSInfo(const QPoint &pos); + void showSearchEngine(const QPoint &pos); + void openSearchEngineAdded(); Q_SIGNALS: void loadProgressing(); void titleChanged(const QString &); - + private: + KUrl extractOpensearchUrl(QWebElement e); + WebView *const m_webView; UrlBar *const m_urlBar; - + int m_progress; QWeakPointer m_walletBar; -- cgit v1.2.1