|
1 /* |
|
2 * Copyright (c) 2008-2009 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: Header file for Calendar application's common includes. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CALENCOMMON_H |
|
20 #define CALENCOMMON_H |
|
21 |
|
22 #define CALEN_DAYVIEW_XML_FILE ":/xml/calendayview.docml" |
|
23 #define CALEN_DAYVIEW "dayView" |
|
24 #define CALEN_DAYVIEW_WIDGET "dayViewWidget" |
|
25 #define CALEN_DAYVIEW_LISTWIDGET "eventsList" |
|
26 #define CALEN_DAYVIEW_HEADING "headingWidget" |
|
27 #define CALEN_DAYVIEW_MENU_NEW_EVENT "newEventAction" |
|
28 #define CALEN_DAYVIEW_MENU_GO_TO_TODAY "todayAction" |
|
29 #define CALEN_DAYVIEW_MENU_GO_TO_DATE "goToDateAction" |
|
30 #define CALEN_DAYVIEW_MENU_DELETE "deleteAction" |
|
31 #define CALEN_DAYVIEW_MENU_SETTINGS "settingsAction" |
|
32 #define CALEN_PORTRAIT "portrait" |
|
33 #define CALEN_LANDSCAPE "landscape" |
|
34 #define CALEN_MONTHVIEW_XML_FILE ":/xml/calenmonthview.docml" |
|
35 #define CALEN_MONTHVIEW "monthView" |
|
36 #define CALEN_MONTH_TITLE "monthTitle" |
|
37 #define CALEN_DAYNAMES_WIDGET "dayNamesWidget" |
|
38 #define CALEN_MONTHGRID "monthGrid" |
|
39 #define CALEN_PREVPREVIEWPARENT "prevPaneWidget" |
|
40 #define CALEN_CURRPREVIEWPARENT "currPaneWidget" |
|
41 #define CALEN_NEXTPREVIEWPARENT "nextPaneWidget" |
|
42 #define CALEN_PREVPREVIEWPANE "prevPreviewPane" |
|
43 #define CALEN_CURRPREVIEWPANE "currPreviewPane" |
|
44 #define CALEN_NEXTPREVIEWPANE "nextPreviewPane" |
|
45 #define CALEN_NOENTRIES_LABEL_PREV "NoEntriesLabelPrev" |
|
46 #define CALEN_NOENTRIES_LABEL_CURR "NoEntriesLabelCurr" |
|
47 #define CALEN_NOENTRIES_LABEL_NEXT "NoEntriesLabelNext" |
|
48 #define CALEN_PREVIEWPANE_TITLE "previewPaneTitle" |
|
49 #define CALEN_PREVIEWPANE_LISTWIDGET "listWidget" |
|
50 #define CALEN_WEEKNUMBERS_WIDGET "weekNumbersWidget" |
|
51 #define CALEN_MONTHGRID_WEEKNUMBERS_WIDGET "monthGridWeekNumWidget" |
|
52 #define CALEN_MONTVIEW_DELETE_SUBMENU "deleteSubMenu" |
|
53 #define CALEN_MONTVIEW_MENU_NEWEVENT "NewEventAction" |
|
54 #define CALEN_MONTVIEW_MENU_GOTOTODAY "goToTodayAction" |
|
55 #define CALEN_MONTVIEW_MENU_GOTODATE "goToDateAction" |
|
56 #define CALEN_MONTVIEW_MENU_BEFOREDATE "beforeDateAction" |
|
57 #define CALEN_MONTVIEW_MENU_ALLENTRIES "allEntriesAction" |
|
58 #define CALEN_MONTVIEW_MENU_SETTINGS "settingsAction" |
|
59 #define CALEN_MONTVIEW_FIRST_DAY_LABEL "firstDayLabel" |
|
60 #define CALEN_MONTVIEW_SECOND_DAY_LABEL "secondDayLabel" |
|
61 #define CALEN_MONTVIEW_THIRD_DAY_LABEL "thirdDayLabel" |
|
62 #define CALEN_MONTVIEW_FOURTH_DAY_LABEL "fourthDayLabel" |
|
63 #define CALEN_MONTVIEW_FIFTH_DAY_LABEL "fifthDayLabel" |
|
64 #define CALEN_MONTVIEW_SIXTH_DAY_LABEL "sixthDayLabel" |
|
65 #define CALEN_MONTVIEW_SEVENTH_DAY_LABEL "seventhDayLabel" |
|
66 #define CALEN_MONTVIEW_FIRST_WEEK_LABEL "firstWeekLabel" |
|
67 #define CALEN_MONTVIEW_SECOND_WEEK_LABEL "secondWeekLabel" |
|
68 #define CALEN_MONTVIEW_THIRD_WEEK_LABEL "thirdWeekLabel" |
|
69 #define CALEN_MONTVIEW_FOURTH_WEEK_LABEL "fourthWeekLabel" |
|
70 #define CALEN_MONTVIEW_FIFTH_WEEK_LABEL "fifthWeekLabel" |
|
71 #define CALEN_MONTVIEW_SIXTH_WEEK_LABEL "sixthWeekLabel" |
|
72 |
|
73 |
|
74 /*! |
|
75 \class CalendarNamespace |
|
76 |
|
77 This will have all the common enums and declarations needed by the calendar |
|
78 application. |
|
79 */ |
|
80 class CalendarNamespace { |
|
81 |
|
82 public: |
|
83 /*! |
|
84 \enum DataRole |
|
85 */ |
|
86 enum DataRole { |
|
87 CalendarMonthDayRole = Qt::UserRole + 100, |
|
88 CalendarMonthEventRole, |
|
89 CalendarMonthFocusRole, |
|
90 CalendarMonthUnderlineRole, |
|
91 CalendarMonthTextColorRole, |
|
92 CalendarMonthSeventhColumn |
|
93 }; |
|
94 |
|
95 /*! |
|
96 \enum widgetType |
|
97 */ |
|
98 enum WidgetType { |
|
99 CalenDayNameWidget = 0, |
|
100 CalenWeekNumWidget |
|
101 }; |
|
102 }; |
|
103 #endif // CALENCOMMON_H |
|
104 |
|
105 // End of file --Don't remove this. |