Lines Matching refs:sym
115 struct symbol* sym; in updateMenu() local
128 sym = menu->sym; in updateMenu()
138 if (sym && list->rootEntry == menu) in updateMenu()
142 if (sym) in updateMenu()
153 if (!sym) in updateMenu()
156 setText(nameColIdx, QString::fromLocal8Bit(sym->name)); in updateMenu()
158 type = sym_get_type(sym); in updateMenu()
164 if (!sym_is_changable(sym) && list->optMode == normalOpt) { in updateMenu()
171 expr = sym_get_tristate_value(sym); in updateMenu()
174 if (sym_is_choice_value(sym) && type == S_BOOLEAN) in updateMenu()
187 if (sym_is_choice_value(sym) && type == S_BOOLEAN) in updateMenu()
196 setText(noColIdx, sym_tristate_within_range(sym, no) ? "_" : 0); in updateMenu()
198 setText(modColIdx, sym_tristate_within_range(sym, mod) ? "_" : 0); in updateMenu()
200 setText(yesColIdx, sym_tristate_within_range(sym, yes) ? "_" : 0); in updateMenu()
209 data = sym_get_string_value(sym); in updateMenu()
218 if (!sym_has_value(sym) && visible) in updateMenu()
232 sym_calc_value(menu->sym); in testUpdateMenu()
255 sym_calc_value(menu->sym); in init()
285 if (sym_get_string_value(item->menu->sym)) in show()
286 setText(QString::fromLocal8Bit(sym_get_string_value(item->menu->sym))); in show()
300 sym_set_string_value(item->menu->sym, text().toLatin1()); in keyPressEvent()
456 rootEntry->sym && rootEntry->prompt) { in updateList()
476 struct symbol* sym; in setValue() local
480 sym = item->menu ? item->menu->sym : 0; in setValue()
481 if (!sym) in setValue()
484 type = sym_get_type(sym); in setValue()
488 oldval = sym_get_tristate_value(sym); in setValue()
490 if (!sym_set_tristate_value(sym, val)) in setValue()
501 struct symbol* sym; in changeValue() local
508 sym = menu->sym; in changeValue()
509 if (!sym) { in changeValue()
515 type = sym_get_type(sym); in changeValue()
519 oldexpr = sym_get_tristate_value(sym); in changeValue()
520 newexpr = sym_toggle_tristate_value(sym); in changeValue()
625 if (!child->sym && !child->list && !child->prompt) in updateMenuList()
690 if (!child->sym && !child->list && !child->prompt) in updateMenuList()
857 else if (menu->sym) in mouseDoubleClickEvent()
1018 : Parent(parent), sym(0), _menu(0) in ConfigInfoView()
1046 else if (sym) in setShowDebug()
1057 sym = NULL; in setInfo()
1069 str += print_filter(sym->name); in symbolInfo()
1071 str += print_filter(sym_get_string_value(sym)); in symbolInfo()
1073 str += sym->visible == yes ? "y" : sym->visible == mod ? "m" : "n"; in symbolInfo()
1075 str += debug_info(sym); in symbolInfo()
1082 struct symbol* sym; in menuInfo() local
1085 sym = _menu->sym; in menuInfo()
1086 if (sym) { in menuInfo()
1091 if (sym->name) { in menuInfo()
1094 head += QString().sprintf("<a href=\"s%p\">", sym); in menuInfo()
1095 head += print_filter(sym->name); in menuInfo()
1100 } else if (sym->name) { in menuInfo()
1103 head += QString().sprintf("<a href=\"s%p\">", sym); in menuInfo()
1104 head += print_filter(sym->name); in menuInfo()
1112 debug = debug_info(sym); in menuInfo()
1136 QString ConfigInfoView::debug_info(struct symbol *sym) in debug_info() argument
1141 debug += print_filter(sym_type_name(sym->type)); in debug_info()
1142 if (sym_is_choice(sym)) in debug_info()
1145 if (sym->rev_dep.expr) { in debug_info()
1147 expr_print(sym->rev_dep.expr, expr_print_help, &debug, E_NONE); in debug_info()
1150 for (struct property *prop = sym->prop; prop; prop = prop->next) { in debug_info()
1168 if (sym_is_choice(sym)) { in debug_info()
1221 void ConfigInfoView::expr_print_help(void *data, struct symbol *sym, const char *str) in expr_print_help() argument
1226 if (sym && sym->name && !(sym->flags & SYMBOL_CONST)) { in expr_print_help()
1227 *text += QString().sprintf("<a href=\"s%p\">", sym); in expr_print_help()