rwddemo 0.90 → 0.91
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/Readme.txt +25 -6
- data/code/{rwdcalc → superant.com.rwdcalc}/ca2multiply.rb +0 -0
- data/code/{rwdcalc → superant.com.rwdcalc}/changescriptname.rb +0 -0
- data/code/superant.com.rwdcalc/clearrubyscriptscreendisplay.rb +9 -0
- data/code/{rwdcalc → superant.com.rwdcalc}/clearscriptscreendisplay.rb +0 -0
- data/code/{rwdcalc → superant.com.rwdcalc}/deletescriptrecord.rb +0 -0
- data/code/{rwdcalc → superant.com.rwdcalc}/fadd.rb +0 -0
- data/code/{rwdcalc → superant.com.rwdcalc}/frwdcleartape.rb +0 -0
- data/code/{rwdcalc → superant.com.rwdcalc}/frwddivide.rb +0 -0
- data/code/{rwdcalc → superant.com.rwdcalc}/frwdmultiply.rb +0 -0
- data/code/{rwdcalc → superant.com.rwdcalc}/frwdsubtract.rb +0 -0
- data/code/{rwdcalc → superant.com.rwdcalc}/helptexthashrwdcalc.rb +0 -0
- data/code/{rwdcalc → superant.com.rwdcalc}/listscripts.rb +0 -0
- data/code/superant.com.rwdcalc/loadrubyrecord.rb +20 -0
- data/code/{rwdcalc → superant.com.rwdcalc}/loadscriptrecord.rb +0 -0
- data/code/{rwdcalc → superant.com.rwdcalc}/mathcommands.rb +0 -0
- data/code/{rwdcalc → superant.com.rwdcalc}/openhelpwindowrwdcalc.rb +0 -0
- data/code/{rwdcalc → superant.com.rwdcalc}/playscript.rb +1 -1
- data/code/{rwdcalc → superant.com.rwdcalc}/renamecalcrecord.rb +0 -0
- data/code/{rwdcalc → superant.com.rwdcalc}/runrwdcalcwindow.rb +0 -0
- data/code/{rwdcalc → superant.com.rwdcalc}/rwdadd.rb +0 -0
- data/code/{rwdcalc → superant.com.rwdcalc}/rwdcleartape.rb +0 -0
- data/code/{rwdcalc → superant.com.rwdcalc}/rwddivision.rb +0 -0
- data/code/{rwdcalc → superant.com.rwdcalc}/rwdsubtraction.rb +0 -0
- data/code/{rwdcalc → superant.com.rwdcalc}/savechangedscript.rb +0 -0
- data/code/superant.com.rwdcalc/saverubyscript.rb +20 -0
- data/code/{rwdcalc → superant.com.rwdcalc}/viewscript.rb +0 -0
- data/code/superant.com.rwdshell/helptexthashshell.rb +24 -0
- data/code/superant.com.rwdshell/loadconfigurationrecord.rb +2 -2
- data/code/superant.com.rwdshell/openhelpwindowshell.rb +27 -0
- data/code/superant.com.rwdshell/playrubyscript.rb +2 -1
- data/code/superant.com.rwdshell/playscript.rb +2 -1
- data/code/superant.com.rwdshell/shelleval.rb +1 -1
- data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +4 -1
- data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +5 -3
- data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +10 -6
- data/configuration/language.cnf +3 -1
- data/configuration/language.dist +7 -0
- data/configuration/rwdapplicationidentity.cnf +2 -2
- data/configuration/rwdapplicationidentity.dist +3 -0
- data/configuration/rwdcalc.cnf +5 -2
- data/configuration/rwdcalc.dist +7 -0
- data/configuration/rwdcalendar.cnf +7 -1
- data/configuration/rwdcalendar.dist +10 -0
- data/configuration/rwdshell.cnf +3 -0
- data/configuration/rwdshell.dist +3 -0
- data/configuration/rwdtinker.cnf +3 -4
- data/configuration/rwdtinker.dist +15 -0
- data/configuration/tinkerwin2variables.cnf +6 -1
- data/configuration/tinkerwin2variables.dist +17 -0
- data/extras/cmdline_parse +47 -0
- data/extras/config_file +69 -0
- data/extras/errorMsg +19 -0
- data/extras/icalendar.rb +18 -0
- data/extras/makePlaylist +34 -0
- data/extras/mp3controld +289 -0
- data/extras/playlist +186 -0
- data/extras/rconftool.rb +380 -0
- data/extras/showHelp +18 -0
- data/gui/00coreguibegin/applicationguitop.rwd +1 -1
- data/gui/frontwindow0/{superant.com.tinkercalendar → superant.com.rwdcalendar}/hl9calendar.rwd +0 -0
- data/gui/frontwindow0/superant.com.shellscripts/1listplayscripts.rwd +1 -1
- data/gui/frontwindow0/superant.com.shellscripts/2listscripts.rwd +2 -2
- data/gui/frontwindow0/superant.com.shellscripts/6rwdshelleval.rwd +3 -4
- data/gui/frontwindowtdocuments/superant.com.shelldocument/vvdocshellxp.rwd +1 -0
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/46editscriptrecord.rwd +5 -5
- data/init.rb +42 -37
- data/rwd_files/HowTo_RwdCalc.txt +110 -0
- data/rwd_files/HowTo_Shell.txt +14 -1
- data/rwd_files/HowTo_Tinker.txt +16 -0
- data/rwdconfig.cnf +6 -0
- data/rwdconfig.dist +6 -0
- data/scripts/test02.rb +1 -1
- data/tests/checkdepends.sh +4 -0
- data/tests/cleancnf.sh +5 -0
- data/tests/makedist.rb +29 -0
- data/tests/rdep.rb +354 -0
- metadata +62 -48
- data/code/superant.com.rwdshell/helptexthashrubyslippers.rb +0 -81
- data/code/superant.com.rwdshell/openhelpwindowrubyslippers.rb +0 -50
- data/configuration/playscripts.cnf +0 -2
- data/configuration/rwdcalcversion.cnf +0 -2
- data/configuration/rwdcalendarversion.cnf +0 -4
- data/configuration/rwdshellversion.cnf +0 -2
- data/configuration/rwdtinkerversion.cnf +0 -2
- data/configuration/tinkerwin2version.cnf +0 -3
- data/installed/rwdtinkerwin2-0.5.inf +0 -8
- data/lang/alanguagehashbegin.rb +0 -4
- data/lang/languagehash.rb +0 -4
- data/lang/templangfile.rb +0 -22
- data/lang/vlanguagehashend.rb +0 -6
- data/lang/wlocallangstart.rb +0 -5
- data/lang/xlocallangfile.rb +0 -22
- data/lang/zlocallangend.rb +0 -2
- data/rwddemo-0.90.gem +0 -0
data/Readme.txt
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
= RwdTinker framework for RubyWebDialogs
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
RwdTinker is a web brower interface to and system for developing programs
|
|
5
4
|
|
|
6
5
|
== Usage
|
|
7
6
|
|
|
8
|
-
|
|
9
7
|
How to Use the Tinker framework Program (rwdtinker)
|
|
10
8
|
|
|
11
|
-
|
|
12
9
|
1. stand alone application
|
|
13
10
|
2. framework for building applications
|
|
14
11
|
3. Open brower windows with html documents
|
|
@@ -22,13 +19,10 @@ ruby init.rb
|
|
|
22
19
|
Then point your web browser to:
|
|
23
20
|
http://localhost:7705/
|
|
24
21
|
|
|
25
|
-
|
|
26
22
|
== Viewing installed Applets:
|
|
27
|
-
|
|
28
23
|
|
|
29
24
|
Go to "List Scripts" tab
|
|
30
25
|
|
|
31
|
-
|
|
32
26
|
You can get a list of all installed applets by clicking the listfiles button
|
|
33
27
|
|
|
34
28
|
To see the text of a install file
|
|
@@ -233,11 +227,36 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
|
|
233
227
|
Thanks, Steven Gibson
|
|
234
228
|
|
|
235
229
|
== Changelog
|
|
230
|
+
version 1.56
|
|
231
|
+
refactored gui files to load without intermediate files
|
|
232
|
+
refactored code files to load without intermediate files
|
|
233
|
+
|
|
234
|
+
version 1.55
|
|
235
|
+
refactored language files to load without intermediate files
|
|
236
|
+
refactored language files to load without intermediate files
|
|
237
|
+
|
|
238
|
+
version 1.54
|
|
239
|
+
refactored rwdtinker applet installation tab - remote gem and local installs share menu buttons
|
|
240
|
+
corrected some program logic errors in remote control code including close socket
|
|
241
|
+
|
|
242
|
+
version 1.53
|
|
243
|
+
added search of Gems repository for rwdtinker gems
|
|
244
|
+
download and install of Gems
|
|
245
|
+
|
|
246
|
+
version 1.52
|
|
247
|
+
added function to install applets from gem directory
|
|
248
|
+
|
|
249
|
+
version 1.51
|
|
250
|
+
changed return to main
|
|
251
|
+
changed configuration of remote ports
|
|
252
|
+
updated context sensitive help
|
|
253
|
+
|
|
236
254
|
version 1.50
|
|
237
255
|
changed unzip applet to be internal code - no exec to unzip program
|
|
238
256
|
changed order of tabs on back window - list applets now first
|
|
239
257
|
added rwdwcalc applet in to zips directory
|
|
240
258
|
changed width of text fields with help from RubyWebDialogs author
|
|
259
|
+
changed listing of help options, vertical instead of horizontal
|
|
241
260
|
|
|
242
261
|
version 1.49
|
|
243
262
|
added demon function for remote queries
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# this method views an existing address record
|
|
2
|
+
def loadrubyscriptrecord
|
|
3
|
+
|
|
4
|
+
require 'fileutils'
|
|
5
|
+
$currentrubyname = @a_rubyscriptfilename
|
|
6
|
+
|
|
7
|
+
begin # exception trapped block
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
fileName = $rubyscript_directory + "/" + $currentrubyname + ".rb"
|
|
11
|
+
|
|
12
|
+
fd = File.open(fileName,"r")
|
|
13
|
+
@a_rubyscriptrecord = fd.read
|
|
14
|
+
@newrubyrecord = @a_rubyscriptrecord
|
|
15
|
+
fd.close
|
|
16
|
+
rescue SystemCallError, StandardError
|
|
17
|
+
$stderr.print "system call error: " + $!
|
|
18
|
+
end # exception rescue
|
|
19
|
+
|
|
20
|
+
end
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
|
|
2
|
+
def saverubyrecord # this method adds a new script file
|
|
3
|
+
require 'fileutils'
|
|
4
|
+
if @a_rubyscriptfilename
|
|
5
|
+
newdata =@a_rubyscriptrecord.to_s
|
|
6
|
+
fullnewname = @a_rubyscriptfilename.to_s + ".rb"
|
|
7
|
+
begin # exception trapped block
|
|
8
|
+
fileName = File.join( $rubyscript_directory, fullnewname )
|
|
9
|
+
puts fileName
|
|
10
|
+
fd = File.open(fileName,"w")
|
|
11
|
+
fd.print(newdata) # save the record info to the file
|
|
12
|
+
fd.close
|
|
13
|
+
@newrubyresult=newdata # show the record info in the browser
|
|
14
|
+
$currentscriptname = "%s" % [@a_rubyscriptfilename] # grab the new filename to create
|
|
15
|
+
|
|
16
|
+
rescue
|
|
17
|
+
@newrubyresult = "\n" + "system error in createnew method"
|
|
18
|
+
end # exception rescue
|
|
19
|
+
end
|
|
20
|
+
end # end of createnew
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
Helptext.update( :rwdshell_help => " You can get a list of all scripts by clicking the listfiles button
|
|
4
|
+
|
|
5
|
+
To see the text of a script
|
|
6
|
+
Type in the name of the script you want.
|
|
7
|
+
|
|
8
|
+
type it without the sh ending
|
|
9
|
+
myscript
|
|
10
|
+
|
|
11
|
+
Then click the 'ViewScript' button
|
|
12
|
+
|
|
13
|
+
If it finds the script it will open it.
|
|
14
|
+
It displays the text the search box.",
|
|
15
|
+
:ShellEnvironment_help => "You can view the setup that
|
|
16
|
+
is on your system.
|
|
17
|
+
|
|
18
|
+
Click on Fill
|
|
19
|
+
This will show your setup
|
|
20
|
+
|
|
21
|
+
You can edit the commands or comment
|
|
22
|
+
|
|
23
|
+
Click on the 'save' then reload variables"
|
|
24
|
+
)
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
require 'fileutils'
|
|
5
5
|
|
|
6
|
-
@a_rshellconfigurationfilename = "
|
|
6
|
+
@a_rshellconfigurationfilename = "rwdshell.cnf"
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
begin # exception trapped block
|
|
10
10
|
|
|
11
11
|
Dir.chdir($progdir)
|
|
12
|
-
fileName = File.join(ConfigurationDir, "
|
|
12
|
+
fileName = File.join(ConfigurationDir, "rwdshell.cnf")
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
fd = File.open(fileName,"r")
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# this code is to call the help window
|
|
2
|
+
def runhelpwindowrwdshell
|
|
3
|
+
|
|
4
|
+
$help_topic = "rwdshell_help"
|
|
5
|
+
if @rwd_tab == "scriptlister"
|
|
6
|
+
$help_topic = "rwdshell_help"
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
if @rwd_tab == "viewrwdshellconfiguration"
|
|
10
|
+
$help_topic = "ShellEnvironment_help"
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
$helptopicsarray = $helptopicsarray | ["rwdshell_help", "ShellEnvironment_help"]
|
|
16
|
+
$previouswindow = @rwd_window
|
|
17
|
+
$previoustab = @rwd_tab
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
if @rwd_window != "rwdtinkerhelpwindow"
|
|
21
|
+
$previouswindow = @rwd_window
|
|
22
|
+
$previoustab = @rwd_tab
|
|
23
|
+
end
|
|
24
|
+
runhelpwindow
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
rwdtinker applets packaged as RubyGems can be used if you have RubyGems installed.
|
|
11
11
|
You can download rwdtinker gems at the 'Install Remote Applets' tab
|
|
12
|
+
to install applets you need the ruby zlib library installed
|
|
12
13
|
",
|
|
13
14
|
:applet_viewing => "You can get a list of all installed applets by clicking the 'listfiles button'
|
|
14
15
|
To see the text of a install file
|
|
@@ -32,7 +33,9 @@
|
|
|
32
33
|
chose the applet you want\n
|
|
33
34
|
click on 'install applet'\n
|
|
34
35
|
If all goes well the applet should be installed.\n
|
|
35
|
-
You will need to restart rwdtinker to see the new screens
|
|
36
|
+
You will need to restart rwdtinker to see the new screens
|
|
37
|
+
to install applets you need the ruby zlib library installed",
|
|
38
|
+
|
|
36
39
|
:applet_tinkerbackeditconfiguration => " You can edit the configuration
|
|
37
40
|
|
|
38
41
|
Remember to reload the configuration variables if you want your
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
# code in install rwdtinker applets - now uses ruby.zip module
|
|
2
2
|
def installapplet
|
|
3
|
-
|
|
4
|
-
require 'extras/zip/zip'
|
|
3
|
+
|
|
5
4
|
nametext = "%s" % [@a_installapplet]
|
|
6
|
-
|
|
5
|
+
|
|
7
6
|
begin # exception trapped block
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
require 'extras/zip/zip'
|
|
8
10
|
fullname = nametext + ".zip"
|
|
9
11
|
fileName = File.join($zipslocation,fullname)
|
|
10
12
|
|
|
@@ -10,19 +10,23 @@
|
|
|
10
10
|
|
|
11
11
|
fd.each { |oneline|
|
|
12
12
|
if count == 1
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
if File.exist?(oneline.chop)
|
|
14
|
+
FileUtils.rm_rf( oneline.chop)
|
|
15
|
+
end
|
|
16
|
+
|
|
15
17
|
end
|
|
16
18
|
count = 1
|
|
17
19
|
}
|
|
18
20
|
fd.close
|
|
19
|
-
|
|
21
|
+
|
|
22
|
+
FileUtils.rm_rf( fileName)
|
|
23
|
+
|
|
20
24
|
|
|
21
|
-
system(commandline)
|
|
22
25
|
@removeapplettext = "applet files removed! - restart rwd to finish uninstalling"
|
|
23
26
|
|
|
24
27
|
rescue
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
@removeapplettext = "\n" + "error"
|
|
29
|
+
|
|
30
|
+
end # exception rescue
|
|
27
31
|
|
|
28
32
|
end
|
data/configuration/language.cnf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
$rwdapplicationidentity = "
|
|
1
|
+
##VERSION:1.57
|
|
2
|
+
$rwdapplicationidentity = "rwddemo application"
|
|
3
3
|
|
data/configuration/rwdcalc.cnf
CHANGED
data/configuration/rwdtinker.cnf
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
##VERSION:1.58
|
|
2
2
|
ConfigurationDir = "configuration" # for use in program - init.rb has this value without using this constant
|
|
3
3
|
CodeName = "rwdtinker"
|
|
4
4
|
CodeNameFile = CodeName + ".rb"
|
|
5
|
-
LangNameFile = "rwdlanguage.rb"
|
|
6
5
|
RWDFile = "rwdtinker.rwd"
|
|
7
6
|
LangDir = "lang"
|
|
8
|
-
TempLangHashFile = LangDir + "/" + "templangfile.rb"
|
|
9
|
-
LocalLangHashFile = LangDir + "/" + "xlocallangfile.rb"
|
|
10
7
|
CodeDir = "code"
|
|
11
8
|
GuiDir = "gui"
|
|
12
9
|
$help_topic = "general_help"
|
|
@@ -14,3 +11,5 @@ LocalLangHashFile = LangDir + "/" + "xlocallangfile.rb"
|
|
|
14
11
|
$prevouswindow ="main"
|
|
15
12
|
$rwdcontrolports =["13713","13714","13715","13716","13717","13718"]
|
|
16
13
|
$port = 7705
|
|
14
|
+
|
|
15
|
+
RwdTinkerVersion = "1.58"
|