MCPcopy Create free account
hub / github.com/Entware/Entware / menuInfo

Method menuInfo

scripts/config/qconf.cc:1009–1067  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1007}
1008
1009void ConfigInfoView::menuInfo(void)
1010{
1011 struct symbol* sym;
1012 QString info;
1013 QTextStream stream(&info);
1014
1015 sym = _menu->sym;
1016 if (sym) {
1017 if (_menu->prompt) {
1018 stream << "<big><b>";
1019 stream << print_filter(_menu->prompt->text);
1020 stream << "</b></big>";
1021 if (sym->name) {
1022 stream << " (";
1023 if (showDebug())
1024 stream << "<a href=\"s" << sym->name << "\">";
1025 stream << print_filter(sym->name);
1026 if (showDebug())
1027 stream << "</a>";
1028 stream << ")";
1029 }
1030 } else if (sym->name) {
1031 stream << "<big><b>";
1032 if (showDebug())
1033 stream << "<a href=\"s" << sym->name << "\">";
1034 stream << print_filter(sym->name);
1035 if (showDebug())
1036 stream << "</a>";
1037 stream << "</b></big>";
1038 }
1039 stream << "<br><br>";
1040
1041 if (showDebug())
1042 stream << debug_info(sym);
1043
1044 struct gstr help_gstr = str_new();
1045
1046 menu_get_ext_help(_menu, &help_gstr);
1047 stream << print_filter(str_get(&help_gstr));
1048 str_free(&help_gstr);
1049 } else if (_menu->prompt) {
1050 stream << "<big><b>";
1051 stream << print_filter(_menu->prompt->text);
1052 stream << "</b></big><br><br>";
1053 if (showDebug()) {
1054 if (_menu->prompt->visible.expr) {
1055 stream << "&nbsp;&nbsp;dep: ";
1056 expr_print(_menu->prompt->visible.expr,
1057 expr_print_help, &stream, E_NONE);
1058 stream << "<br><br>";
1059 }
1060
1061 stream << "defined at " << _menu->file->name << ":"
1062 << _menu->lineno << "<br><br>";
1063 }
1064 }
1065
1066 setText(info);

Callers

nothing calls this directly

Calls 5

str_newFunction · 0.85
menu_get_ext_helpFunction · 0.85
str_getFunction · 0.85
str_freeFunction · 0.85
expr_printFunction · 0.85

Tested by

no test coverage detected