{ 0, 0, 0, NULL, NULL, NULL, NULL, Label, NULL },
{ 200, T_VSCRL | T_FILL | T_WRAP | T_TOP, 200, NULL, (void*) &tagsText, NULL, (char **) &TagsClick, TextBox, "", &appData.tagsFont },
{ 0, 0, 100, NULL, (void*) &NewMove, NULL, NULL, Button, N_("add next move") },
-{ 0,SAME_ROW,100,NULL, (void*) &changeTags, NULL, NULL, Button, N_("save changes") },
+{ 0,SAME_ROW,100,NULL, (void*) &changeTags, NULL, NULL, Button, N_("commit changes") },
{ 0,SAME_ROW, 0, NULL, (void*) &NewTagsCallback, "", NULL, EndMark , "" }
};
}
void
-NewTagsPopup (char *text, char *msg)
+NewTagsPopup (char *text, char *msg, char *ttl)
{
- char *title = bookUp ? _("Edit book") : _("Tags");
+ char *title = bookUp ? _("Edit book") : ttl;
tagsOptions[2].type = bookUp ? Button : Skip;
tagsOptions[3].min = bookUp ? SAME_ROW : 0;
void
TagsPopUp (char *tags, char *msg)
{
- NewTagsPopup(tags, cmailMsgLoaded ? msg : NULL);
+ NewTagsPopup(tags, cmailMsgLoaded ? msg : NULL, _("Tags"));
}
void
EditTagsPopUp (char *tags, char **dest)
{ // wrapper to preserve old name used in back-end
resPtr = dest;
- NewTagsPopup(tags, NULL);
+ NewTagsPopup(tags, NULL, _("Tags"));
+}
+
+void
+EditEnginePopUp (char *tags, char **dest)
+{ // wrapper to preserve old name used in back-end
+ TagsPopDown();
+ resPtr = dest;
+ NewTagsPopup(tags, NULL, _("Registered Engines"));
}
void
{
errorUp = True;
errorOptions[1].name = label;
- if(dialogError = shellUp[MasterDlg])
- GenericPopUp(errorOptions+1, title, FatalDlg, MasterDlg, MODAL, 0); // pop up as daughter of the transient dialog
+ if(dialogError = shellUp[TransientDlg])
+ GenericPopUp(errorOptions+1, title, FatalDlg, TransientDlg, MODAL, 0); // pop up as daughter of the transient dialog
+ else if(dialogError = shellUp[MasterDlg])
+ GenericPopUp(errorOptions+1, title, FatalDlg, MasterDlg, MODAL, 0); // pop up as daughter of the master dialog
else
GenericPopUp(errorOptions+modal, title, modal ? FatalDlg: ErrorDlg, BoardWindow, modal, 0); // kludge: option start address indicates modality
}