Changeset 1711


Ignore:
Timestamp:
Feb 9, 2014, 11:22:11 PM (12 years ago)
Author:
Gregg Young
Message:

Fix separate parameters. Moved to general page renamed separate settings for apps. Ticket 497

Location:
trunk/dll
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/fm3dlg.h

    r1705 r1711  
    4646  06 Jan 13 GKY Added optional confirmation dialogs for delete move and copy to compare dir Ticket 277
    4747  06 Jan 13 GKY Added EA compare option to compare dir Ticket 80
     48  09 Feb 14 GKY Fix separate parameters. Moved to general page renamed separate settings
     49                for apps.
    4850
    4951***********************************************************************/
     
    680682#define CFGG_ERRORBEEPOFF                                                               25219
    681683#define CFGG_WARNREADONLY                                                               25220
     684#define CFGG_APPSEPARATESETTINGS                                                        25221
    682685
    683686#define CFGB_FRAME                                                                      25250
     
    703706#define CFGM_EXTERNALINIS                                                               25315
    704707#define CFGM_EXTERNALCOLLECTOR                                          25316
    705 #define CFGM_SEPARATEPARMS                                                              25317
    706 #define CFGM_BLUELED                                                                            25318
    707 #define CFGM_SHOWTARGET                                                                 25319
     708#define CFGM_BLUELED                                                                            25317
     709#define CFGM_SHOWTARGET                                                                 25318
    708710
    709711#define CFGV_FRAME                                                                              25330
  • trunk/dll/fm3res.dlg

    r1703 r1711  
    5858  06 Jan 13 GKY Added optional confirmation dialogs for delete move and copy to compare dir Ticket 277
    5959  06 Jan 13 GKY Added EA compare option to compare dir Ticket 80
     60  09 Feb 14 GKY Fix separate parameters. Moved to general page renamed separate settings
     61                for apps.
    6062 
    6163***********************************************************************/
     
    19411943        CONTROL         "Recent Dirs", CFGM_RECENTDIRS, 4, 68, 106, 10,
    19421944                        WC_BUTTON, BS_AUTO3STATE | WS_TABSTOP | WS_VISIBLE
    1943         AUTOCHECKBOX    "Separate parameters", CFGM_SEPARATEPARMS, 4, 56,
     1945        AUTOCHECKBOX    "Autotile windows", CFGM_AUTOTILE, 4, 56,
    19441946                        106, 10
    19451947        AUTOCHECKBOX    "Free Drive Tree", CFGM_FREETREE, 4, 44, 106, 10
    19461948        AUTOCHECKBOX    "Split Status line", CFGM_SPLITSTATUS, 4, 32, 106,
    19471949                        10
    1948         AUTOCHECKBOX    "Autotile windows", CFGM_AUTOTILE, 4, 20, 106, 10
    19491950        AUTOCHECKBOX    "Save dir window state", CFGM_SAVESTATE, 128, 128,
    19501951                        106, 10
     
    28612862            WS_SAVEBITS
    28622863    BEGIN
     2864        AUTOCHECKBOX    "~Warn if file is readonly", CFGG_WARNREADONLY, 4, 140, 106,
     2865                        10
    28632866        AUTOCHECKBOX    "Don't move ~mouse", CFGG_DONTMOVEMOUSE, 4, 128, 106,
    28642867                        10
     
    28772880        LTEXT           "Target directory:", -1, 4, 34, 102, 8
    28782881        ENTRYFIELD      "", CFGG_TARGETDIR, 6, 22, 246, 8, ES_MARGIN
    2879         AUTOCHECKBOX    "~Warn if file is readonly", CFGG_WARNREADONLY, 122, 140, 106,
    2880                         10
     2882        AUTOCHECKBOX    "~Separate settings for Apps (Must restart to take effect)",
     2883                        CFGG_APPSEPARATESETTINGS, 122, 140, 180, 10
    28812884        AUTOCHECKBOX    "~Link drag sets icon", CFGG_LINKSETSICON, 122, 128, 106,
    28822885                        10
  • trunk/dll/init.c

    r1710 r1711  
    113113  04 Aug 12 GKY Changes to allow copy and move over readonly files with a warning dialog; also added a warning dialog
    114114                for delete of readonly files
     115  09 Feb 14 GKY Fix separate parameters. Moved to general page renamed separate settings
     116                for apps.
    115117
    116118***********************************************************************/
     
    659661  CHAR *p;
    660662  ULONG size;
    661   BOOL fSeparateParmsApp;
    662663
    663664  strcpy(dllfile, PCSZ_FM3RES);
     
    949950  FindSwapperDat();
    950951
    951   size = sizeof(BOOL);
    952   PrfQueryProfileData(fmprof, FM3Str, "SeparateParms",
    953                       &fSeparateParms, &size);
    954   size = sizeof(BOOL);
    955   PrfQueryProfileData(fmprof, appname, "SeparateParms",
    956                       &fSeparateParmsApp, &size);
    957   if (!fSeparateParms && !fSeparateParmsApp)
    958     strcpy(appname, FM3Str);
    959 
    960952  // start help
    961953  memset(&hini, 0, sizeof(HELPINIT));
     
    12581250    * one or more miniapp but not to FM/2
    12591251    */
     1252  size = sizeof(BOOL); 
     1253  PrfQueryProfileData(fmprof, realappname, "AppSeparateSettings", &fAppSeparateSettings, &size);
     1254  if (!fAppSeparateSettings)
     1255    strcpy(appname, FM3Str);
     1256  else
     1257    strcpy(appname, realappname);
    12601258  size = sizeof(ULONG);
    12611259  PrfQueryProfileData(fmprof, appname, "MaxComLineStrg", &MaxComLineStrg, &size);
  • trunk/dll/ipf/notebook.ipf

    r1664 r1711  
    2222.* 04 Aug 12 GKY Changes to allow copy and move over readonly files with a warning dialog; also added a warning dialog
    2323.*               for delete of readonly files
     24.* 09 Feb 14 GKY Fix separate parameters. Moved to general page renamed separate settings
     25.*               for apps.
    2426.*
    2527.***********************************************************************
     
    577579:link reftype=hd res=91500.Walk Directories:elink. dialog.
    578580:p.
    579 The :hp6.Separate parameters:ehp6. toggle tells FM/2 whether to use
    580 separate parameters for many of the mini-apps (like FM/2 lite, VDIR and VTREE).
    581 If you select it with FM/2 running it applies to all the mini-apps. However,
    582 if you select it with a mini-app running it will only effect that app. If
    583 checked, you'll have to set up the effected applications separately, but
    584 configurations can be different than that in the monolithic FM/2
    585 application itself. If you don't understand that, let's try this&colon.
    586 if you run the Visual Tree program a lot, you'll probably want to check
    587 this. Otherwise, you won't.
    588 :p.
    589581If you check the :hp6.Free Drive Tree:ehp6. toggle, FM/2 will allow you
    590582to move the Drive Tree Container. Otherwise it "pins" it in the upper
     
    663655is what FM/2 always did for delete but not for copy/move which failed with
    664656an error message.
     657:p.
     658The :hp6.Separate settings for Apps:ehp6. toggle tells FM/2 whether to use
     659separate parameters for many of the mini-apps (like FM/2 lite, VDIR and VTREE).
     660If you select it with FM/2 running it applies to all the mini-apps. However,
     661if you select it with a mini-app running it will only effect that app. If
     662checked, you'll have to set up the effected applications separately, but
     663configurations can be different than that in the monolithic FM/2
     664application itself. If you don't understand that, let's try this&colon.
     665if you run the Visual Tree program a lot, you'll probably want to check
     666this. Otherwise, you won't.
    665667:p.
    666668The :hp6.Verify disk writes:ehp6. toggle turns system-level write
  • trunk/dll/notebook.c

    r1675 r1711  
    169169BOOL fRScanNoWrite;
    170170BOOL fSaveState;
    171 BOOL fSeparateParms;
    172171BOOL fShowDriveOnly;
    173172BOOL fShowEnv;
     
    191190BOOL fViewChild;
    192191BOOL fWarnReadOnly;
     192BOOL fAppSeparateSettings;
    193193HINI fmprof;
    194194ULONG fwsAnimate;
     
    15551555    WinCheckButton(hwnd, CFGG_ALERTBEEPOFF, fAlertBeepOff);
    15561556    WinCheckButton(hwnd, CFGG_WARNREADONLY, fWarnReadOnly);
     1557    WinCheckButton(hwnd, CFGG_APPSEPARATESETTINGS, fAppSeparateSettings);
    15571558    {
    15581559      long th = fNoFinger ? 2 : (fNoDead ? 1 : 0);
     
    16161617    {
    16171618      long test;
     1619      BOOL dummy;
     1620
     1621      dummy = WinQueryButtonCheckstate(hwnd, CFGG_APPSEPARATESETTINGS);
     1622      if (dummy != fAppSeparateSettings) {
     1623        fAppSeparateSettings =  dummy;
     1624        PrfWriteProfileData(fmprof, realappname, "AppSeparateSettings",
     1625                        &fAppSeparateSettings, sizeof(BOOL));
     1626        WinSendMsg((HWND) WinQueryWindowULong(hwnd, QWL_USER),
     1627                   UM_UNDO, MPVOID, MPVOID);
     1628        if (fAppSeparateSettings)
     1629          strcpy(appname, realappname);
     1630        else
     1631          strcpy(appname, FM3Str);
     1632      }
    16181633
    16191634      test = WinQueryButtonCheckstate(hwnd, CFGG_NODEAD);
     
    16821697    fWarnReadOnly = WinQueryButtonCheckstate(hwnd, CFGG_WARNREADONLY);
    16831698    PrfWriteProfileData(fmprof, appname, "WarnReadOnly",
    1684                         &fWarnReadOnly, sizeof(BOOL));
     1699                        &fWarnReadOnly, sizeof(BOOL));
    16851700    {
    16861701      WinSendDlgItemMsg(hwnd, CFGG_CMDLNLNGTH, SPBM_QUERYVALUE,
     
    20322047    WinCheckButton(hwnd, CFGM_USERLISTSWITCHES, fUserListSwitches);
    20332048    WinCheckButton(hwnd, CFGM_WSANIMATE, (fwsAnimate != 0));
    2034     WinCheckButton(hwnd, CFGM_SEPARATEPARMS, fSeparateParms);
    20352049    WinCheckButton(hwnd, CFGM_BLUELED, fBlueLED);
    20362050    WinCheckButton(hwnd, CFGM_SHOWTARGET, fShowTarget);
     
    22012215                  WM_UPDATEFRAME, MPFROMLONG(FCF_SIZEBORDER), MPVOID);
    22022216        SetTargetDir(hwnd, TRUE, NULL);
    2203       }
    2204       dummy = WinQueryButtonCheckstate(hwnd, CFGM_SEPARATEPARMS);
    2205       if (dummy != fSeparateParms) {
    2206         fSeparateParms = dummy;
    2207         PrfWriteProfileData(fmprof,
    2208                             appname,
    2209                             "SeparateParms",
    2210                             (PVOID) & fSeparateParms, sizeof(BOOL));
    2211         WinSendMsg((HWND) WinQueryWindowULong(hwnd, QWL_USER),
    2212                    UM_UNDO, MPVOID, MPVOID);
    22132217      }
    22142218    }
  • trunk/dll/notebook.h

    r1664 r1711  
    1818  04 Aug 12 GKY Changes to allow copy and move over readonly files with a warning dialog; also added a warning dialog
    1919                for delete of readonly files
     20  09 Feb 14 GKY Fix separate parameters. Moved to general page renamed separate settings
     21                for apps.
    2022
    2123***********************************************************************/
     
    9193extern BOOL fRScanNoWrite;
    9294extern BOOL fSaveState;
    93 extern BOOL fSeparateParms;
    9495extern BOOL fShowDriveOnly;
    9596extern BOOL fShowEnv;
     
    113114extern BOOL fViewChild;
    114115extern BOOL fWarnReadOnly;
     116extern BOOL fAppSeparateSettings;
    115117extern HINI fmprof;
    116118extern ULONG fwsAnimate;
Note: See TracChangeset for help on using the changeset viewer.