1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
4 * |
9 * Initial Contributors: |
5 * This program is free software: you can redistribute it and/or modify |
10 * Nokia Corporation - initial contribution. |
6 * it under the terms of the GNU Lesser General Public License as published by |
|
7 * the Free Software Foundation, version 2.1 of the License. |
|
8 * |
|
9 * This program is distributed in the hope that it will be useful, |
|
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 * GNU Lesser General Public License for more details. |
11 * |
13 * |
12 * Contributors: |
14 * You should have received a copy of the GNU Lesser General Public License |
|
15 * along with this program. If not, |
|
16 * see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". |
13 * |
17 * |
14 * Description: |
18 * Description: |
15 * |
19 * |
16 */ |
20 */ |
17 |
|
18 |
21 |
19 #ifndef __HISTORYFLOWVIEW_H__ |
22 #ifndef __HISTORYFLOWVIEW_H__ |
20 #define __HISTORYFLOWVIEW_H__ |
23 #define __HISTORYFLOWVIEW_H__ |
21 |
24 |
22 #include <QObject> |
25 #include <QObject> |
23 #include <QAction> |
26 #include <QAction> |
24 #include "HistoryView.h" |
27 #include "HistoryView.h" |
|
28 #include "controllableview.h" |
25 |
29 |
26 class QWebHistory; |
30 class QWebHistory; |
|
31 class WebPageController; |
27 |
32 |
28 namespace WRT { |
33 namespace WRT { |
29 |
|
30 class WrtPageManager; |
|
31 |
34 |
32 class BWF_EXPORT HistoryFlowView : public HistoryView |
35 class BWF_EXPORT HistoryFlowView : public HistoryView |
33 { |
36 { |
34 Q_OBJECT |
37 Q_OBJECT |
35 public: |
38 public: |
36 HistoryFlowView(WrtPageManager * mgr, QWidget* parent); |
39 HistoryFlowView(WebPageController * mgr, QWidget* parent,const QString& aType); |
37 HistoryFlowView(WrtPageManager * mgr, QGraphicsWidget* parent); |
40 HistoryFlowView(WebPageController * mgr, QGraphicsWidget* parent,const QString& aType); |
|
41 virtual QString type() const { return m_type; } |
|
42 |
|
43 static const QString Type() { return "HistoryView"; } |
|
44 static ControllableView *createNew(QWidget *parent); |
|
45 static ControllableViewBase *createNew(QGraphicsWidget* parent); |
|
46 |
38 QImage getCurrentSlide(); |
47 QImage getCurrentSlide(); |
39 // static const QString Type() { return "HistoryFlowView"; } |
|
40 static const QString Type() { return "historyView"; } |
|
41 virtual QString type() const { return Type(); } |
|
42 |
|
43 static ControllableView *createNew(QWidget *parent); |
|
44 |
|
45 public slots: |
48 public slots: |
46 void activate(); |
49 void activate(); |
47 void setCenterIndex(int i); |
50 void setCenterIndex(int i); |
|
51 protected: |
|
52 QString m_type; |
48 }; |
53 }; |
49 |
54 |
50 } |
55 } |
51 #endif // __HISTORYFLOWVIEW_H__ |
56 #endif // __HISTORYFLOWVIEW_H__ |