Changeset 319
- Timestamp:
- Aug 25, 2009, 9:17:41 AM (16 years ago)
- Location:
- branches/guitools-2.0
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/guitools-2.0/evfsgui/changes
r317 r319 13 13 - Added: Double connection detection using hashes 14 14 - Added: New profile saving code 15 - Added: Remove menu option (preliminary for passive connections only) 16 - Added: smbtree.vrs: Optionally do not show hidden shares 17 - Added: smbtree.vrs: Enhanced guessicon() 18 - Fixed: Loading a profile presented the user a half drawn window 15 19 - Fixed: CltInit uses smbclient.exe instead of smbd.exe to find Samba binaries 16 20 - Fixed: Message queue during resize isn't cleared (no flashing during resize) -
branches/guitools-2.0/evfsgui/evfsgui.VRP
r317 r319 4 4 MacroPath: VRM: U:\Develop\Samba\guitools-2.0\smbclgui 5 5 EXEPath: 6 RunParameters: 6 RunParameters: y:\HB.evp 7 7 RunDirectory: 8 8 VRXWindow: __VREMainWindow,1,530,2457,879,4071 9 9 VRXWindow: __VRESectionListWindow,1,337,11708,11623,3686 10 VRXWindow: __VREToolsWindow,1,518,530,69 90,165910 VRXWindow: __VREToolsWindow,1,518,530,6984,1663 11 11 VRXWindow: __VREWindListWindow,1,482,7661,2650,3150 12 12 UserFile: 1 13 13 UserWindow: Main,1 14 UserWindow: SW_ADVANCED,1 14 15 UserWindow: SW_LOGIN,1 15 16 UserWindow: SW_MOUNTPOINT,1 -
branches/guitools-2.0/evfsgui/evfsgui.VRX
r317 r319 744 744 /*:VRX LoadSettings 745 745 */ 746 LoadSettings: PROCEDURE EXPOSE settings. options. fs. advanced. samba. 746 LoadSettings: PROCEDURE EXPOSE settings. options. fs. advanced. samba. ShowHidden 747 747 IF options.!debug == 1 THEN SAY time()' '||'LoadSettings started' 748 748 … … 798 798 say "Loadsettings" samba.!smbconf 799 799 if \VRFileExists( samba.!smbconf ) then call _CreateSmbConf 800 801 /* Hardcoded for EVFSGUI for now */ 802 ShowHidden = 0 800 803 801 804 /* Load font settings. … … 873 876 874 877 if options.!nogui == 1 then CALL VRLoadSecondary "SW_PROGRESS","W" 875 else call VRSet 'Main', 'Visible', 1 878 /* This is too early if a profile was loaded and Main_Resize does it anyway */ 879 /* else call VRSet 'Main', 'Visible', 1 */ 876 880 877 881 IF options.!debug == 1 THEN SAY time()' '||'LoadSettings done' … … 904 908 CALL _ContainersInit 905 909 910 CALL _GUIInit 911 906 912 CALL ParseCommandLine 907 913 … … 910 916 CALL _CltInit 911 917 912 CALL _GUIInit913 914 918 CALL LoadSettings 915 say 'advanced.!alwaysmp='advanced.!alwaysmp916 919 917 920 /* Populate the GUI */ … … 920 923 ELSE 921 924 CALL Refresh 922 say 'advanced.!alwaysmp='advanced.!alwaysmp 925 923 926 CALL VRSet "CB_MOUNT", "Selected", 1 924 927 CALL VRSet "CB_DRIVES", "Selected", 1 … … 928 931 if advanced.!browseimme == 1 then call PB_REFRESH_Click 929 932 end 930 say 'advanced.!alwaysmp='advanced.!alwaysmp 933 931 934 IF options.!debug == 1 THEN SAY time()' '||"Main_Create done" 932 935 return … … 952 955 953 956 /* Current Panel */ 957 ok = VRSet("GB_CURRENT","Visible",1) 954 958 ok = VRSet("GB_CURRENT","Top", FWidth) 955 959 ok = VRSet("GB_CURRENT","Left", FWidth-24) … … 1078 1082 ok = VRset("GB_MPOINT","Width", VRGet("GB_DIALOG","Width")-FWidth*2) 1079 1083 1084 ok = VRset("SPLIT_Main","Visible", 1) 1080 1085 ok = VRset("SPLIT_Main","Top", FWidth) 1081 1086 ok = VRset("SPLIT_Main","Height", VRGet("GB_CURRENT","Height")) … … 1190 1195 return 1191 1196 1197 /*:VRX Menu_Selected_Remove_Click 1198 */ 1199 Menu_Selected_Remove_Click: 1200 ok = VRMethod( "CN_CONDET", "GetRecordList", "SourceOrSelected", "selrec." ) 1201 if selrec.0 = 0 then return 1202 1203 do I = 1 to selrec.0 1204 if VRMethod("CN_CONDET", "GetFieldData", selrec.I, cd.statusfh) = '#68:PMWP.DLL' then do 1205 CALL VRMethod 'CN_CONDET', 'RemoveRecord', selrec.I 1206 end 1207 else do 1208 say "Active record, not yet implemented...." 1209 end 1210 end 1211 return 1212 1192 1213 /*:VRX Menu_View_Buttons_Click 1193 1214 */ … … 1223 1244 ok = VRSet("Menu_View_Dialog", "Checked", 0) 1224 1245 ok = VRSet("Menu_View_ConDet", "Checked", 1) 1246 1247 ok = VRSet("Menu_Selected_Remove", "Visible", 1) 1248 ok = VRMethod( "CN_CONDET", "GetRecordList", "All", "records." ) 1249 ok = VRSet("Menu_Selected_Remove", "Enabled", (records.0 = 0)) 1225 1250 return 1226 1251 … … 1240 1265 ok = VRSet("Menu_View_ConDet", "Checked", 0) 1241 1266 ok = VRSet("Menu_View_Dialog", "Checked", 1) 1267 1268 ok = VRSet("Menu_Selected_Remove", "Visible", 0) 1242 1269 return 1243 1270 … … 1257 1284 ok = VRSet("Menu_View_ConDet","Checked", 0) 1258 1285 ok = VRSet("Menu_View_SmbTree","Checked", 1) 1286 1287 ok = VRSet("Menu_Selected_Remove", "Visible", 0) 1259 1288 return 1260 1289 -
branches/guitools-2.0/shared/smbtree.vrs
r315 r319 11 11 UserCred = '-N' 12 12 end 13 14 if ShowHidden = 'SHOWHIDDEN' | ShowHidden = '' then ShowHidden = 1 15 13 16 say 'detach 'samba.!smbtreeexe' 'debuglevel' 'UserCred' >'samba.!msg 14 17 address cmd 'detach 'samba.!smbtreeexe' 'debuglevel' 'UserCred' >'samba.!msg … … 63 66 parent = smbtree.!machine 64 67 smbtree.!share = VRMethod( "CN_smbtree", "AddRecord",parent,, share||'0D0A'x||comment, res) 68 if pos("$", share) > 0 then ok = VRMethod( "CN_smbtree", "SetRecordAttr", smbtree.!share, "Visible", ShowHidden) 65 69 end 66 70 end … … 146 150 */ 147 151 _GuessIcon: procedure 148 text = arg(1)152 text = translate(arg(1)) 149 153 select /* Printer guessing */ 150 154 when pos('LJ',text) > 0 then res = '#65:PMWP.DLL' … … 158 162 when pos('LEXMARK',text) > 0 then res = '#65:PMWP.DLL' 159 163 when pos('IPC$',text) > 0 then res = '#59:PMWP.DLL' 164 when pos('GHOSTPDF',text)> 0 then res = '#65:PMWP.DLL' 165 when pos('PDF',text) > 0 & , 166 pos('WRI',text) > 0 then res = '#65:PMWP.DLL' 160 167 otherwise res = "#34:PMWP.DLL" 161 168 end
Note:
See TracChangeset
for help on using the changeset viewer.