• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ elm_object_style_set函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中elm_object_style_set函数的典型用法代码示例。如果您正苦于以下问题:C++ elm_object_style_set函数的具体用法?C++ elm_object_style_set怎么用?C++ elm_object_style_set使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了elm_object_style_set函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: viewer_manager_header_create

static int viewer_manager_header_create(Evas_Object* genlist)
{
	__COMMON_FUNC_ENTER__;
	Evas_Object *toggle_btn = NULL;
	manager_object->header_text = g_strdup(sc(PACKAGE, I18N_TYPE_Wi_Fi));

	header_itc_text.item_style = "dialogue/1text.1icon";
	header_itc_text.func.text_get = _gl_header_text_get;
	header_itc_text.func.content_get = _gl_header_content_get;
	header_itc_text.func.state_get = NULL;
	header_itc_text.func.del = _gl_header_del;

	common_utils_add_dialogue_separator(genlist, "dialogue/separator");

	toggle_btn = elm_check_add(genlist);
	elm_object_style_set(toggle_btn, "on&off");
	evas_object_propagate_events_set(toggle_btn, EINA_TRUE);
	elm_check_state_set(toggle_btn, EINA_FALSE);
	evas_object_show(toggle_btn);
	evas_object_ref(toggle_btn);

	assertm_if(NULL != manager_object->item_header, "ERROR!!");
	manager_object->item_header = elm_genlist_item_append(genlist, &header_itc_text, toggle_btn, NULL, ELM_GENLIST_ITEM_NONE, _gl_header_sel_cb, NULL);
	assertm_if(NULL == manager_object->item_header, "NULL!!");

	__COMMON_FUNC_EXIT__;
	return TRUE;
}
开发者ID:tizenorg,项目名称:apps.core.preloaded.ug-wifi-efl,代码行数:28,代码来源:viewer_manager.c


示例2: createPaddingTable

