17 |
17 |
18 |
18 |
19 #ifndef CALENWEEKCONT_H |
19 #ifndef CALENWEEKCONT_H |
20 #define CALENWEEKCONT_H |
20 #define CALENWEEKCONT_H |
21 |
21 |
22 // INCLUDES |
22 |
23 #include "calencontainer.h" |
|
24 #include "calenweekcallback.h" |
|
25 #include "calenweekdata.h" |
|
26 |
|
27 #include "calenglobaldata.h" |
|
28 #include <calsession.h> |
23 #include <calsession.h> |
29 #include <calenconstants.h> |
24 #include <calenconstants.h> |
30 #include <AknUtils.h> |
25 #include <AknUtils.h> |
31 #include <calcommon.h> // CalCommon::TCalViewFilter |
26 #include <calcommon.h> // CalCommon::TCalViewFilter |
32 #include <caleninstanceid.h> // TCalenInstanceId |
27 #include <caleninstanceid.h> // TCalenInstanceId |
|
28 #include <gestureobserver.h> //MGestureObserver |
|
29 |
|
30 // INCLUDES |
|
31 #include "calencontainer.h" |
|
32 #include "calenweekcallback.h" |
|
33 #include "calenweekdata.h" |
|
34 #include "calenglobaldata.h" |
33 |
35 |
34 // FORWARD DECLARATIONS |
36 // FORWARD DECLARATIONS |
35 class CAknsFrameBackgroundControlContext; |
37 class CAknsFrameBackgroundControlContext; |
36 class CCalenWeekListbox; |
38 class CCalenWeekListbox; |
37 class CCalenWeekView; |
39 class CCalenWeekView; |
41 class TAknWindowLineLayout; |
43 class TAknWindowLineLayout; |
42 class TCalenInstanceId; |
44 class TCalenInstanceId; |
43 class CCalInstanceView; |
45 class CCalInstanceView; |
44 class MCalenPreview; |
46 class MCalenPreview; |
45 |
47 |
|
48 namespace GestureHelper |
|
49 { |
|
50 class CGestureHelper; |
|
51 } |
|
52 |
46 typedef CArrayFixFlat<CCalHourItem*>* CWeekSlotArrayPtr; |
53 typedef CArrayFixFlat<CCalHourItem*>* CWeekSlotArrayPtr; |
47 |
54 |
48 NONSHARABLE_CLASS (CCalHourItem):public CBase |
55 NONSHARABLE_CLASS (CCalHourItem):public CBase |
49 { |
56 { |
50 public: |
57 public: |
77 |
84 |
78 /** |
85 /** |
79 * Container control for Week View. |
86 * Container control for Week View. |
80 */ |
87 */ |
81 NONSHARABLE_CLASS( CCalenWeekContainer ) : public CCalenContainer, |
88 NONSHARABLE_CLASS( CCalenWeekContainer ) : public CCalenContainer, |
82 public MCalenWeekCursorObserver |
89 public MCalenWeekCursorObserver, |
|
90 public GestureHelper::MGestureObserver |
83 { |
91 { |
84 public: |
92 public: |
85 enum TLocaleChangeRedraw |
93 enum TLocaleChangeRedraw |
86 { |
94 { |
87 ERedrawAll, |
95 ERedrawAll, |
106 public: |
114 public: |
107 /** |
115 /** |
108 * Create icon indices |
116 * Create icon indices |
109 */ |
117 */ |
110 void CreateIconIndicesL( RArray<MCalenServices::TCalenIcons>& aIndexArray ); |
118 void CreateIconIndicesL( RArray<MCalenServices::TCalenIcons>& aIndexArray ); |
|
119 |
111 public: // New Function |
120 public: // New Function |
112 /** |
121 /** |
113 * Check with the layoutmanager for any layout chnanges |
122 * Check with the layoutmanager for any layout chnanges |
114 */ |
123 */ |
115 void CheckLayoutAndExtensionL(); |
124 void CheckLayoutAndExtensionL(); |
191 * @param aDirection left or right |
200 * @param aDirection left or right |
192 */ |
201 */ |
193 void HandleNaviDecoratorEventL(TInt aDirection); |
202 void HandleNaviDecoratorEventL(TInt aDirection); |
194 void HandleLongTapEventL( const TPoint& aPenEventLocation, |
203 void HandleLongTapEventL( const TPoint& aPenEventLocation, |
195 const TPoint& aPenEventScreenLocation ); |
204 const TPoint& aPenEventScreenLocation ); |
|
205 |
|
206 /** |
|
207 * Handle the gesture event |
|
208 * @param aEvent event describing the gesture |
|
209 */ |
|
210 virtual void HandleGestureL( const GestureHelper::MGestureEvent& aEvent ); |
196 |
211 |
197 private: // New Function |
212 private: // New Function |
198 TInt HighlightRowFromActiveContextL(TInt aColumn); |
213 TInt HighlightRowFromActiveContextL(TInt aColumn); |
199 |
214 |
200 /** |
215 /** |