|
1 /* |
|
2 * Copyright (c) 2004 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: Calendar editor common definitions for resource and c++ files. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __CALENDEFAULTEDITORS_HRH__ |
|
20 #define __CALENDEFAULTEDITORS_HRH__ |
|
21 |
|
22 #include <avkon.hrh> |
|
23 |
|
24 // CONSTANTS |
|
25 |
|
26 #define KToDoMaxEditorLength 160 // Maximum length |
|
27 #define KToDoMaxEditorWidth 20 |
|
28 #define KToDoEditorLines 3 |
|
29 |
|
30 #define KToDoMinSecond 0 |
|
31 #define KToDoMinMinute 0 |
|
32 #define KToDoMinHour 0 |
|
33 #define KToDoMaxSecond 59 |
|
34 #define KToDoMaxMinute 59 |
|
35 #define KToDoMaxHour 23 |
|
36 |
|
37 enum // |
|
38 { |
|
39 // THIS RANGE SHOULD NOT OVERLAP WITH CALENDAR RANGE |
|
40 //always hidden, allows easy adding of items to beginning of menu |
|
41 ECalenCmdFirstMenuItem = 5000, |
|
42 |
|
43 /* Description data commands */ |
|
44 ECalenCmdAddDescription, |
|
45 ECalenCmdAddDescriptionNew, |
|
46 ECalenCmdAddDescriptionExisting, |
|
47 ECalenCmdShowDescription, |
|
48 ECalenCmdRemoveDescription, |
|
49 |
|
50 ECalenCmdCancel, |
|
51 |
|
52 #ifdef RD_CALEN_VIEWERS_LEFT_RIGHT_NAVI |
|
53 /* Viewer cycling commands */ |
|
54 ECalenCmdPrevInstance, |
|
55 ECalenCmdNextInstance, |
|
56 #endif // RD_CALEN_VIEWERS_LEFT_RIGHT_NAVI |
|
57 |
|
58 /* Close the viewer or editor due to command line launch */ |
|
59 ECalenCmdCloseDialog, |
|
60 |
|
61 ECalenLastFreeEditorCommand, |
|
62 |
|
63 ECalenCmdAddPeople, |
|
64 ECalenCmdRemovePeople, |
|
65 ECalenCmdAddAttachment, |
|
66 ECalenCmdRemoveAttachment, |
|
67 ECalenCmdViewAttachmentList |
|
68 }; |
|
69 |
|
70 /* todo related commands */ |
|
71 |
|
72 enum //TTodoPopupMenuCommands |
|
73 { |
|
74 ECalenTodoCmdAdd = ECalenLastFreeEditorCommand, |
|
75 ECalenTodoCmdDelete, |
|
76 ECalenTodoCmdSave, |
|
77 ECalenTodoCmdViewHighlightedItem, |
|
78 ECalenTodoCmdTaskCompleted, |
|
79 ECalenTodoCmdRestoreTask |
|
80 }; |
|
81 |
|
82 |
|
83 enum //TCalenNoteCustomControls |
|
84 { |
|
85 ECalenCtDescriptionField = KAknCtLastControlId + 1 |
|
86 }; |
|
87 |
|
88 enum //TCalenNoteFormConstant |
|
89 { |
|
90 // This is absolute maximum length for text editors. |
|
91 // Actual maximum depends on layout variant. |
|
92 // This value can be used for compile-time size definitions, but |
|
93 // do not use it, when actual maximum is needed (e.g. when extracting text) |
|
94 // Use e.g. MaxTextEditorLength in CalenNoteForm. |
|
95 ECalenAbsoluteMaxTextEditorLength = 160 |
|
96 }; |
|
97 |
|
98 /* Constants */ |
|
99 |
|
100 enum // TCalenMinTime |
|
101 { |
|
102 ECalenMinDay = 0, |
|
103 ECalenMinMonth = 0, |
|
104 ECalenMinYear = 1900, |
|
105 ECalenMinSecond = 0, |
|
106 ECalenMinMinute = 0, |
|
107 ECalenMinHour = 0, |
|
108 ECalenMinAnnivYear = 1900 |
|
109 }; |
|
110 |
|
111 enum // TCalenMaxTime |
|
112 { |
|
113 ECalenMaxDay = 29, |
|
114 ECalenMaxMonth = 11, |
|
115 ECalenMaxYear = 2100, |
|
116 ECalenMaxSecond = 59, |
|
117 ECalenMaxMinute = 59, |
|
118 ECalenMaxHour = 23, |
|
119 ECalenMaxAnnivYear = 2100 // FIXME, could be removed? |
|
120 }; |
|
121 |
|
122 /** |
|
123 * Date representing forever value in Repeat until field. |
|
124 */ |
|
125 enum |
|
126 { |
|
127 ECalenForeverDay = 30, // 31 - 1 |
|
128 ECalenForeverMonth = 11, // 12 - 1 |
|
129 ECalenForeverYear = 2100 // 2100 |
|
130 }; |
|
131 |
|
132 // FIXME: remove ? |
|
133 enum // TTodoNotedId |
|
134 { |
|
135 ETodoNoteWait = 6500 |
|
136 }; |
|
137 |
|
138 enum //TCalenUnifiedEditorItem |
|
139 { |
|
140 ECalenEditorEventType = 20200, |
|
141 ECalenEditorSubject, |
|
142 ECalenEditorAllDayItem, |
|
143 ECalenEditorDueDate, |
|
144 ECalenEditorStartDate, |
|
145 ECalenEditorStartTime, |
|
146 ECalenEditorEndDate, |
|
147 ECalenEditorEndTime, |
|
148 ECalenEditorBirthDayYear, |
|
149 ECalenEditorPlace, |
|
150 ECalenEditorReminder, |
|
151 ECalenEditorReminderTime, |
|
152 ECalenEditorReminderDate, |
|
153 ECalenEditorRepeat, |
|
154 ECalenEditorRepeatUntil, |
|
155 ECalenEditorPriority, |
|
156 ECalenEditorPeople, |
|
157 ECalenEditorDBName, |
|
158 ECalenEditorAttachment, |
|
159 ECalenEditorDescription |
|
160 }; |
|
161 |
|
162 |
|
163 #endif // __CALENDEFAULTEDITORS_HRH__ |
|
164 |
|
165 |
|
166 // End of File |