|
1 /* |
|
2 * Copyright (c) 2010 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: CalenDay commons. All UI specified constants and enums shared |
|
15 * beetwen many files should be moved here. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef CALENDAYCOMMONHEADERS_H_ |
|
20 #define CALENDAYCOMMONHEADERS_H_ |
|
21 |
|
22 // Constants defined by UI spec. |
|
23 |
|
24 /*! |
|
25 Number of hours in day (UI spec) |
|
26 */ |
|
27 const int KCalenHoursInDay = 24; |
|
28 |
|
29 /*! |
|
30 Number of time slots in hour (half of hour is defined as time slot) (UI spec) |
|
31 */ |
|
32 const int KCalenSlotsInHour = 2; |
|
33 |
|
34 /*! |
|
35 Content area (1/4 of screen) dedicated for All day events in Day View (UI spec) |
|
36 */ |
|
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.0; |
|
48 |
|
49 /*! |
|
50 The minimum width [un] of event bubble (UI spec) |
|
51 */ |
|
52 const qreal KCalenMinEventWidth = 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 minimum width [un] of time strip (indicator) in event bubble (UI spec) |
|
61 */ |
|
62 const qreal KCalenMinTimeStripWidth = 1.4; |
|
63 |
|
64 /*! |
|
65 The width [un] of space beetwen event bubbles in Day View (UI spec) |
|
66 */ |
|
67 const qreal KCalenSpaceBeetwenEvents = 1.5; |
|
68 |
|
69 /*! |
|
70 The minimum width [un] of space beetwen event bubbles in Day View (UI spec) |
|
71 */ |
|
72 const qreal KCalenMinSpaceBeetwenEvents = 0.1; |
|
73 |
|
74 /*! |
|
75 Number of All day events displayed in single day that remains touchable |
|
76 in portrait orientation (UI spec) |
|
77 */ |
|
78 const int KCalenTouchableAllDayEventsCountPortrait = 1; |
|
79 |
|
80 /*! |
|
81 Number of All day events displayed in single day that remains touchable |
|
82 in landscape orientation (UI spec) |
|
83 */ |
|
84 const int KCalenTouchableAllDayEventsCountLandscape = 2; |
|
85 |
|
86 /*! |
|
87 Thickness [un] of hour line (UI spec) |
|
88 */ |
|
89 const qreal KCalenHourLineThickness = 0.15; |
|
90 |
|
91 /*! |
|
92 Thickness [un] of current time line (UI spec) |
|
93 */ |
|
94 const qreal KCalenCurrentTimeLineThickness = 0.75; |
|
95 |
|
96 /*! |
|
97 Width [un] of dashes in half-hour line (UI spec) |
|
98 */ |
|
99 const qreal KCalenHalfHourLineDashWidth = 1.5; |
|
100 |
|
101 /*! |
|
102 Color scheme for hour and half-hour lines (UI spec) |
|
103 */ |
|
104 const QString KCalenHourLineColor = "qtc_cal_day_hour_lines"; |
|
105 |
|
106 /*! |
|
107 Color scheme for current time line (UI spec) |
|
108 */ |
|
109 const QString KCalenTimeLineColor = "qtc_cal_month_current_day"; |
|
110 |
|
111 /*! |
|
112 Color scheme for Day View background in portrait mode (UI spec) |
|
113 */ |
|
114 const QString KCalenBackgroundColorPortrait = "qtg_graf_cal_bg_prt"; |
|
115 |
|
116 /*! |
|
117 Color scheme for Day View background in landscape mode (UI spec) |
|
118 */ |
|
119 const QString KCalenBackgroundColorLandscape = "qtg_graf_cal_bg_lsc"; |
|
120 |
|
121 |
|
122 // Enumerations |
|
123 |
|
124 /*! |
|
125 \enum CalenScrollDirection |
|
126 \brief Enumeration identifies horizontal scroll directions of scroll area. |
|
127 |
|
128 ECalenScrollNoDayChange means that move does not change the current day. |
|
129 */ |
|
130 enum CalenScrollDirection |
|
131 { |
|
132 ECalenScrollNoDayChange = 0, |
|
133 ECalenScrollToNext, |
|
134 ECalenScrollToPrev |
|
135 }; |
|
136 |
|
137 #endif /* CALENDAYCOMMONHEADERS_H_ */ |