This commit is contained in:
slamm 1998-04-28 20:59:01 +00:00
Родитель b8ac3006fb
Коммит 6919c23c56
3 изменённых файлов: 15 добавлений и 0 удалений

Просмотреть файл

@ -84,7 +84,9 @@ fe_icon XFE_BookmarkView::openedFolderMenuDest = { 0 };
MenuSpec XFE_BookmarkView::open_popup_spec[] = {
{ xfeCmdOpenLinkNew, PUSHBUTTON },
#ifdef EDITOR
{ xfeCmdOpenLinkEdit, PUSHBUTTON },
#endif
MENU_SEPARATOR,
{ NULL },
};
@ -414,7 +416,9 @@ XFE_BookmarkView::isCommandEnabled(CommandType cmd, void *calldata,
return TRUE;
}
else if (IS_CMD(xfeCmdOpenLinkNew)
#ifdef EDITOR
|| IS_CMD(xfeCmdOpenLinkEdit)
#endif
|| IS_CMD(xfeCmdSaveLink)
|| IS_CMD(xfeCmdCopyLink)
)
@ -759,7 +763,9 @@ XFE_BookmarkView::handlesCommand(CommandType cmd, void *calldata,
// Popup commands
|| IS_CMD(xfeCmdShowPopup)
|| IS_CMD(xfeCmdOpenLinkNew)
#ifdef EDITOR
|| IS_CMD(xfeCmdOpenLinkEdit)
#endif
|| IS_CMD(xfeCmdSaveLink)
|| IS_CMD(xfeCmdCopyLink)
)

Просмотреть файл

@ -144,10 +144,12 @@ MenuSpec XFE_HTMLView::openFrameNew_spec[] = {
{ xfeCmdOpenFrameInWindow , PUSHBUTTON },
{ NULL },
};
#ifdef EDITOR
MenuSpec XFE_HTMLView::openLinkEdit_spec[] = {
{ xfeCmdOpenLinkEdit, PUSHBUTTON },
{ NULL },
};
#endif
MenuSpec XFE_HTMLView::go_spec[] = {
{ xfeCmdBack, PUSHBUTTON },
{ xfeCmdForward, PUSHBUTTON },
@ -1274,10 +1276,12 @@ XFE_HTMLView::isCommandEnabled(CommandType cmd, void *calldata, XFE_CommandInfo*
{
return True;
}
#ifdef EDITOR
else if (IS_CMD(xfeCmdOpenLinkEdit))
{
return True;
}
#endif
else if (IS_CMD(xfeCmdSaveLink))
{
return True;
@ -1386,7 +1390,9 @@ XFE_HTMLView::handlesCommand(CommandType cmd, void *calldata, XFE_CommandInfo*)
|| IS_CMD(xfeCmdOpenLinkNew)
|| IS_CMD(xfeCmdOpenFrameNew)
|| IS_CMD(xfeCmdOpenFrameInWindow)
#ifdef EDITOR
|| IS_CMD(xfeCmdOpenLinkEdit)
#endif
|| IS_CMD(xfeCmdSaveLink)
|| IS_CMD(xfeCmdCopyLink)
|| IS_CMD(xfeCmdCopyImage)

Просмотреть файл

@ -1196,7 +1196,10 @@ XFE_CALLBACK_DEFN(XFE_MsgView, showPopup)(XFE_NotificationCenter *,
}
if (isBrowserLink) ADD_SPEC ( openLinkNew_spec );
#ifdef EDITOR
if (isBrowserLink) ADD_SPEC ( openLinkEdit_spec );
#endif
ADD_MENU_SEPARATOR;
ADD_SPEC ( repl_spec );