Evas_Object* parent = elm_object_parent_widget_get(m_ewkView);
Evas_Object* win = parent;
- if (m_pickerLayout)
- return;
-
- m_pickerLayout = new Input_Picker_Layout(m_ewkView);
-
if (inputValue && strlen(inputValue)) {
char tmpinputValue[30] = {0,};
currentTime->tm_mon = currentTime->tm_mon - 1;
}
+ if (m_pickerLayout) {
+ // Just update the value.
+ elm_datetime_value_set(m_pickerLayout->datePicker, currentTime);
+ return;
+ }
+
+ m_pickerLayout = new Input_Picker_Layout(m_ewkView);
+
while (parent) {
const char* type = elm_object_widget_type_get(parent);
if (type) {
Evas_Object* parent = elm_object_parent_widget_get(m_ewkView);
Evas_Object* win = parent;
- if (m_pickerLayout)
- return;
-
- m_pickerLayout = new Input_Picker_Layout(m_ewkView);
-
if (inputValue && strlen(inputValue)) {
char tmpinputValue[30] = {0,};
currentTime->tm_mday = days;
}
+ if (m_pickerLayout) {
+ // Just update the value.
+ elm_datetime_value_set(m_pickerLayout->datePicker, currentTime);
+ return;
+ }
+
+ m_pickerLayout = new Input_Picker_Layout(m_ewkView);
+
while (parent) {
const char* type = elm_object_widget_type_get(parent);
if (type) {
Evas_Object* parent = elm_object_parent_widget_get(m_ewkView);
Evas_Object* win = parent;
- if (m_pickerLayout)
- return;
-
- m_pickerLayout = new Input_Picker_Layout(m_ewkView);
-
if (inputValue && strlen(inputValue)) {
char tmpinputValue[30] = {0,};
currentTime->tm_min = atoi(dateStr.min);
}
+ if (m_pickerLayout) {
+ // Just update the value.
+ elm_datetime_value_set(m_pickerLayout->timePicker, currentTime);
+ return;
+ }
+
+ m_pickerLayout = new Input_Picker_Layout(m_ewkView);
+
while (parent) {
const char* type = elm_object_widget_type_get(parent);
if (type) {
Evas_Object* parent = elm_object_parent_widget_get(m_ewkView);
Evas_Object* win = parent;
- if (m_pickerLayout)
- return;
-
- m_pickerLayout = new Input_Picker_Layout(m_ewkView);
-
if (inputValue && strlen(inputValue)) {
char tmpInputValue[30] = {0,};
currentTime->tm_mon = currentTime->tm_mon - 1;
}
+ if (m_pickerLayout) {
+ // Just update the value.
+ elm_datetime_value_set(m_pickerLayout->datePicker, currentTime);
+ return;
+ }
+
+ m_pickerLayout = new Input_Picker_Layout(m_ewkView);
+
while (parent) {
const char* type = elm_object_widget_type_get(parent);
if (type) {
Evas_Object* parent = elm_object_parent_widget_get(m_ewkView);
Evas_Object* win = parent;
- if (m_pickerLayout)
- return;
-
- m_pickerLayout = new Input_Picker_Layout(m_ewkView);
-
- m_pickerLayout->datetimeLocal = local;
-
if (inputValue && strlen(inputValue)) {
char tmpInputValue[30] = {0, };
strcpy(dateStr.day, strtok(0, "T"));
strcpy(dateStr.hour, strtok(0, ":"));
- if (m_pickerLayout->datetimeLocal)
+ if (local)
strcpy(dateStr.min, strtok(0, "Z"));
else
strcpy(dateStr.min, strtok(0, ":"));
currentTime->tm_mon = currentTime->tm_mon - 1;
}
+ if (m_pickerLayout) {
+ // Just update the value.
+ m_pickerLayout->datetimeLocal = local;
+
+ elm_datetime_value_set(m_pickerLayout->datePicker, currentTime);
+ elm_datetime_value_set(m_pickerLayout->timePicker, currentTime);
+ return;
+ }
+
+ m_pickerLayout = new Input_Picker_Layout(m_ewkView);
+
+ m_pickerLayout->datetimeLocal = local;
+
while (parent) {
const char* type = elm_object_widget_type_get(parent);
if (type) {