Changeset 1009
- Timestamp:
- Feb 1, 2017, 3:22:45 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/guitools/evfsgui/evfsgui.vrx ¶
r990 r1009 128 128 129 129 /* OS Version */ 130 if VRFileExists(SysBootDrive()||"\SYS\ ARCANOAE.FLG" ) then do131 OS = linein(SysBootDrive()||"\SYS\ ARCANOAE.FLG")130 if VRFileExists(SysBootDrive()||"\SYS\INSTALL\INSTALL.FLG" ) then do 131 OS = linein(SysBootDrive()||"\SYS\INSTALL\INSTALL.FLG") 132 132 OS = subword(OS,1,2) '('translate(word(OS,3))')' 133 ok = stream(SysBootDrive()||"\SYS\ ARCANOAE.FLG",'c','close')133 ok = stream(SysBootDrive()||"\SYS\INSTALL\INSTALL.FLG",'c','close') 134 134 end 135 135 else if VRFileExists(SysBootDrive()||"\ECS\ECS_INST.FLG" ) then do … … 239 239 /* GUI Version */ 240 240 DummyRH = VRMethod('CN_About', 'AddRecord') 241 ok = VRMethod("CN_ABOUT", "SetFieldData", DummyRH, About.DscFH, "EVFSGUI", About.ValFH, VRGet("Main", "HintText"))242 AboutStr = AboutStr||'0D0A'x||" EVFSGUI"||'09'x || VRGet("Main", "HintText")||BR241 ok = VRMethod("CN_ABOUT", "SetFieldData", DummyRH, About.DscFH, options.!appname_long, About.ValFH, VRGet("Main", "HintText")) 242 AboutStr = AboutStr||'0D0A'x||"options.!appname_long "||'09'x || VRGet("Main", "HintText")||BR 243 243 call VRSet "SW_ABOUT", "Painting", 1 244 244 return … … 551 551 _CreateSmbConf: 552 552 if options.!debug == 1 then say time()' '||"_CreateSmbConf started" 553 call lineout samba.!smbconf, '# Samba config file created using EVFSGUIver. 'word(VRGet("Main","Hinttext"),2)553 call lineout samba.!smbconf, '# Samba config file created using' options.!appname_long 'ver. 'word(VRGet("Main","Hinttext"),2) 554 554 call lineout samba.!smbconf, '# from 'value("USER",,'OS2ENVIRONMENT')'@'value("HOSTNAME",,'OS2ENVIRONMENT') 555 555 call lineout samba.!smbconf, '# Date: 'date()' 'time() … … 884 884 inipath = VRParseFilePath( os2_ini, 'DP') 885 885 IF inipath == '' THEN inipath = SysBootDrive() || '\OS2' 886 settings.!ini = inipath'\ evfsgui.ini'886 settings.!ini = inipath'\'options.!appname_short'.INI' 887 887 drop os2_ini inipath 888 if options.!debug == 1 then say ' EVFSGUIINIfile = "'settings.!ini'"'888 if options.!debug == 1 then say ' 'options.!appname_long' INIfile = "'settings.!ini'"' 889 889 890 890 settings.!network = "" … … 1260 1260 then xxx = "VX-REXX IDE: "strip(translate(word(sourceline(SIGL-1),4),' ',"',")) 1261 1261 else xxx = 'A' 1262 call VRMessage 'Main', xxx' REXX function library DLL is missing or unloadable!', "EVFSGUIfatal error", "E"1262 call VRMessage 'Main', xxx' REXX function library DLL is missing or unloadable!', options.!appname_long "fatal error", "E" 1263 1263 IF options.!debug == 1 then say time()' _LoadotherFuncs() error handler finished, program will be terminated.' 1264 1264 signal Quit … … 1603 1603 options.!tracmark = 0 1604 1604 1605 app_name_msg = NLVGetMessage( 0 ) 1606 IF app_name_msg == '' | WORD( app_name_msg, 1 ) == '[Missing' THEN 1607 app_name_msg = 'EVFSGUI EVFSGUI' 1608 1609 /* These values are used in things like config files, WPS objects, etc. 1610 */ 1611 options.!appname_short = TRANSLATE( SUBWORD( app_name_msg, 1, 1 )) 1612 options.!appname_long = SUBWORD( app_name_msg, 2 ) 1613 1605 1614 if options.!debug == 1 then say ' initializing vfs. ' 1606 1615 vfs.!drive = '' … … 1826 1835 ok = SysFileDelete(SysBootDrive()'\ndpsmb.dbg') 1827 1836 else do 1828 call lineout SysBootDrive()'\ndpsmb.dbg',' EVFSdebug flag file'1837 call lineout SysBootDrive()'\ndpsmb.dbg','NDPSMB debug flag file' 1829 1838 ok = stream(SysBootDrive()'\ndpsmb.dbg','c','close') 1830 1839 end … … 2807 2816 */ 2808 2817 Main_Create: 2809 options.!debug = 12818 options.!debug = 0 2810 2819 if options.!debug == 1 then do 2811 2820 ok = VRRedirectStdIO("ON") … … 3327 3336 if ExeName = "" then do 3328 3337 parse source . . script 3329 ExeName = VRParseFilename(script,'DP')'\ EVFSGUI.EXE'3338 ExeName = VRParseFilename(script,'DP')'\'options.!appname_short'.EXE' 3330 3339 end 3331 3340 StartupDir = VRParseFileName(VRget("Application","Program"),'DP') … … 3351 3360 'CCVIEW=DEFAULT;'||, 3352 3361 'DEFAULTVIEW=DEFAULT;'||, 3353 'OBJECTID=< EVFSGUI_AUTOSTART>',,3362 'OBJECTID=<'options.!appname_short'_AUTOSTART>',, 3354 3363 'REPLACE' ) 3355 3364 … … 3378 3387 */ 3379 3388 Menu_File_Autostart_Deactivate_Click: 3380 ok = SysDestroyObject("< EVFSGUI_AUTOSTART>")3389 ok = SysDestroyObject("<'options.!appname_short'_AUTOSTART>") 3381 3390 IF ok == 1 THEN do 3382 3391 Text = NLVGetMessage( 79 ) … … 4859 4868 CALL VRSet 'CB_TRAC', 'Set', options.!tracmark 4860 4869 4861 ok = VRSet("DT_About","Caption", Program' (c) 2007-201 6Alexander Taylor'||'0D0A'x||'and Herwig Bauernfeind for bww bitwise works GmbH.')4870 ok = VRSet("DT_About","Caption", Program' (c) 2007-2017 Alexander Taylor'||'0D0A'x||'and Herwig Bauernfeind for bww bitwise works GmbH.') 4862 4871 4863 4872 About.DscFH = VRMethod( "CN_ABOUT", "AddField", "String", "Component" )
Note:
See TracChangeset
for help on using the changeset viewer.