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