diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-04-28 03:15:17 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-04-28 03:15:17 +0200 |
commit | 1758686ac4b3c1a2ebf9bc88158f7cf1ccb1e8e9 (patch) | |
tree | 392cb389ceafdf97d5b0bf475cf3ff0ec4f867c0 /src/application.h | |
parent | kdialog fixes (diff) | |
parent | TabBar context menu fix ported (diff) | |
download | rekonq-1758686ac4b3c1a2ebf9bc88158f7cf1ccb1e8e9.tar.xz |
Merge commit 'avaddon/master' into MERGING
Diffstat (limited to 'src/application.h')
-rw-r--r-- | src/application.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/application.h b/src/application.h index 98b213a3..dfcfab62 100644 --- a/src/application.h +++ b/src/application.h @@ -47,6 +47,18 @@ class MainWindow; class NetworkAccessManager; class WebView; +namespace Rekonq { + /** + * @short Open link options + * Defferent modes of opening new tab + */ + enum OpenType { + Default, ///< open url according to users settings + Current, ///< open url in current tab + New, ///< open url in new tab and make it current + Background ///< open url in new tab in background + }; +} /** * @@ -62,7 +74,7 @@ public: static Application *instance(); MainWindow *mainWindow(); - WebView* newWebView(); + WebView* newWebView(bool makeCurrent = true); KIcon icon(const KUrl &url) const; @@ -72,13 +84,16 @@ public: static DownloadManager *downloadManager(); static BookmarkProvider *bookmarkProvider(); +signals: + void openUrl(const KUrl &url, Rekonq::OpenType type=Rekonq::Current); + public slots: /** * Save application's configuration * @see ReKonfig::self()->writeConfig(); */ void slotSaveConfiguration() const; - + private slots: @@ -86,7 +101,6 @@ private slots: * Any actions that can be delayed until the window is visible */ void postLaunch(); - void openUrl(const KUrl &url); private: static QPointer<HistoryManager> s_historyManager; |