Lines Matching refs:sym
91 sym_set_string_value(menu->sym, text(dataColIdx).latin1()); in okRename()
102 struct symbol* sym; in updateMenu() local
115 sym = menu->sym; in updateMenu()
125 if (sym && list->rootEntry == menu) in updateMenu()
129 if (sym) in updateMenu()
140 if (!sym) in updateMenu()
143 setText(nameColIdx, QString::fromLocal8Bit(sym->name)); in updateMenu()
145 type = sym_get_type(sym); in updateMenu()
151 if (!sym_is_changable(sym) && !list->showAll) { in updateMenu()
158 expr = sym_get_tristate_value(sym); in updateMenu()
161 if (sym_is_choice_value(sym) && type == S_BOOLEAN) in updateMenu()
174 if (sym_is_choice_value(sym) && type == S_BOOLEAN) in updateMenu()
183 setText(noColIdx, sym_tristate_within_range(sym, no) ? "_" : 0); in updateMenu()
185 setText(modColIdx, sym_tristate_within_range(sym, mod) ? "_" : 0); in updateMenu()
187 setText(yesColIdx, sym_tristate_within_range(sym, yes) ? "_" : 0); in updateMenu()
196 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()
259 sym_calc_value(menu->sym); in init()
289 if (sym_get_string_value(item->menu->sym)) in show()
290 setText(QString::fromLocal8Bit(sym_get_string_value(item->menu->sym))); in show()
304 sym_set_string_value(item->menu->sym, text().latin1()); in keyPressEvent()
444 rootEntry->sym && rootEntry->prompt) { in updateList()
462 struct symbol* sym; in setValue() local
466 sym = item->menu ? item->menu->sym : 0; in setValue()
467 if (!sym) in setValue()
470 type = sym_get_type(sym); in setValue()
474 oldval = sym_get_tristate_value(sym); in setValue()
476 if (!sym_set_tristate_value(sym, val)) in setValue()
487 struct symbol* sym; in changeValue() local
494 sym = menu->sym; in changeValue()
495 if (!sym) { in changeValue()
501 type = sym_get_type(sym); in changeValue()
505 oldexpr = sym_get_tristate_value(sym); in changeValue()
506 newexpr = sym_toggle_tristate_value(sym); in changeValue()
609 if (!child->sym && !child->list && !child->prompt) in updateMenuList()
777 else if (menu->sym) in contentsMouseDoubleClickEvent()
923 : Parent(parent, name), menu(0), sym(0) in ConfigInfoView()
948 else if (sym) in setShowDebug()
959 sym = NULL; in setInfo()
971 sym = NULL; in setSource()
986 if (sscanf(p, "s%p", &s) == 1 && sym != s) { in setSource()
987 sym = s; in setSource()
999 str += print_filter(sym->name); in symbolInfo()
1001 str += print_filter(sym_get_string_value(sym)); in symbolInfo()
1003 str += sym->visible == yes ? "y" : sym->visible == mod ? "m" : "n"; in symbolInfo()
1005 str += debug_info(sym); in symbolInfo()
1012 struct symbol* sym; in menuInfo() local
1015 sym = menu->sym; in menuInfo()
1016 if (sym) { in menuInfo()
1021 if (sym->name) { in menuInfo()
1024 head += QString().sprintf("<a href=\"s%p\">", sym); in menuInfo()
1025 head += print_filter(sym->name); in menuInfo()
1030 } else if (sym->name) { in menuInfo()
1033 head += QString().sprintf("<a href=\"s%p\">", sym); in menuInfo()
1034 head += print_filter(sym->name); in menuInfo()
1042 debug = debug_info(sym); in menuInfo()
1068 QString ConfigInfoView::debug_info(struct symbol *sym) in debug_info() argument
1073 debug += print_filter(sym_type_name(sym->type)); in debug_info()
1074 if (sym_is_choice(sym)) in debug_info()
1077 if (sym->rev_dep.expr) { in debug_info()
1079 expr_print(sym->rev_dep.expr, expr_print_help, &debug, E_NONE); in debug_info()
1082 for (struct property *prop = sym->prop; prop; prop = prop->next) { in debug_info()
1100 if (sym_is_choice(sym)) { in debug_info()
1153 void ConfigInfoView::expr_print_help(void *data, struct symbol *sym, const char *str) in expr_print_help() argument
1158 if (sym && sym->name && !(sym->flags & SYMBOL_CONST)) { in expr_print_help()
1159 *text += QString().sprintf("<a href=\"s%p\">", sym); in expr_print_help()