Added the possibility of contextual help on user functions.

Добавлена возможность просмотра скриптов создания пользовательских объектов
в контестной помощи. В скриптах имена других объектов заменяются на ссылки.
Описание Readme.md
This commit is contained in:
lsv 2025-11-21 16:23:26 +05:00
parent 560bf4c080
commit 1f7decd73f
18 changed files with 1016 additions and 159 deletions

View file

@ -1465,4 +1465,21 @@ bool getArrayFromCommaSeparatedList(const wxString &str, wxArrayString &res)
return true;
}
bool make_identifier(const wxString &strname, wxString &s, wxString &n, bool islower) {
s=strname.BeforeFirst('.');
if (s==strname) {
n=strname;
s="";
} else {
// full name
n=strname.AfterFirst('.');
}
//
if (n.Find('"')>=0) {
n.Replace("\"","");
} else {if (islower) n=n.MakeLower();}
if (s.Find('"')>=0) {
s.Replace("\"","");
} else {if (islower) s=s.MakeLower();}
return true;
}