9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: CalenDay commons. |
14 * Description: CalenDay commons. All UI specified constants and enums shared |
|
15 * beetwen many files should be moved here. |
15 * |
16 * |
16 */ |
17 */ |
17 |
18 |
18 #ifndef CALENDAYCOMMONHEADERS_H_ |
19 #ifndef CALENDAYCOMMONHEADERS_H_ |
19 #define CALENDAYCOMMONHEADERS_H_ |
20 #define CALENDAYCOMMONHEADERS_H_ |
20 |
21 |
21 // Constants |
22 // Constants defined by UI spec. |
22 |
23 |
23 /*! |
24 /*! |
24 Default timeout for scrolling between days [ms] |
25 Number of hours in day (UI spec) |
25 */ |
26 */ |
26 const int KCalenScrollDaysTimeout = 600; |
27 const int KCalenHoursInDay = 24; |
27 |
28 |
28 /*! |
29 /*! |
29 Value [%] defines how long (depending on content area width) should horizontal |
30 Number of time slots in hour (half of hour is defined as time slot) (UI spec) |
30 pan gesture be to change day to previous/next. |
|
31 If the gesture is shorter - current view is not changed. |
|
32 */ |
31 */ |
33 const int KCalenHScrollMoveParam = 30; //!< Percentage |
32 const int KCalenSlotsInHour = 2; |
34 |
33 |
35 /*! |
34 /*! |
36 Value [degree] defines the max. angle of swipe gesture which should change day. |
35 Content area (1/4 of screen) dedicated for All day events in Day View (UI spec) |
37 */ |
36 */ |
38 const qreal KCalenSwipeAngle = 30; |
37 const qreal KCalenAllDayEventArea = 0.25; |
|
38 |
|
39 /*! |
|
40 The width [un] of empty right column in Day View (UI spec) |
|
41 */ |
|
42 const qreal KCalenEmptyRightColumnWidth = 6.0; |
|
43 |
|
44 /*! |
|
45 The minimum width [un] of touchable event bubble (UI spec) |
|
46 */ |
|
47 const qreal KCalenMinTouchableEventWidth = 8.2; |
|
48 |
|
49 /*! |
|
50 The minimum width [un] of event bubble (UI spec) |
|
51 */ |
|
52 const qreal KCalenMinBubbleWidth = 3.0; |
|
53 |
|
54 /*! |
|
55 The width [un] of time strip (indicator) in event bubble (UI spec) |
|
56 */ |
|
57 const qreal KCalenTimeStripWidth = 1.5; |
|
58 |
|
59 /*! |
|
60 The width [un] of space beetwen event buubles in Day View (UI spec) |
|
61 */ |
|
62 const qreal KCalenSpaceBeetwenEvents = 1.5; |
|
63 |
|
64 /*! |
|
65 Number of All day events displayed in single day that remains touchable |
|
66 in portrait orientation (UI spec) |
|
67 */ |
|
68 const int KCalenTouchableAllDayEventsCountPortrait = 1; |
|
69 |
|
70 /*! |
|
71 Number of All day events displayed in single day that remains touchable |
|
72 in landscape orientation (UI spec) |
|
73 */ |
|
74 const int KCalenTouchableAllDayEventsCountLandscape = 2; |
|
75 |
|
76 /*! |
|
77 Thickness [un] of hour line (UI spec) |
|
78 */ |
|
79 const qreal KCalenHourLineThickness = 0.15; |
|
80 |
|
81 /*! |
|
82 Thickness [un] of time line (UI spec) |
|
83 */ |
|
84 const qreal KCalenTimeLineThickness = 0.75; |
|
85 |
|
86 /*! |
|
87 Color scheme for hour line (UI spec) |
|
88 */ |
|
89 const QString KCalenHourLineColor = "qtc_cal_day_hour_lines"; |
|
90 |
|
91 /*! |
|
92 Color scheme for current time line (UI spec) |
|
93 */ |
|
94 const QString KCalenTimeLineColor = "qtc_cal_month_current_day"; |
39 |
95 |
40 |
96 |
41 // Enumerations |
97 // Enumerations |
42 |
|
43 /*! |
|
44 \enum CalenPanDirection |
|
45 \brief Enumeration identifies pan gesture directions. |
|
46 */ |
|
47 enum CalenPanDirection |
|
48 { |
|
49 ECalenPanNotSet = 0, |
|
50 ECalenPanVertical, |
|
51 ECalenPanHorizontal |
|
52 }; |
|
53 |
98 |
54 /*! |
99 /*! |
55 \enum CalenScrollDirection |
100 \enum CalenScrollDirection |
56 \brief Enumeration identifies horizontal scroll directions of scroll area. |
101 \brief Enumeration identifies horizontal scroll directions of scroll area. |
57 |
102 |