From 8343d45f3dfd631a3f5ac4213918f285930eb446 Mon Sep 17 00:00:00 2001 From: matgic78 Date: Thu, 17 Dec 2009 18:22:23 +0100 Subject: Re-implemented previews in homepage without using plugins. Not finished yet : Little things that change: -nice buttons appearing on hover -transitions on hover TODO: -when a preview is empty or when loading, it is very ugly -for now there's no way to choose the page you want to preview -port "closed Tabs" to this new architecture -totally remove PreviewImage classes -eventually, specific contextmenu for previews --- src/webpage.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/webpage.h') diff --git a/src/webpage.h b/src/webpage.h index 9169ad60..5671b5d9 100644 --- a/src/webpage.h +++ b/src/webpage.h @@ -32,8 +32,10 @@ #define WEBPAGE_H + // Local Includes #include "protocolhandler.h" +#include "newtabpage.h" // KDE Includes #include @@ -76,6 +78,7 @@ private: QUrl m_requestedUrl; ProtocolHandler m_protHandler; + NewTabPage *m_newTabPage; }; #endif -- cgit v1.2.1 From 544094302a51b919b1eea86b313ec10d47533a08 Mon Sep 17 00:00:00 2001 From: matgic78 Date: Fri, 15 Jan 2010 17:20:51 +0100 Subject: A new approach for choosing previews : a bar appears, then you browse to the page you want to preview, and then you click a button --- src/webpage.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/webpage.h') diff --git a/src/webpage.h b/src/webpage.h index 5671b5d9..da91ea5c 100644 --- a/src/webpage.h +++ b/src/webpage.h @@ -55,6 +55,8 @@ class WebPage : public KWebPage public: explicit WebPage(QObject *parent = 0); ~WebPage(); + + NewTabPage *newTabPage(); public slots: void manageNetworkErrors(QNetworkReply *reply); -- cgit v1.2.1 From 1c1f1edd697aca0bf96d8d61c40e45166b5f1d02 Mon Sep 17 00:00:00 2001 From: matgic78 Date: Wed, 3 Feb 2010 14:51:38 +0100 Subject: Remove m_newtabPage. That was not used anywhere ! --- src/webpage.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/webpage.h') diff --git a/src/webpage.h b/src/webpage.h index da91ea5c..c8ecc89a 100644 --- a/src/webpage.h +++ b/src/webpage.h @@ -55,8 +55,6 @@ class WebPage : public KWebPage public: explicit WebPage(QObject *parent = 0); ~WebPage(); - - NewTabPage *newTabPage(); public slots: void manageNetworkErrors(QNetworkReply *reply); @@ -80,7 +78,6 @@ private: QUrl m_requestedUrl; ProtocolHandler m_protHandler; - NewTabPage *m_newTabPage; }; #endif -- cgit v1.2.1 From 067b99a053b6f8b1ccab507be8e828b2f72a1e43 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 10 Feb 2010 10:57:57 +0100 Subject: Fix copyright for 0.4 beta release --- src/webpage.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/webpage.h') diff --git a/src/webpage.h b/src/webpage.h index c8ecc89a..2a1cf826 100644 --- a/src/webpage.h +++ b/src/webpage.h @@ -6,7 +6,8 @@ * Copyright (C) 2008 Dirk Mueller * Copyright (C) 2008 Urs Wolfer * Copyright (C) 2008 Michael Howell -* Copyright (C) 2008-2009 by Andrea Diamantini +* Copyright (C) 2008-2010 by Andrea Diamantini +* Copyright (C) 2010 by Matthieu Gicquel * * * This program is free software; you can redistribute it and/or -- cgit v1.2.1 From 06eeee98a92cc01b0b193c94c3d7c357a58f9332 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 14 Feb 2010 12:23:53 +0100 Subject: Some stupid changes && kDebug sentences added to better debug download system --- src/webpage.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src/webpage.h') diff --git a/src/webpage.h b/src/webpage.h index 2a1cf826..c9c5bb8c 100644 --- a/src/webpage.h +++ b/src/webpage.h @@ -33,7 +33,6 @@ #define WEBPAGE_H - // Local Includes #include "protocolhandler.h" #include "newtabpage.h" -- cgit v1.2.1 From 060909220bad6842828f2583213dc96c285b5fd9 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 19 Feb 2010 12:37:46 +0100 Subject: change setHtml( string ) to setHtml( string, url ) to let webviews return an url on webview->url() calls --- src/webpage.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/webpage.h') diff --git a/src/webpage.h b/src/webpage.h index c9c5bb8c..bbaa0f63 100644 --- a/src/webpage.h +++ b/src/webpage.h @@ -60,6 +60,7 @@ public slots: void manageNetworkErrors(QNetworkReply *reply); virtual void downloadRequest(const QNetworkRequest &request); void downloadAllContentsWithKGet(); + protected: WebPage *createWindow(WebWindowType type); -- cgit v1.2.1 From ab28170bd85aeb12384eef2cd4da1c2b04361259 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 22 Feb 2010 02:06:06 +0100 Subject: Fixes 217521 bug and let us save also some memory (1 QUrl variable for each webpage). It needs testing, obvious, but it seems working well.. BUG:217521 --- src/webpage.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src/webpage.h') diff --git a/src/webpage.h b/src/webpage.h index bbaa0f63..f76fd334 100644 --- a/src/webpage.h +++ b/src/webpage.h @@ -77,7 +77,6 @@ private slots: private: QString errorPage(QNetworkReply *); - QUrl m_requestedUrl; ProtocolHandler m_protHandler; }; -- cgit v1.2.1 From 5f59b5f0c7724662f180f82123dc5c269f41a530 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 25 Feb 2010 12:47:30 +0100 Subject: Fix cookies handling. Change WebPage ctor && setting winId for each page in the cookiejar --- src/webpage.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/webpage.h') diff --git a/src/webpage.h b/src/webpage.h index f76fd334..c9b78927 100644 --- a/src/webpage.h +++ b/src/webpage.h @@ -53,7 +53,7 @@ class WebPage : public KWebPage Q_OBJECT public: - explicit WebPage(QObject *parent = 0); + explicit WebPage(QWidget *parent = 0); ~WebPage(); public slots: -- cgit v1.2.1 From 8dda858403d283f1850c0298aac0fb5212a27952 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 26 Feb 2010 11:37:11 +0100 Subject: tests support for every Qt derived rekonq class --- src/webpage.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/webpage.h') diff --git a/src/webpage.h b/src/webpage.h index c9b78927..76927725 100644 --- a/src/webpage.h +++ b/src/webpage.h @@ -34,6 +34,7 @@ // Local Includes +#include "rekonqprivate_export.h" #include "protocolhandler.h" #include "newtabpage.h" @@ -48,7 +49,7 @@ class QWebFrame; class QNetworkReply; -class WebPage : public KWebPage +class REKONQ_TESTS_EXPORT WebPage : public KWebPage { Q_OBJECT -- cgit v1.2.1 From 6a34b95f02848f75057f5e913e500115643fde5d Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 22 Mar 2010 02:46:24 +0100 Subject: First SSL support. checking metadata missing.. --- src/webpage.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/webpage.h') diff --git a/src/webpage.h b/src/webpage.h index 76927725..42d5f586 100644 --- a/src/webpage.h +++ b/src/webpage.h @@ -37,6 +37,7 @@ #include "rekonqprivate_export.h" #include "protocolhandler.h" #include "newtabpage.h" +#include "websslinfo.h" // KDE Includes #include @@ -57,6 +58,8 @@ public: explicit WebPage(QWidget *parent = 0); ~WebPage(); + void showSSLInfo(); + public slots: void manageNetworkErrors(QNetworkReply *reply); virtual void downloadRequest(const QNetworkRequest &request); @@ -78,7 +81,9 @@ private slots: private: QString errorPage(QNetworkReply *); - ProtocolHandler m_protHandler; + ProtocolHandler _protHandler; + + WebSslInfo _sslInfo; }; #endif -- cgit v1.2.1 From 9a7a4066e20524efd337011ba868f1f29855f754 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 24 Mar 2010 15:42:48 +0100 Subject: WebPage API cleaning --- src/webpage.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/webpage.h') diff --git a/src/webpage.h b/src/webpage.h index 42d5f586..a3e58dc1 100644 --- a/src/webpage.h +++ b/src/webpage.h @@ -61,7 +61,6 @@ public: void showSSLInfo(); public slots: - void manageNetworkErrors(QNetworkReply *reply); virtual void downloadRequest(const QNetworkRequest &request); void downloadAllContentsWithKGet(); @@ -76,13 +75,13 @@ protected Q_SLOTS: virtual void handleUnsupportedContent(QNetworkReply *reply); private slots: + void manageNetworkErrors(QNetworkReply *reply); void loadFinished(bool); private: QString errorPage(QNetworkReply *); ProtocolHandler _protHandler; - WebSslInfo _sslInfo; }; -- cgit v1.2.1 From 860934af2c429c9676e8a6ad5fa595cfd405d164 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 26 Mar 2010 17:32:16 +0100 Subject: This commit lets rekonq embed parts instead of krunning them DISCLAIMER: This code really A LOT of testing. Not for the code itself, but for the parts it lets rekonq use. I'm experiencing a lot of crashes with the Dragon Part, in example. --- src/webpage.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/webpage.h') diff --git a/src/webpage.h b/src/webpage.h index a3e58dc1..abc9833c 100644 --- a/src/webpage.h +++ b/src/webpage.h @@ -80,7 +80,7 @@ private slots: private: QString errorPage(QNetworkReply *); - + ProtocolHandler _protHandler; WebSslInfo _sslInfo; }; -- cgit v1.2.1 From 352168759ea96b35296eaf33790fbe073b69f69b Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 5 Apr 2010 01:31:13 +0200 Subject: This commit is the first implementation of a new new new urlbar Here are its features: - KLineEdit based - ability to easily add "icons" :) - SSL informations shown (a-la firefox) - smoother animation - cleaner code - data QString, not KUrl based (Users type string, not urls!!!) --- src/webpage.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/webpage.h') diff --git a/src/webpage.h b/src/webpage.h index abc9833c..479d0cd3 100644 --- a/src/webpage.h +++ b/src/webpage.h @@ -58,8 +58,6 @@ public: explicit WebPage(QWidget *parent = 0); ~WebPage(); - void showSSLInfo(); - public slots: virtual void downloadRequest(const QNetworkRequest &request); void downloadAllContentsWithKGet(); @@ -77,7 +75,11 @@ protected Q_SLOTS: private slots: void manageNetworkErrors(QNetworkReply *reply); void loadFinished(bool); + void showSSLInfo(); +signals: + void validSSLInfo(bool); + private: QString errorPage(QNetworkReply *); -- cgit v1.2.1 From 43dc2695d62fd2e4fc01aff608bb2af3e8335040 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 8 Apr 2010 02:53:38 +0200 Subject: This is a really big commit, implementing the new urlbar - removed previous SSL animation, we have now a nice yellow lock :) - faster and cleaner animations - reenabled the old stacked widget, to avoid stupid refreshes and fix some regressions - implemented some "right icons": KGet, SSL, RSS. For now, just SSL is full featured - clean up the box :) Some old & unuseful files removed, some icons added - Pano's request: grey text shown everytime in the empty bar Again and again: this is not the first, but the second implementation of the new urlbar UI. About me this is clearly better than the first or the previous. But it needs love :D BUG: 230125 BUG: 231015 CCBUG: 228040 BUG: 227272 --- src/webpage.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/webpage.h') diff --git a/src/webpage.h b/src/webpage.h index 479d0cd3..9583cc22 100644 --- a/src/webpage.h +++ b/src/webpage.h @@ -76,9 +76,6 @@ private slots: void manageNetworkErrors(QNetworkReply *reply); void loadFinished(bool); void showSSLInfo(); - -signals: - void validSSLInfo(bool); private: QString errorPage(QNetworkReply *); -- cgit v1.2.1