rwdtorrent 0.02 → 0.03

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. data/Readme.txt +11 -0
  2. data/code/01rwdcore/01rwdcore.rb +16 -16
  3. data/code/01rwdcore/jumplinkcommand.rb +26 -0
  4. data/code/01rwdcore/openhelpwindow.rb +26 -26
  5. data/code/01rwdcore/returntomain.rb +8 -8
  6. data/code/01rwdcore/rundocuments.rb +10 -0
  7. data/code/01rwdcore/runeditconfiguration.rb +10 -0
  8. data/code/01rwdcore/runhelpabout.rb +10 -0
  9. data/code/01rwdcore/rwdtinkerversion.rb +12 -13
  10. data/code/01rwdcore/rwdwindowreturn.rb +3 -5
  11. data/code/01rwdcore/selectiontab.rb +9 -0
  12. data/code/01rwdcore/test_cases.rb +81 -98
  13. data/code/01rwdcore/test_harness.rb +8 -10
  14. data/code/01rwdcore/uploadreturns.rb +60 -60
  15. data/code/superant.com.rwdtinkerbackwindow/controlclient.rb +89 -92
  16. data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +15 -21
  17. data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +19 -18
  18. data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +20 -19
  19. data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +19 -18
  20. data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +7 -7
  21. data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +48 -49
  22. data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +8 -7
  23. data/code/superant.com.rwdtinkerbackwindow/listzips.rb +22 -26
  24. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +32 -31
  25. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb +14 -13
  26. data/code/superant.com.rwdtinkerbackwindow/network.rb +82 -82
  27. data/code/superant.com.rwdtinkerbackwindow/openappletname.rb +18 -17
  28. data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +37 -37
  29. data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +20 -20
  30. data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +33 -32
  31. data/code/superant.com.rwdtinkerbackwindow/runremoteinstall.rb +11 -0
  32. data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +8 -9
  33. data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +10 -11
  34. data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +19 -18
  35. data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +21 -20
  36. data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +23 -20
  37. data/code/superant.com.rwdtorrent/helptesthashrwdtorrent.rb +7 -2
  38. data/code/superant.com.rwdtorrent/returntodownload.rb +10 -0
  39. data/code/superant.com.rwdtorrent/returntomain.rb +1 -1
  40. data/code/superant.com.rwdtorrent/runeditconfiguration.rb +10 -0
  41. data/code/superant.com.rwdtorrent/runtorrentwindow.rb +305 -51
  42. data/code/superant.com.rwdtorrent/test_cases.rb +46 -0
  43. data/configuration/language.dist +1 -1
  44. data/configuration/rwdapplicationidentity.dist +2 -2
  45. data/configuration/rwdtinker.dist +3 -3
  46. data/configuration/rwdtorrent.dist +4 -3
  47. data/configuration/tinkerwin2variables.dist +1 -1
  48. data/gui/00coreguibegin/applicationguitop.rwd +1 -1
  49. data/gui/frontwindow0/superant.com.rwdtorrent/40rwdtorrentrefresh.rwd +1 -0
  50. data/gui/frontwindowselectionbegin/selectiontabbegin/selectiontabbegin.rwd +2 -7
  51. data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/jumplinkcommands.rwd +15 -0
  52. data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/1appname.rwd +1 -1
  53. data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/5version.rwd +1 -1
  54. data/gui/helpaboutinstalled/superant.com.torrenthelpabout/1appname.rwd +1 -1
  55. data/gui/helpaboutinstalled/superant.com.torrenthelpabout/3copyright.rwd +1 -1
  56. data/gui/helpaboutinstalled/superant.com.torrenthelpabout/5version.rwd +1 -1
  57. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd +17 -0
  58. data/gui/tinkerbackwindows/superant.com.torrentdisplay/torrentdisplaywindow.rwd +39 -16
  59. data/init.rb +228 -228
  60. data/rwd_files/HowTo_Tinker.txt +14 -0
  61. data/rwd_files/HowTo_Torrent.txt +7 -0
  62. data/rwdconfig.dist +4 -2
  63. data/tests/RubyGauge.rb +179 -0
  64. data/tests/makedist.rb +1 -0
  65. data/torrentfiles/knoppix-std-0.1.iso.torrent +0 -0
  66. metadata +17 -10
  67. data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +0 -12
  68. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/80tab1.rwd +0 -11
  69. data/tests/rwdtinkertestEN.rb +0 -163
  70. data/tests/test.result +0 -32
  71. data/torrentfiles/freeculture-audiobook.zip.torrent +0 -0
  72. data/torrentfiles/freeculture.zip.torrent +0 -0
@@ -1,57 +1,311 @@
1
- def runtorrentwindow
2
- $torrenttodownload = TorrentRootDir + $rwdtorrentfilesdir + "/" + @a_viewtorrent + ".torrent"
3
- rwdtorrentwindowtwo
1
+
2
+ def runtorrentwindow
3
+ if ! @a_viewtorrent.to_s.empty?
4
+ $torrenttodownload = TorrentRootDir + $rwdtorrentfilesdir + "/" + @a_viewtorrent + ".torrent"
5
+ rwdtorrentwindowtwo
4
6
  end
7
+ end
8
+
9
+ def runtorrentwindowhttp
10
+ $torrenttodownload = @a_viewtorrenthttp
11
+ rwdtorrentwindowtwo
12
+ end
13
+
14
+ $temptorrentnumber = 0
15
+
16
+
17
+
18
+
19
+ def rwdtorrentwindowtwo
20
+ require 'extras/rubytorrent'
21
+
22
+
23
+
24
+ @rwd_call_after_back << "rwdtorrentwindowtwo"
25
+ #if @rwd_tab== "rwdtorrentrefresh"
26
+ @rwd_window = "torrentdisplaywindowtwo"
27
+ # end
28
+ if $temptorrentnumber == 0
29
+ display_cols = 0
30
+ @@dlratelim = nil
31
+ @ulratelim = nil
32
+
33
+ @need_update = true
34
+ display_fn = ""
35
+ dest = ""
36
+ display_status = ""
37
+ display_completed = 0
38
+ display_total = 0
39
+ @@display_dlamt = 0
40
+ @@display_dlrate = 0
41
+ @@display_ulamt = 0
42
+ @@display_ulrate = 0
43
+ display_rate = 0
44
+ @@display_conn_peers = 0
45
+ @@display_fail_peers = 0
46
+ display_untried_peers = 0
47
+ display_tracker = "not connected"
48
+ @@display_errcount = 0
49
+ @dlblocks = 0
50
+ @ulblocks = 0
51
+
52
+ @got_blocks = 0
53
+ @sent_blocks = 0
54
+ @@last_got_block = nil
55
+ @@last_sent_block = nil
56
+ @start_time = nil
57
+
58
+ @use_rate = false
59
+ proxy = ENV["http_proxy"]
60
+ dest= $rwdtorrentdownloads
61
+ $torrenttimestart = Time.now
62
+ #Dir.chdir($rwdtorrentdownloads)
63
+
5
64
 
