equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
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 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: stub hbview |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef HBVIEW_H |
|
20 #define HBVIEW_H |
|
21 |
|
22 #include <QGraphicsWidget> |
|
23 #include "hbinstance.h" |
|
24 #include "hbtoolbar.h" |
|
25 |
|
26 class HbView : public QGraphicsWidget |
|
27 { |
|
28 Q_OBJECT |
|
29 |
|
30 |
|
31 public: |
|
32 |
|
33 HbView(QGraphicsItem *parent = 0) : QGraphicsWidget(parent), mToolBar(0) |
|
34 { |
|
35 Q_UNUSED(parent); |
|
36 } |
|
37 |
|
38 virtual ~HbView(){} |
|
39 |
|
40 HbMainWindow* mainWindow() const |
|
41 { |
|
42 return hbInstance->allMainWindows().value(0); |
|
43 } |
|
44 |
|
45 void setTitle(const QString &title) |
|
46 { |
|
47 Q_UNUSED(title); |
|
48 } |
|
49 |
|
50 HbToolBar *toolBar() const |
|
51 { |
|
52 if(!mToolBar) { |
|
53 mToolBar = new HbToolBar(qobject_cast<QGraphicsItem*>(this)); |
|
54 } |
|
55 return mToolBar; |
|
56 } |
|
57 |
|
58 void setItemVisible(Hb::SceneItem item, bool visible) |
|
59 { |
|
60 Q_UNUSED(item); |
|
61 Q_UNUSED(visible); |
|
62 } |
|
63 |
|
64 void setNavigationAction(HbAction *action) |
|
65 { |
|
66 Q_UNUSED(action); |
|
67 } |
|
68 |
|
69 mutable HbToolBar* mToolBar; |
|
70 }; |
|
71 |
|
72 #endif // HBVIEW_H |