Changeset 1053 for trunk/guitools/smbmon
- Timestamp:
- Feb 7, 2018, 10:39:40 AM (8 years ago)
- Location:
- trunk/guitools/smbmon
- Files:
-
- 27 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/smbmon/smbmon.vrp
r1038 r1053 8 8 VRXWindow: __VREMainWindow,1,2168,3614,1024,6769 9 9 VRXWindow: __VRESectionListWindow,1,3963,14213,10130,5059 10 VRXWindow: __VREToolsWindow,1,1518,434, 6486,166910 VRXWindow: __VREToolsWindow,1,1518,434,5492,1661 11 11 VRXWindow: __VREWindListWindow,1,952,11708,5372,3150 12 12 UserFile: 1 13 13 UserWindow: Main,1 14 UserWindow: SW_SETTINGS,1 14 UserWindow: SW_ACLS,1 15 UserWindow: SW_LOGIN,1 16 UserWindow: SW_ACLSEdit,1 -
trunk/guitools/smbmon/smbmon.vrx
r1038 r1053 345 345 ok = VRSet("ContextMenu_Tree_Sep1", "Visible", 0) 346 346 ok = VRSet("ContextMenu_Tree_MiniIcons", "Visible", 0) 347 ok = VRSet("ContextMenu_Tree_Sep2", "Visible", 0) 347 348 ok = VRSet("ContextMenu_Tree_Tree", "Visible", 1) 348 349 ok = VRSet("ContextMenu_Tree_Details", "Visible", 1) … … 352 353 select 353 354 when SMBObj.udatatype = "WORKGROUP" then do 355 ok = VRSet("ContextMenu_Tree_Sep2", "Visible", 1) 354 356 ok = VRSet("ContextMenu_Tree_MiniIcons", "Visible", 1) 355 357 end … … 359 361 ok = VRSet("ContextMenu_Tree_Logoff", "Visible", 1) 360 362 ok = VRSet("ContextMenu_Tree_Sep1", "Visible", 1) 363 ok = VRSet("ContextMenu_Tree_Sep2", "Visible", 1) 361 364 ok = VRSet("ContextMenu_Tree_MiniIcons", "Visible", 1) 362 365 end … … 364 367 ok = VRSet("ContextMenu_Tree_ACLS", "Visible", 1) 365 368 ok = VRSet("ContextMenu_Tree_Sep1", "Visible", 1) 369 ok = VRSet("ContextMenu_Tree_Sep2", "Visible", 1) 366 370 ok = VRSet("ContextMenu_Tree_MiniIcons", "Visible", 1) 367 371 end 368 372 when SMBObj.udatatype = "PRINTER" then do 373 ok = VRSet("ContextMenu_Tree_Sep2", "Visible", 1) 369 374 ok = VRSet("ContextMenu_Tree_MiniIcons", "Visible", 1) 370 375 end … … 768 773 call SysLoadFuncs 769 774 770 call RxFuncAdd 'PRLoadFuncs', 'PR1UTIL', 'PRLoadFuncs'775 call RxFuncAdd 'PRLoadFuncs', 'PR1UTIL', 'PRLoadFuncs' 771 776 call PRLoadFuncs 772 777 773 call rxfuncadd 'IniLoadFuncs', 'REXXINI', 'IniLoadFuncs'778 call rxfuncadd 'IniLoadFuncs', 'REXXINI', 'IniLoadFuncs' 774 779 call IniLoadFuncs 780 781 call rxfuncadd 'RXUInit', 'RXU', 'RXUInit' 782 call rxuinit 775 783 776 784 call RxFuncAdd 'RxDate', 'RexxDate', 'RxDate' … … 1225 1233 say samba.!logdir 1226 1234 end 1227 loggingfreespace = word(SysDriveInfo(left(samba.!logdir,2)),2)%1024%1024 1235 if samba.!logdir = 'SAMBA.!LOGDIR' | samba.!Logdir = "" then do 1236 loggingfreespace = 0 1237 end 1238 else loggingfreespace = word(SysDriveInfo(left(samba.!logdir,2)),2)%1024%1024 1239 1228 1240 ok = VRSet("DT_FREESPACE", "Caption", " "loggingfreespace' MB') 1229 1241 … … 1423 1435 credentials.!password = VRGet("EF_PASSWORD1","Value") 1424 1436 1425 if pos("4OS2", value("COMSPEC",,"OS2ENVIRONMENT")) = 1 | pos(left(credentials.!password,1),'01234567890') > 01437 if pos("4OS2", value("COMSPEC",,"OS2ENVIRONMENT")) = 1 /* | pos(left(credentials.!password,1),'01234567890') > 0 */ 1426 1438 then UserCred = '--user='Credentials.!username'%%'Credentials.!password 1427 1439 else UserCred = '--user='Credentials.!username'%'Credentials.!password … … 1551 1563 otherwise ok = VRSet("IPB_paper","PicturePath","#5;#5") 1552 1564 end */ 1565 return 1566 1567 /*:VRX CN_ACLS_ContextMenu 1568 */ 1569 CN_ACLS_ContextMenu: 1570 window = VRLoadSecondary( "SW_ACLSEDIT", "W" ) 1553 1571 return 1554 1572 … … 2144 2162 return 2145 2163 2164 /*:VRX ICB_ACLSEDIT_CANCEL_Click 2165 */ 2166 ICB_ACLSEDIT_CANCEL_Click: 2167 call SW_ACLSEdit_Close 2168 return 2169 2170 /*:VRX ICB_ACLSEDIT_OK_Click 2171 */ 2172 ICB_ACLSEDIT_OK_Click: 2173 2174 call SW_ACLSEdit_Close 2175 return 2176 2146 2177 /*:VRX ICB_APPLY_Click 2147 2178 */ … … 2851 2882 return 2852 2883 2884 /*:VRX SW_ACLS_Activate 2885 */ 2886 SW_ACLS_Activate: 2887 2888 return 2889 2853 2890 /*:VRX SW_ACLS_Close 2854 2891 */ … … 2874 2911 aclsnumeric = '' 2875 2912 call _ACLSBrowse 2876 ACLSObj = VRGet("SW_ACLS","Caption") 2877 parse var ACLSObj .'\\'ACLSObj 2878 ACLSObj = NLVGetMessage(154)' \\'ACLSOBj 2879 ok = VRSet("SW_ACLS","Caption",ACLSObj) 2913 if VRIsValidObject("SW_ACLS") then do 2914 ACLSObj = VRGet("SW_ACLS","Caption") 2915 parse var ACLSObj .'\\'ACLSObj 2916 ACLSObj = NLVGetMessage(154)' \\'ACLSOBj 2917 ok = VRSet("SW_ACLS","Caption",ACLSObj) 2918 end 2880 2919 drop ACLSObj 2881 2920 return … … 2890 2929 */ 2891 2930 SW_ACLS_Init: 2931 window = VRInfo( "Object" ) 2932 if( \VRIsChildOf( window, "Notebook" ) ) then do 2933 call VRMethod window, "CenterWindow" 2934 call VRSet window, "Visible", 1 2935 call VRMethod window, "Activate" 2936 end 2937 drop window 2938 return 2939 2940 /*:VRX SW_ACLSEdit_Close 2941 */ 2942 SW_ACLSEdit_Close: 2943 call SW_ACLSEdit_Fini 2944 return 2945 2946 /*:VRX SW_ACLSEdit_Create 2947 */ 2948 SW_ACLSEdit_Create: 2949 call SW_ACLSEdit_Init 2950 ok = VRMethod("CN_ACLS","GetRecordList","Selected", "aclsrh.") 2951 if aclsrh.0 = 0 then return 2952 drop ACLS. 2953 do i = 1 to aclsrh.0 2954 ACLS.ACL = VRMethod("CN_ACLS","GetFieldData", aclsrh.i, ACL.typeFH ) 2955 ACLS.Group = VRMethod("CN_ACLS","GetFieldData", aclsrh.i, ACL.groupFH) 2956 ACLS.User = VRMethod("CN_ACLS","GetFieldData", aclsrh.i, ACL.userFH) 2957 ACLS.A_D = VRMethod("CN_ACLS","GetFieldData", aclsrh.i, ACL.ADFH) 2958 ACLS.Flags = VRMethod("CN_ACLS","GetFieldData", aclsrh.i, ACL.flagsFH) 2959 ACLS.Permissions = VRMethod("CN_ACLS","GetFieldData", aclsrh.i, ACL.accessFH) 2960 ok = VRSet("DDCB_ACLS_USER", "Value", ACLS.Group'\'ACLS.User) 2961 ok = VRSet("DDCB_ACLS_A_D", "Value", ACLS.A_D) 2962 ok = VRSet("DDCB_ACLS_FLAGS", "Value", ACLS.Flags) 2963 ok = VRSet("DDCB_ACLS_PERMISSIONS","Value", ACLS.Permissions) 2964 end 2965 return 2966 2967 /*:VRX SW_ACLSEdit_Fini 2968 */ 2969 SW_ACLSEdit_Fini: 2970 window = VRInfo( "Window" ) 2971 call VRDestroy window 2972 drop window 2973 return 2974 /*:VRX SW_ACLSEdit_Init 2975 */ 2976 SW_ACLSEdit_Init: 2892 2977 window = VRInfo( "Object" ) 2893 2978 if( \VRIsChildOf( window, "Notebook" ) ) then do
Note:
See TracChangeset
for help on using the changeset viewer.