author | William Roberts <williamr@symbian.org> |
Thu, 22 Jul 2010 16:33:21 +0100 | |
branch | GCC_SURGE |
changeset 51 | f39ed5e045e0 |
parent 30 | ebdbd102c78a |
parent 46 | bc5a64e5bc3c |
permissions | -rw-r--r-- |
37 | 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: Bubble heading widget |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
#ifndef BUBBLEHEADINGWIDGET_H |
|
19 |
#define BUBBLEHEADINGWIDGET_H |
|
20 |
||
21 |
#include <hbwidget.h> |
|
22 |
||
23 |
class HbIconItem; |
|
24 |
class HbTextItem; |
|
25 |
class HbFontSpec; |
|
26 |
class BubbleHeader; |
|
27 |
||
28 |
class BubbleHeadingWidget : public HbWidget |
|
29 |
{ |
|
30 |
Q_OBJECT |
|
31 |
Q_PROPERTY(int lines READ lineCount WRITE setLineCount) |
|
32 |
Q_PROPERTY(QString layoutOption READ layout WRITE setLayout) |
|
33 |
||
34 |
public: |
|
35 |
BubbleHeadingWidget(QGraphicsItem* item=0); |
|
36 |
virtual ~BubbleHeadingWidget(); |
|
37 |
||
38 |
int lineCount() const; |
|
39 |
void setLineCount(int count); |
|
40 |
||
41 |
QString layout() const; |
|
42 |
void setLayout(const QString& layout); |
|
43 |
||
44 |
void reset(); |
|
45 |
void readBubbleHeader(const BubbleHeader& header); |
|
46 |
void updateTimerDisplayNow(); |
|
47 |
||
48 |
private: |
|
49 |
void createPrimitives(); |
|
50 |
void updatePrimitives(); |
|
51 |
||
52 |
protected: |
|
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
53 |
void polish(HbStyleParameters ¶ms); |
37 | 54 |
|
55 |
private: |
|
56 |
int lines; |
|
57 |
QString layoutOption; |
|
58 |
||
59 |
const BubbleHeader* mHeader; |
|
60 |
||
61 |
// primitives |
|
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
62 |
HbIconItem* mIndicator1; |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
63 |
HbIconItem* mIndicator2; |
37 | 64 |
HbTextItem* mText1; |
65 |
HbTextItem* mText2; |
|
66 |
HbTextItem* mText3; |
|
67 |
int mCallTimerTextLine; |
|
68 |
HbFontSpec* mCliFont; |
|
69 |
HbFontSpec* mTextFont; |
|
70 |
}; |
|
71 |
||
72 |
#endif // BUBBLEHEADINGWIDGET_H |