equal
deleted
inserted
replaced
18 #ifndef BUBBLEHEADINGWIDGET_H |
18 #ifndef BUBBLEHEADINGWIDGET_H |
19 #define BUBBLEHEADINGWIDGET_H |
19 #define BUBBLEHEADINGWIDGET_H |
20 |
20 |
21 #include <hbwidget.h> |
21 #include <hbwidget.h> |
22 |
22 |
23 class BubbleStyleOption; |
23 class HbIconItem; |
|
24 class HbTextItem; |
|
25 class HbFontSpec; |
24 class BubbleHeader; |
26 class BubbleHeader; |
25 |
27 |
26 class BubbleHeadingWidget : public HbWidget |
28 class BubbleHeadingWidget : public HbWidget |
27 { |
29 { |
28 Q_OBJECT |
30 Q_OBJECT |
29 Q_PROPERTY(int lines READ lineCount WRITE setLineCount) |
31 Q_PROPERTY(int lines READ lineCount WRITE setLineCount) |
30 Q_PROPERTY(QString layoutOption READ layout WRITE setLayout) |
32 Q_PROPERTY(QString layoutOption READ layout WRITE setLayout) |
31 |
33 |
32 public: |
34 public: |
33 BubbleHeadingWidget(const QString& stylePluginName, QGraphicsItem* item=0); |
35 BubbleHeadingWidget(QGraphicsItem* item=0); |
34 virtual ~BubbleHeadingWidget(); |
36 virtual ~BubbleHeadingWidget(); |
35 |
37 |
36 int lineCount() const; |
38 int lineCount() const; |
37 void setLineCount(int count); |
39 void setLineCount(int count); |
38 |
40 |
44 void updateTimerDisplayNow(); |
46 void updateTimerDisplayNow(); |
45 |
47 |
46 private: |
48 private: |
47 void createPrimitives(); |
49 void createPrimitives(); |
48 void updatePrimitives(); |
50 void updatePrimitives(); |
49 void initStyleOption(BubbleStyleOption& option); |
|
50 |
|
51 void polishEvent(); |
|
52 |
51 |
53 protected: |
52 protected: |
|
53 void polishEvent(); |
54 void changeEvent(QEvent *event); |
54 void changeEvent(QEvent *event); |
|
55 void showEvent(QShowEvent *event); |
55 |
56 |
56 private: |
57 private: |
57 QString mStylePluginName; |
|
58 |
|
59 int lines; |
58 int lines; |
60 QString layoutOption; |
59 QString layoutOption; |
61 |
60 |
62 const BubbleHeader* mHeader; |
61 const BubbleHeader* mHeader; |
63 |
62 |
64 // primitives |
63 // primitives |
65 QGraphicsItem* mStatusIcon; |
64 //BubbleAnimIconItem* mStatusIcon; |
66 QGraphicsItem* mNumberTypeIcon; |
65 HbIconItem* mStatusIcon; |
67 QGraphicsItem* mCipheringIcon; |
66 HbIconItem* mNumberTypeIcon; |
68 QGraphicsItem* mText1; |
67 HbIconItem* mCipheringIcon; |
69 QGraphicsItem* mText2; |
68 HbTextItem* mText1; |
70 QGraphicsItem* mText3; |
69 HbTextItem* mText2; |
|
70 HbTextItem* mText3; |
71 int mCallTimerTextLine; |
71 int mCallTimerTextLine; |
|
72 HbFontSpec* mCliFont; |
|
73 HbFontSpec* mTextFont; |
72 }; |
74 }; |
73 |
75 |
74 #endif // BUBBLEHEADINGWIDGET_H |
76 #endif // BUBBLEHEADINGWIDGET_H |