summaryrefslogtreecommitdiff
path: root/src/tabwindow/tabwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tabwindow/tabwindow.h')
-rw-r--r--src/tabwindow/tabwindow.h31
1 files changed, 29 insertions, 2 deletions
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 <KTabWidget>
+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: