rwdshell 0.9 → 0.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/code/dd0shelleval/changescriptname.rb +16 -0
- data/code/dd0shelleval/clearscriptscreendisplay.rb +9 -0
- data/code/dd0shelleval/deletescriptrecord.rb +20 -0
- data/code/{ek0shellscripts/em0listscripts.rb → dd0shelleval/listscripts.rb} +3 -2
- data/code/dd0shelleval/loadscriptrecord.rb +20 -0
- data/code/{ek0shellscripts/ek0playscript.rb → dd0shelleval/playscript.rb} +0 -0
- data/code/{cb7rubyeval/cb7rubyeval.rb → dd0shelleval/rubyeval.rb} +4 -2
- data/code/dd0shelleval/runrwdshellwindow.rb +9 -0
- data/code/dd0shelleval/rwdshellversion.rb +14 -0
- data/code/{ek0shellscripts/en0createnewscript.rb → dd0shelleval/savechangedscript.rb} +7 -6
- data/code/dd0shelleval/{dd0shelleval.rb → shelleval.rb} +0 -0
- data/code/{ek0shellscripts/em1viewscript.rb → dd0shelleval/viewscript.rb} +2 -2
- data/code/xb1rwdtinkerbackwindow/diagnostictab.rb +2 -1
- data/configuration/aa0rwdframework.cnf +5 -3
- data/configuration/ab1tinkerwin2.cnf +1 -0
- data/configuration/ek0playscripts.cnf +1 -0
- data/ev/net.rb +1 -1
- data/gui/aa2core/aa0rwdtop.rwd +4 -0
- data/gui/ek0shellscripts/1listplayscripts.rwd +17 -0
- data/gui/ek0shellscripts/2listscripts.rwd +25 -0
- data/gui/ek0shellscripts/3editscripts.rwd +25 -0
- data/gui/ek0shellscripts/4scriptutilities.rwd +24 -0
- data/gui/ek0shellscripts/6rwdshelleval.rwd +16 -0
- data/gui/ek0shellscripts/cb7rwdrubyeval.rwd +13 -0
- data/gui/ll1selectiontabbegin/selectiontabbegin.rwd +16 -0
- data/gui/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +12 -0
- data/gui/lz1selectiontabend/endselectiontab.rwd +3 -0
- data/gui/tt0documentsbegin/tt0documentbegin.rwd +6 -0
- data/gui/{en/ub7rubyeval → ub7rubyeval}/rubyeval.rwd +4 -3
- data/gui/{en/uu5rwddocuments → uu5rwddocuments}/uu5documents.rwd +9 -7
- data/gui/{nl/uu6rwdtinkerwin2documents → uu6rwdtinkerwin2documents}/uu5documents.rwd +4 -2
- data/gui/vv1docshellxp/vvdocshellxp.rwd +5 -0
- data/gui/ww0documentsend/ww0documentend.rwd +7 -0
- data/gui/wz6finaltabs/xx0rwdfirsttab.rwd +6 -0
- data/gui/{nl/xa1versionwindow → xa1versionwindow}/1appname.rwd +4 -2
- data/gui/xa5rwdtinkercallablewindow/1appname.rwd +17 -0
- data/gui/xa5rwdtinkercallablewindow/9end.rwd +4 -0
- data/gui/xb1rwdtinkerbackwindow/1appname.rwd +5 -0
- data/gui/xb1rwdtinkerbackwindow/2tab1.rwd +11 -0
- data/gui/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +33 -0
- data/gui/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +44 -0
- data/gui/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +35 -0
- data/gui/xb1rwdtinkerbackwindow/9backend.rwd +6 -0
- data/gui/ya1helpaboutbegin/ya0helpscreenstart.rwd +3 -0
- data/gui/yg5rwdhelpabout/1appname.rwd +4 -0
- data/gui/yg5rwdhelpabout/3copyright.rwd +3 -0
- data/gui/yg5rwdhelpabout/5version.rwd +10 -0
- data/gui/yg6rwdwin2helpabout/1appname.rwd +4 -0
- data/gui/yg6rwdwin2helpabout/3copyright.rwd +3 -0
- data/gui/yg6rwdwin2helpabout/5version.rwd +10 -0
- data/gui/yl4rwdshellhelpabout/1appname.rwd +4 -0
- data/gui/yl4rwdshellhelpabout/3copyright.rwd +3 -0
- data/gui/yl4rwdshellhelpabout/5version.rwd +9 -0
- data/gui/yy5helpaboutend/helpscreenend.rwd +3 -0
- data/gui/za1applicationend/yy9rwdend.rwd +4 -0
- data/init.rb +74 -5
- data/installed/rwdshell-0.92.inf +14 -0
- data/installed/rwdtinkerwin2-0.5.inf +4 -12
- data/{code/al5languagefiles → lang}/alanguagehashbegin.rb +0 -0
- data/lang/en/rwdcore/languagefile.rb +3 -2
- data/lang/es/rwdcore/languagefile.rb +1 -2
- data/{code/al5languagefiles → lang}/languagehash.rb +0 -0
- data/lang/nl/rwdcore/languagefile.rb +1 -1
- data/lang/templangfile.rb +7 -0
- data/{code/al5languagefiles/zlanguagehashend.rb → lang/vlanguagehashend.rb} +0 -0
- data/lang/wlocallangstart.rb +5 -0
- data/lang/xlocallangfile.rb +7 -0
- data/lang/zlocallangend.rb +2 -0
- data/rwd_files/HowTo_Shell.txt +136 -0
- data/rwd_files/HowTo_Tinker.txt +32 -0
- data/scripts/echo2.sh +2 -0
- data/zips/{rwdhelloworld-0.2.zip → rwdhelloworld-0.3.zip} +0 -0
- data/zips/rwdwshell-0.91.zip +0 -0
- data/zips/wrubyslippers-0.93.zip +0 -0
- metadata +64 -142
- data/code/al5languagefiles/templangfile.rb +0 -6
- data/code/gh9calendar/gh9calendar.rb +0 -16
- data/code/ii3calculator/ca2multiply.rb +0 -5
- data/code/ii3calculator/ca4add.rb +0 -5
- data/code/lm1installapplets/ll5listzips.rb +0 -14
- data/code/lm1installapplets/lm1installapplet.rb +0 -20
- data/code/ssdiagnostictab/diagnostictab.rb +0 -20
- data/configuration/gh1rwdcalendar.cnf +0 -26
- data/extras/cal.rb +0 -166
- data/gui/en/aa2core/aa0rwdtop.rwd +0 -3
- data/gui/en/cb7rubyeval/cb7rwdrubyeval.rwd +0 -18
- data/gui/en/dd0rwdshelleval/dd0rwdshelleval.rwd +0 -16
- data/gui/en/ek0shellscripts/ek0playscript.rwd +0 -15
- data/gui/en/ek0shellscripts/el0listscripts.rwd +0 -25
- data/gui/en/ek0shellscripts/en0createscripts.rwd +0 -24
- data/gui/en/hl9calendar/hl9calendar.rwd +0 -18
- data/gui/en/ii3calculator/ca0rwdcalc.rwd +0 -17
- data/gui/en/ll1selectiontabbegin/selectiontabbegin.rwd +0 -15
- data/gui/en/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +0 -11
- data/gui/en/lz1selectiontabend/endselectiontab.rwd +0 -1
- data/gui/en/tt0documentsbegin/tt0documentbegin.rwd +0 -5
- data/gui/en/uk5scriptrunnerdocuments/documents.rwd +0 -3
- data/gui/en/uu6rwdtinkerwin2documents/uu5documents.rwd +0 -4
- data/gui/en/vv1docshellxp/vvdocshellxp.rwd +0 -4
- data/gui/en/ww0documentsend/ww0documentend.rwd +0 -6
- data/gui/en/wz6finaltabs/xx0rwdfirsttab.rwd +0 -4
- data/gui/en/xa1versionwindow/1appname.rwd +0 -17
- data/gui/en/xa5rwdtinkercallablewindow/1appname.rwd +0 -15
- data/gui/en/xa5rwdtinkercallablewindow/9end.rwd +0 -4
- data/gui/en/xb1rwdtinkerbackwindow/1appname.rwd +0 -3
- data/gui/en/xb1rwdtinkerbackwindow/2tab1.rwd +0 -9
- data/gui/en/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +0 -31
- data/gui/en/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +0 -42
- data/gui/en/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +0 -33
- data/gui/en/xb1rwdtinkerbackwindow/9backend.rwd +0 -5
- data/gui/en/ya1helpaboutbegin/ya0helpscreenstart.rwd +0 -1
- data/gui/en/yg5rwdhelpabout/1appname.rwd +0 -2
- data/gui/en/yg5rwdhelpabout/3copyright.rwd +0 -1
- data/gui/en/yg5rwdhelpabout/5version.rwd +0 -9
- data/gui/en/yg6rwdwin2helpabout/1appname.rwd +0 -2
- data/gui/en/yg6rwdwin2helpabout/3copyright.rwd +0 -1
- data/gui/en/yg6rwdwin2helpabout/5version.rwd +0 -9
- data/gui/en/za1applicationend/yy9rwdend.rwd +0 -2
- data/gui/es/aa2core/aa0rwdtop.rwd +0 -3
- data/gui/es/cb7rubyeval/cb7rwdrubyeval.rwd +0 -18
- data/gui/es/dd0rwdshelleval/dd0rwdshelleval.rwd +0 -16
- data/gui/es/ek0shellscripts/ek0playscript.rwd +0 -15
- data/gui/es/ek0shellscripts/el0listscripts.rwd +0 -25
- data/gui/es/ek0shellscripts/en0createscripts.rwd +0 -24
- data/gui/es/hl9calendar/hl9calendar.rwd +0 -18
- data/gui/es/ii3calculator/ca0rwdcalc.rwd +0 -17
- data/gui/es/ll1selectiontabbegin/selectiontabbegin.rwd +0 -15
- data/gui/es/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +0 -11
- data/gui/es/lz1selectiontabend/endselectiontab.rwd +0 -1
- data/gui/es/tt0documentsbegin/tt0documentbegin.rwd +0 -5
- data/gui/es/ub7rubyeval/rubyeval.rwd +0 -3
- data/gui/es/uk5scriptrunnerdocuments/documents.rwd +0 -3
- data/gui/es/uu5rwddocuments/uu5documents.rwd +0 -13
- data/gui/es/uu6rwdtinkerwin2documents/uu5documents.rwd +0 -4
- data/gui/es/vv1docshellxp/vvdocshellxp.rwd +0 -4
- data/gui/es/ww0documentsend/ww0documentend.rwd +0 -6
- data/gui/es/wz6finaltabs/xx0rwdfirsttab.rwd +0 -4
- data/gui/es/xa1versionwindow/1appname.rwd +0 -17
- data/gui/es/xa5rwdtinkercallablewindow/1appname.rwd +0 -15
- data/gui/es/xa5rwdtinkercallablewindow/9end.rwd +0 -4
- data/gui/es/xb1rwdtinkerbackwindow/1appname.rwd +0 -3
- data/gui/es/xb1rwdtinkerbackwindow/2tab1.rwd +0 -9
- data/gui/es/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +0 -31
- data/gui/es/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +0 -42
- data/gui/es/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +0 -33
- data/gui/es/xb1rwdtinkerbackwindow/9backend.rwd +0 -5
- data/gui/es/ya1helpaboutbegin/ya0helpscreenstart.rwd +0 -1
- data/gui/es/yg5rwdhelpabout/1appname.rwd +0 -2
- data/gui/es/yg5rwdhelpabout/3copyright.rwd +0 -1
- data/gui/es/yg5rwdhelpabout/5version.rwd +0 -9
- data/gui/es/yg6rwdwin2helpabout/1appname.rwd +0 -2
- data/gui/es/yg6rwdwin2helpabout/3copyright.rwd +0 -1
- data/gui/es/yg6rwdwin2helpabout/5version.rwd +0 -9
- data/gui/es/za1applicationend/yy9rwdend.rwd +0 -2
- data/gui/nl/aa2core/aa0rwdtop.rwd +0 -3
- data/gui/nl/cb7rubyeval/cb7rwdrubyeval.rwd +0 -18
- data/gui/nl/dd0rwdshelleval/dd0rwdshelleval.rwd +0 -16
- data/gui/nl/ek0shellscripts/ek0playscript.rwd +0 -15
- data/gui/nl/ek0shellscripts/el0listscripts.rwd +0 -25
- data/gui/nl/ek0shellscripts/en0createscripts.rwd +0 -24
- data/gui/nl/hl9calendar/hl9calendar.rwd +0 -18
- data/gui/nl/ii3calculator/ca0rwdcalc.rwd +0 -17
- data/gui/nl/ll1selectiontabbegin/selectiontabbegin.rwd +0 -15
- data/gui/nl/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +0 -11
- data/gui/nl/lz1selectiontabend/endselectiontab.rwd +0 -1
- data/gui/nl/tt0documentsbegin/tt0documentbegin.rwd +0 -5
- data/gui/nl/ub7rubyeval/rubyeval.rwd +0 -3
- data/gui/nl/uk5scriptrunnerdocuments/documents.rwd +0 -3
- data/gui/nl/uu5rwddocuments/uu5documents.rwd +0 -13
- data/gui/nl/vv1docshellxp/vvdocshellxp.rwd +0 -4
- data/gui/nl/ww0documentsend/ww0documentend.rwd +0 -6
- data/gui/nl/wz6finaltabs/xx0rwdfirsttab.rwd +0 -4
- data/gui/nl/xa5rwdtinkercallablewindow/1appname.rwd +0 -15
- data/gui/nl/xa5rwdtinkercallablewindow/9end.rwd +0 -4
- data/gui/nl/xb1rwdtinkerbackwindow/1appname.rwd +0 -3
- data/gui/nl/xb1rwdtinkerbackwindow/2tab1.rwd +0 -9
- data/gui/nl/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +0 -31
- data/gui/nl/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +0 -42
- data/gui/nl/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +0 -33
- data/gui/nl/xb1rwdtinkerbackwindow/9backend.rwd +0 -5
- data/gui/nl/ya1helpaboutbegin/ya0helpscreenstart.rwd +0 -1
- data/gui/nl/yg5rwdhelpabout/1appname.rwd +0 -2
- data/gui/nl/yg5rwdhelpabout/3copyright.rwd +0 -1
- data/gui/nl/yg5rwdhelpabout/5version.rwd +0 -9
- data/gui/nl/yg6rwdwin2helpabout/1appname.rwd +0 -2
- data/gui/nl/yg6rwdwin2helpabout/3copyright.rwd +0 -1
- data/gui/nl/yg6rwdwin2helpabout/5version.rwd +0 -9
- data/gui/nl/za1applicationend/yy9rwdend.rwd +0 -2
- data/installed/rwdcalendar-0.4.inf +0 -6
- data/installed/rwdrubyeval-0.3.inf +0 -5
- data/installed/rwdscriptrunner-0.3.inf +0 -9
- data/installed/rwdshellxp-0.4.inf +0 -5
- data/rwd_files/HowTo_Scriptrunner.txt +0 -171
- data/rwd_files/HowTo_Tinker.html +0 -370
- data/tests/rwdtinkertestEN.rb +0 -87
- data/tests/temptest.out +0 -18
- data/zips/rwdaviewphoto-0.3.zip +0 -0
- data/zips/rwdrefreshacpi-0.1.zip +0 -0
- data/zips/rwdscriptrunner-0.3.zip +0 -0
- data/zips/rwdwtinkerwin2-0.5.zip +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# this code is to change the contact name
|
|
2
|
+
def changescriptname
|
|
3
|
+
begin
|
|
4
|
+
oldName = $shellscript_directory + "/" + @a_scriptfilename + ".sh"
|
|
5
|
+
newName = $shellscript_directory + "/" + @a_changescriptname + ".sh"
|
|
6
|
+
|
|
7
|
+
File.rename(oldName, newName)
|
|
8
|
+
@scriptfilechangeresult = "File Renamed!"
|
|
9
|
+
$currentscriptname = @a_changescriptname
|
|
10
|
+
rescue
|
|
11
|
+
@scriptfilechangeresult = "rename error"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# this method views an existing address record
|
|
2
|
+
def deletescriptrecord
|
|
3
|
+
|
|
4
|
+
require 'fileutils'
|
|
5
|
+
|
|
6
|
+
if @a_scriptfilename
|
|
7
|
+
$currentscriptname = @a_scriptfilename
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
begin # exception trapped block
|
|
12
|
+
fileName = $shellscript_directory + "/" + $currentscriptname + ".sh"
|
|
13
|
+
File.delete(fileName)
|
|
14
|
+
@eventfilechangeresult = "File Deleted!"
|
|
15
|
+
$currentscriptname = ""
|
|
16
|
+
rescue
|
|
17
|
+
@eventfilechangeresult = "File Deletion error"
|
|
18
|
+
end # exception rescue
|
|
19
|
+
|
|
20
|
+
end
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
# this code is to list the scripts
|
|
2
2
|
def listscripts
|
|
3
|
-
fileList = Dir.new($shellscript_directory).entries.sort.
|
|
3
|
+
fileList = Dir.new($shellscript_directory).entries.sort.delete_if { |x| ! (x =~ /sh$/) }
|
|
4
4
|
@listscriptresult = fileList.rwd_method("fillscriptname")
|
|
5
5
|
end
|
|
6
6
|
|
|
7
7
|
def fillscriptname(inffile)
|
|
8
8
|
applet = inffile.gsub(/\.sh$/, "")
|
|
9
|
-
@
|
|
9
|
+
@a_scriptfilename = applet
|
|
10
|
+
$currentscriptname = applet
|
|
10
11
|
@a_scriptcmd = applet
|
|
11
12
|
end
|
|
12
13
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# this method views an existing address record
|
|
2
|
+
def loadscriptrecord
|
|
3
|
+
|
|
4
|
+
require 'fileutils'
|
|
5
|
+
@a_tmpscriptfilename = $currentscriptname
|
|
6
|
+
|
|
7
|
+
begin # exception trapped block
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
fileName = $shellscript_directory + "/" + $currentscriptname + ".sh"
|
|
11
|
+
|
|
12
|
+
fd = File.open(fileName,"r")
|
|
13
|
+
@a_scriptfirstline = fd.readline.chomp
|
|
14
|
+
@a_scriptcommentline = fd.readline.chomp
|
|
15
|
+
fd.close
|
|
16
|
+
rescue SystemCallError, StandardError
|
|
17
|
+
$stderr.print "system call error: " + $!
|
|
18
|
+
end # exception rescue
|
|
19
|
+
|
|
20
|
+
end
|
|
File without changes
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
self << str
|
|
4
4
|
end
|
|
5
5
|
def rubyeval
|
|
6
|
+
require 'Env'
|
|
7
|
+
require 'English'
|
|
6
8
|
commandtextruby = "%s " % [@a_rubyeval]
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
$tmpout = $stdout # save the original STDOUT
|
|
10
|
+
$stdout = $buffer
|
|
9
11
|
begin # begin rescue monitored block
|
|
10
12
|
eval( commandtextruby )
|
|
11
13
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Application RwdAddresses orginally (c) 2004 Steven Gibson under GPL.
|
|
2
|
+
# This application is a contact book
|
|
3
|
+
# For more information about see http://www.rubyforge.net/projects/rwdapplications
|
|
4
|
+
|
|
5
|
+
# call the window
|
|
6
|
+
def runrwdshellwindow
|
|
7
|
+
@rwd_window = "rwdshellwindow"
|
|
8
|
+
end
|
|
9
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
|
|
2
|
+
# This application is a framework for writing programs from RubyWebDialogs
|
|
3
|
+
# http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
|
4
|
+
# For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
|
|
5
|
+
|
|
6
|
+
# return the version constant defined in the config file
|
|
7
|
+
def runrwdshellversion
|
|
8
|
+
@rwd_window = "applicationversion"
|
|
9
|
+
@versionappnamedisplay = "RwdShell"
|
|
10
|
+
@versioncopyrightdisplay = "(c) 2004 Steven Gibson "
|
|
11
|
+
@versionnumberdisplay = "Version " + RwdShellVersion
|
|
12
|
+
|
|
13
|
+
end
|
|
14
|
+
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
|
|
2
|
-
def
|
|
2
|
+
def savescriptrecord # this method adds a new script file
|
|
3
3
|
require 'fileutils'
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
fullnewname = newname + ".sh"
|
|
4
|
+
if @a_tmpscriptfilename
|
|
5
|
+
newdata =@a_scriptfirstline.to_s + "\n #" + @a_scriptcommentline.to_s + "\n"
|
|
6
|
+
fullnewname = @a_tmpscriptfilename.to_s + ".sh"
|
|
8
7
|
begin # exception trapped block
|
|
9
8
|
fileName = File.join( $shellscript_directory, fullnewname )
|
|
10
9
|
fd = File.open(fileName,"w")
|
|
11
10
|
fd.print(newdata) # save the record info to the file
|
|
12
11
|
fd.close
|
|
13
12
|
@newdisplay=newdata # show the record info in the browser
|
|
13
|
+
$currentscriptname = "%s" % [@a_tmpscriptfilename] # grab the new filename to create
|
|
14
|
+
|
|
14
15
|
rescue
|
|
15
16
|
@newdisplay = "\n" + "system error in createnew method"
|
|
16
17
|
end # exception rescue
|
|
17
|
-
|
|
18
|
+
end
|
|
18
19
|
end # end of createnew
|
|
File without changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
def viewscript
|
|
2
2
|
require 'fileutils'
|
|
3
|
-
|
|
3
|
+
$currentscriptname = "%s" % [@a_scriptfilename]
|
|
4
4
|
|
|
5
5
|
begin # exception trapped block
|
|
6
|
-
fileName = "
|
|
6
|
+
fileName = $shellscript_directory + "/" + $currentscriptname + ".sh"
|
|
7
7
|
|
|
8
8
|
fd = File.open(fileName,"r")
|
|
9
9
|
@displayscripttext = " "
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
RwdTinkerVersion = "1.
|
|
1
|
+
RwdTinkerVersion = "1.3"
|
|
2
2
|
CodeName = "rwdtinker"
|
|
3
3
|
CodeNameFile = CodeName + ".rb"
|
|
4
|
+
LangNameFile = "rwdlanguage.rb"
|
|
4
5
|
RWDFile = "rwdtinker.rwd"
|
|
5
6
|
$lang = "en"
|
|
6
7
|
@@codedir = "code"
|
|
7
|
-
@@guidir = "gui"
|
|
8
|
+
@@guidir = "gui"
|
|
8
9
|
@@langdir = "lang"
|
|
9
10
|
|
|
10
|
-
TempLangHashFile = @@
|
|
11
|
+
TempLangHashFile = @@langdir + "/" + "templangfile.rb"
|
|
12
|
+
LocalLangHashFile = @@langdir + "/" + "xlocallangfile.rb"
|
|
11
13
|
$port = 7705
|
data/ev/net.rb
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
$rwdguivar=
|
|
2
|
+
"
|
|
3
|
+
<tab name=\"scriptlister\" caption=\"List\\Run Scripts\">
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<table>
|
|
7
|
+
<row> <p align=\"right\">Script Name:</p> <text name=\"a_scriptcmd\"/> </row>
|
|
8
|
+
|
|
9
|
+
</table>
|
|
10
|
+
|
|
11
|
+
<horizontal>
|
|
12
|
+
<button caption=\"Execute\" action=\"playscript\"/>
|
|
13
|
+
<button caption=\"Cancel\" action=\"main\"/>
|
|
14
|
+
|
|
15
|
+
</horizontal>
|
|
16
|
+
<p>%playscript_display%</p>"
|
|
17
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
$rwdguivar=
|
|
2
|
+
"
|
|
3
|
+
<table>
|
|
4
|
+
<row> <p align=\"right\">ScriptName:</p> <text name=\"a_scriptfilename\"/> </row>
|
|
5
|
+
|
|
6
|
+
</table>
|
|
7
|
+
|
|
8
|
+
<horizontal>
|
|
9
|
+
<button caption=\"ViewScript\" action=\"viewscript\"/>
|
|
10
|
+
<button caption=\"Cancel\" action=\"main\"/>
|
|
11
|
+
|
|
12
|
+
</horizontal>
|
|
13
|
+
<p>%displayscripttext%</p>
|
|
14
|
+
|
|
15
|
+
<horizontal>
|
|
16
|
+
|
|
17
|
+
<button caption=\"ListFiles\" action=\"listscripts\"/>
|
|
18
|
+
<button caption=\"Cancel\" action=\"main\"/>
|
|
19
|
+
|
|
20
|
+
</horizontal>
|
|
21
|
+
<p>%%listscriptresult%%</p>
|
|
22
|
+
</tab>"
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
$rwdguivar=
|
|
2
|
+
"
|
|
3
|
+
<tab name=\"EditScriptsrwdshell\" caption=\"Edit Scripts\">
|
|
4
|
+
<table>
|
|
5
|
+
<row> <p> </row>
|
|
6
|
+
<row> <p align=\"right\">You can create a new record here or edit one</row>
|
|
7
|
+
<row> <b>The filename will automatically have a .sh added</b> <row>
|
|
8
|
+
|
|
9
|
+
<row> <p> </row>
|
|
10
|
+
</table>
|
|
11
|
+
<horizontal>
|
|
12
|
+
<button caption=\"Load Script\" action=\"loadscriptrecord\"/>
|
|
13
|
+
<button caption=\"Save Changes\" action=\"savescriptrecord\"/>
|
|
14
|
+
<button caption=\"Clear\" action=\"clearscriptscreendisplay\"/>
|
|
15
|
+
|
|
16
|
+
</horizontal>
|
|
17
|
+
<table>
|
|
18
|
+
<row> <p align=\"center\">FileName:</p> <text name=\"a_tmpscriptfilename\"/> </row>
|
|
19
|
+
<row> <p align=\"center\">Script Line:</p> <text name=\"a_scriptfirstline\"/> </row>
|
|
20
|
+
<row> <p align=\"center\">Comment Line:</p> <text name=\"a_scriptcommentline\"/> </row>
|
|
21
|
+
</table>
|
|
22
|
+
<p>%newdisplay%</p>
|
|
23
|
+
|
|
24
|
+
</tab>"
|
|
25
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
$rwdguivar=
|
|
2
|
+
"
|
|
3
|
+
<tab name=\"scriptutilitiesrwdshell\" caption=\"Script Utilities\">
|
|
4
|
+
|
|
5
|
+
<table>
|
|
6
|
+
<row> <p align=\"right\">Script Title:</p> <text name=\"a_scriptfilename\"/> </row>
|
|
7
|
+
<row> <p align=\"right\">New Name:</p> <text name=\"a_changescriptname\"/> </row>
|
|
8
|
+
|
|
9
|
+
</table>
|
|
10
|
+
|
|
11
|
+
<horizontal>
|
|
12
|
+
<button caption=\"Rename Script \" action=\"changescriptname\"/>
|
|
13
|
+
<button caption=\"Delete Script\" action=\"deletescriptrecord\"/>
|
|
14
|
+
</horizontal>
|
|
15
|
+
|
|
16
|
+
<p>%%scriptfilechangeresult%%</p>
|
|
17
|
+
<horizontal>
|
|
18
|
+
<button caption=\"List Scripts\" action=\"listscripts\"/>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
</horizontal>
|
|
22
|
+
|
|
23
|
+
<p>%%listscriptresult%%</p>
|
|
24
|
+
</tab>"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
$rwdguivar=
|
|
2
|
+
"
|
|
3
|
+
<tab name=\"shelleval\" caption=\"Shell Eval CMD\">
|
|
4
|
+
|
|
5
|
+
<table>
|
|
6
|
+
<row> <p align=\"right\">Shell Command:</p> <text name=\"a_shelleval\"/> </row>
|
|
7
|
+
|
|
8
|
+
</table>
|
|
9
|
+
<p>%result%</p>
|
|
10
|
+
<horizontal>
|
|
11
|
+
<button caption=\"Execute\" action=\"shelleval\"/>
|
|
12
|
+
<button caption=\"Cancel\" action=\"main\"/>
|
|
13
|
+
|
|
14
|
+
</horizontal>
|
|
15
|
+
|
|
16
|
+
</tab>"
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
$rwdguivar=
|
|
2
|
+
"
|
|
3
|
+
<tab name=\"three\" caption=\"ruby\">
|
|
4
|
+
<table>
|
|
5
|
+
<row> <p align=\"right\">Ruby Command:</p> <text name=\"a_rubyeval\"/> </row>
|
|
6
|
+
</table>
|
|
7
|
+
<p>%rubydisplay%</p>
|
|
8
|
+
<horizontal>
|
|
9
|
+
<button caption=\"Execute\" action=\"rubyeval\"/>
|
|
10
|
+
<button caption=\"Cancel\" action=\"main\"/>
|
|
11
|
+
</horizontal>
|
|
12
|
+
</tab>"
|
|
13
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
$rwdguivar=
|
|
2
|
+
"
|
|
3
|
+
<tab name=\"selectiontab\" caption=\"Selection Panel\">
|
|
4
|
+
|
|
5
|
+
<table>
|
|
6
|
+
<row> <p align=\"right\">Open a new window with callable applets you have loaded</row>
|
|
7
|
+
|
|
8
|
+
</table>
|
|
9
|
+
<horizontal>
|
|
10
|
+
|
|
11
|
+
<button caption=\"RwdTinker Help Window\" action=\"runrwdtinkerhelpwindow\"/>
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
</horizontal>"
|
|
15
|
+
|
|
16
|
+
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
<
|
|
1
|
+
$rwdguivar=
|
|
2
|
+
"
|
|
3
|
+
<row> <p align=\"left\">
|
|
4
|
+
<a href=HowTo_RubyEval.html>Howto_RubyEval.html</a></p></row>"
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
<row> <p align
|
|
1
|
+
$rwdguivar=
|
|
2
|
+
"
|
|
3
|
+
<row> <p align=\"left\">
|
|
4
|
+
<a href=HowTo_Tinker.txt>Howto_Tinker.txt</a></p></row>
|
|
5
|
+
<row> <p align=\"left\">
|
|
4
6
|
<a href=Readme.txt>Readme.txt</a></p></row>
|
|
5
|
-
<row> <p align
|
|
7
|
+
<row> <p align=\"left\">
|
|
6
8
|
<a href=COPYING>GPL License </a></p></row>
|
|
7
|
-
<row> <p align
|
|
9
|
+
<row> <p align=\"left\">
|
|
8
10
|
<a href=rwdapplications.html>more information about rwdapplications </a></p></row>
|
|
9
|
-
<row> <p align
|
|
10
|
-
<a href=rwdindex.html>Link to online information about RubyWebdialogs </a></p></row>
|
|
11
|
+
<row> <p align=\"left\">
|
|
12
|
+
<a href=rwdindex.html>Link to online information about RubyWebdialogs </a></p></row>"
|
|
11
13
|
|
|
12
14
|
|
|
13
15
|
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
$rwdguivar=
|
|
2
|
+
"
|
|
3
|
+
<window name = \"applicationversion\" title=\"Application Version\">
|
|
2
4
|
|
|
3
5
|
<row> <p></row>
|
|
4
6
|
<p>%versionappnamedisplay%</p>
|
|
@@ -12,6 +14,6 @@
|
|
|
12
14
|
<cancel/>
|
|
13
15
|
</horizontal>
|
|
14
16
|
|
|
15
|
-
</window>
|
|
17
|
+
</window>"
|
|
16
18
|
|
|
17
19
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
$rwdguivar=
|
|
2
|
+
"
|
|
3
|
+
<window name = \"rwdtinkerhelpwindow\" title=\"RwdTinker Help\">
|
|
4
|
+
<tabs>
|
|
5
|
+
<tab name=\"main\" caption=\"Help\">
|
|
6
|
+
<row> <p></row>
|
|
7
|
+
<row> <p>RwdTinker</row>
|
|
8
|
+
<cancel/>
|
|
9
|
+
</tab>
|
|
10
|
+
|
|
11
|
+
<tab name=\"nexttab\" caption=\"Next\">
|
|
12
|
+
<row> <p></row>
|
|
13
|
+
<row> <p>RwdTinker Help</row>
|
|
14
|
+
<cancel/>
|
|
15
|
+
</tab>
|
|
16
|
+
|
|
17
|
+
</tabs>"
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
$rwdguivar=
|
|
2
|
+
"
|
|
3
|
+
<tab name=\"diagnostictab\" caption=\"Diagnostic Tab\">
|
|
4
|
+
<horizontal>
|
|
5
|
+
<button caption=\"View Ruby Version\" action=\"runrubyversion\"/>
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
</horizontal>
|
|
9
|
+
<p>%rubyversion%</p>
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
<table>
|
|
13
|
+
<row> <p> </row>
|
|
14
|
+
|
|
15
|
+
</table>
|
|
16
|
+
|
|
17
|
+
<horizontal>
|
|
18
|
+
<button caption=\"view platform\" action=\"runviewplatform\"/>
|
|
19
|
+
|
|
20
|
+
</horizontal>
|
|
21
|
+
|
|
22
|
+
<p>%platformdisplay%</p>
|
|
23
|
+
<horizontal>
|
|
24
|
+
<button caption=\"View rwdtinker Version\" action=\"rwdtinkerversiondiagnostic\"/>
|
|
25
|
+
|
|
26
|
+
</horizontal>
|
|
27
|
+
|
|
28
|
+
<p>%rwdtinkerversionreturn%</p>
|
|
29
|
+
|
|
30
|
+
</tab>"
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
$rwdguivar=
|
|
2
|
+
"
|
|
3
|
+
<tab name=\"filelister\" caption=\"List Applets\">
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<table>
|
|
7
|
+
<row> <p align=\"right\">File Name:</p> <text name=\"a_installlist\"/> </row>
|
|
8
|
+
|
|
9
|
+
</table>
|
|
10
|
+
|
|
11
|
+
<horizontal>
|
|
12
|
+
<button caption=\"View Install Text\" action=\"openname\"/>
|
|
13
|
+
<button caption=\"Cancel\" action=\"main\"/>
|
|
14
|
+
</horizontal>
|
|
15
|
+
<p>%displaytext%</p>
|
|
16
|
+
|
|
17
|
+
<table>
|
|
18
|
+
<row> <p align=\"right\">File Name:</p> <text name=\"a_removeapplet\"/> </row>
|
|
19
|
+
|
|
20
|
+
</table>
|
|
21
|
+
|
|
22
|
+
<p>%removeapplettext%</p>
|
|
23
|
+
<horizontal>
|
|
24
|
+
<button caption=\"remove applet\" action=\"removeapplet\"/>
|
|
25
|
+
<button caption=\"Cancel\" action=\"main\"/>
|
|
26
|
+
|
|
27
|
+
</horizontal>
|
|
28
|
+
<table>
|
|
29
|
+
<row> <p> </row>
|
|
30
|
+
<row> <p align=\"right\">View the list of installation files </row>
|
|
31
|
+
|
|
32
|
+
</table>
|
|
33
|
+
<horizontal>
|
|
34
|
+
|
|
35
|
+
<button caption=\"List Files\" action=\"listinstalledfiles\"/>
|
|
36
|
+
|
|
37
|
+
</horizontal>
|
|
38
|
+
|
|
39
|
+
<p>%%filesresult%%</p>
|
|
40
|
+
|
|
41
|
+
</tab>"
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
$rwdguivar=
|
|
2
|
+
"
|
|
3
|
+
<tab name=\"zipslister\" caption=\"List Zips\">
|
|
4
|
+
|
|
5
|
+
<table>
|
|
6
|
+
<row> <p align=\"right\">File Name:</p> <text name=\"a_installapplet\"/> </row>
|
|
7
|
+
|
|
8
|
+
</table>
|
|
9
|
+
|
|
10
|
+
<horizontal>
|
|
11
|
+
<button caption=\"install applet\" action=\"installapplet\"/>
|
|
12
|
+
<button caption=\"Cancel\" action=\"main\"/>
|
|
13
|
+
|
|
14
|
+
</horizontal>
|
|
15
|
+
<p>%installapplettext%</p>
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
<table>
|
|
19
|
+
<row> <p align=\"right\">Click below to view the list of zip files </row>
|
|
20
|
+
|
|
21
|
+
</table>
|
|
22
|
+
|
|
23
|
+
<horizontal>
|
|
24
|
+
<button caption=\"List applets available for installing\" action=\"listzipfilestoinstall\"/>
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
</horizontal>
|
|
29
|
+
|
|
30
|
+
<p>%%zipslistresult%%</p>
|
|
31
|
+
|
|
32
|
+
</tab>"
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|