summaryrefslogtreecommitdiff
path: root/src/webtab.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-12-21 21:59:23 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-12-21 21:59:23 +0100
commit925725bfcf0f3ffba5107949bc8424e1fd6d1902 (patch)
treeee10e2c10e3ec63b0977661cfbc0ef69ad98002a /src/webtab.h
parentAdding a tab list menu entry showing all open tabs. (diff)
downloadrekonq-925725bfcf0f3ffba5107949bc8424e1fd6d1902.tar.xz
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 ;)
Diffstat (limited to 'src/webtab.h')
-rw-r--r--src/webtab.h16
1 files changed, 12 insertions, 4 deletions
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<WalletBar> m_walletBar;