save link as

import/tags/KMELEON_0_4
binaryc 22 years ago
parent 6b4317f487
commit bcbff9fea1
  1. 8
      k-meleon/BrowserView.cpp
  2. 8
      k-meleon/KMeleon.dsp
  3. 2
      k-meleon/default/menus.cfg
  4. 1
      k-meleon/defineMap.cpp

@ -830,7 +830,7 @@ void CBrowserView::OnSaveLinkAs()
// The path may have the "/" char in it - strip those
nsCAutoString fileName(path);
fileName.StripChars("\\/");
int slash = fileName.RFindCharInSet("\\/");
// Now, use this file name in a File Save As dlg...
@ -839,7 +839,7 @@ void CBrowserView::OnSaveLinkAs()
"Text Files (*.txt)|*.txt|"
"All Files (*.*)|*.*||";
const char *pFileName = fileName.Length() ? fileName.get() : NULL;
const char *pFileName = fileName.Length() ? fileName.get() + slash+1: NULL;
CFileDialog cf(FALSE, "htm", pFileName, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
lpszFilter, this);
@ -876,12 +876,12 @@ void CBrowserView::OnSaveImageAs()
// The path may have the "/" char in it - strip those
nsCAutoString fileName(path);
fileName.StripChars("\\/");
int slash = fileName.RFindCharInSet("\\/");
// Now, use this file name in a File Save As dlg...
char *lpszFilter = "All Files (*.*)|*.*||";
const char *pFileName = fileName.Length() ? fileName.get() : NULL;
const char *pFileName = fileName.Length() ? fileName.get() + slash+1 : NULL;
CFileDialog cf(FALSE, NULL, pFileName, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
lpszFilter, this);

@ -127,15 +127,7 @@ SOURCE=.\BrowserView.cpp
# Begin Source File
SOURCE=.\defineMap.cpp
!IF "$(CFG)" == "kmeleon - Win32 Release"
!ELSEIF "$(CFG)" == "kmeleon - Win32 Debug"
# PROP Exclude_From_Build 1
!ENDIF
# End Source File
# Begin Source File

@ -125,6 +125,7 @@ LinkPopup {
&Forward = ID_NAV_FORWARD
-
Open in a &New Window = ID_OPEN_LINK_IN_NEW_WINDOW
Save Link As... = ID_SAVE_LINK_AS
&Copy URL = ID_COPY_LINK_LOCATION
&Copy Text = ID_EDIT_COPY
-
@ -137,6 +138,7 @@ ImagePopup {
&Forward = ID_NAV_FORWARD
-
&Stop = ID_NAV_STOP
&Reload = ID_NAV_RELOAD
-
&View Image = ID_VIEW_IMAGE
Save Image &As... = ID_SAVE_IMAGE_AS

@ -26,6 +26,7 @@ DEFINEMAP_ADD(ID_EDIT_SELECT_ALL)
DEFINEMAP_ADD(ID_EDIT_SELECT_NONE)
DEFINEMAP_ADD(ID_VIEW_IMAGE)
DEFINEMAP_ADD(ID_SAVE_IMAGE_AS)
DEFINEMAP_ADD(ID_SAVE_LINK_AS)
DEFINEMAP_ADD(ID_APP_EXIT)
DEFINEMAP_ADD(ID_APP_ABOUT)
DEFINEMAP_ADD(ID_OPEN_LINK_IN_NEW_WINDOW)

Loading…
Cancel
Save