Lines Matching refs:sym
107 struct symbol* sym; in updateMenu() local
120 sym = menu->sym; in updateMenu()
130 if (sym && list->rootEntry == menu) in updateMenu()
134 if (sym) in updateMenu()
145 if (!sym) in updateMenu()
148 setText(nameColIdx, QString::fromLocal8Bit(sym->name)); in updateMenu()
150 type = sym_get_type(sym); in updateMenu()
156 if (!sym_is_changable(sym) && list->optMode == normalOpt) { in updateMenu()
163 expr = sym_get_tristate_value(sym); in updateMenu()
166 if (sym_is_choice_value(sym) && type == S_BOOLEAN) in updateMenu()
179 if (sym_is_choice_value(sym) && type == S_BOOLEAN) in updateMenu()
188 setText(noColIdx, sym_tristate_within_range(sym, no) ? "_" : 0); in updateMenu()
190 setText(modColIdx, sym_tristate_within_range(sym, mod) ? "_" : 0); in updateMenu()
192 setText(yesColIdx, sym_tristate_within_range(sym, yes) ? "_" : 0); in updateMenu()
201 data = sym_get_string_value(sym); in updateMenu()
210 if (!sym_has_value(sym) && visible) in updateMenu()
224 sym_calc_value(menu->sym); in testUpdateMenu()
247 sym_calc_value(menu->sym); in init()
277 if (sym_get_string_value(item->menu->sym)) in show()
278 setText(QString::fromLocal8Bit(sym_get_string_value(item->menu->sym))); in show()
292 sym_set_string_value(item->menu->sym, text().toLatin1()); in keyPressEvent()
448 rootEntry->sym && rootEntry->prompt) { in updateList()
468 struct symbol* sym; in setValue() local
472 sym = item->menu ? item->menu->sym : 0; in setValue()
473 if (!sym) in setValue()
476 type = sym_get_type(sym); in setValue()
480 oldval = sym_get_tristate_value(sym); in setValue()
482 if (!sym_set_tristate_value(sym, val)) in setValue()
493 struct symbol* sym; in changeValue() local
500 sym = menu->sym; in changeValue()
501 if (!sym) { in changeValue()
507 type = sym_get_type(sym); in changeValue()
511 oldexpr = sym_get_tristate_value(sym); in changeValue()
512 newexpr = sym_toggle_tristate_value(sym); in changeValue()
617 if (!child->sym && !child->list && !child->prompt) in updateMenuList()
682 if (!child->sym && !child->list && !child->prompt) in updateMenuList()
849 else if (menu->sym) in mouseDoubleClickEvent()
1010 : Parent(parent), sym(0), _menu(0) in ConfigInfoView()
1038 else if (sym) in setShowDebug()
1049 sym = NULL; in setInfo()
1061 str += print_filter(sym->name); in symbolInfo()
1063 str += print_filter(sym_get_string_value(sym)); in symbolInfo()
1065 str += sym->visible == yes ? "y" : sym->visible == mod ? "m" : "n"; in symbolInfo()
1067 str += debug_info(sym); in symbolInfo()
1074 struct symbol* sym; in menuInfo() local
1077 sym = _menu->sym; in menuInfo()
1078 if (sym) { in menuInfo()
1083 if (sym->name) { in menuInfo()
1086 head += QString().sprintf("<a href=\"s%p\">", sym); in menuInfo()
1087 head += print_filter(sym->name); in menuInfo()
1092 } else if (sym->name) { in menuInfo()
1095 head += QString().sprintf("<a href=\"s%p\">", sym); in menuInfo()
1096 head += print_filter(sym->name); in menuInfo()
1104 debug = debug_info(sym); in menuInfo()
1128 QString ConfigInfoView::debug_info(struct symbol *sym) in debug_info() argument
1133 debug += print_filter(sym_type_name(sym->type)); in debug_info()
1134 if (sym_is_choice(sym)) in debug_info()
1137 if (sym->rev_dep.expr) { in debug_info()
1139 expr_print(sym->rev_dep.expr, expr_print_help, &debug, E_NONE); in debug_info()
1142 for (struct property *prop = sym->prop; prop; prop = prop->next) { in debug_info()
1160 if (sym_is_choice(sym)) { in debug_info()
1213 void ConfigInfoView::expr_print_help(void *data, struct symbol *sym, const char *str) in expr_print_help() argument
1218 if (sym && sym->name && !(sym->flags & SYMBOL_CONST)) { in expr_print_help()
1219 *text += QString().sprintf("<a href=\"s%p\">", sym); in expr_print_help()