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 |
*
|
|
14 |
* Description: CalenDay commons.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef CALENDAYCOMMONHEADERS_H_
|
|
19 |
#define CALENDAYCOMMONHEADERS_H_
|
|
20 |
|
|
21 |
// Constants
|
|
22 |
|
|
23 |
/*!
|
|
24 |
Default timeout for scrolling between days [ms]
|
|
25 |
*/
|
|
26 |
const int KCalenScrollDaysTimeout = 600;
|
|
27 |
|
|
28 |
/*!
|
|
29 |
Value [%] defines how long (depending on content area width) should horizontal
|
|
30 |
pan gesture be to change day to previous/next.
|
|
31 |
If the gesture is shorter - current view is not changed.
|
|
32 |
*/
|
|
33 |
const int KCalenHScrollMoveParam = 30; //!< Percentage
|
|
34 |
|
|
35 |
/*!
|
|
36 |
Value [degree] defines the max. angle of swipe gesture which should change day.
|
|
37 |
*/
|
|
38 |
const qreal KCalenSwipeAngle = 30;
|
|
39 |
|
|
40 |
|
|
41 |
// 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 |
|
|
54 |
/*!
|
|
55 |
\enum CalenScrollDirection
|
|
56 |
\brief Enumeration identifies horizontal scroll directions of scroll area.
|
|
57 |
|
|
58 |
ECalenScrollNoDayChange means that move does not change the current day.
|
|
59 |
*/
|
|
60 |
enum CalenScrollDirection
|
|
61 |
{
|
|
62 |
ECalenScrollNoDayChange = 0,
|
|
63 |
ECalenScrollToNext,
|
|
64 |
ECalenScrollToPrev
|
|
65 |
};
|
|
66 |
|
|
67 |
#endif /* CALENDAYCOMMONHEADERS_H_ */
|