void GenlistItemScenarioSchedule::scenarioDelete(void *data)
{
    if (!scenario) return;

    Evas_Object *table = createPaddingTable(evas, parent, 280, 260);

    Evas_Object *glist = elm_genlist_add(table);
    elm_object_style_set(glist, "calaos");
    elm_genlist_select_mode_set(glist, ELM_OBJECT_SELECT_MODE_ALWAYS);
    evas_object_size_hint_fill_set(glist, EVAS_HINT_FILL, EVAS_HINT_FILL);
    evas_object_size_hint_weight_set(glist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
    evas_object_show(glist);

    string title_label = _("Confirmation<br><small><light_blue>Are you sure you want to delete this scenarios?</light_blue></small>");
    GenlistItemBase *header = new GenlistItemSimpleHeader(evas, glist, title_label);
    header->Append(glist);

    GenlistItemSimple *_item = new GenlistItemSimple(evas, parent, _("Yes, delete the scenario"), true);
    _item->Append(glist, header);
    _item->item_selected.connect(sigc::mem_fun(*this, &GenlistItemScenarioSchedule::deleteScenarioValid));

    _item = new GenlistItemSimple(evas, parent, _("No"), true);
    _item->Append(glist, header);
    _item->item_selected.connect(sigc::bind(sigc::mem_fun(*this, &GenlistItemScenarioSchedule::deleteScenarioCancel), _item));

    elm_table_pack(table, glist, 1, 1, 1, 1);

    elm_naviframe_item_push(pager_popup, NULL, NULL, NULL, table, "calaos");
}
开发者ID:JulienMasson,项目名称:calaos_base,代码行数:29,代码来源:GenlistItemScenarioSchedule.cpp


示例3: elm_check_add

static Evas_Object *_gl_bottom_content_get(void *data, Evas_Object *obj, const char *part)
{
	__COMMON_FUNC_ENTER__;

	if (manager_object == NULL || obj == NULL)
		return NULL;

	int ret = -1;
	
	Evas_Object *toggle_btn = elm_check_add(obj);
	assertm_if(NULL == toggle_btn, "NULL!!");
	elm_object_style_set(toggle_btn, "on&off");
	evas_object_propagate_events_set(toggle_btn, EINA_TRUE);
	ret = wifi_setting_value_get(VCONFKEY_WIFI_ENABLE_QS);
	switch (ret) {
		case 1:
			elm_check_state_set(toggle_btn, EINA_TRUE);
			break;
		case 0:
			elm_check_state_set(toggle_btn, EINA_FALSE);
			break;
		default:
			assertm_if(TRUE, "Setting fail!!");
			break;
	}

	__COMMON_FUNC_EXIT__;
	return toggle_btn;
}
开发者ID:tizenorg,项目名称:apps.core.preloaded.ug-wifi-efl,代码行数:29,代码来源:viewer_manager.c


示例4: create_main_view

static void
create_main_view(appdata_s *ad)
{
	Evas_Object *genlist;
	Evas_Object *circle_genlist;
	Evas_Object *btn;
	Evas_Object *nf = ad->nf;
	Elm_Object_Item *nf_it;
	Elm_Genlist_Item_Class *itc = elm_genlist_item_class_new();
	Elm_Genlist_Item_Class *ttc = elm_genlist_item_class_new();
	Elm_Genlist_Item_Class *ptc = elm_genlist_item_class_new();
	item_data *id;
	int index = 0;

	/* Genlist */
	genlist = elm_genlist_add(nf);
	elm_genlist_mode_set(genlist, ELM_LIST_COMPRESS);
	evas_object_smart_callback_add(genlist, "selected", gl_selected_cb, NULL);

	circle_genlist = eext_circle_object_genlist_add(genlist, ad->circle_surface);
	eext_circle_object_genlist_scroller_policy_set(circle_genlist, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_AUTO);
	eext_rotary_object_event_activated_set(circle_genlist, EINA_TRUE);

	/* Genlist Title Item style */
	ttc->item_style = "title";
	ttc->func.text_get = _gl_menu_title_text_get;
	ttc->func.del = _gl_menu_del;

	/* Genlist Item style */
	itc->item_style = "default";
	itc->func.text_get = _gl_menu_text_get;
	itc->func.del = _gl_menu_del;

	/* Genlist Padding Item style */
	ptc->item_style = "padding";
	ptc->func.del = _gl_menu_del;

	/* Title Items Here */
	elm_genlist_item_append(genlist, ttc, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);

	/* Main Menu Items Here */
	id = (item_data *)calloc(sizeof(item_data), 1);
	id->index = index++;
	id->item = elm_genlist_item_append(genlist, itc, id, NULL, ELM_GENLIST_ITEM_NONE, index_cb, ad);
	id = (item_data *)calloc(sizeof(item_data), 1);
	id->index = index++;
	id->item = elm_genlist_item_append(genlist, itc, id, NULL, ELM_GENLIST_ITEM_NONE, index_cb, ad);

	elm_genlist_item_append(genlist, ptc, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);

	elm_genlist_item_class_free(itc);
	elm_genlist_item_class_free(ttc);
	elm_genlist_item_class_free(ptc);

	/* This button is set for devices which doesn't have H/W back key. */
	btn = elm_button_add(nf);
	elm_object_style_set(btn, "naviframe/end_btn/default");
	nf_it = elm_naviframe_item_push(nf, NULL, btn, NULL, genlist, "empty");
	elm_naviframe_item_pop_cb_set(nf_it, naviframe_pop_cb, ad->win);
}
开发者ID:iamsanjeev,项目名称:practice,代码行数:60,代码来源:ui.cpp


示例5: elm_button_add

Evas_Object *IOGenlistScenarioHomeView::getPartItem(Evas_Object *obj, string part)
{
        Evas_Object *o = NULL;

        if (!io) return o;

        if (part == "calaos.button.go")
        {
                object_button = o = elm_button_add(parent);
                Evas_Object *icon = elm_icon_add(o);

                if (io->params["state"] == "true")
                        elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/stop");
                else
                        elm_image_file_set(icon, ApplicationMain::getTheme(), "calaos/icons/action_button/play");

                elm_object_style_set(o, "calaos/action_button/default");
                elm_object_content_set(o, icon);
                evas_object_smart_callback_add(o, "clicked", _item_button_Go, this);
        }

        initView();

        return o;
}
开发者ID:meyerv,项目名称:calaos_base,代码行数:25,代码来源:IOGenlistScenarioHomeView.cpp


示例6: tab_view_add

void tab_view_add(Evas_Object *parent)
{
	RETM_IF(!parent, "parent is NULL");

	tab_view_data *data = calloc(1, sizeof(tab_view_data));
	data->navi = parent;

	data->layout = ui_utils_layout_add(data->navi, _tab_view_destroy, data);
	if(!data->layout)
	{
		free(data);
		return;
	}

	data->tab = elm_toolbar_add(data->navi);
	if(!data->tab)
	{
		evas_object_del(data->layout);
		return;
	}
	elm_toolbar_shrink_mode_set(data->tab, ELM_TOOLBAR_SHRINK_EXPAND);
	elm_toolbar_transverse_expanded_set(data->tab, EINA_TRUE);
	elm_object_style_set(data->tab, "tabbar");

	_tab_view_fill(data);
	data->navi_item = elm_naviframe_item_push(data->navi, NULL, NULL, NULL, data->layout, "tabbar/notitle");
	elm_object_item_part_content_set(data->navi_item, "tabbar", data->tab);

	/* Create badge */
	int err = badge_new(PACKAGE);
	if(BADGE_ERROR_NONE != err)
	{
		ERR("Badge is not created.");
	}
}
开发者ID:zeroise91,项目名称:DITAllApiChecker,代码行数:35,代码来源:tab-view.c


示例7: create_list_view

void create_list_view(appdata_s *ad)
{
	Evas_Object *list;
	Evas_Object *btn;
	Evas_Object *nf = ad->navi;
	Elm_Object_Item *nf_it;

	/* List */
	list = elm_list_add(nf);
	elm_list_mode_set(list, ELM_LIST_COMPRESS);
	evas_object_smart_callback_add(list, "selected", list_selected_cb, NULL);

	/* Main Menu Items Here */
	elm_list_item_append(list, "Wait Connection", NULL, NULL, _wait_cb, ad);
	elm_list_item_append(list, "Gesture Setting", NULL, NULL, _setting_cb, ad);

	elm_list_go(list);

	/* This button is set for devices which doesn't have H/W back key. */
	btn = elm_button_add(nf);
	elm_object_style_set(btn, "naviframe/end_btn/default");

	// 네비프레임 맨위를 설정한다.
	nf_it = elm_naviframe_item_push(nf, "Gear Presentor", btn, NULL, list, NULL);
	elm_naviframe_item_pop_cb_set(nf_it, _naviframe_pop_cb, ad);
}
开发者ID:kimhun456,项目名称:Gear-S2-Presenter,代码行数:26,代码来源:bt_genlist.c


示例8: contact_list_add

void
contact_list_add(struct ContactListData *list_data)
{
	Evas_Object *win;
	win = ui_utils_view_window_get(list_data->view);
	list_data->index = NULL;
	list_data->list = elm_genlist_add(win);
	elm_genlist_mode_set(list_data->list, ELM_LIST_LIMIT);
	elm_genlist_longpress_timeout_set(list_data->list, 0.5);
	//elm_genlist_multi_select_set(list_data->list, EINA_TRUE);
	evas_object_size_hint_align_set(list_data->list, 0.0, 0.0);
	elm_object_scale_set(list_data->list, 1.0);
	itc.item_style = "contact";
	itc.func.text_get = gl_text_get;
	itc.func.content_get = gl_content_get;
	itc.func.state_get = NULL;
	itc.func.del = gl_del;
	evas_object_show(list_data->list);
	if (list_data->layout) {
		elm_object_part_content_set(list_data->layout, "contacts_list",
				list_data->list);
	}
	list_data->progress = elm_progressbar_add(win);
	elm_object_style_set(list_data->progress, "wheel");
	elm_object_text_set(list_data->progress, D_("Loading..."));
	evas_object_size_hint_align_set(list_data->progress, EVAS_HINT_FILL, 0.5);
	evas_object_size_hint_weight_set(list_data->progress, EVAS_HINT_EXPAND,
	                                 EVAS_HINT_EXPAND);
	elm_object_part_content_set(list_data->layout, "loading_indicator", list_data->progress);
	evas_object_show(list_data->progress);
}
开发者ID:shr-project,项目名称:libphone-ui-shr,代码行数:31,代码来源:contact-list-common.c


示例9: create_list_view

static void
create_list_view(appdata_s *ad)
{
    Evas_Object *list;
    Evas_Object *btn;
    Evas_Object *nf = ad->nf;
    Elm_Object_Item *nf_it;

    // List
    list = elm_list_add(nf);
    elm_list_mode_set(list, ELM_LIST_COMPRESS);
    evas_object_smart_callback_add(list, "selected", list_selected_cb, NULL);

    // Main Menu Items Here
    elm_list_item_append(list, "Group APIs", NULL, NULL, group_cb, nf);
    elm_list_item_append(list, "Configuration APIs", NULL, NULL, configuration_cb, nf);

    elm_list_go(list);

    // This button is set for devices which doesn't have H/W back key.
    btn = elm_button_add(nf);
    elm_object_style_set(btn, "naviframe/end_btn/default");
    nf_it = elm_naviframe_item_push(nf, "Things Manager", btn, NULL, list, NULL);
    elm_naviframe_item_pop_cb_set(nf_it, naviframe_pop_cb, ad->win);
}
开发者ID:EmuxEvans,项目名称:iotivity,代码行数:25,代码来源:tmsampleapp.cpp


示例10: viewer_list_create

Evas_Object* viewer_list_create(Evas_Object *win)
{
	__COMMON_FUNC_ENTER__;

	assertm_if(NULL == win, "NULL!!");

	assertm_if(NULL != viewer_list, "Err!!");
	viewer_list = elm_genlist_add(win);
	elm_object_style_set(viewer_list, "dialogue");
	assertm_if(NULL == viewer_list, "NULL!!");

	elm_genlist_mode_set(viewer_list, ELM_LIST_LIMIT);

	evas_object_size_hint_weight_set(viewer_list, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
	evas_object_size_hint_align_set(viewer_list, EVAS_HINT_FILL, EVAS_HINT_FILL);

	container = NULL;
	container = g_slist_alloc();
	assertm_if(NULL == container, "NULL!!");

	itc.item_style = "dialogue/2text.2icon.3.tb";
	itc.func.text_get = _gl_listview_text_get;
	itc.func.content_get = _gl_listview_content_get;
	itc.func.state_get = NULL;
	itc.func.del = _gl_listview_del;

	__COMMON_FUNC_EXIT__;
	return viewer_list;
}
开发者ID:tizenorg,项目名称:apps.core.preloaded.ug-wifi-efl,代码行数:29,代码来源:wifi_viewer_list.c


示例11: CLK_FUN_BEG

/**
* send
* This function is  used to create button
* @param           parent       pointer to Evas object, as the  parent
* @param           label        string for  title
* @param           icon_path    string for  icon path
* @param           cb           as cb when get signle "clicked"
* @param           cb_data      as cb'data
* @param           style        as style
* @return          when success, return a pointer to evas object, or return NULL
* @exception
*/
Evas_Object *widget_create_button(Evas_Object * parent, char *style,
				  const char *label, const char *icon_path,
				  EO_SMART_CB cb, void *cb_data)
{
	Evas_Object *ret = NULL;
	Evas_Object *icon = NULL;
	int nErr = SUCCESS;
	CLK_FUN_BEG();
	ret = elm_button_add(parent);
	CLK_RETVM_IF(!ret, NULL, "elm_button_add error!");
	elm_object_style_set(ret, style);
	evas_object_size_hint_weight_set(ret, EVAS_HINT_EXPAND,
					 EVAS_HINT_EXPAND);
	evas_object_size_hint_align_set(ret, EVAS_HINT_FILL, 0.5);
	if (icon_path) {
		icon = widget_create_icon(parent, icon_path);
	}
	if (label) {
		elm_object_text_set(ret, label);
	}
	if (icon) {
		elm_object_part_content_set(ret, "icon", icon);
	}
	if (cb && cb_data) {
		evas_object_smart_callback_add(ret, "clicked", cb, cb_data);
	}
	evas_object_show(ret);
 End:
	CLK_FUN_END();
	return ret;
}
开发者ID:ysdafa,项目名称:test,代码行数:43,代码来源:noa_fwk_widget.c


示例12: elm_naviframe_add

void ActivityScheduleScenarioView::showTimeRangePopup()
{
    pager_popup = elm_naviframe_add(parent);
    evas_object_show(pager_popup);

    spin_start_hours = spin_start_min = spin_start_sec = NULL;
    spin_end_hours = spin_end_min = spin_end_sec = NULL;

    createTimeSelectTypeList(NULL, NULL, "", "");

    //create popup
    popup = elm_ctxpopup_add(parent);
    elm_object_content_set(popup, pager_popup);
    elm_object_style_set(popup, "calaos");
    elm_ctxpopup_direction_priority_set(popup,
                                        ELM_CTXPOPUP_DIRECTION_DOWN,
                                        ELM_CTXPOPUP_DIRECTION_RIGHT,
                                        ELM_CTXPOPUP_DIRECTION_LEFT,
                                        ELM_CTXPOPUP_DIRECTION_UP);

    Evas_Coord x,y;
    evas_pointer_canvas_xy_get(evas, &x, &y);
    evas_object_move(popup, x, y);
    evas_object_show(popup);
}
开发者ID:lovo63,项目名称:calaos_base,代码行数:25,代码来源:ActivityScheduleScenarioView.cpp


示例13: utils_edit_object_delete

void utils_edit_object_delete(void *data, Evas_Object *obj, void *event_info)
{
    Evas_Object *lbl, *tb, *bt;

    _inwin_delete_slide = elm_win_inwin_add(win);
    evas_object_show(_inwin_delete_slide);
    elm_object_style_set(_inwin_delete_slide, "minimal");

    tb = elm_table_add(win);
    elm_win_inwin_content_set(_inwin_delete_slide, tb);

    lbl = elm_label_add(win);
    elm_object_text_set(lbl, D_("Are you sure you want to delete this object ?"));
    elm_table_pack(tb, lbl, 0, 2, 2, 1);
    evas_object_show(lbl);

    bt= elm_button_add(win);
    elm_object_text_set(bt, "Invisible button to add a vertical space");
    elm_table_pack(tb, bt, 0, 3, 1, 1);

    bt= elm_button_add(win);
    elm_object_text_set(bt, D_("Yes, Delete the object"));
    evas_object_smart_callback_add(bt, "clicked", _utils_object_delete_cb, NULL);
    evas_object_color_set(bt, 255, 0, 0, 255);
    elm_table_pack(tb, bt, 0, 4, 1, 1);
    evas_object_show(bt);

    bt= elm_button_add(win);
    elm_object_text_set(bt, D_("No, do not delete the object"));
    evas_object_smart_callback_add(bt, "clicked", _utils_object_delete_cancel_cb, NULL);
    elm_table_pack(tb, bt, 1, 4, 1, 1);
    evas_object_show(bt);
}
开发者ID:Limsik,项目名称:e17,代码行数:33,代码来源:slide_utils.c


示例14: ActivityView

ActivityConfigClockView::ActivityConfigClockView(Evas *_e, Evas_Object *_parent):
        ActivityView(_e, _parent, "calaos/page/config/clock")
{
        printf("Clock view constructor\n");
        TimeZone tz;
        tzList = elm_genlist_add(_parent);

        setPartText("tab1.text", _("Action and positions of widgets"));
        setPartText("tab1.text.detail", _("Resume : <light_blue>Current settings</light_blue><br><small>Configure Date and Time !</small"));
        setPartText("tab2.text", _("About"));
        setPartText("tab2.text.detail", _("About : <light_blue>Calaos products</light_blue><br><small>Touchscreen solutions.</small>"));

        elm_object_style_set(tzList, "calaos");
        elm_genlist_select_mode_set(tzList, ELM_OBJECT_SELECT_MODE_ALWAYS);
        evas_object_size_hint_fill_set(tzList, EVAS_HINT_FILL, EVAS_HINT_FILL);
        evas_object_size_hint_weight_set(tzList, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
        evas_object_show(tzList);
        Swallow(tzList, "timezone_list.swallow");

        for(unsigned int i = 0; i < tz.timeZone.size(); i++)
        {

                GenlistItemSimple *_item;

                _item = new GenlistItemSimple(evas, tzList, tz.timeZone[i].key, true);
                _item->Append(tzList);
        }



}
开发者ID:meyerv,项目名称:calaos_base,代码行数:31,代码来源:ActivityConfigClockView.cpp


示例15: _widget_colorselector_create

static Evas_Object *
_widget_colorselector_create(const char *style)
{
   Evas_Object *o;

   o = elm_colorselector_add(win);
   EXPAND(o); FILL(o);
   elm_object_style_set(o, style);
   elm_colorselector_color_set(o, 255, 160, 132, 180);

   elm_colorselector_palette_color_add(o, 255, 90, 18, 255);
   elm_colorselector_palette_color_add(o, 255, 213, 0, 255);
   elm_colorselector_palette_color_add(o, 146, 255, 11, 255);
   elm_colorselector_palette_color_add(o, 9, 186, 10, 255);
   elm_colorselector_palette_color_add(o, 86, 201, 242, 255);
   elm_colorselector_palette_color_add(o, 18, 83, 128, 255);
   elm_colorselector_palette_color_add(o, 140, 53, 238, 255);
   elm_colorselector_palette_color_add(o, 255, 145, 145, 255);
   elm_colorselector_palette_color_add(o, 255, 59, 119, 255);
   elm_colorselector_palette_color_add(o, 133, 100, 69, 255);
   elm_colorselector_palette_color_add(o, 255, 255, 119, 255);
   elm_colorselector_palette_color_add(o, 133, 100, 255, 255);

   evas_object_show(o);

   return o;
}
开发者ID:seoz,项目名称:elm-theme-viewer,代码行数:27,代码来源:widget.c


示例16: alert

static void
alert(const char *text)
{
   Evas_Object *win, *bx, *lb, *bt;
   
   win = window;
   inwin3 = elm_win_inwin_add(win);
   elm_object_style_set(inwin3, "minimal_vertical");
        
   bx = elm_box_add(win);
   evas_object_size_hint_weight_set(bx, 1.0, 0.0);
   evas_object_size_hint_align_set(bx, -1.0, -1.0);
   
   lb = elm_label_add(win);
   evas_object_size_hint_weight_set(lb, 1.0, 1.0);
   evas_object_size_hint_align_set(lb, -1.0, 0.5);
   elm_label_label_set(lb, text);
   elm_box_pack_end(bx, lb);
   evas_object_show(lb);
   
   bt = elm_button_add(window);
   elm_button_label_set(bt, "OK");
   evas_object_size_hint_weight_set(bt, 1.0, 0.0);
   evas_object_size_hint_align_set(bt, -1.0, -1.0);
   elm_box_pack_end(bx, bt);
   evas_object_smart_callback_add(bt, "clicked", on_alert_ok, NULL);
   evas_object_show(bt);   
        
   elm_win_inwin_content_set(inwin3, bx);
   evas_object_show(bx);
   
   elm_win_inwin_activate(inwin3);
}
开发者ID:amitesh-singh,项目名称:Enlightenment,代码行数:33,代码来源:list.c


示例17: createPaddingTable

void ApplicationController::onMenuRebootClick()
{
    Evas_Object *table = createPaddingTable(evas, layout, 260, 200);

    Evas_Object *glist = elm_genlist_add(layout);
    elm_object_style_set(glist, "calaos");
    elm_genlist_select_mode_set(glist, ELM_OBJECT_SELECT_MODE_ALWAYS);
    evas_object_size_hint_fill_set(glist, EVAS_HINT_FILL, EVAS_HINT_FILL);
    evas_object_size_hint_weight_set(glist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
    evas_object_show(glist);

    Evas_Object *popup = elm_ctxpopup_add(layout);
    elm_object_style_set(popup, "calaos");
    evas_object_size_hint_min_set(popup, 300, 240);

    GenlistItemSimple *item;

    item = new GenlistItemSimple(evas, glist, _("Restart application only"), true);
    item->Append(glist);
    item->item_selected.connect([this, popup](void *)
    {
        elm_ctxpopup_dismiss(popup);
        menuView->CloseLinkMenu();

        system("systemctl restart calaos-home");
    });

    item = new GenlistItemSimple(evas, glist, _("Reboot machine"), true);
    item->Append(glist);
    item->item_selected.connect([this, popup](void *)
    {
        elm_ctxpopup_dismiss(popup);
        menuView->CloseLinkMenu();

        system("sync");
        system("reboot");
    });

    elm_table_pack(table, glist, 1, 1, 1, 1);

    elm_object_content_set(popup, table);

    Evas_Coord x,y;
    evas_pointer_canvas_xy_get(evas, &x, &y);
    evas_object_move(popup, x, y);
    evas_object_show(popup);
}
开发者ID:DjMomo,项目名称:calaos_base,代码行数:47,代码来源:ApplicationController.cpp


示例18: _btn_selected

static void
_btn_selected(void *data, Evas_Object *obj, void *event_info)
{
    Evas_Object *btn = data;
    const char *txt = elm_object_item_text_get(event_info);

    elm_object_style_set(btn, txt);
}
开发者ID:tizenorg,项目名称:profile.mobile.platform.core.uifw.elm-demo-tizen-mobile,代码行数:8,代码来源:button.c


示例19: ActivityView

ActivityScenariosView::ActivityScenariosView(Evas *_e, Evas_Object *_parent):
    ActivityView(_e, _parent, "calaos/page/scenarios"),
    view_mode(VIEW_MODE_ALL)
{
    setPartText("header.label", _("Scenario management"));

    addCallback("button.*", "pressed", sigc::mem_fun(*this, &ActivityScenariosView::buttonPressed));

    schedule_list = elm_genlist_add(parent);
    Swallow(schedule_list, "scenario_schedule.list");
    elm_object_style_set(schedule_list, "calaos");
    elm_genlist_homogeneous_set(schedule_list, true);
    evas_object_show(schedule_list);

    scenario_list = elm_genlist_add(parent);
    Swallow(scenario_list, "scenario.list");
    elm_object_style_set(scenario_list, "calaos");
    elm_genlist_homogeneous_set(scenario_list, true);
    evas_object_show(scenario_list);

    Evas_Object *btn = edje_object_part_external_object_get(edje, "button.calendar.today");
    elm_object_text_set(btn, _("Today"));

    btn = edje_object_part_external_object_get(edje, "button.create");
    elm_object_text_set(btn, _("Create a new scenario"));

    btn = edje_object_part_external_object_get(edje, "button.list.all");
    elm_object_text_set(btn, _("All"));

    btn = edje_object_part_external_object_get(edje, "button.list.light");
    elm_object_text_set(btn, _("Lights"));

    btn = edje_object_part_external_object_get(edje, "button.list.shutters");
    elm_object_text_set(btn, _("Shutters"));

    btn = edje_object_part_external_object_get(edje, "button.list.schedule");
    elm_object_text_set(btn, _("Scheduled"));

    //default to today
    time_t t = time(0);
    currDate = *localtime(&t);

    if (CalaosModel::Instance().getScenario())
        scenarioChangeCon = CalaosModel::Instance().getScenario()->scenario_change.connect([=](Scenario *) { reloadCalendar(); });
}
开发者ID:choovin,项目名称:calaos_base,代码行数:45,代码来源:ActivityScenariosView.cpp


示例20: _content_new

Evas_Object *
_content_new(Evas_Object *parent, const char *img)
{
   Evas_Object *photo = elm_photo_add(parent);
   elm_photo_file_set(photo, img);
   elm_photo_fill_inside_set(photo, EINA_TRUE);
   elm_object_style_set(photo, "shadow");
   return photo;
}
开发者ID:rameshadapa,项目名称:elementary-1.7,代码行数:9,代码来源:test_naviframe.c



注:本文中的elm_object_style_set函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ elm_object_text_set函数代码示例发布时间:2022-05-30
下一篇:
C++ elm_init函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap