rwdtinker 1.48 → 1.51

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.
Files changed (32) hide show
  1. data/Readme.txt +19 -6
  2. data/code/01rwdcore/03helptexthash.rb +11 -28
  3. data/code/01rwdcore/openhelpwindow.rb +10 -24
  4. data/code/01rwdcore/returntomain.rb +10 -0
  5. data/code/superant.com.rwdtinkerbackwindow/controlclient.rb +100 -0
  6. data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +37 -0
  7. data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +8 -8
  8. data/code/superant.com.rwdtinkerbackwindow/network.rb +87 -0
  9. data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +39 -0
  10. data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +1 -1
  11. data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +21 -0
  12. data/configuration/rwdapplicationidentity.cnf +3 -0
  13. data/configuration/rwdtinker.cnf +1 -0
  14. data/configuration/rwdtinkerversion.cnf +1 -1
  15. data/ev/rwd.rb +4 -3
  16. data/extras/zip/ioextras.rb +114 -0
  17. data/extras/zip/stdrubyext.rb +111 -0
  18. data/extras/zip/tempfile_bugfixed.rb +195 -0
  19. data/extras/zip/zip.rb +1376 -0
  20. data/extras/zip/zipfilesystem.rb +558 -0
  21. data/extras/zip/ziprequire.rb +61 -0
  22. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/{50rwdlistzips.rwd → 40rwdlistzips.rwd} +10 -3
  23. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd +1 -1
  24. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd +11 -10
  25. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdcontrol.rwd +33 -0
  26. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/80tab1.rwd +1 -1
  27. data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd +1 -2
  28. data/init.rb +38 -2
  29. data/rwd_files/HowTo_Tinker.txt +16 -6
  30. data/zips/rwdaschedule-0.93.zip +0 -0
  31. data/zips/rwdcalc-0.4.zip +0 -0
  32. metadata +64 -48
@@ -0,0 +1,33 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"rwdremotecontrol\" caption=\"Remote Controls\">
4
+ <p></p>
5
+ Query remote rwdtinker applications (not yet functional on XP)
6
+ <horizontal>
7
+ <button caption=\"Start the Remote Control for This Application\" action=\"network_start\"/>
8
+ <button caption=\"Help\" action=\"runhelpwindowtinkerwin2\"/>
9
+
10
+ </horizontal>
11
+ <p>%viewremotecommandresult%</p>
12
+ <horizontal>
13
+
14
+ <button caption=\"Show remote Command Choices\" action=\"showremoteportoptions\"/>
15
+
16
+ </horizontal>
17
+ <table>
18
+ <select name=\"a_remoteportinput\"> %%remoteportoptions%% </select>
19
+
20
+ </table>
21
+
22
+ <table>
23
+ <select name=\"a_remotecommandinput\"> %%remotecommandoptions%% </select>
24
+
25
+ </table>
26
+ <horizontal>
27
+ <button caption=\"Run Command\" action=\"runcontrolcommand\"/>
28
+ <button caption=\"Cancel\" action=\"main\"/>
29
+ </horizontal>
30
+ <p> Remote Port</p>
31
+ <p>%lastremotecommand%</p>
32
+ <p>%remotecommandresult%</p>
33
+ </tab>"
@@ -5,7 +5,7 @@ $rwdguivar=
5
5
  <row> You can return to the previous window</row>
6
6
  <row><p> </row>
7
7
  <row><p> </row>
8
- <button caption=\"Return to top menu\" action=\"main\"/>
8
+ <button caption=\"Return to top menu\" action=\"returntomain\"/>
9
9
 
10
10
  </tab>"
11
11
 
@@ -26,7 +26,6 @@ $rwdguivar=
26
26
  <row> <p></row>
27
27
 
28
28
  </table>
29
- <horizontal>
29
+
30
30
  %%rwdhelpsubchoicesoutput%%
31
- </horizontal>
32
31
  "
data/init.rb CHANGED
@@ -228,6 +228,42 @@ Dir.chdir($progdir)
228
228
  fileB.write($tempdoc) #writes the contents of doc into the file
229
229
  fileB.close
230
230
 
231
-
231
+ require 'socket' # Network stuff
232
+ host = "127.0.0.1"
233
+ port = $port
234
+
235
+ # Create a socket to listen on and bind it to the host and port
236
+ freeportfound = false
237
+ until freeportfound
238
+ begin
239
+ @socket = UDPSocket::new()
240
+ @socket.bind(host, port)
241
+ freeportfound = true
242
+ $port = port
243
+ # Rescue the "Address in use" error
244
+ rescue Errno::EADDRINUSE
245
+ puts "RWD Startup: Port #{port} on host #{host} is already in use."
246
+ port=port +1
247
+ puts "trying port: #{port}"
248
+ # Rescue the "Address not available' error
249
+ rescue Errno::EADDRNOTAVAIL
250
+ puts "RWD Startup: Address #{host} is not available to bind."
251
+ port =port + 1
252
+ puts "trying port: #{port}"
253
+ # Rescue "permission denied errors
254
+ rescue Errno::EACCES
255
+ puts "RWD Startup: Access denied when binding interface addresses. ?"
256
+ port =port + 1
257
+ puts "trying port: #{port}"
258
+ # Rescue all other errors
259
+ rescue
260
+ puts "RWD Startup: An error occured."
261
+ port =port + 1
262
+ puts "trying port: #{port}"
263
+ # Rescue all other errors
264
+ end
265
+
266
+ end
267
+
232
268
 
233
- RwdTinker.file(RWDFile).serve($port) # start the main class and program
269
+ RwdTinker.file(RWDFile).serve(port) # start the main class and program
@@ -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,6 +227,22 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
233
227
  Thanks, Steven Gibson
234
228
 
235
229
  == Changelog
230
+ version 1.51
231
+ changed return to main
232
+ changed configuration of remote ports
233
+ updated context sensitive help
234
+
235
+ version 1.50
236
+ changed unzip applet to be internal code - no exec to unzip program
237
+ changed order of tabs on back window - list applets now first
238
+ added rwdwcalc applet in to zips directory
239
+ changed width of text fields with help from RubyWebDialogs author
240
+ changed listing of help options, vertical instead of horizontal
241
+
242
+ version 1.49
243
+ added demon function for remote queries
244
+ startup application on first available port
245
+
236
246
  version 1.48
237
247
  fix in context sensitive help so that applets can use it better
238
248
 
Binary file
Binary file
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.4
3
3
  specification_version: 1
4
4
  name: rwdtinker
5
5
  version: !ruby/object:Gem::Version
6
- version: "1.48"
7
- date: 2005-01-27
6
+ version: "1.51"
7
+ date: 2005-02-07
8
8
  summary: rwdtinker application is a framework to program for RubyWebDialogs.
9
9
  require_paths:
10
10
  - "."
@@ -27,54 +27,78 @@ platform: ruby
27
27
  authors: []
28
28
  files:
29
29
  - lib/temp.rb
30
- - code/zz0applicationend/zz0end.rb
31
- - code/dd0viewphoto/dd0viewphoto.rb
32
- - code/01rwdcore/rwdtinkerversion.rb
33
- - code/01rwdcore/openhelpwindow.rb
34
30
  - code/01rwdcore/01rwdcore.rb
35
31
  - code/01rwdcore/02helptexthashbegin.rb
36
32
  - code/01rwdcore/03helptexthash.rb
37
33
  - code/01rwdcore/04helptextend.rb
34
+ - code/01rwdcore/openhelpwindow.rb
35
+ - code/01rwdcore/rwdtinkerversion.rb
38
36
  - code/01rwdcore/rwdwindowreturn.rb
39
- - code/superant.com.rwdtinkerbackwindow/openappletname.rb
40
- - code/superant.com.rwdtinkerbackwindow/removeapplet.rb
41
- - code/superant.com.rwdtinkerbackwindow/installapplet.rb
42
- - code/superant.com.rwdtinkerbackwindow/listzips.rb
37
+ - code/01rwdcore/returntomain.rb
38
+ - code/dd0viewphoto/dd0viewphoto.rb
39
+ - code/superant.com.rwdtinkerbackwindow/controlclient.rb
43
40
  - code/superant.com.rwdtinkerbackwindow/diagnostictab.rb
44
- - code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb
41
+ - code/superant.com.rwdtinkerbackwindow/installapplet.rb
45
42
  - code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb
43
+ - code/superant.com.rwdtinkerbackwindow/listzips.rb
46
44
  - code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb
47
45
  - code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb
48
- - code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb
46
+ - code/superant.com.rwdtinkerbackwindow/network.rb
47
+ - code/superant.com.rwdtinkerbackwindow/openappletname.rb
48
+ - code/superant.com.rwdtinkerbackwindow/removeapplet.rb
49
49
  - code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb
50
+ - code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb
51
+ - code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb
52
+ - code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb
53
+ - code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb
54
+ - code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb
55
+ - code/zz0applicationend/zz0end.rb
56
+ - configuration/language.cnf
57
+ - configuration/rwdapplicationidentity.cnf
50
58
  - configuration/rwdtinker.cnf
51
59
  - configuration/rwdtinkerversion.cnf
52
- - configuration/language.cnf
53
- - configuration/tinkerwin2version.cnf
54
60
  - configuration/tinkerwin2variables.cnf
55
- - ev/sgml.rb
56
- - ev/xml.rb
57
- - ev/net.rb
58
- - ev/ruby.rb
59
- - ev/tree.rb
61
+ - configuration/tinkerwin2version.cnf
60
62
  - ev/browser.rb
61
63
  - ev/ftools.rb
64
+ - ev/net.rb
65
+ - ev/ruby.rb
62
66
  - ev/rwd.rb
67
+ - ev/sgml.rb
63
68
  - ev/thread.rb
69
+ - ev/tree.rb
70
+ - ev/xml.rb
71
+ - extras/zip/ioextras.rb
72
+ - extras/zip/stdrubyext.rb
73
+ - extras/zip/tempfile_bugfixed.rb
74
+ - extras/zip/zip.rb
75
+ - extras/zip/zipfilesystem.rb
76
+ - extras/zip/ziprequire.rb
64
77
  - lang/alanguagehashbegin.rb
65
78
  - lang/languagehash.rb
66
79
  - lang/templangfile.rb
67
80
  - lang/vlanguagehashend.rb
68
- - lang/zlocallangend.rb
69
- - lang/xlocallangfile.rb
70
81
  - lang/wlocallangstart.rb
71
- - lang/es/rwdcore/languagefile-es.rb
82
+ - lang/xlocallangfile.rb
83
+ - lang/zlocallangend.rb
72
84
  - lang/en/rwdcore/languagefile.rb
73
- - lang/nl/rwdcore/languagefile.rb
85
+ - lang/es/rwdcore/languagefile-es.rb
74
86
  - lang/jp/rwdcore/languagefile.rb
87
+ - lang/nl/rwdcore/languagefile.rb
75
88
  - gui/00coreguibegin/applicationguitop.rwd
76
- - gui/zzcoreguiend/tinkerapplicationguiend/yy9rwdend.rwd
77
89
  - gui/frontwindow0/viewlogo/cc0openphoto.rwd
90
+ - gui/frontwindowselectionbegin/selectiontabbegin/selectiontabbegin.rwd
91
+ - gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab
92
+ - gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd
93
+ - gui/frontwindowselectionzend/viewselectionzend/viewselectionend.rwd
94
+ - gui/frontwindowtdocumentbegin/superant.com.documentsbegin
95
+ - gui/frontwindowtdocumentbegin/superant.com.documentsbegin/tt0documentbegin.rwd
96
+ - gui/frontwindowtdocuments/superant.com.documents
97
+ - gui/frontwindowtdocuments/superant.com.tinkerwin2documents
98
+ - gui/frontwindowtdocuments/superant.com.documents/uu5documents.rwd
99
+ - gui/frontwindowtdocuments/superant.com.tinkerwin2documents/uu5documents.rwd
100
+ - gui/frontwindowtdocumentzend/superant.com.documentsend
101
+ - gui/frontwindowtdocumentzend/superant.com.documentsend/ww0documentend.rwd
78
102
  - gui/frontwindowz1end/frontwindowend/xx0rwdfirsttab.rwd
79
103
  - gui/helpaboutbegin/superant.com.helpaboutbegin
80
104
  - gui/helpaboutbegin/superant.com.helpaboutbegin/ya0helpscreenstart.rwd
@@ -86,49 +110,41 @@ files:
86
110
  - gui/helpaboutinstalled/superant.com.tinkerhelpabout/1appname.rwd
87
111
  - gui/helpaboutinstalled/superant.com.tinkerhelpabout/3copyright.rwd
88
112
  - gui/helpaboutinstalled/superant.com.tinkerhelpabout/5version.rwd
89
- - gui/frontwindowtdocuments/superant.com.documents
90
- - gui/frontwindowtdocuments/superant.com.tinkerwin2documents
91
- - gui/frontwindowtdocuments/superant.com.documents/uu5documents.rwd
92
- - gui/frontwindowtdocuments/superant.com.tinkerwin2documents/uu5documents.rwd
93
113
  - gui/helpaboutzend/superant.com.helpaboutend
94
114
  - gui/helpaboutzend/superant.com.helpaboutend/helpscreenend.rwd
95
- - gui/tinkerbackwindows/superant.com.versionwindow
96
115
  - gui/tinkerbackwindows/superant.com.tinkerbackwindow
97
116
  - gui/tinkerbackwindows/superant.com.tinkerhelpwindow
98
- - gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd
117
+ - gui/tinkerbackwindows/superant.com.versionwindow
99
118
  - gui/tinkerbackwindows/superant.com.tinkerbackwindow/1appname.rwd
100
- - gui/tinkerbackwindows/superant.com.tinkerbackwindow/9backend.rwd
101
- - gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd
102
119
  - gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd
103
- - gui/tinkerbackwindows/superant.com.tinkerbackwindow/80tab1.rwd
104
- - gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistzips.rwd
105
120
  - gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd
121
+ - gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd
122
+ - gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdcontrol.rwd
123
+ - gui/tinkerbackwindows/superant.com.tinkerbackwindow/80tab1.rwd
124
+ - gui/tinkerbackwindows/superant.com.tinkerbackwindow/9backend.rwd
125
+ - gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd
106
126
  - gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd
107
127
  - gui/tinkerbackwindows/superant.com.tinkerhelpwindow/9end.rwd
108
- - gui/frontwindowtdocumentzend/superant.com.documentsend
109
- - gui/frontwindowtdocumentzend/superant.com.documentsend/ww0documentend.rwd
110
- - gui/frontwindowselectionzend/viewselectionzend/viewselectionend.rwd
111
- - gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab
112
- - gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd
113
- - gui/frontwindowselectionbegin/selectiontabbegin/selectiontabbegin.rwd
114
- - gui/frontwindowtdocumentbegin/superant.com.documentsbegin
115
- - gui/frontwindowtdocumentbegin/superant.com.documentsbegin/tt0documentbegin.rwd
128
+ - gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd
129
+ - gui/zzcoreguiend/tinkerapplicationguiend/yy9rwdend.rwd
116
130
  - installed/rwdtinkerwin2-0.5.inf
117
131
  - installed/rwdviewlogo-0.4.inf
132
+ - rwd_files/favicon.ico
133
+ - rwd_files/HowTo_Tinker.txt
134
+ - rwd_files/HowTo_TinkerWin2.txt
135
+ - rwd_files/rdoc-style.css
118
136
  - rwd_files/Readme.txt
119
137
  - rwd_files/rwdapplications.html
120
138
  - rwd_files/rwdindex.html
121
- - rwd_files/favicon.ico
122
- - rwd_files/HowTo_Tinker.txt
123
139
  - rwd_files/tinker.png
124
- - rwd_files/rdoc-style.css
125
- - rwd_files/HowTo_TinkerWin2.txt
126
140
  - zips/rwdahelloworld-0.5.zip
127
- - tests/totranslate.lang
141
+ - zips/rwdcalc-0.4.zip
142
+ - zips/rwdaschedule-0.93.zip
128
143
  - tests/rwdtinkertestEN.rb
129
144
  - tests/test.result
130
- - Readme.txt
145
+ - tests/totranslate.lang
131
146
  - init.rb
147
+ - Readme.txt
132
148
  test_files: []
133
149
  rdoc_options:
134
150
  - "--main"