2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0/
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FUiCtrl_DateTimeDefine.h
20 * @brief This is the header file for DateTimePicker defines.
22 * This header file contains the declarations of the %_DateTime picker define type
25 #ifndef _FUI_CTRL_INTERNAL_DATETIME_DEFINE_H_
26 #define _FUI_CTRL_INTERNAL_DATETIME_DEFINE_H_
28 namespace Tizen { namespace Ui { namespace Controls
30 const int DATETIME_YEAR_MAX = 9999;
31 const int DATETIME_YEAR_MIN = 1;
33 const int DATETIME_MONTH_MAX = 12;
34 const int DATETIME_MONTH_MIN = 1;
36 const int DATETIME_DAY_MAX = 31;
37 const int DATETIME_DAY_MIN = 1;
39 const int DATETIME_HOUR_MAX = 23;
40 const int DATETIME_HOUR_MIN = 0;
42 const int DATETIME_MINUTE_MAX = 59;
43 const int DATETIME_MINUTE_MIN = 0;
45 const int DATETIME_SECOND_MAX = 59;
46 const int DATETIME_SECOND_MIN = 0;
48 const int DATETIME_HOUR_MAX_FOR_24NOTATION = 12;
50 const int DATETIME_FOUR_DIGIT_MAX = 9999;
51 const int DATETIME_THREE_DIGIT_MAX = 999;
52 const int DATETIME_TWO_DIGIT_MAX = 99;
53 const int DATETIME_ONE_DIGIT_MAX = 9;
55 const int DATE_TIME_CHANGE_FOCUS_COUNTER_MIN = 0;
56 const int DATE_TIME_CHANGE_FOCUS_COUNTER_MAX = 4;
60 DATETIME_INPUT_BEGIN = 1,
61 DATETIME_INPUT_END = 2
64 enum _DateTimeOutputStyle
66 DATETIME_OUTPUT_STYLE_INVALID = 0x0, /**< Invalid Style, for error check */
67 DATETIME_OUTPUT_STYLE_DATE = 0x1, /**< DatePicker Style */
68 DATETIME_OUTPUT_STYLE_TIME = 0x2, /**< TimePicker Style */
69 DATETIME_OUTPUT_STYLE_DATETIME = 0x3 /**< DateTimePicker Style */
74 DATETIME_AREA_NONE = 10,
75 DATETIME_AREA_OUTPUT = 20,
76 DATETIME_AREA_OUTPUT_AMPM = 30,
77 DATETIME_AREA_FOOTER = 40,
78 DATETIME_AREA_INPUT = 50
83 DATETIME_EVENT_ID_SAVE = 0,
84 DATETIME_EVENT_ID_CANCEL
87 enum _DateTimeHeaderId
89 DATETIME_HEADER_NONE = -1,
90 DATETIME_HEADER_ID = 0,
91 DATETIME_HEADER_ID_MAX
95 * @enum DateChangeStatus
96 * Defines constants used to identify date&time change status.
98 enum _DateTimeChangeStatus
100 DATE_INTERNAL_CHANGE_SAVED,
101 DATE_INTERNAL_CHANGE_CANCELED,
102 DATETIME_INTERNAL_CHANGE_SAVED,
103 DATETIME_INTERNAL_CHANGE_CANCELED,
104 TIME_INTERNAL_CHANGE_SAVED,
105 TIME_INTERNAL_CHANGE_CANCELED
110 DATETIME_ID_NONE = -1,
111 DATETIME_ID_YEAR = 0,
117 DATETIME_ID_AMPM = 99
120 enum DateTimePickerStatus
122 DATETIME_STATUS_NORMAL = 0,
123 DATETIME_STATUS_PRESSED,
124 DATETIME_STATUS_HIGHLIGHTED,
125 DATETIME_STATUS_DISABLED,
129 enum _DateTimeBarItemStatus
131 DATETIMEBAR_ITEM_STATUS_NORMAL = 0,
132 DATETIMEBAR_ITEM_STATUS_SELECTED,
133 DATETIMEBAR_ITEM_STATUS_MAX
136 enum _DateTimeBarAlignment
138 DATETIME_BAR_ALIGN_DOWN = 0,
139 DATETIME_BAR_ALIGN_UP
142 enum _DateDisplayBoxId
144 DATE_DISPLAY_BOX_LEFT = 0,
145 DATE_DISPLAY_BOX_CENTER,
146 DATE_DISPLAY_BOX_RIGHT,
152 INPUTPAD_STYLE_NORMAL = 0,
153 INPUTPAD_STYLE_ALPHA,
159 DATE_FORMAT_DDMMYYYY = 0,
160 DATE_FORMAT_MMDDYYYY,
161 DATE_FORMAT_YYYYMMDD,
164 }}} // Tizen::Ui::Controls
166 #endif // _FUI_CTRL_INTERNAL_DATETIME_DEFINE_H_