Changeset 1664 for trunk/dll/seeall.c


Ignore:
Timestamp:
Aug 5, 2012, 2:11:07 AM (13 years ago)
Author:
Gregg Young
Message:

Changes to use Unlock to unlock files if Unlock.exe is in path both from menu/toolbar and as part of copy, move and delete operations. Changes to allow copy and move over readonly files with a warning dialog; also added a warning dialog for delete of readonly files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/seeall.c

    r1559 r1664  
    5151  17 Jan 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
    5252  01 Dec 10 SHL Ensure FindAllThread thread quits fast when requested
     53  04 Aug 12 GKY Changes to use Unlock to unlock files if Unlock.exe is in path both from menu/toolbar and as part of
     54                copy, move and delete operations
     55  04 Aug 12 GKY Changes to allow copy and move over readonly files with a warning dialog; also added a warning dialog
     56                for delete of readonly files
    5357
    5458***********************************************************************/
     
    870874        for (x = 0; list[x]; x++)
    871875          UUD(list[x], NULL);
    872         break;
     876        break;
     877
     878      case IDM_UNLOCKFILE:
     879        for (x = 0; list[x]; x++) {
     880          if (IsFile(list[x]) > 0 && fUnlock) {
     881            runemf2(SEPARATE | INVISIBLE | BACKGROUND | WAIT,
     882                    HWND_DESKTOP, pszSrcFile, __LINE__,
     883                    NULL, NULL, "%s %s", PCSZ_UNLOCKEXE, list[x]);
     884          }
     885        }
     886        break;
    873887
    874888      case IDM_EXTRACT:
     
    10771091              if (error) {
    10781092                DosError(FERR_DISABLEHARDERR);
    1079                 make_deleteable(list[x]);
     1093                make_deleteable(list[x], error);
    10801094                if (SHORT1FROMMP(mp1) == IDM_DELETE)
    10811095                  error = DosDelete(list[x]);
     
    33873401                                                    pAD->selected != 0));
    33883402        WinEnableMenuItem(pAD->hwndPopup, IDM_UUDECODE, (rc == 0 &&
     3403                                                         pAD->selected != 0));
     3404        WinEnableMenuItem(pAD->hwndPopup, IDM_UNLOCKFILE, (rc == 0 && fUnlock &&
    33893405                                                         pAD->selected != 0));
    33903406        WinEnableMenuItem(pAD->hwndPopup, IDM_EXTRACT, (rc == 0 &&
     
    38623878                            (rc == 0 && pAD->selected != 0));
    38633879          WinEnableMenuItem((HWND) mp2, IDM_UUDECODE,
    3864                             (rc == 0 && pAD->selected != 0));
     3880                            (rc == 0 && pAD->selected != 0));
     3881          WinEnableMenuItem((HWND) mp2, IDM_UNLOCKFILE,
     3882                            (rc == 0 && fUnlock && pAD->selected != 0));
    38653883          WinEnableMenuItem((HWND) mp2, IDM_EXTRACT,
    38663884                            (rc == 0 && pAD->selected != 0));
     
    42164234    case IDM_EXTRACT:
    42174235    case IDM_UUDECODE:
     4236    case IDM_UNLOCKFILE:
    42184237    case IDM_SHADOW:
    42194238    case IDM_OBJECT:
     
    42754294        case IDM_OPENSETTINGS:
    42764295        case IDM_OPENDEFAULT:
    4277         case IDM_UUDECODE:
     4296        case IDM_UUDECODE:
     4297        case IDM_UNLOCKFILE:
    42784298          {
    42794299            CHAR **list = BuildAList(hwnd);
     
    43074327              case IDM_ARCHIVE:
    43084328              case IDM_EXTRACT:
    4309               case IDM_UUDECODE:
     4329              case IDM_UUDECODE:
     4330              case IDM_UNLOCKFILE:
    43104331              case IDM_OBJECT:
    43114332              case IDM_SHADOW:
Note: See TracChangeset for help on using the changeset viewer.