//------------------------------------------------------ Edit Tags ----------------------------------
static void changeTags P((int n));
-static char *tagsText;
+static char *tagsText, **resPtr;
static int
NewTagsCallback (int n)
{
- if(!bookUp) ReplaceTags(tagsText, &gameInfo);
+ if(bookUp) SaveToBook(tagsText), DisplayBook(currentMove); else
+ if(resPtr) { ASSIGN(*resPtr, tagsText); } else
+ ReplaceTags(tagsText, &gameInfo);
return 1;
}
{
GenericReadout(tagsOptions, 1);
if(bookUp) SaveToBook(tagsText), DisplayBook(currentMove); else
+ if(resPtr) { ASSIGN(*resPtr, tagsText); } else
ReplaceTags(tagsText, &gameInfo);
}
void
EditTagsPopUp (char *tags, char **dest)
{ // wrapper to preserve old name used in back-end
+ resPtr = dest;
NewTagsPopup(tags, NULL);
}
}
void
+EditEngineProc ()
+{
+ EditTagsPopUp(firstChessProgramNames, &firstChessProgramNames);
+}
+
+void
NothingProc ()
{
return;
};
MenuItem engineMenu[100] = {
+ {N_("Edit Engine List..."), NULL, "EditEngList", EditEngineProc},
+ {"----", NULL, NULL, NothingProc},
{N_("Load New 1st Engine..."), NULL, "LoadNew1stEngine", LoadEngine1Proc},
{N_("Load New 2nd Engine..."), NULL, "LoadNew2ndEngine", LoadEngine2Proc},
{"----", NULL, NULL, NothingProc},