Changeset 688
- Timestamp:
- Feb 7, 2012, 9:30:41 AM (14 years ago)
- Location:
- trunk/guitools
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/evfsgui/changes
r675 r688 16 16 17 17 Version 2.5.x 2012-??-?? 18 + Added: Show for who we are waiting 18 19 + Added: -timesync switch, allows time sync using commandline 19 20 + Added: Support time synchronisation (requires new net.exe) -
trunk/guitools/evfsgui/evfsgui.vrp
r675 r688 9 9 RunDirectory: U:\Develop\Samba\trunk\guitools\evfsgui 10 10 VRXWindow: __VREMainWindow,1,1951,2361,891,7841 11 VRXWindow: __VREFileListWindow,1,1 144,10744,2665,335812 VRXWindow: __VRESectionListWindow,1,39 03,10744,8082,450513 VRXWindow: __VREToolsWindow,0, 2987,8528,6486,166911 VRXWindow: __VREFileListWindow,1,1253,11033,2665,3358 12 VRXWindow: __VRESectionListWindow,1,3927,11033,8082,7986 13 VRXWindow: __VREToolsWindow,0,3084,8528,6486,1669 14 14 VRXWindow: __VREWindListWindow,1,723,11708,3686,3150 15 15 UserFile: 1 16 16 UserWindow: Main,1 17 UserWindow: SW_SMBTREE,118 UserWindow: SW_DIALOG,1 -
trunk/guitools/evfsgui/evfsgui.vrx
r675 r688 2469 2469 LoadFileSysFuncs: 2470 2470 IF options.!debug == 1 THEN SAY time()' LoadFileSysFuncs() started' 2471 2471 2472 Fatal = 1 2472 2473 RestartCount = 0 … … 2474 2475 FoundND = 1 2475 2476 2476 if SysSearchPath("PATH", "EVFSCTL.EXE") = "" then do 2477 program = VRGet("Application", "Program") 2478 if program = "" then parse source . . program 2479 say "Program = '"program"'" 2480 program = translate(VRParseFileName(Program,'N')) 2481 say "Program = '"program"'" 2482 2483 if SysSearchPath("PATH", "EVFSCTL.EXE") = "" | program = "SMBGUI" then do 2477 2484 FoundEVFS = 0 2478 2485 ForceNDFS = 1 … … 2554 2561 */ 2555 2562 Main_Create: 2556 options.!debug = 12563 options.!debug = 0 2557 2564 IF options.!debug == 1 THEN do 2558 2565 ok = VRRedirectStdIO("ON") … … 4390 4397 CALL NLVSetText 'CB_TRAC', "Caption", 134 4391 4398 4392 ok = VRSet("DT_About","Caption", 'EVFSGUI (c) 2007-2011Alexander Taylor and Herwig Bauernfeind')4399 ok = VRSet("DT_About","Caption", Program' (c) 2007-2012 Alexander Taylor and Herwig Bauernfeind') 4393 4400 4394 4401 About.DscFH = VRMethod( "CN_ABOUT", "AddField", "String", "Component" ) -
trunk/guitools/shared/smbtree.vrs
r660 r688 5 5 say time()' _RefreshTree() started' 6 6 FirstRun = 0 7 7 if VRIsValidObject("DT_STATUSBAR") then ok = VRSet("DT_STATUSBAR","Caption", "Refreshing network") 8 8 ok = SysFileDelete(samba.!msg) 9 9 … … 36 36 37 37 stat = stream(samba.!serverlist,'c','open read') 38 if stat <> "READY:" then return 38 if stat <> "READY:" then do 39 if VRIsValidObject("DT_STATUSBAR") then ok = VRSet("DT_STATUSBAR","Caption", VRGet("DT_STATUSBAR","Caption")||'.') 40 return 41 end 39 42 40 43 if UserCred = 'USERCRED' | UserCred = '' | UserCred = '--user=%' then UserCred = '-N' … … 392 395 if BroadCast = 1 then BroadCast = '-b'; else BroadCast = '' 393 396 394 say ' 'samba.!smbtreeexe' 'BroadCast' -D 'debuglevel' 'UserCred' >'samba.!msg 395 address cmd samba.!smbtreeexe' 'BroadCast' -D 'debuglevel' 'UserCred' >'samba.!msg 397 call VRSet VRWindow(), 'Pointer', 'Wait' 398 say ' detach 'samba.!smbtreeexe' 'BroadCast' -D 'debuglevel' 'UserCred' >'samba.!msg 399 address cmd 'detach 'samba.!smbtreeexe' 'BroadCast' -D 'debuglevel' 'UserCred' >'samba.!msg 400 401 if VRIsValidObject("DT_STATUSBAR") then ok = VRSet("DT_STATUSBAR","Caption","Enumerating workgroups") 402 do while stream(samba.!msg,'c','open read') <> "READY:" 403 ok = SysSleep(1) 404 if VRIsValidObject("DT_STATUSBAR") then ok = VRSet("DT_STATUSBAR","Caption", VRGet("DT_STATUSBAR","Caption")||'.') 405 end 406 call VRSet VRWindow(), 'Pointer', '<default>' 396 407 397 408 if BroadCast = '-b' then BroadCast = 1; else BroadCast = 0 … … 445 456 /* Get all IP addresses of the machine */ 446 457 machine = arg(1) 447 say ' 'samba.!nmblookupexe' 'machine' 'debuglevel' >'samba.!msg 448 address cmd samba.!nmblookupexe' 'machine' 'debuglevel' >'samba.!msg 458 call VRSet VRWindow(), 'Pointer', 'Wait' 459 say ' detach 'samba.!nmblookupexe' 'machine' 'debuglevel' >'samba.!msg 460 address cmd 'detach 'samba.!nmblookupexe' 'machine' 'debuglevel' >'samba.!msg 461 462 if VRIsValidObject("DT_STATUSBAR") then ok = VRSet("DT_STATUSBAR","Caption","Obtaining IP from "machine) 463 do while stream(samba.!msg,'c','open read') <> "READY:" 464 ok = SysSleep(0.33) 465 if VRIsValidObject("DT_STATUSBAR") then ok = VRSet("DT_STATUSBAR","Caption", VRGet("DT_STATUSBAR","Caption")||'.') 466 end 467 call VRSet VRWindow(), 'Pointer', '<default>' 468 449 469 ok = file2stem(samba.!msg,"nmblookup.") 450 470 ipstr = ""; ip = "" … … 461 481 _GetMachineMACRoles: procedure expose debuglevel samba. 462 482 machine = arg(1) /* May be name or IP */ 463 say ' 'samba.!nmblookupexe' -A 'machine' 'debuglevel' >'samba.!msg 464 address cmd samba.!nmblookupexe' -A 'machine' 'debuglevel' >'samba.!msg 483 call VRSet VRWindow(), 'Pointer', 'Wait' 484 say ' detach 'samba.!nmblookupexe' -A 'machine' 'debuglevel' >'samba.!msg 485 address cmd 'detach 'samba.!nmblookupexe' -A 'machine' 'debuglevel' >'samba.!msg 486 487 if VRIsValidObject("DT_STATUSBAR") then ok = VRSet("DT_STATUSBAR","Caption","Obtaining capabilities from "machine) 488 do while stream(samba.!msg,'c','open read') <> "READY:" 489 ok = SysSleep(0.33) 490 if VRIsValidObject("DT_STATUSBAR") then ok = VRSet("DT_STATUSBAR","Caption", VRGet("DT_STATUSBAR","Caption")||'.') 491 end 492 call VRSet VRWindow(), 'Pointer', '<default>' 465 493 ok = file2stem(samba.!msg,"nmblookup.") 466 494 Roles = "" … … 486 514 _GetMachineNMBStatus: procedure expose debuglevel samba. 487 515 machine = arg(1) /* name only allowed */ 488 say ' 'samba.!nmblookupexe' -S 'machine' 'debuglevel' >'samba.!msg 489 address cmd samba.!nmblookupexe' -S 'machine' 'debuglevel' >'samba.!msg 516 call VRSet VRWindow(), 'Pointer', 'Wait' 517 say ' detach 'samba.!nmblookupexe' -S 'machine' 'debuglevel' >'samba.!msg 518 address cmd 'detach 'samba.!nmblookupexe' -S 'machine' 'debuglevel' >'samba.!msg 519 520 if VRIsValidObject("DT_STATUSBAR") then ok = VRSet("DT_STATUSBAR","Caption","Querying "machine" for roles") 521 do while stream(samba.!msg,'c','open read') <> "READY:" 522 ok = SysSleep(0.33) 523 if VRIsValidObject("DT_STATUSBAR") then ok = VRSet("DT_STATUSBAR","Caption", VRGet("DT_STATUSBAR","Caption")||'.') 524 end 525 call VRSet VRWindow(), 'Pointer', '<default>' 526 490 527 ok = file2stem(samba.!msg,"nmblookup.") 491 528 IPStr = "" -
trunk/guitools/smbmon/changes
r642 r688 1 1 Version 2.5.alpha 10-2011 2 +Added: Delete old logs 3 +Added: enhanced refresh code 2 4 *Changed: Use Alex Taylor's Warp4-style notebook 3 5 instead of my emulation -
trunk/guitools/smbmon/rc/lang/smbmon_de.mkm
r654 r688 20 20 SMM0015I: Benutzer 21 21 SMM0016I: Dateien 22 SMM0017I: Dienste22 SMM0017I: Freigaben 23 23 SMM0018I: Prozesse 24 24 SMM0019I: Netzwerkumgebung … … 32 32 SMM0027I: Keine Besttigung nach Start/Stop/Restart/Reload 33 33 SMM0028I: wenn minimiert 34 SMM0029 ?:34 SMM0029I: WPS Methode zum Starten/Stoppen/Neustarten/Neu laden benutzen 35 35 SMM0030?: 36 36 ; Daemons Context menu … … 63 63 SMM0055I: Alle Benutzer anzeigen, die mit diesem Server verbunden sind. 64 64 SMM0056I: Alle auf diesem Server geffneten Dateien anzeigen. 65 SMM0057I: Alle auf diesem Server verbundenen Diensteanzeigen.65 SMM0057I: Alle auf diesem Server verbundenen Freigaben anzeigen. 66 66 SMM0058I: Alle auf diesem Server gestarteten Prozesse anzeigen. 67 67 SMM0059I: Die Netzwerkumgebung dieses Servers anzeigen. -
trunk/guitools/smbmon/rc/lang/smbmon_en.mkm
r654 r688 20 20 SMM0015I: Users 21 21 SMM0016I: Files 22 SMM0017I: S ervices22 SMM0017I: Shares 23 23 SMM0018I: Daemons 24 24 SMM0019I: Nethood … … 32 32 SMM0027I: No messagebox after Start/Stop/Restart/Reload 33 33 SMM0028I: when minimized 34 SMM0029 ?:34 SMM0029I: Use WPS method to Start/Stop/Restart/Reload 35 35 SMM0030?: 36 36 ; Daemons Context menu -
trunk/guitools/smbmon/rc/lang/smbmon_es.mkm
r654 r688 32 32 SMM0027I: Sin mensajes despues de Iniciar/Parar/Reiniciar/Recargar 33 33 SMM0028I: mientras est minimizado 34 SMM0029 ?:34 SMM0029I: Utilizar WPS mtodo para Iniciar/Parar/Reiniciar/Recargar 35 35 SMM0030?: 36 36 ; Daemons Context menu -
trunk/guitools/smbmon/rc/lang/smbmon_fr.mkm
r654 r688 34 34 SMM0027I: Pas de bote de message aprs dmarrage/arrt/redmarrage/rechargement 35 35 SMM0028I: si rduit 36 SMM0029 ?:36 SMM0029I: Utilisez WPS mthode pout dmarrage/arrt/redmarrage/rechargement 37 37 SMM0030?: 38 38 ; Daemons Context menu -
trunk/guitools/smbmon/rc/lang/smbmon_sv.mkm
r654 r688 32 32 SMM0027I: Ingen meddelanderuta efter Start/Stop/Omstart/Omladdning 33 33 SMM0028I: vid minimerad 34 SMM0029 ?:34 SMM0029I: Anvnd WPS metod fr att Start/Stop/Omstart/Omladdning 35 35 SMM0030?: 36 36 ; Daemons Context menu -
trunk/guitools/smbmon/smbmon.vrp
r654 r688 8 8 VRXWindow: __VREMainWindow,1,2180,3614,915,4216 9 9 VRXWindow: __VRESectionListWindow,1,3541,11804,7914,3342 10 VRXWindow: __VREToolsWindow,1,2156,1494,648 6,166510 VRXWindow: __VREToolsWindow,1,2156,1494,6483,1663 11 11 VRXWindow: __VREWindListWindow,1,964,11708,2650,3150 12 12 UserFile: 1 -
trunk/guitools/smbmon/smbmon.vrx
r654 r688 209 209 return 210 210 211 /*:VRX _CreateSmbStarter 212 */ 213 _CreateSmbStarter: 214 ok = SysFileDelete(samba.!bin'\smbstarter.cmd') 215 call lineout samba.!bin'\smbstarter.cmd', '/* REXX */' 216 call lineout samba.!bin'\smbstarter.cmd', 'signal on failure name CLEANUP' 217 call lineout samba.!bin'\smbstarter.cmd', 'signal on halt name CLEANUP' 218 call lineout samba.!bin'\smbstarter.cmd', 'signal on syntax name CLEANUP' 219 call lineout samba.!bin'\smbstarter.cmd', 'say "Samba Server Starter"' 220 call lineout samba.!bin'\smbstarter.cmd', 'address cmd "@echo off"' 221 call lineout samba.!bin'\smbstarter.cmd', 'home:' 222 call lineout samba.!bin'\smbstarter.cmd', 'select' 223 call lineout samba.!bin'\smbstarter.cmd', 'when VRFileExists("smbstart") then do' 224 call lineout samba.!bin'\smbstarter.cmd', 'say "Start"' 225 call lineout samba.!bin'\smbstarter.cmd', 'address cmd "call 'samba.!bin'\smb.cmd start"' 226 call lineout samba.!bin'\smbstarter.cmd', 'ok = SysFileDelete("smbstart")' 227 call lineout samba.!bin'\smbstarter.cmd', 'end' 228 call lineout samba.!bin'\smbstarter.cmd', 'when VRFileExists("smbstop") then do' 229 call lineout samba.!bin'\smbstarter.cmd', 'say "Stop"' 230 call lineout samba.!bin'\smbstarter.cmd', 'address cmd "call 'samba.!bin'\smb.cmd stop"' 231 call lineout samba.!bin'\smbstarter.cmd', 'ok = SysFileDelete("smbstop")' 232 call lineout samba.!bin'\smbstarter.cmd', 'end' 233 call lineout samba.!bin'\smbstarter.cmd', 'when VRFileExists("restart") then do' 234 call lineout samba.!bin'\smbstarter.cmd', 'say "Restart"' 235 call lineout samba.!bin'\smbstarter.cmd', 'address cmd "call 'samba.!bin'\smb.cmd restart"' 236 call lineout samba.!bin'\smbstarter.cmd', 'ok = SysFileDelete("restart")' 237 call lineout samba.!bin'\smbstarter.cmd', 'end' 238 call lineout samba.!bin'\smbstarter.cmd', 'when VRFileExists("reload") then do' 239 call lineout samba.!bin'\smbstarter.cmd', 'say "Reload"' 240 call lineout samba.!bin'\smbstarter.cmd', 'address cmd "call 'samba.!bin'\smb.cmd reload"' 241 call lineout samba.!bin'\smbstarter.cmd', 'ok = SysFileDelete("reload")' 242 call lineout samba.!bin'\smbstarter.cmd', 'end' 243 call lineout samba.!bin'\smbstarter.cmd', 'when VRFileExists("quit") then do' 244 call lineout samba.!bin'\smbstarter.cmd', 'say "Quit"' 245 call lineout samba.!bin'\smbstarter.cmd', 'ok = SysFileDelete("quit")' 246 call lineout samba.!bin'\smbstarter.cmd', 'signal cleanup' 247 call lineout samba.!bin'\smbstarter.cmd', 'end' 248 call lineout samba.!bin'\smbstarter.cmd', 'otherwise nop' 249 call lineout samba.!bin'\smbstarter.cmd', 'end' 250 call lineout samba.!bin'\smbstarter.cmd', 'ok = SysSleep(1)' 251 call lineout samba.!bin'\smbstarter.cmd', 'signal home' 252 call lineout samba.!bin'\smbstarter.cmd', 'cleanup:' 253 call lineout samba.!bin'\smbstarter.cmd', 'say "Aborting..."' 254 call lineout samba.!bin'\smbstarter.cmd', 'exit' 255 ok = stream(samba.!bin'\smbstarter.cmd','c','close') 256 257 Setup = 'NOPRINT=YES;DEFAULTVIEW=RUNNING;'||, 258 'EXENAME='samba.!bin'\smbstarter.cmd;'||, 259 'STARTUPDIR='samba.!bin';'||, 260 'TITLE=;'||, 261 'PROGTYPE=WINDOWABLEVIO;'||, 262 'MINIMIZED=YES;'||, 263 'VISIBLE=NO;'||, 264 'NOAUTOCLOSE=NO;'||, 265 'OBJECTID=<smbstarter>' 266 267 rc = SysCreateObject('WPProgram', 'SMBSTARTER', '<WP_NOWHERE>', Setup, 'UPDATE' ) 268 If rc <> 1 Then Say ' > failed to create SMBSTARTER Object' 269 else ok = SysOpenObject('<smbstarter>', 'DEFAULT', 1) 270 271 272 return 273 211 274 /*:VRX _GuessIcon 212 275 */ … … 239 302 ok = VRset("Main","Height",Height) 240 303 end 241 ok = VRSet("Main","Font", Font_Main) 242 ok = VRSet("Main","Statusfont", Font_Status) 243 /* ok = VRSet("Page_1","Font", Font_Page_1) 244 ok = VRSet("Page_2","Font", Font_Page_2) 245 ok = VRSet("Page_3","Font", Font_Page_3) 246 ok = VRSet("Page_4","Font", Font_Page_4) 247 ok = VRSet("Page_5","Font", Font_Page_5) 248 ok = VRSet("Page_6","Font", Font_Page_6) */ 304 ok = VRSet("Main", "Font", Font.!Main) 305 ok = VRSet("DT_StatusBar","Font", Font.!Status) 306 ok = VRSet("SW_Users", "Font", Font.!Users) 307 ok = VRSet("SW_Files", "Font", Font.!Files) 308 ok = VRSet("SW_Service", "Font", Font.!Service) 309 ok = VRSet("SW_Daemons", "Font", Font.!Daemons) 310 ok = VRSet("SW_SMBTree", "Font", Font.!SMBTree) 311 ok = VRSet("SW_Settings", "Font", Font.!Settings) 312 313 ok = VRSet("CN_Users", "Font", Font.!Users) 314 ok = VRSet("CN_Files", "Font", Font.!Files) 315 ok = VRSet("CN_Service", "Font", Font.!Service) 316 ok = VRSet("CN_Daemons", "Font", Font.!Daemons) 317 ok = VRSet("CN_SMBTree", "Font", Font.!SMBTree) 318 319 249 320 Buttonwidth = VRMethod( "Screen", "PixelsToTwips", 32 ) 250 321 … … 253 324 ok = VRSet("TM_Refresh","Delay", Intervall * 1000) 254 325 255 ok = VRSet("PB_START", 326 ok = VRSet("PB_START", "Enabled", VRFileExists(samba.!smbcmd)) 256 327 ok = VRSet("PB_Restart","Enabled", VRFileExists(samba.!smbcmd)) 257 328 ok = VRSet("PB_Reload", "Enabled", VRFileExists(samba.!smbcmd)) … … 260 331 ok = VRSet("CN_smbtree", "View", TreeView) 261 332 ok = VRSet("CB_NoMsgBox","Set", NoMsgBox) 333 ok = VRSet("CB_WPSStartStop","Set", WPSStartStop) 262 334 263 335 call _INILayoutRead "CN_Users" … … 325 397 if INIFound.0 = 1 then OurINI = VRParseFileName(INIFound.1,'DPNE') 326 398 say 'OurINI='OurINI 327 HelpF Ile = VRParseFileName(OurINI,'DPN')'.HLP'328 say 'HelpFile='HelpFile399 HelpFile = VRParseFileName(OurINI,'DPN')'.HLP' 400 say 'HelpFile='HelpFile 329 401 330 402 Top = VRGetIni( "Pos", "Top", OurINI , 'NoClose') … … 333 405 Height= VRGetIni( "Pos", "Height", OurINI , 'NoClose') 334 406 335 Font_Page_1 = VRGetIni( "Fonts", "Page_1", OurINI , 'NoClose' ) 336 Font_Page_2 = VRGetIni( "Fonts", "Page_2", OurINI , 'NoClose' ) 337 Font_Page_3 = VRGetIni( "Fonts", "GB_SERVICE", OurINI , 'NoClose' ) 338 Font_Page_4 = VRGetIni( "Fonts", "Page_4", OurINI , 'NoClose' ) 339 Font_Page_5 = VRGetIni( "Fonts", "Page_5", OurINI , 'NoClose' ) 340 Font_Page_6 = VRGetIni( "Fonts", "Page_6", OurINI , 'NoClose' ) 341 Font_Main = VRGetIni( "Fonts", "Main", OurINI , 'NoClose' ) 342 Font_Status = VRGetIni( "Fonts", "Statusfont", OurINI , 'NoClose' ) 343 344 if Font_Page_1 = "" then Font_Page_1 = "8.Helv" 345 if Font_Page_2 = "" then Font_Page_2 = "8.Helv" 346 if Font_Page_3 = "" then Font_Page_3 = "8.Helv" 347 if Font_Page_4 = "" then Font_Page_4 = "8.Helv" 348 if Font_Page_5 = "" then Font_Page_5 = "8.Helv" 349 if Font_Main = "" then Font_Main = "8.Helv" 350 if Font_Status = "" then Font_Status = "8.Helv" 407 Font.!Users = VRGetIni( "Fonts", "SW_USERS", OurINI , 'NoClose' ) 408 Font.!Files = VRGetIni( "Fonts", "SW_FILES", OurINI , 'NoClose' ) 409 Font.!Service = VRGetIni( "Fonts", "SW_SERVICE", OurINI , 'NoClose' ) 410 Font.!Daemons = VRGetIni( "Fonts", "SW_DAEMONS", OurINI , 'NoClose' ) 411 Font.!SMBTree = VRGetIni( "Fonts", "SW_SMBTREE", OurINI , 'NoClose' ) 412 Font.!Settings= VRGetIni( "Fonts", "SW_SETTINGS", OurINI , 'NoClose' ) 413 Font.!Main = VRGetIni( "Fonts", "Main", OurINI , 'NoClose' ) 414 Font.!Status = VRGetIni( "Fonts", "Statusfont", OurINI , 'NoClose' ) 415 416 if Font.!Users = "" then Font.!Users = "9.WarpSans" 417 if Font.!Files = "" then Font.!Files = "9.WarpSans" 418 if Font.!Service = "" then Font.!Service = "9.WarpSans" 419 if Font.!Daemons = "" then Font.!Daemons = "9.WarpSans" 420 if Font.!SMBTree = "" then Font.!SMBTree = "9.WarpSans" 421 if Font.!Settings = "" then Font.!Settings = "9.WarpSans" 422 if Font.!Main = "" then Font.!Main = "9.WarpSans" 423 if Font.!Status = "" then Font.!Status = "9.WarpSans" 351 424 352 425 Intervall = VRGetIni( "Settings", "Intervall", OurINI) … … 367 440 NoMsgBox = VRGetIni( "Settings", "NoMsgBox", OurINI) 368 441 if NoMsgBox = "" then NoMsgBox = 0 442 443 WPSStartStop = VRGetIni( "Settings", "WPSStartStop", OurINI) 444 if WPSStartStop = "" then WPSStartStop = 0 369 445 370 446 options.!debug = VRGetIni( "Options", "Debug", OurINI) … … 410 486 ok = VRSetIni( "Settings", "CurrentPageNr",CurrentPageNr, OurINI,'NoClose') 411 487 ok = VRSetIni( "Settings", "DaemonView", VRGet("CN_Daemons","View"), OurINI,'NoClose') 412 ok = VRSetIni( "Settings", "TreeView", VRGet("CN_smbtree","View"), 488 ok = VRSetIni( "Settings", "TreeView", VRGet("CN_smbtree","View"), OurINI,'NoClose') 413 489 ok = VRSetIni( "Settings", "NoMsgBox", NoMsgBox, OurINI,'NoClose') 490 ok = VRSetIni( "Settings", "WPSStartStop", WPSStartStop, OurINI,'NoClose') 414 491 ok = VRSetIni( "Settings", "BigIcons", \VRGet("CN_SMBTREE", "MiniIcons"),OurINI,'NoClose') 415 492 … … 421 498 call _INILayoutWrite "CN_Daemons" 422 499 call _INILayoutWrite "CN_smbtree" 500 501 if VRGet("CN_USERS", "Font") <> "<default>" then ok = VRSet("SW_USERS", "Font", VRGet("CN_USERS", "Font")) 502 if VRGet("CN_FILES", "Font") <> "<default>" then ok = VRSet("SW_FILES", "Font", VRGet("CN_FILES", "Font")) 503 if VRGet("CN_SERVICE", "Font") <> "<default>" then ok = VRSet("SW_SERVICE","Font", VRGet("CN_SERVICE","Font")) 504 if VRGet("CN_DAEMONS", "Font") <> "<default>" then ok = VRSet("SW_DAEMONS","Font", VRGet("CN_DAEMONS","Font")) 505 if VRGet("CN_SMBTREE", "Font") <> "<default>" then ok = VRSet("SW_SMBTREE","Font", VRGet("CN_SMBTREE","Font")) 423 506 424 /* ok = VRSetIni( "Fonts", "Page_1", VRGet("Page_1","Font"), OurINI, 'NoClose' ) 425 ok = VRSetIni( "Fonts", "Page_2", VRGet("Page_2","Font"), OurINI, 'NoClose' ) 426 if VRget("CN_Users", "Font") <> "<default>" then ok = VRset("Page_1", "Font", VRget("CN_Users", "Font")) 427 if VRget("CN_Files", "Font") <> "<default>" then ok = VRset("Page_2", "Font", VRget("CN_Files", "Font")) 428 if VRget("CN_Service", "Font") <> "<default>" then ok = VRset("Page_3", "Font", VRget("CN_Service", "Font")) 429 if VRget("CN_Daemons", "Font") <> "<default>" then ok = VRset("Page_4", "Font", VRget("CN_Daemons", "Font")) 430 ok = VRSetIni( "Fonts", "Page_3", VRGet("Page_3","Font"), OurINI, 'NoClose' ) 431 ok = VRSetIni( "Fonts", "Page_4", VRGet("Page_4","Font"), OurINI, 'NoClose' ) 432 ok = VRSetIni( "Fonts", "Page_5", VRGet("Page_5","Font"), OurINI, 'NoClose' ) 433 ok = VRSetIni( "Fonts", "Page_6", VRGet("Page_6","Font"), OurINI, 'NoClose' ) */ 434 ok = VRSetIni( "Fonts", "Statusfont", VRGet("Main","Statusfont"), OurINI, 'NoClose' ) 507 ok = VRSetIni( "Fonts", "SW_USERS", VRGet("SW_USERS", "Font"), OurINI, 'NoClose' ) 508 ok = VRSetIni( "Fonts", "SW_FILES", VRGet("SW_FILES", "Font"), OurINI, 'NoClose' ) 509 ok = VRSetIni( "Fonts", "SW_SERVICE", VRGet("SW_SERVICE", "Font"), OurINI, 'NoClose' ) 510 ok = VRSetIni( "Fonts", "SW_DAEMONS", VRGet("SW_DAEMONS", "Font"), OurINI, 'NoClose' ) 511 ok = VRSetIni( "Fonts", "SW_SMBTREE", VRGet("SW_SMBTREE", "Font"), OurINI, 'NoClose' ) 512 ok = VRSetIni( "Fonts", "SW_SETTINGS",VRGet("SW_SETTINGS","Font"), OurINI, 'NoClose' ) 513 ok = VRSetIni( "Fonts", "Statusfont", VRGet("DT_StatusBar","Font"),OurINI, 'NoClose' ) 435 514 ok = VRSetIni( "Fonts", "Main", VRGet("Main","Font"), OurINI ) 436 515 say 'done _INIWrite()' … … 508 587 ok = VRSet("DT_IntervallMin","Caption", NLVGetMessage(26)' 'NLVGetMessage(28)) 509 588 CALL NLVSetText 'CB_NoMsgBox', 'Caption', 27 589 CALL NLVSetText 'CB_WPSSTARTSTOP','Caption', 29 510 590 511 591 CALL NLVSetText 'ContextMenu_Daemons_Sort', 'Caption', 35 … … 545 625 ok = stream(refreshoutput,'c','close') 546 626 547 say ' 'samba.!smbstatusexe' smbd 'DebugLevel' 2>'refresherr' 1>'refreshoutput627 say ' 'samba.!smbstatusexe' smbd 'DebugLevel' 2>'refresherr' 1>'refreshoutput 548 628 address cmd samba.!smbstatusexe' smbd 'DebugLevel' 2>'refresherr' 1>'refreshoutput 549 629 … … 585 665 say 'SmbNoInit = 'SmbNoInit 586 666 667 /* Active users */ 587 668 ok = VRSet("CN_Users","Painting", 0) 588 669 ok = VRMethod("CN_Users", "RemoveRecord", "ALL") … … 640 721 ok = VRSet("CN_Service","Painting", 1) 641 722 642 /* Active Services */723 /* Open files */ 643 724 Hdr = linein(refreshoutput) 644 725 Hdr = linein(refreshoutput) … … 1117 1198 return 1118 1199 1200 /*:VRX CB_WPSSTARTSTOP_Click 1201 */ 1202 CB_WPSSTARTSTOP_Click: 1203 WPSStartStop = VRGet("CB_WPSStartStop","set") 1204 say 'WPSStartStop = "'WPSStartStop'"' 1205 return 1206 1207 /*:VRX CN_Daemons_Click 1208 */ 1209 CN_Daemons_Click: 1210 ok = VRSet("TM_Refresh","Enabled", 0) 1211 ok = VRSet("TM_RefreshDaemons","Enabled", 0) 1212 ok = VRSet("PB_PAUSEDISPLAY","Caption", "Resume") 1213 return 1214 1119 1215 /*:VRX CN_Daemons_ContextMenu 1120 1216 */ … … 1122 1218 if VRInfo("Top") < 400 & VRGet("CN_Daemons", "View") = "Detail" then call _ColumnsMenu "CN_Daemons" 1123 1219 else do 1124 ok = VRSet("TM_refresh","Enabled", 0) 1220 ok = VRSet("TM_Refresh","Enabled", 0) 1221 ok = VRSet("TM_RefreshDaemons","Enabled", 0) 1222 ok = VRSet("PB_PAUSEDISPLAY","Caption", "Resume") 1125 1223 DRH = VRInfo("Record") 1126 1224 OH = VRInfo("Object") … … 1535 1633 call _NLVSetup 1536 1634 call _SambaInit 1635 if \WPSStartStop then call _CreateSmbStarter 1537 1636 if _SambaRunning() then call _SambaFindPIDfile 1538 1637 call _ContainerInit … … 1645 1744 ok = VRSet("PB_Restart","Top", pbtn_height*4 - marginx2) 1646 1745 ok = VRSet("PB_Reload", "Top", pbtn_height*5 - marginx2) 1746 ok = VRSet("PB_DelLogs","Top", pbtn_height*6 - marginx2) 1747 ok = VRSet("DT_PAUSEDISPLAY","Top", pane_height - pbtn_height*2 -1020 - marginx2) 1748 ok = VRSet("PB_PAUSEDISPLAY","Top", pane_height - pbtn_height -1020 - marginx2) 1647 1749 1648 1750 ok = VRSet("PB_START", "Left", pane_width - 760 - marginx2 - pbtn_width) … … 1650 1752 ok = VRSet("PB_Restart","Left", pane_width - 760 - marginx2 - pbtn_width) 1651 1753 ok = VRSet("PB_Reload", "Left", pane_width - 760 - marginx2 - pbtn_width) 1754 ok = VRSet("PB_DelLogs","Left", pane_width - 760 - marginx2 - pbtn_width) 1755 ok = VRSet("DT_PAUSEDISPLAY","Left", pane_width - 760 - marginx2 - pbtn_width) 1756 ok = VRSet("PB_PAUSEDISPLAY","Left", pane_width - 760 - marginx2 - pbtn_width) 1652 1757 1653 1758 ok = VRset("GB_SMBTREE","Top", margin ) … … 1770 1875 return 1771 1876 1877 /*:VRX PB_DELLOGS_Click 1878 */ 1879 PB_DELLOGS_Click: 1880 call VRSet VRWindow(), 'Pointer', 'Wait' 1881 1882 /* Fixme - this needs to be read from smb.conf */ 1883 samba.!logdir = ETC'\samba\log' 1884 1885 ok = SysFileTree(samba.!logdir'\log.*', logs.,'FO') 1886 do I = 1 to logs.0 1887 ok = VRMethod( "CN_Daemons", "GetRecordList", "All", "handle." ) 1888 KeepLog = 0 1889 do J = 1 to handle.0 1890 CurPID = VRMethod("CN_Daemons", "GetFieldData", handle.J, DPidsFH) 1891 if pos(CurPID,logs.I) > 0 then KeepLog = 1 1892 end 1893 if KeepLog = 0 then ok = SysFileDelete(logs.I) 1894 end 1895 1896 call VRSet VRWindow(), 'Pointer', '<default>' 1897 return 1898 1772 1899 /*:VRX PB_Help_Click 1773 1900 */ 1774 1901 PB_Help_Click: 1775 1902 ok = VRMethod("Page_"CurrentPageNr, "InvokeHelp" ) 1903 return 1904 1905 /*:VRX PB_PAUSEDISPLAY_Click 1906 */ 1907 PB_PAUSEDISPLAY_Click: 1908 if VRGet("TM_RefreshDaemons","Enabled") then do 1909 ok = VRSet("TM_RefreshDaemons","Enabled", 0) 1910 ok = VRSet("PB_PAUSEDISPLAY","Caption", "Resume") 1911 end 1912 else do 1913 ok = VRSet("TM_RefreshDaemons","Enabled", 1) 1914 ok = VRSet("PB_PAUSEDISPLAY","Caption", "Pause") 1915 end 1776 1916 return 1777 1917 … … 1795 1935 PB_RELOAD_Click: 1796 1936 call VRSet VRWindow(), 'Pointer', 'Wait' 1797 1798 call lineout "smbstart", "reload" 1799 ok = stream("reload","c","close") 1800 1801 ok = VRSet("TM_Refresh","Delay", 1000) 1937 if WPSStartStop then do 1938 ok = SysOpenObject('<smb_reload>', 'DEFAULT', 1) 1939 end 1940 else do 1941 call lineout samba.!bin"\smbstart", "reload" 1942 ok = stream(samba.!bin"\reload","c","close") 1943 end 1944 ok = VRSet("TM_Refresh","Delay", 2000) 1802 1945 call VRSet VRWindow(), 'Pointer', '<default>' 1803 1946 return … … 1807 1950 PB_RESTART_Click: 1808 1951 call VRSet VRWindow(), 'Pointer', 'Wait' 1809 1810 call lineout "restart", "restart" 1811 ok = stream("restart","c","close") 1812 1952 if WPSStartStop then do 1953 ok = SysOpenObject('<smb_restart>', 'DEFAULT', 1) 1954 end 1955 else do 1956 call lineout samba.!bin"\restart", "restart" 1957 ok = stream(samba.!bin"\restart","c","close") 1958 end 1813 1959 ok = VRSet("TM_Refresh","Delay", 1000) 1814 1960 call VRSet VRWindow(), 'Pointer', '<default>' … … 1837 1983 say "IPB_Start_Click started" 1838 1984 call VRSet VRWindow(), 'Pointer', 'Wait' 1839 1840 call lineout "smbstart", "smbstart" 1841 ok = stream("smbstart","c","close") 1842 1985 if WPSStartStop then do 1986 ok = SysOpenObject('<smb_start>', 'DEFAULT', 1) 1987 end 1988 else do 1989 call lineout samba.!bin"\smbstart", "smbstart" 1990 ok = stream(samba.!bin"\smbstart","c","close") 1991 end 1843 1992 ok = VRSet("TM_Refresh","Delay", 1000) 1844 1993 call VRSet VRWindow(), 'Pointer', '<default>' … … 1850 1999 say "IPB_Stop_Click started" 1851 2000 call VRSet VRWindow(), 'Pointer', 'Wait' 1852 1853 call lineout "smbstop", "smbstop" 1854 ok = stream("smbstop","c","close") 1855 2001 if WPSStartStop then do 2002 ok = SysOpenObject('<smb_stop>', 'DEFAULT', 1) 2003 end 2004 else do 2005 call lineout samba.!bin"\smbstop", "smbstop" 2006 ok = stream(samba.!bin"\smbstop","c","close") 2007 end 1856 2008 ok = VRSet("TM_Refresh","Delay", 1000) 1857 1858 2009 call VRSet VRWindow(), 'Pointer', '<default>' 1859 2010 say "IPB_Stop_Click done" … … 1897 2048 */ 1898 2049 Quit: 2050 call VRSet VRWindow(), 'Pointer', 'Wait' 1899 2051 call _IniWrite 1900 2052 ok = VRRedirectStdIO("OFF") … … 1902 2054 1903 2055 ok = SysFileDelete(smbdoutput) 2056 2057 call lineout samba.!bin"\quit", "quit" 2058 ok = stream(samba.!bin"\quit","c","close") 2059 ok = SysSleep(1) 2060 ok = SysDestroyObject('<smbstarter>') 2061 ok = SysFileDelete(samba.!bin'\smbstarter.cmd') 2062 ok = SysFileDelete(samba.!bin'\quit') 2063 call VRSet VRWindow(), 'Pointer', '<default>' 1904 2064 1905 2065 window = VRWindow() … … 2195 2355 page = VRInfo("Page") 2196 2356 CurrentPageNr = page 2357 ok = VRSet("TM_RefreshDaemons","Enabled", 0) 2197 2358 ok = VRSet("DT_STATUSBAR","Caption", VRGet("Main", "HintText")) 2198 2359 /* call _TabsStrip */ … … 2208 2369 end 2209 2370 when page = 4 then do /* daemons */ 2210 nop2371 ok = VRSet("TM_RefreshDaemons","Enabled", 1) 2211 2372 end 2212 2373 when page = 5 then do /* smbtree */ 2213 nop 2374 ok = VRMethod( "CN_SMBTree", "GetRecordList", "All", "handle." ) 2375 /* if the page is empty, populate it */ 2376 if handle.0 = 0 then call PB_Refresh_Click 2214 2377 end 2215 2378 when page = 6 then do /* Settings */ … … 2223 2386 */ 2224 2387 TM_Refresh_Trigger: 2225 call beep 1200, 20 2388 /* call beep 1200, 20 */ 2226 2389 ok = VRSet("TM_Refresh","Delay", Intervall * 1000) 2227 2390 call _Refresh 2391 return 2392 2393 /*:VRX TM_RefreshDaemons_Trigger 2394 */ 2395 TM_RefreshDaemons_Trigger: 2396 call _RefreshDaemons 2228 2397 return 2229 2398 -
trunk/guitools/sscc/sscc.RC
r677 r688 1 icon 1 . rc\icons\samba_setup.ico2 bitmap 2 . rc\icons\choosedir.bmp3 bitmap 3 . rc\icons\choosedird.bmp4 bitmap 4 . rc\icons\newitem.bmp5 bitmap 5 . rc\icons\newitemd.bmp6 bitmap 7 . rc\icons\up.bmp7 bitmap 8 . rc\icons\down.bmp8 bitmap 9 . rc\icons\netlabs.bmp1 icon 1 .\rc\icons\samba_setup.ico 2 bitmap 2 .\rc\icons\choosedir.bmp 3 bitmap 3 .\rc\icons\choosedird.bmp 4 bitmap 4 .\rc\icons\newitem.bmp 5 bitmap 5 .\rc\icons\newitemd.bmp 6 bitmap 7 .\rc\icons\up.bmp 7 bitmap 8 .\rc\icons\down.bmp 8 bitmap 9 .\rc\icons\netlabs.bmp -
trunk/guitools/sscc/sscc.vrp
r677 r688 3 3 MacroPath: VRM:U:\Develop\Samba\trunk\guitools\sscc 4 4 EXEPath: 5 RunParameters: /install5 RunParameters: 6 6 RunDirectory: D:\samba 7 7 VRXWindow: __VREMainWindow,1,2180,3710,903,8000 … … 11 11 UserFile: 1 12 12 UserWindow: Main,1 13 UserWindow: Installer,1 -
trunk/guitools/sscc/sscc.vrx
r677 r688 2283 2283 */ 2284 2284 Main_Create: 2285 ok = VRREdirectStdIO("O FF")2286 options.!debug = 02285 ok = VRREdirectStdIO("ON") 2286 options.!debug = 1 2287 2287 2288 2288 call _LoadOtherFuncs … … 2313 2313 IF options.!debug == 1 THEN SAY "Main_Resize() started" 2314 2314 Ok = VRset("Main", "Painting", 0) 2315 2316 /* /* Basic measurements */ 2317 main_iwidth = VRGet("Main","InteriorWidth") /* Width of window client-area */ 2318 main_iheight = VRGet("Main","InteriorHeight") /* Height of window client-area */ 2319 2320 if main_iheight < 5500 then ok = VRSet("Main","Height",6200) 2321 sbar_height = VRGet("GB_STATUSBAR","Height") /* Height of status-bar */ 2322 split_left = VRGet("SPLIT_Main","Left") /* Position of the left edge of the split-bar */ 2323 marginx2 = margin * 2 /* Common margin around controls */ 2324 pbtn_height = 400 /* Height of the panels' internal button areas */ 2325 2326 pane_height = main_iheight - sbar_height - (margin * 4) /* Height of a split-bar panel */ 2327 lpane_width = split_left - margin /* Width of the left split-bar panel */ 2328 rpane_width = main_iwidth - split_left - 60 - margin /* Width of the right split-bar panel */ */ 2329 2330 /* ab hier alt */ 2315 2331 ok = VRSet("GB_SmbConfTree","Top", FWidth) 2316 2332 ok = VRSet("GB_SmbConfTree","Left", FWidth-24) … … 2781 2797 IF options.!debug == 1 THEN say 'PB_Cancel_Click() started' 2782 2798 if VRGet("PB_Save","Enabled") then call PB_Save_Click 2799 'pause' 2783 2800 call Quit 2784 2801 IF options.!debug == 1 THEN say 'PB_Cancel_Click() done' … … 2921 2938 return 2922 2939 2940 /*:VRX PB_StartStop_Click 2941 */ 2942 PB_StartStop_Click: 2943 call PB_Save_Click 2944 call beep 960, 1 2945 address CMD samba.!smbcmd' reload' 2946 return 2947 2923 2948 /*:VRX PB_Undo_Click 2924 2949 */
Note:
See TracChangeset
for help on using the changeset viewer.