24 #include "calenmonthgrid.h" |
24 #include "calenmonthgrid.h" |
25 #include "calenpreviewpane.h" |
25 #include "calenpreviewpane.h" |
26 #include "calencontroller.h" |
26 #include "calencontroller.h" |
27 #include "calenthicklinesdrawer.h" |
27 #include "calenthicklinesdrawer.h" |
28 #include "calencommon.h" |
28 #include "calencommon.h" |
|
29 #include "calenpluginlabel.h" |
29 |
30 |
30 // ---------------------------------------------------------------------------- |
31 // ---------------------------------------------------------------------------- |
31 // CalenDocLoader::CalenDocLoader |
32 // CalenDocLoader::CalenDocLoader |
32 // C++ default Constructor. |
33 // C++ default Constructor. |
33 // (other items were commented in a header). |
34 // (other items were commented in a header). |
78 QObject *calenMonthGrid = new CalenMonthGrid(); |
79 QObject *calenMonthGrid = new CalenMonthGrid(); |
79 calenMonthGrid->setObjectName(name); |
80 calenMonthGrid->setObjectName(name); |
80 return calenMonthGrid; |
81 return calenMonthGrid; |
81 } else if(name == QString(CALEN_PREVPREVIEWPANE)) { |
82 } else if(name == QString(CALEN_PREVPREVIEWPANE)) { |
82 QObject *prevPreviewPane = |
83 QObject *prevPreviewPane = |
83 new CalenPreviewPane(mController.Services()); |
84 new CalenPreviewPane(services); |
84 prevPreviewPane->setObjectName(name); |
85 prevPreviewPane->setObjectName(name); |
85 return prevPreviewPane; |
86 return prevPreviewPane; |
86 } else if(name == QString(CALEN_CURRPREVIEWPANE)) { |
87 } else if(name == QString(CALEN_CURRPREVIEWPANE)) { |
87 QObject *currPreviewPane = |
88 QObject *currPreviewPane = |
88 new CalenPreviewPane(mController.Services()); |
89 new CalenPreviewPane(services); |
89 currPreviewPane->setObjectName(name); |
90 currPreviewPane->setObjectName(name); |
90 return currPreviewPane; |
91 return currPreviewPane; |
91 } else if(name == QString(CALEN_NEXTPREVIEWPANE)) { |
92 } else if(name == QString(CALEN_NEXTPREVIEWPANE)) { |
92 QObject *nextPreviewPane = |
93 QObject *nextPreviewPane = |
93 new CalenPreviewPane(mController.Services()); |
94 new CalenPreviewPane(services); |
94 nextPreviewPane->setObjectName(name); |
95 nextPreviewPane->setObjectName(name); |
95 return nextPreviewPane; |
96 return nextPreviewPane; |
96 } else if (name == QString(CALEN_DAYNAMES_WIDGET)) { |
97 } else if (name == QString(CALEN_DAYNAMES_WIDGET)) { |
97 QObject *calenDayNamesWidget = |
98 QObject *calenDayNamesWidget = |
98 new CalenThickLinesDrawer(CalendarNamespace::CalenDayNameWidget); |
99 new CalenThickLinesDrawer(CalendarNamespace::CalenDayNameWidget); |
101 } else if (name == QString(CALEN_WEEKNUMBERS_WIDGET)) { |
102 } else if (name == QString(CALEN_WEEKNUMBERS_WIDGET)) { |
102 QObject *calenSWeekNumWidget = |
103 QObject *calenSWeekNumWidget = |
103 new CalenThickLinesDrawer(CalendarNamespace::CalenWeekNumWidget); |
104 new CalenThickLinesDrawer(CalendarNamespace::CalenWeekNumWidget); |
104 calenSWeekNumWidget->setObjectName(name); |
105 calenSWeekNumWidget->setObjectName(name); |
105 return calenSWeekNumWidget; |
106 return calenSWeekNumWidget; |
106 } else { |
107 } else if (name == QString(CALEN_PREVREGIONALINFO)) { |
|
108 QObject *calenPrevRegionalLabel = new CalenPluginLabel(services); |
|
109 calenPrevRegionalLabel->setObjectName(name); |
|
110 return calenPrevRegionalLabel; |
|
111 } else if (name == QString(CALEN_CURRREGIONALINFO)) { |
|
112 QObject *calencurrRegionalLabel = new CalenPluginLabel(services); |
|
113 calencurrRegionalLabel->setObjectName(name); |
|
114 return calencurrRegionalLabel; |
|
115 } else if (name == QString(CALEN_NEXTREGIONALINFO)) { |
|
116 QObject *calenNextRegionalLabel = new CalenPluginLabel(services); |
|
117 calenNextRegionalLabel->setObjectName(name); |
|
118 return calenNextRegionalLabel; |
|
119 } else { |
107 return HbDocumentLoader::createObject(type, name); |
120 return HbDocumentLoader::createObject(type, name); |
108 } |
121 } |
109 } |
122 } |
110 |
123 |
111 // End of file --Don't remove this. |
124 // End of file --Don't remove this. |