calendarui/views/dayview/inc/calendaycommonheaders.h
changeset 57 bb2d3e476f29
parent 45 b6db4fd4947b
child 63 a3cb48f6c889
child 68 a5a1242fd2e8
--- a/calendarui/views/dayview/inc/calendaycommonheaders.h	Mon Jul 26 13:54:38 2010 +0530
+++ b/calendarui/views/dayview/inc/calendaycommonheaders.h	Mon Aug 09 18:30:52 2010 +0530
@@ -11,47 +11,92 @@
 *
 * Contributors:
 *
-* Description:  CalenDay commons.
+* Description:  CalenDay commons. All UI specified constants and enums shared
+*               beetwen many files should be moved here.
 *
 */
 
 #ifndef CALENDAYCOMMONHEADERS_H_
 #define CALENDAYCOMMONHEADERS_H_
 
-// Constants
+// Constants defined by UI spec.
+
+/*!
+ Number of hours in day (UI spec)
+ */
+const int KCalenHoursInDay = 24;
+
+/*!
+ Number of time slots in hour (half of hour is defined as time slot) (UI spec)
+ */
+const int KCalenSlotsInHour = 2;
 
 /*!
- Default timeout for scrolling between days [ms]
+ Content area (1/4 of screen) dedicated for All day events in Day View (UI spec)
+ */
+const qreal KCalenAllDayEventArea = 0.25;
+
+/*!
+ The width [un] of empty right column in Day View (UI spec)
  */
-const int KCalenScrollDaysTimeout = 600;
+const qreal KCalenEmptyRightColumnWidth = 6.0;
+
+/*!
+ The minimum width [un] of touchable event bubble (UI spec)
+ */
+const qreal KCalenMinTouchableEventWidth = 8.2;
+
+/*!
+ The minimum width [un] of event bubble (UI spec)
+ */
+const qreal KCalenMinBubbleWidth = 3.0;
 
 /*!
- Value [%] defines how long (depending on content area width) should horizontal
- pan gesture be to change day to previous/next.
- If the gesture is shorter - current view is not changed.
+ The width [un] of time strip (indicator) in event bubble (UI spec)
+ */
+const qreal KCalenTimeStripWidth = 1.5;
+
+/*!
+ The width [un] of space beetwen event buubles in Day View (UI spec)
  */
-const int KCalenHScrollMoveParam = 30;  //!< Percentage
+const qreal KCalenSpaceBeetwenEvents = 1.5;
+
+/*!
+ Number of All day events displayed in single day that remains touchable 
+ in portrait orientation (UI spec)
+ */
+const int KCalenTouchableAllDayEventsCountPortrait = 1;
 
 /*!
- Value [degree] defines the max. angle of swipe gesture which should change day.
+ Number of All day events displayed in single day that remains touchable 
+ in landscape orientation (UI spec)
+ */
+const int KCalenTouchableAllDayEventsCountLandscape = 2;
+
+/*!
+ Thickness [un] of hour line (UI spec)
  */
-const qreal KCalenSwipeAngle = 30;
+const qreal KCalenHourLineThickness = 0.15;
+
+/*!
+ Thickness [un] of time line (UI spec)
+ */
+const qreal KCalenTimeLineThickness = 0.75;
+
+/*!
+ Color scheme for hour line (UI spec)
+ */
+const QString KCalenHourLineColor = "qtc_cal_day_hour_lines";
+
+/*!
+ Color scheme for current time line (UI spec)
+ */
+const QString KCalenTimeLineColor = "qtc_cal_month_current_day";
 
 
 // Enumerations
 
 /*!
- \enum CalenPanDirection
- \brief Enumeration identifies pan gesture directions.
- */
-enum CalenPanDirection
-{
-    ECalenPanNotSet = 0,
-    ECalenPanVertical,
-    ECalenPanHorizontal
-};
-
-/*!
  \enum CalenScrollDirection
  \brief Enumeration identifies horizontal scroll directions of scroll area.