6
- def runtorrentwindowhttp
7
- $torrenttodownload = @a_viewtorrenthttp
8
- rwdtorrentwindowtwo
65
+
66
+ begin
67
+ mi = RubyTorrent::MetaInfo.from_location("#{$torrenttodownload}", proxy)
68
+ rescue RubyTorrent::MetaInfoFormatError, RubyTorrent::BEncodingError => e
69
+ die %{Error: can\'t parse metainfo file "#{$torrenttodownload}"---maybe not a .torrent?}
70
+ rescue RubyTorrent::TypedStructError => e
71
+ $stderr.print "
72
+ error parsing metainfo file, and it's likely something I should know about.
73
+ please email the torrent file to wmorgan-rubytorrent-bug@masanjin.net,
74
+ along with this backtrace: (this is RubyTorrent version #{RubyTorrent::VERSION})"
75
+
76
+ raise e
77
+ rescue IOError, SystemCallError => e
78
+ $stderr.puts %{Error: can't read file "#{$torrenttodownload}": #{e.message}}
79
+ #exit
80
+ end
81
+
82
+ unless dest.nil?
83
+ if FileTest.directory?(dest) && mi.info.single?
84
+ dest = File.join(dest, mi.info.name)
85
+ elsif FileTest.file?(dest) && mi.info.multiple?
86
+ die %{Error: .torrent contains multiple files, but "#{dest}" is a single file (must be a directory)}
87
+ end
88
+ end
89
+ begin
90
+ display_status = "checking file on disk..."
91
+ # @display_det = File.expand_path(dest || mi.info.name) + (mi.single? ? "" : "/")
92
+ if mi.single?
93
+ display_fn = "#{mi.info.name} (#{mi.info.length} in one file)"
94
+ else
95
+ display_fn = "#{mi.info.name}/ (#{mi.info.total_length} in #{mi.info.files.length} files)"
96
+ end
97
+ display_total = mi.info.num_pieces * mi.info.piece_length
98
+ display_completed = 0
99
+
100
+
101
+ @display_use_rate = true
102
+ @display_start_timer
103
+ num_pieces = 0
104
+ start = Time.now
105
+ every = 10
106
+ package = RubyTorrent::Package.new(mi, dest) do |piece|
107
+ num_pieces += 1
108
+ if (num_pieces % every) == 0
109
+ display_completed = (num_pieces * mi.info.piece_length)
110
+ display_rate = display_completed.to_f / (Time.now - start)
111
+
112
+
113
+ end
114
+ end
115
+
116
+ display_status = "starting peer..."
117
+ @display_use_rate = false
118
+
119
+ $bt = RubyTorrent::BitTorrent.new(mi, package, :http_proxy => proxy, :dlratelim => @@dlratelim, :ulratelim => @ulratelim)
120
+
121
+ @torrent_connecting = true
122
+ #runtorrentthread
123
+
124
+ $temptorrentnumber =1
125
+ end
126
+ Dir.chdir($progdir)
127
+ @torrentdisplayvariable = $bt.percent_completed.to_s
128
+ @torrentstarttime = $torrenttimestart
129
+ @torrentcurrenttime = Time.now.to_s
130
+
131
+
132
+
133
+
134
+
135
+ end # end of initial block - should only run once per download
136
+
137
+ if display_tracker.nil?
138
+ display_tracker = "not connected"
139
+ end
140
+
141
+ if @@display_errcount.nil?
142
+
143
+ @@display_errcount = 0
144
+ end
145
+
146
+ $bt.on_event(self, :received_block) do |s, b, peer|
147
+ @display_got_block
148
+ @torrent_connecting = false
149
+ end
150
+ $bt.on_event(self, :sent_block) do |s, b, peer|
151
+ @display_sent_block
152
+ @torrent_connecting = false
153
+ end
154
+ $bt.on_event(self, :discarded_piece) { |s, p| @@display_errcount += 1 }
155
+ $bt.on_event(self, :tracker_connected) do |s, url|
156
+ display_tracker = url
157
+ display_untried_peers = $bt.num_possible_peers
158
+ end
159
+ if @@display_fail_peers.nil?
160
+ @@display_fail_peers = 0
161
+ end
162
+ if @@display_conn_peers.nil?
163
+ @@display_conn_peers = 0
164
+ end
165
+ $bt.on_event(self, :tracker_lost) { |s, url| display_tracker = "can't connect to #{url}" }
166
+ $bt.on_event(self, :forgetting_peer) { |s, p| @@display_fail_peers += 1 }
167
+ $bt.on_event(self, :removed_peer, :added_peer) do |s, p|
168
+ if (@@display_conn_peers = $bt.num_active_peers) == 0
169
+ @torrent_connecting = true
170
+ end
171
+ end
172
+ if display_untried_peers.to_s.empty?
173
+ display_untried_peers = 0
174
+ end
175
+ $bt.on_event(self, :added_peer) { |s, p| @@display_conn_peers += 1 }
176
+ $bt.on_event(self, :trying_peer) { |s, p| display_untried_peers -= 1 unless display_untried_peers == 0 }
177
+
178
+ display_total = $bt.total_bytes
179
+ @display_start_timer
180
+
181
+ if true
182
+
183
+
184
+ display_status = if $bt.complete?
185
+ "seeding (download complete)"
186
+ elsif @torrent_connecting
187
+ "connecting to peers"
188
+ else
189
+ "downloading"
190
+ end
191
+ if display_cols.nil?
192
+ display_cols = 0
193
+ end
194
+ if display_total.nil?
195
+ display_total = 0
196
+ end
197
+ if display_completed.nil?
198
+ display_completed =0
199
+ end
200
+ if @@last_got_block.nil?
201
+
202
+ @@last_got_block = 0
203
+ end
204
+ if @@last_sent_block.nil?
205
+
206
+ @@last_sent_block = 0
207
+ end
208
+ @@display_dlamt = $bt.dlamt
209
+ @@display_dlrate = $bt.dlrate
210
+ @@display_ulamt = $bt.ulamt
211
+ @@display_ulrate = $bt.ulrate
212
+ complete_width = [display_cols - 23, 0].max
213
+ complete_ticks = ((display_completed.to_f / display_total) * complete_width)
214
+
215
+ elapsed = (@torrentstarttime ? Time.now - @torrentstarttime : nil)
216
+ rate = (@display_use_rate ? display_rate : @@display_dlrate)
217
+ remaining = rate && (rate > 0 ? (display_total - display_completed).to_f / rate : nil)
218
+
219
+ dlstall = @@last_got_block.to_i && ((Time.now - @@last_got_block).to_i > STALL_SECS)
220
+ ulstall = @@last_sent_block.to_i && ((Time.now - @@last_sent_block).to_i > STALL_SECS)
221
+ display_progress = $bt.percent_completed.to_s
222
+ display_completed = $bt.bytes_completed.to_s
223
+ dest= $rwdtorrentdownloads
224
+ $bt.on_event(self, :complete) { display_status = "Download Complete..." }
225
+ @display_Dest = " Destination Directory: #{dest}"
226
+
227
+ @display_Status = " Status: #{display_status}"
228
+
229
+ @display_Total = "Total File Size to Downloaded: #{display_total}"
230
+ @display_Completed = "Total Size Downloaded this session: #{display_completed}"
231
+ @display_Progress = "Percent Progress this session: #{display_progress}"
232
+ @display_Time_elapsed = " Time: elapsed #{numeric_to_time(elapsed)}, remaining #{numeric_to_time(remaining)}"
233
+ @display_Download = "Download: #{numeric_to_sz(@@display_dlamt)} at #{numeric_to_sz(@@display_dlrate)}"
234
+ @display_Upload = " Upload: #{numeric_to_sz(@@display_ulamt)} at #{numeric_to_sz(@@display_ulrate)}"
235
+ @display_Peers = " Peers: connected to #{@@display_conn_peers} (#{@@display_fail_peers} failed, #{display_untried_peers} untried)"
236
+ #@display_Tracker = " Tracker: #{display_tracker}"
237
+ @display_Errors = " Errors: #{@@display_errcount}"
238
+
239
+
240
+ end
241
+
242
+ # rescue SystemCallError, StandardError, Exception
243
+ # $stderr.print "system call error: " + $!
244
+ #end # exception rescue
245
+
246
+ end
247
+
248
+ def torrent_die(x); $stderr << "#{x}\n" && exit(-1); end
249
+
250
+
251
+
252
+
253
+
254
+ STALL_SECS = 15
255
+
256
+
257
+
258
+ def got_block
259
+ @got_blocks += 1
260
+ @@last_got_block = Time.now
261
+ end
262
+
263
+ def sent_block
264
+ @sent_blocks += 1
265
+ @@last_sent_block = Time.now
266
+ end
267
+
268
+ def sigwinch_handler(sig = nil)
269
+ @need_update = true
270
+ end
271
+
272
+ def start_timer
273
+ @start_time = Time.now
274
+ end
275
+
276
+ def numeric_to_sz(size_in)
277
+ if size_in.nil?
278
+ size_in = 0
279
+ end
280
+ if size_in < 1024
281
+ "#{size_in.round}b"
282
+ elsif size_in < 1024 ** 2
283
+ "#{(size_in / 1024 ).round}k"
284
+ elsif size_in < 1024 ** 3
285
+ sprintf("%.1fm", size_in.to_f / (1024 ** 2))
286
+ else
287
+ sprintf("%.2fg", size_in.to_f / (1024 ** 3))
288
+ end
9
289
  end
10
290
 
11
- $temptorrentnumber = 0
12
-
13
- def runtorrentthread
14
- $torrenttimestart = Time.now
15
- Dir.chdir($rwdtorrentdownloads)
16
-
17
- $bt = RubyTorrent::BitTorrent.new("#{$torrenttodownload}")
18
- $torrentpid = fork do
19
- puts "\nIn child, pid = #$$ \n"
20
- thread = Thread.new do
21
- #while true
22
- puts $bt.percent_completed
23
-
24
-
25
- #end
26
- end
27
- $bt.on_event(self, :complete) { thread.kill }
28
- thread.join
291
+ MIN = 60
292
+ HOUR = 60 * MIN
293
+ DAY = 24 * HOUR
294
+
295
+ def numeric_to_time(time_in)
296
+ if time_in.nil?
297
+ time_in = 0
298
+ end
299
+ if time_in < MIN
300
+ sprintf("0:%02d", time_in)
301
+ elsif time_in < HOUR
302
+ sprintf("%d:%02d", time_in / MIN, time_in % MIN)
303
+ elsif time_in < DAY
304
+ sprintf("%d:%02d:%02d", time_in / HOUR, (time_in % HOUR) / MIN, (time_in % HOUR) % MIN)
305
+ else
306
+ sprintf("%dd %d:%02d:%02d", time_in / DAY, (time_in % DAY) / HOUR, ((time_in % DAY) % HOUR) / MIN, ((time_in % DAY) % HOUR) % MIN)
29
307
  end
30
- end
31
-
32
- def rwdtorrentwindowtwo
33
- require 'extras/rubytorrent'
34
-
35
- @rwd_call_after_back << "rwdtorrentwindowtwo"
36
- #if @rwd_tab== "rwdtorrentrefresh"
37
- @rwd_window = "torrentdisplaywindowtwo"
38
- # end
39
- if $temptorrentnumber == 0
40
- runtorrentthread
41
- $temptorrentnumber =1
42
- end
43
- Dir.chdir($progdir)
44
- @torrentdisplayvariable = $bt.percent_completed.to_s
45
- @torrentstarttime = $torrenttimestart
46
- @torrentcurrenttime = Time.now.to_s
47
-
48
- commandtext = TorrentListCmd + $rwdtorrentdownloads + "/" + @a_viewtorrent.to_s + "*"
49
-
50
- begin # exception trapped block
51
- @torrentcurrentsize =`#{commandtext}`
52
-
53
- rescue SystemCallError, StandardError
54
- $stderr.print "system call error: " + $!
55
- end # exception rescue
308
+ end
309
+
310
+
56
311
 
57
- end
@@ -0,0 +1,46 @@
1
+ # test harness
2
+
3
+
4
+ require 'test/unit/testcase'
5
+ require 'test/unit/assertions'
6
+ include Test::Unit::Assertions
7
+ include Test::Unit
8
+ def rwdtorrent_all_tests
9
+ print "in rwdtorrent all tests\n"
10
+ $testrwdtorrenttestcase = TestSuite.new
11
+ test_runrwdtorrent
12
+ end
13
+
14
+ def test_runrwdtorrent
15
+
16
+
17
+ begin
18
+ testasserts = 0
19
+ print "Starting rwdtorrent tests!\n"
20
+ runselectiontab
21
+ assert_equal("selectiontab",@rwd_tab) ; testasserts += 1
22
+ runedittorrentconfiguration
23
+ assert_equal("viewrwdtorrentconfiguration",@rwd_tab) ; testasserts += 1
24
+ loadrwdtorrentconfiguration
25
+ assert_equal("rwdtorrent.cnf",@a_torrentconfigurationfilename) ; testasserts += 1
26
+
27
+ $stderr.print "tests completed succesfully!\n"
28
+ $stderr.print testasserts, " asserts performed\n"
29
+
30
+ rescue NotImplementedError, Exception
31
+ $stderr.print $!
32
+
33
+ end
34
+
35
+ end
36
+
37
+
38
+
39
+ def teststobedown
40
+ runtinkerhelpabout
41
+ assert_equal("rwdtinkerhelpwindow",@rwd_tab) ; testasserts += 1
42
+ end
43
+
44
+
45
+
46
+
@@ -1,4 +1,4 @@
1
- ##VERSION:1.57
1
+ ##VERSION:1.62
2
2
  #language selection file
3
3
  ##NAME:$lang:0
4
4
  #$lang = "jp"
@@ -1,3 +1,3 @@
1
- ##VERSION:1.57
2
- $rwdapplicationidentity = "rwdtorrent bittorrent gui"
1
+ ##VERSION:1.63
2
+ $rwdapplicationidentity = "rwdtorrent download client"
3
3
 
@@ -1,4 +1,4 @@
1
- ##VERSION:1.61
1
+ ##VERSION:1.64
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"
@@ -11,5 +11,5 @@ LangDir = "lang"
11
11
  $prevouswindow ="main"
12
12
  $rwdcontrolports =["13713","13714","13715","13716","13717","13718"]
13
13
  $port = 7705
14
-
15
- RwdTinkerVersion = "1.61"
14
+ $rwdjumplink = ["helpscreen","tinkerbackwindow","returntomain","opendocuments","editconfiguration"]
15
+ RwdTinkerVersion = "1.64"
@@ -1,4 +1,4 @@
1
- ##VERSION:0.02
1
+ ##VERSION:0.03
2
2
  ##NAME:$rwdtorrentfilesdir:0
3
3
  $rwdtorrentfilesdir="torrentfiles"
4
4
  ##NAME:$rwdtorrentdownloads:0
@@ -9,6 +9,7 @@ $extrasdir="extras"
9
9
  TorrentListCmd="ls -s -1 -h -R "
10
10
  ##NAME:TorrentRootDir:0
11
11
  TorrentRootDir=$progdir + "/"
12
-
13
- RwdTorrentVersion = "0.02"
12
+ ##NAME:$testharnessarray:0
13
+ $testharnessarray += ["rwdtorrent_all_tests"]
14
+ RwdTorrentVersion = "0.03"
14
15
 
@@ -1,4 +1,4 @@
1
- ##VERSION:1.57
1
+ ##VERSION:1.63
2
2
  TinkerWin2ConfigurationFileName = "tinkerwin2variables.cnf" # this file name - do not change
3
3
  ##NAME:$zipslocation:0
4
4
  $zipslocation = "zips" # location of applets to add
@@ -1,4 +1,4 @@
1
1
  $rwdguivar=
2
2
  "<application>
3
- <window name=\"main\" title=\"Tinker - RubyWebDialogs\">
3
+ <window name=\"main\" title=\"RwdTorrent - RubyWebDialogs\">
4
4
  <tabs>"
@@ -15,6 +15,7 @@ $rwdguivar=
15
15
  </table>
16
16
  <horizontal>
17
17
  <button caption=\'Start local Download\' action=\'runtorrentwindow\'/>
18
+ <button caption=\'Return to Download Window\' action=\'runtorrentdownloadwindow\'/>
18
19
 
19
20
  <button caption=\"Help\" action=\"runhelpwindowrwdtorrent\"/>
20
21
  <p></p>
@@ -3,14 +3,9 @@ $rwdguivar=
3
3
  <tab name=\"selectiontab\" caption=#{Message[:selection_panel]}>
4
4
 
5
5
  <table>
6
- <row> <p align=\"right\">Open a new window with callable applets you have loaded</row>
6
+ <row> <p align=\"right\">Open a new location </row>
7
7
 
8
8
  </table>
9
- <horizontal>
10
-
11
- <button caption=#{Message[:rwdtinker_help_window]} action=\"runhelpwindow\"/>
12
-
13
-
14
- </horizontal>"
9
+ "
15
10
 
16
11
 
@@ -0,0 +1,15 @@
1
+ $rwdguivar=
2
+ "
3
+ <horizontal>
4
+ <button caption=\"Show Jump Links\" action=\"showjumplinkoptions\"/>
5
+
6
+ </horizontal>
7
+ <table>
8
+ <select name=\"a_jumplinkinput\"> %%jumplinkoptions%% </select>
9
+
10
+ </table>
11
+
12
+ <horizontal>
13
+ <button caption=\"Jump to Application Location\" action=\"runjumplinkcommand\"/>
14
+ </horizontal>
15
+ "
@@ -1,4 +1,4 @@
1
1
  $rwdguivar=
2
2
  "
3
3
  <panel>
4
- <row> <p align=\"center\">\"rwdtorrent\"</p></row>"
4
+ <row> <p align=\"center\">#{Message[:rwdtinker]}</p></row>"
@@ -1,7 +1,7 @@
1
1
  $rwdguivar=
2
2
  "
3
3
  <horizontal>
4
- <button caption=#{Message[:clickfor_version]} action=\"runrwdtorrentversion\"/>
4
+ <button caption=#{Message[:clickfor_version]} action=\"runrwdtinkerversion\"/>
5
5
  </horizontal>
6
6
  </panel>"
7
7
 
@@ -1,4 +1,4 @@
1
1
  $rwdguivar=
2
2
  "
3
3
  <panel>
4
- <row> <p align=\"center\">rwdshell for rwdtinker</p></row>"
4
+ <row> <p align=\"center\">rwdtorrent for rwdtinker</p></row>"
@@ -1,3 +1,3 @@
1
1
  $rwdguivar=
2
2
  "
3
- <row> <p align=\"center\">copyright s. gibson 2004</p></row>"
3
+ <row> <p align=\"center\">copyright s. gibson 2005</p></row>"
@@ -1,7 +1,7 @@
1
1
  $rwdguivar=
2
2
  "
3
3
  <horizontal>
4
- <button caption=\"Click for Version\" action=\"runrwdshellversion\"/>
4
+ <button caption=\"Click for Version\" action=\"runrwdtorrentversion\"/>
5
5
  </horizontal>
6
6
 
7
7
  </panel>"
@@ -0,0 +1,17 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=selectiontab caption=\"Selection Tab\">
4
+ <horizontal>
5
+ <button caption=\"Show Jump Links\" action=\"showjumplinkoptions\"/>
6
+
7
+ </horizontal>
8
+ <table>
9
+ <select name=\"a_jumplinkinput\"> %%jumplinkoptions%% </select>
10
+
11
+ </table>
12
+
13
+ <horizontal>
14
+ <button caption=\"Jump to Application Location\" action=\"runjumplinkcommand\"/>
15
+ </horizontal>
16
+ </tab>
17
+ "
@@ -2,29 +2,52 @@ $rwdguivar=
2
2
  "
3
3
  <window name=\"torrentdisplaywindowtwo\" title=\"Torrent Download Progress\" refresh=\'5\'>
4
4
  <horizontal>
5
- <p>File progress: </p>
6
- <p>%torrentdisplayvariable%</p>
7
- </horizontal>
8
- <p></p>
5
+ <p>Download Start time: </p>
6
+ <p>%torrentstarttime%</p>
7
+ </horizontal>
8
+ <horizontal>
9
+ <p>Downloading File:</p>
10
+ <p>%a_viewtorrent%</p>
11
+ </horizontal>
9
12
  <horizontal>
10
- <p>Download Start time: </p>
13
+ %display_Dest%
14
+ </horizontal>
15
+ <horizontal>
16
+ %display_Status%
17
+ </horizontal>
11
18
 
12
- <p>%torrentstarttime%</p>
13
- </horizontal>
19
+ </horizontal>
14
20
  <horizontal>
15
- <p>current filesize: </p>
16
-
17
- <p>%torrentcurrentsize%</p>
21
+ %display_Total%
22
+ </horizontal>
23
+ <horizontal>
24
+ %display_Completed%
25
+ </horizontal>
26
+ <horizontal>
27
+ %display_Progress%
28
+ </horizontal>
29
+ <horizontal>
30
+ %display_Time_elapsed%
31
+ </horizontal>
32
+ <horizontal>
33
+ %display_Download%
34
+ </horizontal>
35
+ <horizontal>
36
+ %display_Upload%
37
+ </horizontal>
38
+ <horizontal>
39
+ %display_Peers%
40
+ </horizontal>
41
+
42
+ <horizontal>
43
+ %display_Errors%
18
44
  </horizontal>
19
-
20
45
  <p><p>
21
- <horizontal>
22
- <p>Downloading File:</p>
23
- <p>%a_viewtorrent%</p>
24
- </horizontal>
46
+
25
47
  <horizontal>
26
48
  <button caption=\'Stop Download\' action=\'stoptorrentwindow\'/>
27
- <cancel/>
49
+ <button caption=\'Return\' action=\'returntomaintorrent\'/>
50
+
28
51
  </horizontal>
29
52
  <p>%a_torrentdata%</p>
30
53
  </window>"