summaryrefslogtreecommitdiff
path: root/src/mainview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainview.h')
-rw-r--r--src/mainview.h40
1 files changed, 22 insertions, 18 deletions
diff --git a/src/mainview.h b/src/mainview.h
index 908389b1..eb5b3e02 100644
--- a/src/mainview.h
+++ b/src/mainview.h
@@ -2,9 +2,10 @@
*
* This file is a part of the rekonq project
*
-* Copyright (C) 2008-2009 by Andrea Diamantini <adjam7 at gmail dot com>
+* Copyright (C) 2008-2010 by Andrea Diamantini <adjam7 at gmail dot com>
* Copyright (C) 2009 by Paweł Prażak <pawelprazak at gmail dot com>
-* Copyright (C) 2009 by Lionel Chauvin <megabigbug@yahoo.fr>
+* Copyright (C) 2009-2010 by Lionel Chauvin <megabigbug@yahoo.fr>
+* Copyright (C) 2010 by Matthieu Gicquel <matgic78 at gmail dot com>
*
*
* This program is free software; you can redistribute it and/or
@@ -12,9 +13,9 @@
* published by the Free Software Foundation; either version 2 of
* the License or (at your option) version 3 or any later version
* accepted by the membership of KDE e.V. (or its successor approved
-* by the membership of KDE e.V.), which shall act as a proxy
+* by the membership of KDE e.V.), which shall act as a proxy
* defined in Section 14 of version 3 of the license.
-*
+*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@@ -30,8 +31,10 @@
#define MAINVIEW_H
+// Rekonq Includes
+#include "rekonq_defines.h"
+
// Local Includes
-#include "rekonqprivate_export.h"
#include "webview.h"
#include "webpage.h"
#include "application.h"
@@ -43,6 +46,7 @@
// Qt Includes
#include <QtGui/QToolButton>
+#include <QStackedWidget>
// Forward Declarations
class QUrl;
@@ -55,7 +59,7 @@ class UrlBar;
/**
- * This class represent rekonq Main View.
+ * This class represent rekonq Main View.
* It contains all WebViews and the url bar.
*
*/
@@ -68,8 +72,7 @@ public:
MainView(MainWindow *parent);
~MainView();
-public:
-
+ QWidget *urlBarWidget() const;
UrlBar *urlBar() const;
WebTab *webTab(int index) const;
@@ -82,16 +85,15 @@ public:
*
*/
void updateTabBar();
-
+
void setTabBarHidden(bool hide);
-
+
QToolButton *addTabButton() const;
- void clear();
/**
* This function creates a new empty tab
* with a webview inside
- * @param focused decide if you wannna give focus
+ * @param focused decide if you wannna give focus
* (or not) to this new tab (default true)
* @param nearParent decide if you wanna create new tab near current or not
* @return the webview embedded in the new tab
@@ -106,7 +108,7 @@ signals:
void lastTabClosed();
// current tab signals
- void setCurrentTitle(const QString &url);
+ void currentTitle(const QString &url);
void showStatusBarMessage(const QString &message, Rekonq::Notify status = Rekonq::Info);
void linkHovered(const QString &link);
void browserTabLoading(bool);
@@ -123,14 +125,14 @@ public slots:
void newTab();
void cloneTab(int index = -1);
- void closeTab(int index = -1);
+ void closeTab(int index = -1, bool del = true);
void closeOtherTabs(int index);
void reloadTab(int index = -1);
void reloadAllTabs();
void nextTab();
void previousTab();
void detachTab(int index = -1);
-
+
// WEB slot actions
void webReload();
void webStop();
@@ -147,7 +149,7 @@ private slots:
void windowCloseRequested();
void postLaunch();
-
+ void movedTab(int, int);
protected:
virtual void resizeEvent(QResizeEvent *event);
@@ -167,8 +169,10 @@ private:
*/
QLabel *animatedLoading(int index, bool addMovie);
- UrlBar *m_urlBar;
- TabBar *m_tabBar;
+
+// --------------------------------------------------------------------------
+
+ QStackedWidget *_bars;
QString m_loadingGitPath;