From 9a111024c84f7f7cc10cbbd5fc43ee82e48ae79e Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sat, 28 Jul 2012 11:11:56 +0200 Subject: Class Application Import, first (important) part --- src/tabwindow/tabwindow.h | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) (limited to 'src/tabwindow/tabwindow.h') diff --git a/src/tabwindow/tabwindow.h b/src/tabwindow/tabwindow.h index f8cb759f..24f1b42e 100644 --- a/src/tabwindow/tabwindow.h +++ b/src/tabwindow/tabwindow.h @@ -25,8 +25,9 @@ #include +class KUrl; + class QLabel; -class QUrl; class QToolButton; class QWebHistory; @@ -37,6 +38,32 @@ class WebPage; class WebWindow; +// -------------------------------------------------------------------------------------- + + +namespace Rekonq +{ + +/** +* @short Open link options +* Different modes of opening new tab +*/ +enum OpenType +{ + CurrentTab, ///< open url in current tab + NewTab, ///< open url according to users settings + NewFocusedTab, ///< open url in new tab and focus it + NewBackGroundTab, ///< open url in new background tab + NewWindow ///< open url in new window +}; + + +} + + +// -------------------------------------------------------------------------------------- + + class TabWindow : public KTabWidget { Q_OBJECT @@ -52,7 +79,7 @@ public: TabBar* tabBar() const; public Q_SLOTS: - void loadUrlInNewTab(const QUrl &, TabHistory *history = 0); + void loadUrl(const KUrl &, Rekonq::OpenType type = Rekonq::CurrentTab, TabHistory *history = 0); void newCleanTab(); private: -- cgit v1.2.1