diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-07-28 11:11:56 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-12-10 02:48:04 +0100 |
commit | 9a111024c84f7f7cc10cbbd5fc43ee82e48ae79e (patch) | |
tree | 688b549594169bfca6b248415286adede8e4f4c5 /src/tabwindow/tabwindow.h | |
parent | Update SearchEngine class to fix it with KDE 4.9 changes (diff) | |
download | rekonq-9a111024c84f7f7cc10cbbd5fc43ee82e48ae79e.tar.xz |
Class Application Import, first (important) part
Diffstat (limited to 'src/tabwindow/tabwindow.h')
-rw-r--r-- | src/tabwindow/tabwindow.h | 31 |
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: |