void BoardOptionsProc P((Widget w, XEvent *event, String *prms, Cardinal *nprms));
void LoadOptionsProc P((Widget w, XEvent *event, String *prms, Cardinal *nprms));
void SaveOptionsProc P((Widget w, XEvent *event, String *prms, Cardinal *nprms));
+void EditBookProc P((Widget w, XEvent *event, String *prms, Cardinal *nprms));
void GameListOptionsPopDown P(());
void ShufflePopDown P(());
void TimeControlPopDown P(());
{N_("Edit Position Ctrl+Shift+E"), "Edit Position", EditPositionProc},
{N_("Edit Tags"), "Edit Tags", EditTagsProc},
{N_("Edit Comment"), "Edit Comment", EditCommentProc},
+ {N_("Edit Book"), "Edit Book", EditBookProc},
{"----", NULL, NothingProc},
{N_("Revert Home"), "Revert", RevertProc},
{N_("Annotate"), "Annotate", AnnotateProc},
{ "ShowGameListProc", ShowGameListProc },
{ "ShowMoveListProc", HistoryShowProc},
{ "EditTagsProc", EditCommentProc },
+ { "EditBookProc", EditBookProc },
{ "EditCommentProc", EditCommentProc },
{ "IcsInputBoxProc", IcsInputBoxProc },
{ "PauseProc", PauseProc },
Arg args[16];
XtSetArg(args[0], XtNstring, &tagsText);
XtGetValues(currentOption[1].handle, args, 1);
+ if(bookUp) SaveToBook(tagsText); else\r
ReplaceTags(tagsText, &gameInfo);
}
{
Widget edit;
Arg args[16];
+ char *title = bookUp ? _("Edit book") : _("Tags");
if(shells[2]) { // if already exists, alter title and content
XtSetArg(args[0], XtNstring, text);
XtSetValues(tagsOptions[1].handle, args, 1);
+ XtSetArg(args[0], XtNtitle, title);
+ XtSetValues(shells[2], args, 1);
}
if(tagsText) free(tagsText); tagsText = strdup(text);
tagsOptions[0].textValue = msg;
MarkMenu("menuView.Show Tags", 2);
- GenericPopUp(tagsOptions, _("Tags"), 2);
+ GenericPopUp(tagsOptions, title, 2);
}
char *icsText;
GenericPopUp(installOptions, _("Load engine"), 0);
}
+void EditBookProc(w, event, prms, nprms)
+ Widget w;
+ XEvent *event;
+ String *prms;
+ Cardinal *nprms;
+{
+ EditBookEvent();
+}
+
//---------------------------- Chat Windows ----------------------------------------------
void OutputChatMessage(int partner, char *mess)