Beispiel #1
0
/**
 * @brief Adds actions for scrolling to actions table
 * @param widget widget that implements EailScrollable interface
 */
static void
eail_scrollable_widget_actions_table_init(EailScrollableWidget *widget)
{
   eail_action_widget_action_append(EAIL_ACTION_WIDGET(widget),
                                    EAIL_STR_SCROLL_UP, NULL,
                                    _action_scroll_up);
   eail_action_widget_action_append(EAIL_ACTION_WIDGET(widget),
                                    EAIL_STR_SCROLL_DOWN, NULL,
                                    _action_scroll_down);
   eail_action_widget_action_append(EAIL_ACTION_WIDGET(widget),
                                    EAIL_STR_SCROLL_LEFT, NULL,
                                    _action_scroll_left);
   eail_action_widget_action_append(EAIL_ACTION_WIDGET(widget),
                                    EAIL_STR_SCROLL_RIGHT, NULL,
                                    _action_scroll_right);
}
Beispiel #2
0
/**
 * @brief Initializer for AtkObjectClass
 *
 * @param obj an AtkObject
 * @param data initialization data
 */
static void
eail_naviframe_initialize(AtkObject *obj, gpointer data)
{
   Evas_Object *nested_widget = NULL;
   EailNaviframe *naviframe_obj = NULL;
   ATK_OBJECT_CLASS(eail_naviframe_parent_class)->initialize(obj, data);

   obj->role = ATK_ROLE_PAGE_TAB_LIST;
   g_return_if_fail(EAIL_IS_WIDGET(obj));

   nested_widget = eail_widget_get_widget(EAIL_WIDGET(obj));
   if (!nested_widget)
     {
        ERR("No evas object inside EailWidget was found");
        return;
     }

   evas_object_smart_callback_add(nested_widget, "transition,finished",
                                _eail_naviframe_handle_page_changed_event, obj);

   eail_naviframe_actions_init(EAIL_ACTION_WIDGET(obj));

   naviframe_obj = EAIL_NAVIFRAME(obj);
   /* storing last numbers of children to be for checking if children-changed
    * signal has to be propagated */
   naviframe_obj->child_count_last = eail_naviframe_n_children_get(obj);
}
Beispiel #3
0
/**
 * @brief Initializer for AtkObjectClass
 *
 * @param obj an AtkObject
 * @param data initialization data
 */
static void
eail_panel_initialize(AtkObject *obj, gpointer data)
{
   ATK_OBJECT_CLASS(eail_panel_parent_class)->initialize(obj, data);
   obj->role = ATK_ROLE_PANEL;

   eail_panel_actions_init(EAIL_ACTION_WIDGET(obj));
}
Beispiel #4
0
/**
 * @brief EailPhotocam initializer
 *
 * @param obj an AtkObject
 * @param data initialization data
 */
static void
eail_photocam_initialize(AtkObject *obj, gpointer data)
{
   ATK_OBJECT_CLASS(eail_photocam_parent_class)->initialize(obj, data);

   obj->role = ATK_ROLE_IMAGE;

   eail_action_widget_action_append(EAIL_ACTION_WIDGET(obj),
                                    EAIL_PHOTOCAM_ACTION_ZOOM_IN,
                                    NULL,
                                    _eail_photocam_action_zoom_in);
   eail_action_widget_action_append(EAIL_ACTION_WIDGET(obj),
                                    EAIL_PHOTOCAM_ACTION_ZOOM_OUT,
                                    NULL,
                                    _eail_photocam_action_zoom_out);
   eail_action_widget_action_append(EAIL_ACTION_WIDGET(obj),
                                    EAIL_PHOTOCAM_ACTION_CLICK,
                                    NULL,
                                    _eail_photocam_action_click);
}
Beispiel #5
0
/**
 * @brief EailCheck object initializiation
 *
 * @param obj EailCheck object
 * @param data user set addtional initailization data
 */
static void
eail_check_initialize(AtkObject *obj, gpointer data)
{
   ATK_OBJECT_CLASS(eail_check_parent_class)->initialize(obj, data);
   obj->role = ATK_ROLE_CHECK_BOX;

   evas_object_smart_callback_add((Evas_Object*) data, "changed",
                                  eail_check_atk_notify_change,
                                  obj);

   eail_check_actions_init(EAIL_ACTION_WIDGET(obj));
}
Beispiel #6
0
/**
 * @brief EailButton object initialization
 *
 * @param obj AtkObject instance
 * @param data user set additional initialization data
 */
static void
eail_button_initialize(AtkObject *obj, gpointer data)
{
   ATK_OBJECT_CLASS(eail_button_parent_class)->initialize(obj, data);
   obj->role = ATK_ROLE_PUSH_BUTTON;

   evas_object_smart_callback_add((Evas_Object*) data, "pressed",
                                  eail_button_atk_notify_press, obj);
   evas_object_smart_callback_add((Evas_Object*) data, "unpressed",
                                  eail_button_atk_notify_release, obj);

   eail_button_actions_init(EAIL_ACTION_WIDGET(obj));
}
Beispiel #7
0
/**
 * @brief EailMultibuttonentry type initializer
 * @param obj an AtkObject
 * @param data initialization data
 */
void
eail_multibuttonentry_initialize(AtkObject *obj, gpointer data)
{
   Evas_Object *nested_widget = NULL;
   ATK_OBJECT_CLASS(eail_multibuttonentry_parent_class)->initialize(obj, data);
   obj->role = ATK_ROLE_ENTRY;

   eail_multibuttonentry_actions_init(EAIL_ACTION_WIDGET(obj));

   nested_widget = eail_widget_get_widget(EAIL_WIDGET(obj));
   if (!nested_widget)
     {
        ERR("No evas object inside EailWidget was found");
        return;
     }

   evas_object_smart_callback_add(nested_widget, "item,added",
                          eail_multibuttonentry_item_handle_added_event, obj);
   evas_object_smart_callback_add(nested_widget, "item,deleted",
                          eail_multibuttonentry_item_handle_removed_event, obj);
}