int year_min, year_max, spin_speed;
int today_it, selected_it, first_day_it;
Ecore_Timer *spin, *update_timer;
+<<<<<<< HEAD
+ char * (*format_func) (struct tm *selected_time);
+=======
Elm_Calendar_Format_Cb format_func;
+>>>>>>> remotes/origin/upstream
const char *weekdays[7];
struct tm current_time, selected_time;
Day_Color day_color[42]; // EINA_DEPRECATED
Eina_List *node;
struct tm mark_time;
const char *mark_type;
+<<<<<<< HEAD
+ Elm_Calendar_Mark_Repeat repeat;
+=======
Elm_Calendar_Mark_Repeat_Type repeat;
+>>>>>>> remotes/origin/upstream
};
static const char *widtype = NULL;
};
static Elm_Calendar_Mark *
+<<<<<<< HEAD
+_mark_new(Evas_Object *obj, const char *mark_type, struct tm *mark_time, Elm_Calendar_Mark_Repeat repeat)
+=======
_mark_new(Evas_Object *obj, const char *mark_type, struct tm *mark_time, Elm_Calendar_Mark_Repeat_Type repeat)
+>>>>>>> remotes/origin/upstream
{
Widget_Data *wd = elm_widget_data_get(obj);
Elm_Calendar_Mark *mark;
edje_object_signal_emit(wd->calendar, emission, "elm");
}
+<<<<<<< HEAD
+// EINA_DEPRECATED
+static void
+_text_day_color_set(Widget_Data *wd, Day_Color col, int pos)
+{
+ if ((pos < 0) || (pos >= 42)) return;
+ if (wd->day_color[pos] == col) return;
+ wd->day_color[pos] = col;
+ _text_day_color_update(wd, pos);
+}
+
+=======
+>>>>>>> remotes/origin/upstream
static void
_set_month_year(Widget_Data *wd)
{
static void
_populate(Evas_Object *obj)
{
+<<<<<<< HEAD
+ int maxdays, day, mon, year, i;
+=======
int maxdays, day, mon, yr, i;
+>>>>>>> remotes/origin/upstream
Elm_Calendar_Mark *mark;
char part[12], day_s[3];
struct tm first_day;
maxdays = _maxdays_get(&wd->selected_time);
mon = wd->selected_time.tm_mon;
+<<<<<<< HEAD
+ year = wd->selected_time.tm_year;
+=======
yr = wd->selected_time.tm_year;
+>>>>>>> remotes/origin/upstream
_set_month_year(wd);
if ((day == wd->current_time.tm_mday)
&& (mon == wd->current_time.tm_mon)
+<<<<<<< HEAD
+ && (year == wd->current_time.tm_year))
+=======
&& (yr == wd->current_time.tm_year))
+>>>>>>> remotes/origin/upstream
_today(wd, i);
if (day == wd->selected_time.tm_mday)
Widget_Data *wd;
int i, t;
Evas *e;
+<<<<<<< HEAD
+ struct tm weekday_time;
+=======
+>>>>>>> remotes/origin/upstream
ELM_WIDGET_STANDARD_SETUP(wd, Widget_Data, parent, e, obj, NULL);
* just make it larger. :| */
char buf[20];
/* I don't know of a better way of doing it */
+<<<<<<< HEAD
+ gmtime_r(&weekday, &weekday_time);
+ if (strftime(buf, sizeof(buf), "%a", &weekday_time))
+=======
if (strftime(buf, sizeof(buf), "%a", gmtime(&weekday)))
+>>>>>>> remotes/origin/upstream
{
wd->weekdays[i] = eina_stringshare_add(buf);
}
if (max) *max = wd->year_max + 1900;
}
+<<<<<<< HEAD
+EAPI void
+elm_calendar_day_selection_enabled_set(Evas_Object *obj, Eina_Bool enabled)
+{
+ ELM_CHECK_WIDTYPE(obj, widtype);
+ Widget_Data *wd = elm_widget_data_get(obj);
+ if (!wd) return;
+ wd->selection_enabled = enabled;
+ if (enabled)
+=======
EINA_DEPRECATED EAPI void
elm_calendar_day_selection_enabled_set(Evas_Object *obj, Eina_Bool enabled)
{
if (!wd) return;
wd->selection_enabled = (!disabled);
if (!disabled)
+>>>>>>> remotes/origin/upstream
_select(wd, wd->selected_it);
else
_unselect(wd, wd->selected_it);
}
+<<<<<<< HEAD
+EAPI Eina_Bool
+elm_calendar_day_selection_enabled_get(const Evas_Object *obj)
+{
+ ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE;
+ Widget_Data *wd = elm_widget_data_get(obj);
+ if (!wd) return EINA_FALSE;
+ return wd->selection_enabled;
+=======
EINA_DEPRECATED EAPI Eina_Bool
elm_calendar_day_selection_enabled_get(const Evas_Object *obj)
{
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return EINA_FALSE;
return (!wd->selection_enabled);
+>>>>>>> remotes/origin/upstream
}
EAPI void
}
EAPI void
+<<<<<<< HEAD
+elm_calendar_format_function_set(Evas_Object *obj, char * (*format_function) (struct tm *selected_time))
+=======
elm_calendar_format_function_set(Evas_Object *obj, Elm_Calendar_Format_Cb format_function)
+>>>>>>> remotes/origin/upstream
{
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
}
EAPI Elm_Calendar_Mark *
+<<<<<<< HEAD
+elm_calendar_mark_add(Evas_Object *obj, const char *mark_type, struct tm *mark_time, Elm_Calendar_Mark_Repeat repeat)
+=======
elm_calendar_mark_add(Evas_Object *obj, const char *mark_type, struct tm *mark_time, Elm_Calendar_Mark_Repeat_Type repeat)
+>>>>>>> remotes/origin/upstream
{
ELM_CHECK_WIDTYPE(obj, widtype) NULL;
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
_populate(obj);
}
+<<<<<<< HEAD
+
+EINA_DEPRECATED EAPI void
+elm_calendar_text_saturday_color_set(Evas_Object *obj, int pos)
+{
+ ELM_CHECK_WIDTYPE(obj, widtype);
+ Widget_Data *wd = elm_widget_data_get(obj);
+ if (!wd) return;
+ _text_day_color_set(wd, DAY_SATURDAY, pos);
+}
+
+EINA_DEPRECATED EAPI void
+elm_calendar_text_sunday_color_set(Evas_Object *obj, int pos)
+{
+ ELM_CHECK_WIDTYPE(obj, widtype);
+ Widget_Data *wd = elm_widget_data_get(obj);
+ if (!wd) return;
+ _text_day_color_set(wd, DAY_SUNDAY, pos);
+}
+
+EINA_DEPRECATED EAPI void
+elm_calendar_text_weekday_color_set(Evas_Object *obj, int pos)
+{
+ ELM_CHECK_WIDTYPE(obj, widtype);
+ Widget_Data *wd = elm_widget_data_get(obj);
+ if (!wd) return;
+ _text_day_color_set(wd, DAY_WEEKDAY, pos);
+}
+=======
+>>>>>>> remotes/origin/upstream