|
1 /* |
|
2 * Copyright (c) 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: hbtoolbar stub |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef HBTOOLBAR_H |
|
19 #define HBTOOLBAR_H |
|
20 |
|
21 #include <hbwidget.h> |
|
22 |
|
23 class HbToolBar : public HbWidget |
|
24 { |
|
25 Q_OBJECT |
|
26 |
|
27 public: |
|
28 HbToolBar( QGraphicsItem *parent = 0 ) : HbWidget(parent) {}; |
|
29 virtual ~HbToolBar(); |
|
30 |
|
31 using HbWidget::addAction; |
|
32 /* HbAction *addAction( const QString &text ); |
|
33 HbAction *addAction( const HbIcon &icon, const QString &text ); |
|
34 HbAction *addAction( const QString &text, const QObject *receiver, const char *member ); |
|
35 HbAction *addAction( const HbIcon &icon, const QString &text, const QObject *receiver, const char *member ); |
|
36 |
|
37 HbAction *addExtension( HbToolBarExtension *extension ); |
|
38 HbAction *insertExtension( HbAction *before, HbToolBarExtension *extension ); |
|
39 |
|
40 Qt::Orientation orientation() const; |
|
41 |
|
42 enum { Type = Hb::ItemType_ToolBar }; |
|
43 int type() const { return Type; } |
|
44 |
|
45 public slots: |
|
46 void setOrientation(Qt::Orientation orientation); |
|
47 void unsetOrientation(); |
|
48 |
|
49 protected: |
|
50 HbToolBar( HbToolBarPrivate &dd, QGraphicsItem *parent = 0 ); |
|
51 |
|
52 QVariant itemChange( GraphicsItemChange change, const QVariant &value ); |
|
53 void gestureEvent(QGestureEvent *event); |
|
54 void changeEvent( QEvent *event ); |
|
55 void resizeEvent( QGraphicsSceneResizeEvent *event ); |
|
56 void hideEvent(QHideEvent *event); |
|
57 bool event( QEvent *event ); |
|
58 |
|
59 private: |
|
60 Q_DECLARE_PRIVATE_D( d_ptr, HbToolBar ) |
|
61 Q_DISABLE_COPY(HbToolBar) |
|
62 |
|
63 Q_PRIVATE_SLOT(d_func(), void _q_orientationChanged(Qt::Orientation)) |
|
64 #ifdef HB_EFFECTS |
|
65 Q_PRIVATE_SLOT(d_func(), void _q_delayedHide(HbEffect::EffectStatus status)) |
|
66 //Q_PRIVATE_SLOT(d_func(), void _q_delayedShow(HbEffect::EffectStatus status)) |
|
67 #endif // HB_EFFECTS*/ |
|
68 }; |
|
69 |
|
70 #endif // HBTOOLBAR_H |