group { name: "elm/button/base/default";
-<<<<<<< HEAD
-=======
alias: "elm/button/base/popup_button/default";
->>>>>>> remotes/origin/upstream
images {
image: "bt_base1.png" COMP;
image: "bt_base2.png" COMP;
static void
_bt_clicked(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
-<<<<<<< HEAD
- int param = (int)(data);
-=======
int param = (int)(long)(data);
->>>>>>> remotes/origin/upstream
printf("clicked event on Button:%d\n", param);
}
static void
_bt_unpressed(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
-<<<<<<< HEAD
- int param = (int)(data);
-=======
int param = (int)(long)(data);
->>>>>>> remotes/origin/upstream
printf("unpressed event on Button:%d\n", param);
}
ic = elm_icon_add(bx);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
bt = elm_button_add(win);
elm_object_text_set(bt, "Icon no scale");
elm_object_part_content_set(bt, "icon", ic);
bt = elm_button_add(win);
elm_object_text_set(bt, "Disabled Button");
elm_object_part_content_set(bt, "icon", ic);
-<<<<<<< HEAD
- elm_object_disabled_set(bt, 1);
-=======
elm_object_disabled_set(bt, EINA_TRUE);
->>>>>>> remotes/origin/upstream
evas_object_smart_callback_add(bt, "clicked", _bt_clicked, (void *)3);
evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)3);
elm_box_pack_end(bx, bt);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
bt = elm_button_add(win);
elm_object_part_content_set(bt, "icon", ic);
-<<<<<<< HEAD
- elm_object_disabled_set(bt, 1);
-=======
elm_object_disabled_set(bt, EINA_TRUE);
->>>>>>> remotes/origin/upstream
evas_object_smart_callback_add(bt, "clicked", _bt_clicked, (void *)4);
evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)4);
elm_box_pack_end(bx, bt);
evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)5);
elm_box_pack_end(bx, bt);
evas_object_smart_callback_add(bt, "repeated", _bt_repeated, NULL);
-<<<<<<< HEAD
- elm_button_autorepeat_set(bt, 1);
-=======
elm_button_autorepeat_set(bt, EINA_TRUE);
->>>>>>> remotes/origin/upstream
elm_button_autorepeat_initial_timeout_set(bt, 2.0);
elm_button_autorepeat_gap_timeout_set(bt, 0.5);
evas_object_show(bt);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
bt = elm_button_add(win);
elm_object_part_content_set(bt, "icon", ic);
evas_object_smart_callback_add(bt, "clicked", _bt_clicked, (void *)6);
elm_object_access_info_set(bt, "This is some custom text describing this widget");
elm_object_style_set(bt, "anchor");
elm_object_part_content_set(bt, "icon", ic);
-<<<<<<< HEAD
- elm_object_disabled_set(bt, 1);
-=======
elm_object_disabled_set(bt, EINA_TRUE);
->>>>>>> remotes/origin/upstream
evas_object_smart_callback_add(bt, "clicked", _bt_clicked, (void *)9);
evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)9);
elm_box_pack_end(bx, bt);
# include "elementary_config.h"
#endif
#ifndef ELM_LIB_QUICKLAUNCH
-<<<<<<< HEAD
-=======
static Eina_Bool eb;
->>>>>>> remotes/origin/upstream
static void
changed_cb(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
printf("ck2 %p is now %i\n", ck2, elm_check_state_get(ck2));
}
-<<<<<<< HEAD
-=======
static void
state_changed_cb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
printf("State Pointer Value: %d\n", eb);
}
->>>>>>> remotes/origin/upstream
void
test_check(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
ck = elm_check_add(win);
elm_object_text_set(ck, "Icon no scale");
elm_object_part_content_set(ck, "icon", ic);
elm_box_pack_end(bx, ck);
evas_object_show(ck);
-<<<<<<< HEAD
-=======
ck = elm_check_add(win);
elm_object_text_set(ck, "Using State Pointer");
elm_check_state_pointer_set(ck, &eb);
evas_object_show(ck);
evas_object_smart_callback_add(ck, "changed", state_changed_cb, NULL);
->>>>>>> remotes/origin/upstream
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
ck = elm_check_add(win);
elm_object_part_content_set(ck, "icon", ic);
elm_box_pack_end(bx, ck);
#include <Elementary.h>
-<<<<<<< HEAD
-=======
#include "test.h"
->>>>>>> remotes/origin/upstream
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#endif
#ifndef ELM_LIB_QUICKLAUNCH
-<<<<<<< HEAD
-=======
struct _api_data
{
unsigned int state; /* What state we are testing */
if (fp) fclose(fp);
}
->>>>>>> remotes/origin/upstream
static void
_file_chosen(void *data,
Evas_Object *obj __UNUSED__,
printf("Expandable flag set to: %s\n", value ? "false" : "true");
}
-<<<<<<< HEAD
-=======
static void
_cleanup_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
free(data);
}
->>>>>>> remotes/origin/upstream
void
test_fileselector_button(void *data __UNUSED__,
Evas_Object *obj __UNUSED__,
void *event_info __UNUSED__)
{
-<<<<<<< HEAD
- Evas_Object *win, *bg, *vbox, *hbox, *ic, *bt, *fs_bt, *en, *lb;
-=======
Evas_Object *win, *bg, *vbox, *hbox, *ic, *bt, *fs_bt, *en, *lb, *bxx;
api_data *api = calloc(1, sizeof(api_data));
->>>>>>> remotes/origin/upstream
win = elm_win_add(NULL, "fileselector-button", ELM_WIN_BASIC);
elm_win_title_set(win, "File Selector Button");
elm_win_autodel_set(win, EINA_TRUE);
-<<<<<<< HEAD
-=======
evas_object_event_callback_add(win, EVAS_CALLBACK_FREE, _cleanup_cb, api);
->>>>>>> remotes/origin/upstream
bg = elm_bg_add(win);
elm_win_resize_object_add(win, bg);
evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_show(bg);
-<<<<<<< HEAD
- vbox = elm_box_add(win);
- elm_win_resize_object_add(win, vbox);
- evas_object_size_hint_weight_set(vbox, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_show(vbox);
-
-=======
bxx = elm_box_add(win);
elm_win_resize_object_add(win, bxx);
evas_object_size_hint_weight_set(bxx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_box_pack_end(bxx, vbox);
create_dir_struct(); /* Create a dir struct in /tmp */
->>>>>>> remotes/origin/upstream
/* file selector button */
ic = elm_icon_add(win);
elm_icon_standard_set(ic, "file");
fs_bt = elm_fileselector_button_add(win);
elm_object_text_set(fs_bt, "Select a file");
elm_object_part_content_set(fs_bt, "icon", ic);
-<<<<<<< HEAD
-=======
elm_fileselector_button_path_set(fs_bt, "/tmp/test_fs_bt");
->>>>>>> remotes/origin/upstream
elm_box_pack_end(vbox, fs_bt);
evas_object_show(fs_bt);
evas_object_resize(win, 400, 400);
evas_object_show(win);
}
-<<<<<<< HEAD
-
-=======
->>>>>>> remotes/origin/upstream
#endif
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
rd = elm_radio_add(win);
elm_radio_state_value_set(rd, 1);
elm_radio_state_value_set(rd, 3);
elm_radio_group_add(rd, rdg);
elm_object_text_set(rd, "Disabled");
-<<<<<<< HEAD
- elm_object_disabled_set(rd, 1);
-=======
elm_object_disabled_set(rd, EINA_TRUE);
->>>>>>> remotes/origin/upstream
elm_box_pack_end(bx, rd);
evas_object_show(rd);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
rd = elm_radio_add(win);
elm_radio_state_value_set(rd, 4);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
rd = elm_radio_add(win);
elm_radio_state_value_set(rd, 5);
elm_radio_group_add(rd, rdg);
elm_object_part_content_set(rd, "icon", ic);
-<<<<<<< HEAD
- elm_object_disabled_set(rd, 1);
-=======
elm_object_disabled_set(rd, EINA_TRUE);
->>>>>>> remotes/origin/upstream
elm_box_pack_end(bx, rd);
evas_object_show(rd);
evas_object_show(ic);
evas_object_size_hint_align_set(tg, EVAS_HINT_FILL, 0.5);
elm_object_text_set(tg, "Icon sized to toggle");
elm_object_part_content_set(tg, "icon", ic);
-<<<<<<< HEAD
- elm_check_state_set(tg, 1);
-=======
elm_check_state_set(tg, EINA_TRUE);
->>>>>>> remotes/origin/upstream
elm_object_part_text_set(tg, "on", "Yes");
elm_object_part_text_set(tg, "off", "No");
elm_box_pack_end(bx, tg);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
tg = elm_check_add(win);
elm_object_style_set(tg, "toggle");
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
tg = elm_check_add(win);
elm_object_style_set(tg, "toggle");
elm_object_text_set(tg, "Icon no scale");
elm_object_part_content_set(tg, "icon", ic);
-<<<<<<< HEAD
- elm_object_disabled_set(tg, 1);
-=======
elm_object_disabled_set(tg, EINA_TRUE);
->>>>>>> remotes/origin/upstream
elm_box_pack_end(bx, tg);
evas_object_show(tg);
evas_object_show(ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
-<<<<<<< HEAD
- elm_icon_scale_set(ic, 0, 0);
-=======
elm_icon_resizable_set(ic, 0, 0);
->>>>>>> remotes/origin/upstream
tg = elm_check_add(win);
elm_object_style_set(tg, "toggle");
Elm_Params base;
const char *label;
Evas_Object *icon;
-<<<<<<< HEAD
-=======
double autorepeat_initial;
double autorepeat_gap;
Eina_Bool autorepeat:1;
Eina_Bool autorepeat_exists:1;
Eina_Bool autorepeat_gap_exists:1;
Eina_Bool autorepeat_initial_exists:1;
->>>>>>> remotes/origin/upstream
} Elm_Params_Button;
static void
elm_object_text_set(obj, p->label);
if (p->icon)
elm_object_part_content_set(obj, "icon", p->icon);
-<<<<<<< HEAD
-=======
if (p->autorepeat_gap_exists)
elm_button_autorepeat_gap_timeout_set(obj, p->autorepeat_gap);
if (p->autorepeat_initial_exists)
elm_button_autorepeat_initial_timeout_set(obj, p->autorepeat_initial);
if (p->autorepeat_exists)
elm_button_autorepeat_set(obj, p->autorepeat);
->>>>>>> remotes/origin/upstream
}
static Eina_Bool
return EINA_TRUE;
}
}
-<<<<<<< HEAD
-=======
else if (!strcmp(param->name, "autorepeat_initial"))
{
if (param->type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
return EINA_TRUE;
}
}
->>>>>>> remotes/origin/upstream
ERR("unknown parameter '%s' of type '%s'",
param->name, edje_external_param_type_str(param->type));
/* not easy to get icon name back from live object */
return EINA_FALSE;
}
-<<<<<<< HEAD
-=======
else if (!strcmp(param->name, "autorepeat_initial"))
{
if (param->type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
return EINA_TRUE;
}
}
->>>>>>> remotes/origin/upstream
ERR("unknown parameter '%s' of type '%s'",
param->name, edje_external_param_type_str(param->type));
EINA_LIST_FOREACH(params, l, param)
{
-<<<<<<< HEAD
- if (!strcmp(param->name, "label"))
- {
- mem->label = eina_stringshare_add(param->s);
- break;
- }
-=======
if (!strcmp(param->name, "autorepeat_initial"))
{
mem->autorepeat_initial = param->d;
}
else if (!strcmp(param->name, "label"))
mem->label = eina_stringshare_add(param->s);
->>>>>>> remotes/origin/upstream
}
return mem;
DEFINE_EXTERNAL_COMMON_PARAMS,
EDJE_EXTERNAL_PARAM_INFO_STRING("label"),
EDJE_EXTERNAL_PARAM_INFO_STRING("icon"),
-<<<<<<< HEAD
-=======
EDJE_EXTERNAL_PARAM_INFO_DOUBLE("autorepeat_initial"),
EDJE_EXTERNAL_PARAM_INFO_DOUBLE("autorepeat_gap"),
EDJE_EXTERNAL_PARAM_INFO_BOOL("autorepeat"),
->>>>>>> remotes/origin/upstream
EDJE_EXTERNAL_PARAM_INFO_SENTINEL
};
char *ptr;
double t;
App_Data *app = data;
-<<<<<<< HEAD
- const char *lbl = elm_button_label_get(btn);
-=======
const char *lbl = elm_object_text_get(btn);
->>>>>>> remotes/origin/upstream
ptr = strchr(lbl, ':');
ptr += 2;
return obj;
}
-<<<<<<< HEAD
-EAPI void
-elm_fileselector_button_label_set(Evas_Object *obj,
- const char *label)
-{
- _elm_fileselector_button_label_set(obj, NULL, label);
-}
-
-EAPI const char *
-elm_fileselector_button_label_get(const Evas_Object *obj)
-{
- return _elm_fileselector_button_label_get(obj, NULL);
-}
-=======
->>>>>>> remotes/origin/upstream
EAPI void
elm_fileselector_button_window_title_set(Evas_Object *obj,
if (!wd) return EINA_FALSE;
return wd->inwin_mode;
}
-<<<<<<< HEAD
-
-EAPI void
-elm_fileselector_button_icon_set(Evas_Object *obj,
- Evas_Object *icon)
-{
- _content_set_hook(obj, NULL, icon);
-}
-
-EAPI Evas_Object *
-elm_fileselector_button_icon_get(const Evas_Object *obj)
-{
- return _content_get_hook(obj, NULL);
-}
-
-EAPI Evas_Object *
-elm_fileselector_button_icon_unset(Evas_Object *obj)
-{
- return _content_unset_hook(obj, NULL);
-}
-
-=======
->>>>>>> remotes/origin/upstream
*
* This widget encapsulates operations on its internal file
* selector on its own API. There is less control over its file
-<<<<<<< HEAD
- * selector than that one would have instatiating one directly.
-=======
* selector than that one would have instantiating one directly.
->>>>>>> remotes/origin/upstream
*
* The following styles are available for this button:
* @li @c "default"
* are:
* @li "default" - Label of the fileselector_button
*
-<<<<<<< HEAD
- * Default contents parts of the fileselector_button widget that you can use for
-=======
* Default content parts of the fileselector_button widget that you can use for
->>>>>>> remotes/origin/upstream
* are:
* @li "icon" - Icon of the fileselector_button
*
* @param obj The file selector button widget
* @param title The title string
*
-<<<<<<< HEAD
- * This will change the window's title, when the file selector pops
- * out after a click on the button. Those windows have the default
- * (unlocalized) value of @c "Select a file" as titles.
- *
- * @note It will only take any effect if the file selector
-=======
* This will change the popup window's title, when the file selector pops
* out after a click on the button. Those windows have the default
* (unlocalized) value of @c "Select a file" as titles.
*
* @note It will only take effect if the file selector
->>>>>>> remotes/origin/upstream
* button widget is @b not under "inwin mode".
*
* @see elm_fileselector_button_window_title_get()
EAPI void elm_fileselector_button_window_title_set(Evas_Object *obj, const char *title);
/**
-<<<<<<< HEAD
- * Get the title set for a given file selector button widget's
-=======
* Get the title for a given file selector button widget's
->>>>>>> remotes/origin/upstream
* window
*
* @param obj The file selector button widget
}
EAPI void
-<<<<<<< HEAD
-elm_button_label_set(Evas_Object *obj, const char *label)
-{
- _elm_button_label_set(obj, NULL, label);
-}
-
-EAPI const char *
-elm_button_label_get(const Evas_Object *obj)
-{
- return _elm_button_label_get(obj, NULL);
-}
-
-
-EAPI void
-elm_button_icon_set(Evas_Object *obj, Evas_Object *icon)
-{
- _content_set_hook(obj, "icon", icon);
-}
-
-EAPI Evas_Object *
-elm_button_icon_get(const Evas_Object *obj)
-{
- return _content_get_hook(obj, "icon");
-}
-
-EAPI Evas_Object *
-elm_button_icon_unset(Evas_Object *obj)
-{
- return _content_unset_hook(obj, "icon");
-}
-
-EAPI void
-=======
->>>>>>> remotes/origin/upstream
elm_button_autorepeat_set(Evas_Object *obj, Eina_Bool on)
{
ELM_CHECK_WIDTYPE(obj, widtype);
* This is a push-button. Press it and run some function. It can contain
* a simple label and icon object and it also has an autorepeat feature.
*
-<<<<<<< HEAD
- * This widgets emits the following signals:
-=======
* This widget emits the following signals:
->>>>>>> remotes/origin/upstream
* @li "clicked": the user clicked the button (press/release).
* @li "repeated": the user pressed the button without releasing it.
* @li "pressed": button was pressed.
* @li "unpressed": button was released after being pressed.
-<<<<<<< HEAD
- * In all three cases, the @c event parameter of the callback will be
-=======
* In all cases, the @c event parameter of the callback will be
->>>>>>> remotes/origin/upstream
* @c NULL.
*
* Also, defined in the default theme, the button has the following styles
* @li hoversel_vertical: Internally used by @ref Hoversel to give a
* continuous look across its options.
* @li hoversel_vertical_entry: Another internal for @ref Hoversel.
-<<<<<<< HEAD
- *
- * Default contents parts of the button widget that you can use for are:
-=======
* @li naviframe: Internally used by @ref Naviframe for its back button.
* @li colorselector: Internally used by @ref Colorselector
* for its left and right buttons.
*
* Default content parts of the button widget that you can use for are:
->>>>>>> remotes/origin/upstream
* @li "icon" - An icon of the button
*
* Default text parts of the button widget that you can use for are:
*
* Sets the timeout, in seconds, since the button is pressed until the
* first @c repeated signal is emitted. If @p t is 0.0 or less, there
-<<<<<<< HEAD
- * won't be any delay and the even will be fired the moment the button is
-=======
* won't be any delay and the event will be fired the moment the button is
->>>>>>> remotes/origin/upstream
* pressed.
*
* @param obj The button object
};
static const char *widtype = NULL;
-<<<<<<< HEAD
-=======
static Eina_Bool _event_hook(Evas_Object *obj, Evas_Object *src,
Evas_Callback_Type type, void *event_info);
->>>>>>> remotes/origin/upstream
static void _del_hook(Evas_Object *obj);
static void _mirrored_set(Evas_Object *obj, Eina_Bool rtl);
static void _theme_hook(Evas_Object *obj);
static void _disable_hook(Evas_Object *obj);
static void _sizing_eval(Evas_Object *obj);
-<<<<<<< HEAD
-static void _changed_size_hints(void *data, Evas *e, Evas_Object *obj, void *event_info);
-static void _sub_del(void *data, Evas_Object *obj, void *event_info);
-static void _signal_check_off(void *data, Evas_Object *obj, const char *emission, const char *source);
-static void _signal_check_on(void *data, Evas_Object *obj, const char *emission, const char *source);
-static void _signal_check_toggle(void *data, Evas_Object *obj, const char *emission, const char *source);
-static void _on_focus_hook(void *data, Evas_Object *obj);
-static void _activate_hook(Evas_Object *obj);
-static void _content_set_hook(Evas_Object *obj, const char *part, Evas_Object *content);
-static Evas_Object *_content_get_hook(const Evas_Object *obj, const char *part);
-static Evas_Object *_content_unset_hook(Evas_Object *obj, const char *part);
-
-static void _activate(Evas_Object *obj);
-static Eina_Bool _event_hook(Evas_Object *obj, Evas_Object *src,
- Evas_Callback_Type type, void *event_info);
-
-=======
static void _changed_size_hints(void *data, Evas *e, Evas_Object *obj,
void *event_info);
static void _sub_del(void *data, Evas_Object *obj, void *event_info);
static Evas_Object *_content_get_hook(const Evas_Object *obj, const char *part);
static Evas_Object *_content_unset_hook(Evas_Object *obj, const char *part);
static void _activate(Evas_Object *obj);
->>>>>>> remotes/origin/upstream
static const char SIG_CHANGED[] = "changed";
static const Evas_Smart_Cb_Description _signals[] = {
{SIG_CHANGED, ""},
};
static Eina_Bool
-<<<<<<< HEAD
-_event_hook(Evas_Object *obj, Evas_Object *src __UNUSED__, Evas_Callback_Type type, void *event_info)
-=======
_event_hook(Evas_Object *obj, Evas_Object *src __UNUSED__,
Evas_Callback_Type type, void *event_info)
->>>>>>> remotes/origin/upstream
{
if (type != EVAS_CALLBACK_KEY_DOWN) return EINA_FALSE;
Evas_Event_Key_Down *ev = event_info;
return EINA_TRUE;
}
-<<<<<<< HEAD
-
-=======
->>>>>>> remotes/origin/upstream
static void
_del_hook(Evas_Object *obj)
{
static void
_theme_hook(Evas_Object *obj)
{
-<<<<<<< HEAD
unsigned int counter = 0;
unsigned int i = 1;
unsigned int length = 0;
char s1[PATH_MAX] = {'\0',};
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
-
-=======
- Widget_Data *wd = elm_widget_data_get(obj);
- if (!wd) return;
->>>>>>> remotes/origin/upstream
_elm_widget_mirrored_reload(obj);
_mirrored_set(obj, elm_widget_mirrored_get(obj));
_elm_theme_object_set(obj, wd->chk, "check", "base", elm_widget_style_get(obj));
edje_object_signal_emit(wd->chk, "elm,state,disabled", "elm");
edje_object_message_signal_process(wd->chk);
edje_object_scale_set(wd->chk, elm_widget_scale_get(obj) * _elm_config->scale);
-<<<<<<< HEAD
-
//introduced internationalization of additional text parts used in style
while (1)
{
strncpy(buffer, str + counter, sizeof(buffer));
edje_object_part_text_set(wd->chk, s1, E_(buffer));
}
-=======
->>>>>>> remotes/origin/upstream
_sizing_eval(obj);
}
}
static void
-<<<<<<< HEAD
-=======
_signal_emit_hook(Evas_Object *obj, const char *emission, const char *source)
{
Widget_Data *wd = elm_widget_data_get(obj);
}
static void
->>>>>>> remotes/origin/upstream
_content_set_hook(Evas_Object *obj, const char *part, Evas_Object *content)
{
ELM_CHECK_WIDTYPE(obj, widtype);
elm_widget_can_focus_set(obj, EINA_TRUE);
elm_widget_activate_hook_set(obj, _activate_hook);
elm_widget_event_hook_set(obj, _event_hook);
-<<<<<<< HEAD
-=======
elm_widget_signal_emit_hook_set(obj, _signal_emit_hook);
elm_widget_signal_callback_add_hook_set(obj, _signal_callback_add_hook);
elm_widget_signal_callback_del_hook_set(obj, _signal_callback_del_hook);
->>>>>>> remotes/origin/upstream
elm_widget_text_set_hook_set(obj, _elm_check_label_set);
elm_widget_text_get_hook_set(obj, _elm_check_label_get);
elm_widget_content_set_hook_set(obj, _content_set_hook);
}
EAPI void
-<<<<<<< HEAD
-elm_check_label_set(Evas_Object *obj, const char *label)
-{
- _elm_check_label_set(obj, NULL, label);
-}
-
-EAPI const char *
-elm_check_label_get(const Evas_Object *obj)
-{
- return _elm_check_label_get(obj, NULL);
-}
-
-EAPI void
-elm_check_states_labels_set(Evas_Object *obj, const char *ontext, const char *offtext)
-{
- _elm_check_label_set(obj, "on", ontext);
- _elm_check_label_set(obj, "off", offtext);
-}
-
-EAPI void
-elm_check_states_labels_get(const Evas_Object *obj, const char **ontext, const char **offtext)
-{
- if (ontext) *ontext = _elm_check_label_get(obj, "on");
- if (offtext) *offtext = _elm_check_label_get(obj, "off");
-}
-
-EAPI void
-elm_check_icon_set(Evas_Object *obj, Evas_Object *icon)
-{
- _content_set_hook(obj, "icon", icon);
-}
-
-EAPI Evas_Object *
-elm_check_icon_get(const Evas_Object *obj)
-{
- return _content_get_hook(obj, "icon");
-}
-
-EAPI Evas_Object *
-elm_check_icon_unset(Evas_Object *obj)
-{
- return _content_unset_hook(obj, "icon");
-}
-
-EAPI void
-=======
->>>>>>> remotes/origin/upstream
elm_check_state_set(Evas_Object *obj, Eina_Bool state)
{
ELM_CHECK_WIDTYPE(obj, widtype);
* for it to modify.
*
* Signals that you can add callbacks for are:
-<<<<<<< HEAD
- * "changed" - This is called whenever the user changes the state of one of
- * the check object(event_info is NULL).
- *
- * Default contents parts of the check widget that you can use for are:
-=======
* "changed" - This is called whenever the user changes the state of the check
* objects(event_info is NULL).
*
* Default content parts of the check widget that you can use for are:
->>>>>>> remotes/origin/upstream
* @li "icon" - An icon of the check
*
* Default text parts of the check widget that you can use for are:
* @li elm_object_part_content_set
* @li elm_object_part_content_get
* @li elm_object_part_content_unset
-<<<<<<< HEAD
-=======
* @li elm_object_signal_emit
* @li elm_object_signal_callback_add
* @li elm_object_signal_callback_del
->>>>>>> remotes/origin/upstream
*
* @ref tutorial_check should give you a firm grasp of how to use this widget.
*
* @param obj The check object
* @param state The state to use (1 == on, 0 == off)
*
-<<<<<<< HEAD
- * This sets the state of the check. If set
- * with elm_check_state_pointer_set() the state of that variable is also
- * changed. Calling this @b doesn't cause the "changed" signal to be emited.
-=======
* This sets the state of the check. If set with elm_check_state_pointer_set()
* the state of that variable is also changed. Calling this @b doesn't cause
* the "changed" signal to be emitted.
->>>>>>> remotes/origin/upstream
*/
EAPI void elm_check_state_set(Evas_Object *obj, Eina_Bool state);
wd->group->valuep = NULL;
}
}
-<<<<<<< HEAD
-=======
EAPI Evas_Object *
elm_radio_selected_object_get(Evas_Object *obj)
}
return NULL;
}
->>>>>>> remotes/origin/upstream
*
* A radio object contains an indicator, an optional Label and an optional
* icon object. While it's possible to have a group of only one radio they,
-<<<<<<< HEAD
- * are normally used in groups of 2 or more. To add a radio to a group use
- * elm_radio_group_add(). The radio object(s) will select from one of a set
-=======
* are normally used in groups of 2 or more.
*
* elm_radio objects are grouped in a slightly different, compared to other
* object.
*
* The radio object(s) will select from one of a set
->>>>>>> remotes/origin/upstream
* of integer values, so any value they are configuring needs to be mapped to
* a set of integers. To configure what value that radio object represents,
* use elm_radio_state_value_set() to set the integer it represents. To set
* Default text parts of the radio widget that you can use for are:
* @li "default" - Label of the radio
*
-<<<<<<< HEAD
- * Default contents parts of the radio widget that you can use for are:
-=======
* Default content parts of the radio widget that you can use for are:
->>>>>>> remotes/origin/upstream
* @li "icon" - An icon of the radio
*
* Supported elm_object common APIs.
EAPI int elm_radio_state_value_get(const Evas_Object *obj);
/**
-<<<<<<< HEAD
- * @brief Set the value of the radio.
- *
- * @param obj The radio object
-=======
* @brief Set the value of the radio group.
*
* @param obj The radio object (any radio object of the group).
->>>>>>> remotes/origin/upstream
* @param value The value to use for the group
*
* This sets the value of the radio group and will also set the value if
EAPI void elm_radio_value_set(Evas_Object *obj, int value);
/**
-<<<<<<< HEAD
- * @brief Get the state of the radio object
- *
- * @param obj The radio object
-=======
* @brief Get the value of the radio group
*
* @param obj The radio object (any radio object of the group).
->>>>>>> remotes/origin/upstream
* @return The integer state
*/
EAPI int elm_radio_value_get(const Evas_Object *obj);
/**
-<<<<<<< HEAD
- * @brief Set a convenience pointer to a integer to change
- *
- * @param obj The radio object
-=======
* @brief Set a convenience pointer to a integer to change when radio group
* value changes.
*
* @param obj The radio object (any object of a group)
->>>>>>> remotes/origin/upstream
* @param valuep Pointer to the integer to modify
*
* This sets a pointer to a integer, that, in addition to the radio objects
EAPI void elm_radio_value_pointer_set(Evas_Object *obj, int *valuep);
/**
-<<<<<<< HEAD
-=======
* @brief Get the selected radio object.
*
* @param obj Any radio object (any object of a group)
EAPI Evas_Object *elm_radio_selected_object_get(Evas_Object *obj);
/**
->>>>>>> remotes/origin/upstream
* @}
*/