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: Definition file for class CalenGridItemStylePlugin. |
|
15 * |
|
16 */ |
|
17 |
|
18 // System includes |
|
19 #include <QtPlugin> |
|
20 #include <QGraphicsItem> |
|
21 #include <hbiconitem.h> |
|
22 #include <hbtextitem.h> |
|
23 #include <hbframeitem.h> |
|
24 #include <hbframedrawer.h> |
|
25 |
|
26 // User includes |
|
27 #include "calengriditemstyleplugin.h" |
|
28 |
|
29 // Constants |
|
30 #define PRIMITIVE_COUNT 1 |
|
31 |
|
32 /*! |
|
33 \class CalenGridItemStylePlugin |
|
34 |
|
35 Style plugin of Custom Grid Item of Calendar |
|
36 */ |
|
37 |
|
38 /*! |
|
39 From HbStyleInterface. |
|
40 Returns the number of primitives in the widget. |
|
41 |
|
42 \return int The number of primitives. |
|
43 \sa HbStyleInterface. |
|
44 */ |
|
45 int CalenGridItemStylePlugin::primitiveCount() const |
|
46 { |
|
47 qDebug("CalenGridItemStylePlugin::primitiveCount"); |
|
48 |
|
49 return PRIMITIVE_COUNT; |
|
50 } |
|
51 |
|
52 /*! |
|
53 From HbStyleInterface. |
|
54 |
|
55 \sa HbStyleInterface. |
|
56 */ |
|
57 QGraphicsItem *CalenGridItemStylePlugin::createPrimitive( |
|
58 HbStyle::Primitive primitive, |
|
59 QGraphicsItem *parent) const |
|
60 { |
|
61 qDebug("CalenGridItemStylePlugin::createPrimitive"); |
|
62 Q_UNUSED(primitive) |
|
63 Q_UNUSED(parent) |
|
64 return NULL; |
|
65 } |
|
66 |
|
67 /*! |
|
68 From HbStyleInterface. |
|
69 |
|
70 \sa HbStyleInterface. |
|
71 */ |
|
72 void CalenGridItemStylePlugin::updatePrimitive(QGraphicsItem *item, |
|
73 HbStyle::Primitive primitive, |
|
74 const QStyleOption *option) const |
|
75 { |
|
76 qDebug("CalenGridItemStylePlugin::updatePrimitive"); |
|
77 |
|
78 Q_UNUSED(item) |
|
79 Q_UNUSED(primitive) |
|
80 Q_UNUSED(option) |
|
81 |
|
82 } |
|
83 |
|
84 /*! |
|
85 From HbStyleInterface. |
|
86 |
|
87 \sa HbStyleInterface. |
|
88 */ |
|
89 QString CalenGridItemStylePlugin::layoutPath() const |
|
90 { |
|
91 qDebug("CalenGridItemStylePlugin::layoutPath"); |
|
92 |
|
93 QString layoutPath(":/"); |
|
94 |
|
95 return layoutPath; |
|
96 } |
|
97 |
|
98 /*! |
|
99 Plugin registration. |
|
100 */ |
|
101 Q_EXPORT_PLUGIN2(calengriditemstyleplugin, CalenGridItemStylePlugin) |
|
102 |
|
103 |
|
104 // End of file --Don't remove this. |
|