equal
deleted
inserted
replaced
21 #define CALENMONTHCONT_H |
21 #define CALENMONTHCONT_H |
22 |
22 |
23 // INCLUDES |
23 // INCLUDES |
24 |
24 |
25 #include <eiklbo.h> |
25 #include <eiklbo.h> |
|
26 #include <e32std.h> |
|
27 #include <gestureobserver.h> //MGestureObserver |
|
28 |
26 #include "calencontainer.h" |
29 #include "calencontainer.h" |
27 #include "calenmonthdata.h" // CMonthDataArray is typedef |
30 #include "calenmonthdata.h" // CMonthDataArray is typedef |
28 |
|
29 #include <e32std.h> |
|
30 |
31 |
31 // FORWARD DECLARATIONS |
32 // FORWARD DECLARATIONS |
32 class CAknGrid; |
33 class CAknGrid; |
33 class CAknIconArray; |
34 class CAknIconArray; |
34 class CAknsFrameBackgroundControlContext; |
35 class CAknsFrameBackgroundControlContext; |
37 class CCalenMonthView; |
38 class CCalenMonthView; |
38 class CEikLabel; |
39 class CEikLabel; |
39 class TAknLayoutRect; |
40 class TAknLayoutRect; |
40 class CCalenPreview; |
41 class CCalenPreview; |
41 |
42 |
|
43 namespace GestureHelper |
|
44 { |
|
45 class CGestureHelper; |
|
46 } |
42 |
47 |
43 // CLASS DEFINITIONS |
48 // CLASS DEFINITIONS |
44 |
49 |
45 /** |
50 /** |
46 * Month View container control |
51 * Month View container control |
47 */ |
52 */ |
48 |
53 |
49 NONSHARABLE_CLASS( CCalenMonthContainer ) : public CCalenContainer, |
54 NONSHARABLE_CLASS( CCalenMonthContainer ) : public CCalenContainer, |
50 public MEikListBoxObserver |
55 public MEikListBoxObserver, |
|
56 public GestureHelper::MGestureObserver |
51 { |
57 { |
52 public: // Constructors and destructor |
58 public: // Constructors and destructor |
53 /** |
59 /** |
54 * C++ constructor. |
60 * C++ constructor. |
55 */ |
61 */ |
122 */ |
128 */ |
123 void HandleNaviDecoratorEventL(TInt aDirection); |
129 void HandleNaviDecoratorEventL(TInt aDirection); |
124 |
130 |
125 void HandleLongTapEventL( const TPoint& aPenEventLocation, |
131 void HandleLongTapEventL( const TPoint& aPenEventLocation, |
126 const TPoint& aPenEventScreenLocation ); |
132 const TPoint& aPenEventScreenLocation ); |
|
133 |
|
134 /**From MGestureObserver |
|
135 * Handle the gesture event |
|
136 * @param aEvent event describing the gesture |
|
137 */ |
|
138 virtual void HandleGestureL( const GestureHelper::MGestureEvent& aEvent ); |
|
139 |
127 void HidePopup(); |
140 void HidePopup(); |
128 |
141 |
129 void RedrawPreviewPane(); |
142 void RedrawPreviewPane(); |
130 |
143 |
131 /** |
144 /** |
369 // View specific data, references to views data |
382 // View specific data, references to views data |
370 TTime& iDate; |
383 TTime& iDate; |
371 TTime iOldFirstDayOfGrid; |
384 TTime iOldFirstDayOfGrid; |
372 TBool iChangeMonth; |
385 TBool iChangeMonth; |
373 TBool iChangeDay; |
386 TBool iChangeDay; |
|
387 |
|
388 // Own: Gesture helper |
|
389 GestureHelper::CGestureHelper* iGestureControl; |
|
390 // Own: this variable indicates that gesture event was handled. |
|
391 TBool iGestureHandled; |
374 }; |
392 }; |
375 |
393 |
376 #endif //CALENMONTHCONT_H |
394 #endif //CALENMONTHCONT_H |
377 |
395 |
378 // End of File |
396 // End of File |