rwdmpd 0.06 → 0.07
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/01rwdcore/02helptexthashbegin.rb +10 -0
- data/code/01rwdcore/03helptexthash.rb +18 -20
- data/code/01rwdcore/runopentinkerdocument.rb +1 -1
- data/code/superant.com.rwdmp3/0uninstallapplet.rb +9 -1
- data/code/superant.com.rwdmp3/loadconfigurationrecord.rb +1 -1
- data/code/superant.com.rwdmp3/loadconfigurationvariables.rb +1 -1
- data/code/superant.com.rwdmp3/saveconfigurationrecord.rb +1 -1
- data/code/superant.com.rwdtinkerbackwindow/initiateapplets.rb +62 -132
- data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +9 -7
- data/code/superant.com.rwdtinkerbackwindow/removeappletvariables.rb +6 -6
- data/code/superant.com.rwdtinkerbackwindow/viewlogfile.rb +13 -0
- data/configuration/rwdtinker.dist +3 -3
- data/configuration/{rwdwmpd-0.06.dist → rwdwmpd.dist} +5 -3
- data/configuration/tinkerwin2variables.dist +7 -2
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdlogfile.rwd +20 -0
- data/init.rb +59 -163
- data/installed/{rwdwmpd-0.06.inf → rwdwmpd.inf} +1 -2
- data/lang/en/rwdcore/en.po +166 -0
- data/lang/es/rwdcore/es.po +172 -0
- data/lang/fr/rwdcore/fr.po +166 -0
- data/lang/hi/rwdcore/hi.po +170 -0
- data/lang/ja/rwdcore/ja.po +168 -0
- data/lang/nl/rwdcore/nl.po +166 -0
- data/lib/rwd/net.rb +8 -7
- data/lib/rwd/rwd.rb +34 -31
- data/lib/rwdthemes/default.rwd +1 -1
- data/lib/rwdtinker/rwdcodedir.rb +56 -0
- data/lib/rwdtinker/rwdguidir.rb +57 -0
- data/lib/rwdtinker/rwdlangdir.rb +60 -0
- data/lib/rwdtinker/rwdtinkertools.rb +25 -0
- data/music/playlist.m3u +2 -0
- data/rwd_files/HowTo_Mpd.txt +16 -6
- data/rwd_files/HowTo_Tinker.txt +26 -7
- data/rwd_files/Tinkerhelptexthash.txt +81 -0
- data/rwd_files/log/rwdtinker.log +2 -0
- data/tests/makedist-rwdwmpd.rb +2 -2
- data/tests/makedist-tinkerbellw.rb +58 -0
- data/tests/makedist.rb +2 -2
- data/zips/{rwdwcalc-0.62.zip → rwdwcalc-0.63.zip} +0 -0
- data/zips/{rwdwfoldeditor-0.04.zip → rwdwfoldeditor-0.05.zip} +0 -0
- data/zips/rwdwhypernote-0.15.zip +0 -0
- data/zips/rwdwmovies-0.98.zip +0 -0
- data/zips/{rwdwmpd-0.06.zip → rwdwmpd-0.07.zip} +0 -0
- data/zips/{rwdwruby-1.07.zip → rwdwruby-1.08.zip} +0 -0
- data/zips/tinkerbellw-0.03.zip +0 -0
- data/zips/wrubyslippers-1.08.zip +0 -0
- metadata +28 -21
- data/code/01rwdcore/04helptextend.rb +0 -6
- data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +0 -61
- data/configuration/language.dist +0 -8
- data/configuration/rwdapplicationidentity.dist +0 -3
- data/lang/en/rwdcore/languagefile.rb +0 -58
- data/lang/es/rwdcore/languagefile-es.rb +0 -62
- data/lang/fr/rwdcore/languagefile.rb +0 -64
- data/lang/jp/rwdcore/languagefile.rb +0 -72
- data/lang/nl/rwdcore/languagefile.rb +0 -75
- data/zips/rwdwaddresses-1.06.zip +0 -0
- data/zips/rwdwgutenberg-0.09.zip +0 -0
- data/zips/tinkerbellw-0.02.zip +0 -0
- data/zips/wrubyslippers-1.06.zip +0 -0
data/lib/rwd/rwd.rb
CHANGED
@@ -57,7 +57,8 @@ if ENV["RWDTHEME"]
|
|
57
57
|
load 'lib/rwdthemes/default.rwd'
|
58
58
|
end
|
59
59
|
if ENV["RWDTHEME"] = "DEFAULT"
|
60
|
-
|
60
|
+
$rwdtinkerlog.info "rwd: loading theme DEFAULT"
|
61
|
+
|
61
62
|
load 'lib/rwdthemes/default.rwd'
|
62
63
|
end
|
63
64
|
if ENV["RWDTHEME"] = "WINDOWSLOOKALIKE"
|
@@ -267,7 +268,7 @@ class EVTable
|
|
267
268
|
end
|
268
269
|
|
269
270
|
class OpenTag
|
270
|
-
def prechildren(res, before, after, varshtml, varsstring, switches, help, oneormorefields, firstaction, tabs, tab, pda)
|
271
|
+
def prechildren(res, before, after, varshtml, varsstring, switches, help, oneormorefields, firstaction, tabs, tab, pda=false)
|
271
272
|
bef = before[-1]
|
272
273
|
res << Format % ["Before", @subtype] if ($rwd_debug and not bef.nil?)
|
273
274
|
res << bef if not bef.nil?
|
@@ -299,7 +300,7 @@ class OpenTag
|
|
299
300
|
args["nohelpbutton"] = (not help)
|
300
301
|
|
301
302
|
template = $rwd_html_1
|
302
|
-
template = $rwd_html_PDA_1 if pda
|
303
|
+
# template = $rwd_html_PDA_1 if pda
|
303
304
|
|
304
305
|
res << (template(template, args))
|
305
306
|
when "p" then res << "<p #{align}>"
|
@@ -493,7 +494,7 @@ class OpenTag
|
|
493
494
|
after.push(aft)
|
494
495
|
end
|
495
496
|
|
496
|
-
def postchildren(res, before, after, varshtml, varsstring, switches, help, oneormorefields, firstaction, tabs, tab, pda)
|
497
|
+
def postchildren(res, before, after, varshtml, varsstring, switches, help, oneormorefields, firstaction, tabs, tab, pda=false)
|
497
498
|
case @subtype
|
498
499
|
when "vertical", "window", "helpwindow", "tab", "panel"
|
499
500
|
res << Format % ["BefPost", @subtype] if $rwd_debug
|
@@ -635,7 +636,7 @@ class OpenTag
|
|
635
636
|
end
|
636
637
|
|
637
638
|
class Text
|
638
|
-
def prechildren(res, before, after, varshtml, varsstring, switches, help, oneormorefields, firstaction, tabs, tab, pda)
|
639
|
+
def prechildren(res, before, after, varshtml, varsstring, switches, help, oneormorefields, firstaction, tabs, tab, pda=false)
|
639
640
|
if not @text.scan(/[^ \t\r\n]/).empty?
|
640
641
|
res << Format % ["Text", ""] if $rwd_debug
|
641
642
|
res << "#{@text}"
|
@@ -742,8 +743,8 @@ class RWDWindow
|
|
742
743
|
end
|
743
744
|
|
744
745
|
rescue
|
745
|
-
|
746
|
-
|
746
|
+
$rwdtinkerlog.error "error in RWDWindow - render method"
|
747
|
+
|
747
748
|
end
|
748
749
|
end
|
749
750
|
|
@@ -864,13 +865,11 @@ class RWDialog
|
|
864
865
|
|
865
866
|
post.sort.each do |key, value|
|
866
867
|
puts "Post: #{key} -> #{value.from_html.inspect}" if $rwd_debug
|
867
|
-
|
868
|
-
|
869
|
-
end
|
868
|
+
$rwdtinkerlog.info "Post: #{key} -> #{value.from_html.inspect}\n"
|
869
|
+
|
870
870
|
vars[key] = value.from_html
|
871
|
-
|
872
|
-
|
873
|
-
end
|
871
|
+
$rwdtinkerlog.info "rwd: #{value.from_html}\n"
|
872
|
+
|
874
873
|
end
|
875
874
|
|
876
875
|
# Stack handling for rwd_action, rwd_window and rwd_tab.
|
@@ -938,16 +937,14 @@ class RWDialog
|
|
938
937
|
# Copy vars from window to instance.
|
939
938
|
|
940
939
|
vars.each do |k, v|
|
941
|
-
|
942
|
-
|
943
|
-
end
|
940
|
+
$rwdtinkerlog.info "rwd: Post: #{k} -> #{v}\n"
|
941
|
+
|
944
942
|
if ((not k.empty?) and k.scan(/^rwd_/).empty? and not @rwd_ignore_vars.include?("@#{k}"))
|
945
943
|
|
946
944
|
instance_eval "@#{k} = ''"
|
947
945
|
instance_variable_set("@#{k}", vars.fetch("#{k}"))
|
948
|
-
|
949
|
-
|
950
|
-
end
|
946
|
+
$rwdtinkerlog.info "rwd: Post: #{k} -> #{v}\n"
|
947
|
+
|
951
948
|
end
|
952
949
|
end
|
953
950
|
|
@@ -955,7 +952,9 @@ class RWDialog
|
|
955
952
|
|
956
953
|
if (not back) or @rwd_call_after_back.include?(@rwd_action)
|
957
954
|
unless @rwd_action =~ /^rwd_/
|
958
|
-
|
955
|
+
|
956
|
+
$rwdtinkerlog.debug "Method: #{@rwd_action}(#{@rwd_args})"
|
957
|
+
|
959
958
|
if methods.include?(@rwd_action)
|
960
959
|
method(@rwd_action).call(*@rwd_args)
|
961
960
|
else
|
@@ -1025,9 +1024,9 @@ begin # error block
|
|
1025
1024
|
end
|
1026
1025
|
res << RWDWindow.new($rwd_gui_tinker, @rwd_window).render(pda, @rwd_refresh_action, vars, @rwd_switches, help, @rwd_tab)
|
1027
1026
|
rescue
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1027
|
+
|
1028
|
+
$rwdtinkerlog.error "rwd: error in render"
|
1029
|
+
|
1031
1030
|
end
|
1032
1031
|
end
|
1033
1032
|
end
|
@@ -1105,7 +1104,9 @@ end
|
|
1105
1104
|
Thread.new do
|
1106
1105
|
loop do
|
1107
1106
|
if Time.now - @rwd_time > @rwd_timeout
|
1108
|
-
|
1107
|
+
|
1108
|
+
$rwdtinkerlog.info "rwd: Exiting due to timeout (#{@rwd_timeout} seconds)."
|
1109
|
+
|
1109
1110
|
exit 1
|
1110
1111
|
end
|
1111
1112
|
sleep interval
|
@@ -1185,7 +1186,7 @@ class RWDSession < Hash
|
|
1185
1186
|
@lastaccess = Time.now
|
1186
1187
|
end
|
1187
1188
|
|
1188
|
-
def render(res, path, post, download, downloadfile, pda)
|
1189
|
+
def render(res, path, post, download, downloadfile, pda=false)
|
1189
1190
|
done = self["object"].render(res, path, post, download, downloadfile, pda, @sessionid)
|
1190
1191
|
|
1191
1192
|
res.gsub!(/\$RWD_SESSION\$/, done ? "" : "#{@sessionid}")
|
@@ -1212,7 +1213,8 @@ class RWDServer
|
|
1212
1213
|
|
1213
1214
|
@browserthread =
|
1214
1215
|
Thread.new do
|
1215
|
-
|
1216
|
+
$rwdtinkerlog.warn "rwd: Starting the browser..."
|
1217
|
+
|
1216
1218
|
|
1217
1219
|
#if ENV["RWDBROWSER"].downcase =~ /iexplore/ # ???
|
1218
1220
|
#@ie = IE.new("http://localhost:#{port}/")
|
@@ -1226,7 +1228,7 @@ class RWDServer
|
|
1226
1228
|
|
1227
1229
|
command.gsub!(/%port%/, port.to_s)
|
1228
1230
|
|
1229
|
-
system(command) or $
|
1231
|
+
system(command) or $rwdtinkerlog.error "Starting of the browser failed, or the browser terminated abnormally.\nCommand => #{command}"
|
1230
1232
|
#end
|
1231
1233
|
|
1232
1234
|
puts "The browser has terminated."
|
@@ -1337,8 +1339,8 @@ class RWDServer
|
|
1337
1339
|
resp << download
|
1338
1340
|
end
|
1339
1341
|
rescue
|
1340
|
-
|
1341
|
-
|
1342
|
+
|
1343
|
+
$rwdtinkerlog.error "rwd: Sending response to browser failed."
|
1342
1344
|
@sessions.delete(session.sessionid)
|
1343
1345
|
end
|
1344
1346
|
|
@@ -1352,8 +1354,9 @@ class RWDServer
|
|
1352
1354
|
|
1353
1355
|
if @browserstarted and not @browserthread.nil? and @browserthread.alive?
|
1354
1356
|
resp.stop do
|
1355
|
-
|
1356
|
-
|
1357
|
+
|
1358
|
+
$rwdtinkerlog.warn "rwd: Waiting for the browser to terminate..."
|
1359
|
+
|
1357
1360
|
@browserthread.join
|
1358
1361
|
end
|
1359
1362
|
end
|
data/lib/rwdthemes/default.rwd
CHANGED
@@ -0,0 +1,56 @@
|
|
1
|
+
# part of rwdtinker smalllinux@gmail.com
|
2
|
+
# copyleft gpl 2008 Steven Gibson
|
3
|
+
|
4
|
+
require 'lib/rwdtinker/rwdtinkertools'
|
5
|
+
|
6
|
+
tmpmodload = '
|
7
|
+
def RwdtinkerTools.findfilesp(d)
|
8
|
+
|
9
|
+
a = Array.new(Dir[d].entries.sort)
|
10
|
+
#loop through and get the files names
|
11
|
+
a.each do |x|
|
12
|
+
#adjust the filters to the files you want to see...
|
13
|
+
if(!test(?d,x))
|
14
|
+
# only rwd files
|
15
|
+
if x =~ /rb|rwd|txt/
|
16
|
+
fileA=File.open("#{x}","r") #opens the file thats in fileName as read only
|
17
|
+
@@tempdoc+=fileA.read #reads the file into the doc string
|
18
|
+
fileA.close
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
def RwdtinkerTools.findprogramfiles(codedir, specificdir = "")
|
26
|
+
@@tempdoc = ""
|
27
|
+
#get a list of the files and subdirectories on the starting directory only
|
28
|
+
a = Array.new(Dir[codedir].entries.sort)
|
29
|
+
#loop through the list, ignore the files and add all new directories found
|
30
|
+
a.each do |x|
|
31
|
+
#if a directory...
|
32
|
+
if(test(?d,x))
|
33
|
+
# add to the original list of directories
|
34
|
+
@@root = x + "/**"
|
35
|
+
#adds the new ones to the array
|
36
|
+
b = Dir[@@root].entries.sort
|
37
|
+
b.each do |x|
|
38
|
+
if(test(?d,x))
|
39
|
+
a.push(x) #appends to the end of the array...
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
a.each do |x|
|
45
|
+
#if it is a file...
|
46
|
+
if(!test(?d,x))
|
47
|
+
a.delete(x)
|
48
|
+
else #it is a directory...
|
49
|
+
findfilesp(x + "/**")
|
50
|
+
end
|
51
|
+
end
|
52
|
+
return @@tempdoc
|
53
|
+
end
|
54
|
+
'
|
55
|
+
|
56
|
+
RwdtinkerTools.module_eval(tmpmodload)
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# part of rwdtinker smalllinux@gmail.com
|
2
|
+
# copyleft gpl 2008 Steven Gibson
|
3
|
+
|
4
|
+
require 'lib/rwdtinker/rwdtinkertools'
|
5
|
+
|
6
|
+
tmpmodload = '
|
7
|
+
def RwdtinkerTools.loadguifile(d)
|
8
|
+
|
9
|
+
a = Array.new(Dir[d].entries.sort)
|
10
|
+
#loop through and get the files names
|
11
|
+
a.each do |x|
|
12
|
+
#adjust the filters to the files you want to see...
|
13
|
+
if(!test(?d,x))
|
14
|
+
# only rwd files
|
15
|
+
if x =~ /rb|rwd|txt/
|
16
|
+
|
17
|
+
load x #opens the file thats in fileName and reads it
|
18
|
+
@@tempdoc += $rwdguivar # adds the file into the doc string
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def RwdtinkerTools.findguifiles(guidir)
|
25
|
+
@@tempdoc = ""
|
26
|
+
#get a list of the files and subdirectories on the starting directory only
|
27
|
+
a = Array.new(Dir[guidir].entries.sort)
|
28
|
+
#loop through the list, ignore the files and add all new directories found
|
29
|
+
a.each do |x|
|
30
|
+
#if a directory...
|
31
|
+
if(test(?d,x))
|
32
|
+
#use this new dir find to add to the original list of directories
|
33
|
+
@@root = x + "/**"
|
34
|
+
#adds the new ones to the array
|
35
|
+
b = Dir[@@root].entries.sort
|
36
|
+
b.each do |x|
|
37
|
+
if(test(?d,x))
|
38
|
+
a.push(x) #appends to the end of the array...
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
a.each do |x|
|
44
|
+
#if it is a file...
|
45
|
+
if(!test(?d,x))
|
46
|
+
a.delete(x)
|
47
|
+
|
48
|
+
else #it is a directory...
|
49
|
+
loadguifile(x + "/**")
|
50
|
+
end
|
51
|
+
end
|
52
|
+
return @@tempdoc
|
53
|
+
|
54
|
+
end
|
55
|
+
'
|
56
|
+
|
57
|
+
RwdtinkerTools.module_eval(tmpmodload)
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# part of rwdtinker smalllinux@gmail.com
|
2
|
+
# copyleft gpl 2008 Steven Gibson
|
3
|
+
|
4
|
+
require 'lib/rwdtinker/rwdtinkertools'
|
5
|
+
|
6
|
+
tmpmodload = '
|
7
|
+
def RwdtinkerTools.findfilest(d)
|
8
|
+
a = Array.new(Dir[d].entries.sort)
|
9
|
+
#loop through and get the files names
|
10
|
+
a.each do |x|
|
11
|
+
#adjust the filters to the files you want to see...
|
12
|
+
if(!test(?d,x))
|
13
|
+
# only rwd files
|
14
|
+
if x =~ /rb|po|txt/
|
15
|
+
fileA=File.open("#{x}","r") #opens the file thats in fileName as read only
|
16
|
+
@@tempdoc+=fileA.read #reads the file into the doc string
|
17
|
+
fileA.close
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
|
25
|
+
def RwdtinkerTools.findlanguagefiles(langdir,lang)
|
26
|
+
@@tempdoc = ""
|
27
|
+
|
28
|
+
startlangdir = File.join(langdir,lang)
|
29
|
+
#get a list of the files and subdirectories on the starting directory only
|
30
|
+
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
31
|
+
#loop through the list, ignore the files and add all new directories found
|
32
|
+
alanghash.each do |x|
|
33
|
+
#if a directory...
|
34
|
+
if(test(?d,x))
|
35
|
+
# add to the original list of directories
|
36
|
+
@@tmproot = x + "/**"
|
37
|
+
#adds the new ones to the array
|
38
|
+
blanghash = Dir[@@tmproot].entries.sort
|
39
|
+
blanghash.each do |x|
|
40
|
+
if(test(?d,x))
|
41
|
+
alanghash.push(x) #appends to the end of the array...
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
alanghash.each do |x|
|
47
|
+
#if it is a file...
|
48
|
+
if(!test(?d,x))
|
49
|
+
alanghash.delete(x)
|
50
|
+
else #it is a directory...
|
51
|
+
findfilest(x + "/**")
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
return @@tempdoc
|
56
|
+
|
57
|
+
end
|
58
|
+
'
|
59
|
+
|
60
|
+
RwdtinkerTools.module_eval(tmpmodload)
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# part of rwdtinker smalllinux@gmail.com
|
2
|
+
# copyleft gpl 2008 Steven Gibson
|
3
|
+
|
4
|
+
module RwdtinkerTools
|
5
|
+
|
6
|
+
# tools to use in rwdtinker
|
7
|
+
|
8
|
+
def RwdtinkerTools.tail(filename, lines=12)
|
9
|
+
|
10
|
+
|
11
|
+
begin
|
12
|
+
tmpFile = File.open(filename, 'r')
|
13
|
+
|
14
|
+
return tmpFile.readlines.reverse!.slice(0,lines)
|
15
|
+
|
16
|
+
tmpFile.close
|
17
|
+
rescue
|
18
|
+
return "error in opening log"
|
19
|
+
$rwdtinkerlog.error "RwdtinkerTools.tail: file open error"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
|
data/music/playlist.m3u
ADDED
data/rwd_files/HowTo_Mpd.txt
CHANGED
@@ -72,6 +72,13 @@ The $rwdmpdplaylist_directory needs to be set
|
|
72
72
|
You can load and edit playlists
|
73
73
|
The song locations start from the MPD music directory
|
74
74
|
|
75
|
+
== Configuration files
|
76
|
+
|
77
|
+
The configuration file will be copied from *.dist to *.cnf in the configuration directory
|
78
|
+
a constant in the dist file determines if the copied file will be deleted when the applet is uninstalled
|
79
|
+
be careful with leaving the file, because the operation of the framework will be effected by leaving the config file intact
|
80
|
+
This file would be useful if you plan to install the applet again (like an updated version)
|
81
|
+
|
75
82
|
== RWD Framework
|
76
83
|
|
77
84
|
The rwdtinker framework is used by:<br>
|
@@ -93,9 +100,6 @@ I have tested this under Linux-Debian kernel 2.6.9
|
|
93
100
|
PROBLEMS:
|
94
101
|
you should consult what beginning 3 characters for you files.
|
95
102
|
|
96
|
-
|
97
|
-
don't type in the extension .sch
|
98
|
-
|
99
103
|
Closing the browser doesn't terminate the application. You have to use the application's close-button And terminating the application doesn't terminate the application when running in network mode. You just log out.
|
100
104
|
|
101
105
|
Steven Gibson
|
@@ -104,12 +108,18 @@ smalllinux@gmail.com
|
|
104
108
|
http://rwdapplications.rubyforge.org/
|
105
109
|
|
106
110
|
== Changelog
|
107
|
-
version 0.
|
111
|
+
version 0.07
|
112
|
+
updated for rwdtinker 1.80
|
113
|
+
added optional config file deleting
|
114
|
+
|
115
|
+
version 0.06
|
108
116
|
added free-form entry MPD commands
|
109
|
-
playlist editing
|
110
|
-
|
117
|
+
playlist editing
|
118
|
+
|
111
119
|
version 0.05
|
112
120
|
added more choices
|
121
|
+
added free-form entry MPD commands
|
122
|
+
playlist editing
|
113
123
|
|
114
124
|
version 0.04
|
115
125
|
moved extra files to lib
|
data/rwd_files/HowTo_Tinker.txt
CHANGED
@@ -97,8 +97,7 @@ There are two ways to add applets to the directories.
|
|
97
97
|
The gui files go into your gui directory
|
98
98
|
The gui files need to be in order by name and end with .rwd
|
99
99
|
|
100
|
-
|
101
|
-
|
100
|
+
|
102
101
|
If you need a config file that goes in the configuration directory
|
103
102
|
|
104
103
|
internationalization and localization are helped by replacing the
|
@@ -136,9 +135,11 @@ To exit, press the x inside the browser window.
|
|
136
135
|
|
137
136
|
== Languages
|
138
137
|
|
139
|
-
|
140
138
|
You can add tranlations in the lang subdirectory
|
141
|
-
You change the $
|
139
|
+
You change the $langarray constant in Tinker config file in the configuration directory
|
140
|
+
|
141
|
+
to change language => in the tinkerwin2variables.cnf file the [0] setting of $langarray will be the language choosen.
|
142
|
+
|
142
143
|
You can see one translation on the install applet tab, after you have installed and applet
|
143
144
|
|
144
145
|
== Using over a Network
|
@@ -168,14 +169,15 @@ Ruby I am using version 1.8.2
|
|
168
169
|
|
169
170
|
I have tested this under Linux-Debian kernel 2.6.9
|
170
171
|
|
171
|
-
|
172
|
+
== Operation:
|
173
|
+
|
172
174
|
The code files reside in the code directory and are combined before
|
173
175
|
the main Class is loaded
|
174
176
|
|
175
177
|
The rwd files in gui are combined before the gui is activated
|
176
178
|
|
177
179
|
Translated text reside in the lang directory
|
178
|
-
|
180
|
+
|
179
181
|
== Installing:
|
180
182
|
|
181
183
|
untar the file
|
@@ -220,13 +222,30 @@ under the terms of the GPL licence:
|
|
220
222
|
For more information see:
|
221
223
|
http://rwdapplications.rubyforge.org/wiki/wiki.pl
|
222
224
|
|
223
|
-
|
224
225
|
For more information about RubyWebDialogs see:
|
225
226
|
http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
226
227
|
|
227
228
|
Thanks, Steven Gibson
|
228
229
|
|
229
230
|
== Changelog
|
231
|
+
version 1.82
|
232
|
+
switch to po files for translation files
|
233
|
+
add beginning of Hindi po file
|
234
|
+
added more Japanese strings
|
235
|
+
changed handling of lang change = in the tinkerwin2variables.cnf file the [0] setting of $langarray will be the language choosen.
|
236
|
+
|
237
|
+
version 1.81
|
238
|
+
condensed config files from 4 -> 2
|
239
|
+
fixed document launch bug
|
240
|
+
add $KCODE = 'u'
|
241
|
+
move help files to rwd_files directory
|
242
|
+
|
243
|
+
version 1.80
|
244
|
+
changed pda handling in rwd.rb
|
245
|
+
added logging
|
246
|
+
added log review screen on tinker back window
|
247
|
+
changed handling of live applet loading, to not list version in file names
|
248
|
+
|
230
249
|
version 1.79
|
231
250
|
edited net.rb to fix text editing
|
232
251
|
|
@@ -0,0 +1,81 @@
|
|
1
|
+
# Help files for RwdTinker core
|
2
|
+
|
3
|
+
|
4
|
+
Helptext.update( :network_help => "Using over a Network: To serve the application over your local LAN,change the last line in the<br>
|
5
|
+
init.rb file to something like:\n<br>
|
6
|
+
RwdTinker.file(RWDFile).serve(8080, '-r' ? '.rwduids' : nil)\n<br>
|
7
|
+
Then you should be able to login at: http://yourhostname:8080")
|
8
|
+
|
9
|
+
|
10
|
+
Helptext.update( :documents_rwdtinker => "<b>Documents:
|
11
|
+
<p>
|
12
|
+
|
13
|
+
when you click on a document name, the document should pop up in a <br>
|
14
|
+
browser window, or in another browser tab.</b>
|
15
|
+
")
|
16
|
+
|
17
|
+
Helptext.update( :tinkerwin2_help => " You can view the list of applets you can install
|
18
|
+
by clicking on the list files button
|
19
|
+
<br><br>
|
20
|
+
You can download an applet created by someone else
|
21
|
+
<br><br>
|
22
|
+
put the file in the zips directory
|
23
|
+
<br>
|
24
|
+
rwdtinker applets packaged as RubyGems can be used if you have RubyGems installed.
|
25
|
+
You can download rwdtinker gems at the 'Install Remote Applets' tab
|
26
|
+
to install applets you need the ruby zlib library installed
|
27
|
+
")
|
28
|
+
|
29
|
+
Helptext.update(
|
30
|
+
:applet_viewing => "You can get a list of all installed applets by clicking the 'listfiles button'<br>
|
31
|
+
To see the text of a install file<br>
|
32
|
+
Type in the name of the file you want.<br>
|
33
|
+
<p>
|
34
|
+
type it without the inf ending
|
35
|
+
rwdapplet-0.1<br>
|
36
|
+
<p>
|
37
|
+
Then click the 'View Installed File' button
|
38
|
+
<p>
|
39
|
+
If it finds the file it will open it. It displays the text the search box.
|
40
|
+
<p>
|
41
|
+
You can uninstall applets on this screen")
|
42
|
+
|
43
|
+
Helptext.update(
|
44
|
+
:applet_installation => " You can download an applet created by someone else<br>
|
45
|
+
put the file in the zips directory<br>
|
46
|
+
|
47
|
+
click on the 'list zips' tab<br>
|
48
|
+
click on 'list applets available for installing<br>
|
49
|
+
<br>
|
50
|
+
chose the applet you want<br>
|
51
|
+
click on 'install applet'<br>
|
52
|
+
If all goes well the applet should be installed.<br>
|
53
|
+
You will need to restart rwdtinker to see the new screens<br>
|
54
|
+
to install applets you need the ruby zlib library installed")
|
55
|
+
|
56
|
+
Helptext.update(
|
57
|
+
:applet_tinkerbackeditconfiguration => " You can edit the configuration
|
58
|
+
<p>
|
59
|
+
Remember to reload the configuration variables if you want your
|
60
|
+
changes used.")
|
61
|
+
|
62
|
+
Helptext.update(
|
63
|
+
:remotegemapplet_install => " To download and install use the 'Install Remote Applets'
|
64
|
+
<br>
|
65
|
+
First click on 'List applets in the Remote GEM Repository available for downloading'<br>
|
66
|
+
then go to the very bottom to click on the applet you want<br>
|
67
|
+
then on the top click 'install remote Gem applet package'
|
68
|
+
<br>
|
69
|
+
This installs the package in the Gem system<br>
|
70
|
+
You still need to install it into rwdtinker - do that in the 'List Zips' tab<br>
|
71
|
+
<br>
|
72
|
+
For this feature to work, you need<br>
|
73
|
+
RubyGems installed<br>
|
74
|
+
Variables set correctly in the tinerwin2.cnf file<br>
|
75
|
+
$xpcommand, $gemdirectory_withgemfiles and $geminstalled_directory<br>
|
76
|
+
the defaults as shipped will normally be for a Debian Linux system <br>
|
77
|
+
On Debian Linux, you would usually need to be running rwdtinker as root in order to install RubyGems
|
78
|
+
<br><br>
|
79
|
+
You can view the list of rwdtinker applets you have installed already by clicking 'view already installed GEM applets'
|
80
|
+
"
|
81
|
+
)
|
data/tests/makedist-rwdwmpd.rb
CHANGED
@@ -12,8 +12,8 @@ $rwdjumplink = [""]
|
|
12
12
|
JumpLink = Hash.new("default")
|
13
13
|
require 'fileutils'
|
14
14
|
DistroName = "rwdwmpd"
|
15
|
-
DistroVersion="0.
|
16
|
-
load "configuration/#{DistroName}
|
15
|
+
DistroVersion="0.07"
|
16
|
+
load "configuration/#{DistroName}.dist"
|
17
17
|
|
18
18
|
|
19
19
|
DistroTitle="#{DistroName}-#{DistroVersion}"
|
@@ -0,0 +1,58 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
#***********************************************************************
|
3
|
+
#* Rwd/Tinker -- A Ruby program for the RudyWebDialog.
|
4
|
+
#* Copyright (c) 2004, 2005 by Steven Gibson. All Rights Reserved.
|
5
|
+
#* at "steven@superant.com".
|
6
|
+
#***********************************************************************/
|
7
|
+
$progdir =""
|
8
|
+
$tinkerhelpaboutarray = [""]
|
9
|
+
$tinkerdocumentsarray = [""]
|
10
|
+
$testharnessarray = [""]
|
11
|
+
$rwdjumplink = [""]
|
12
|
+
JumpLink = Hash.new("default")
|
13
|
+
require 'fileutils'
|
14
|
+
DistroName = "tinkerbellw"
|
15
|
+
DistroVersion="0.03"
|
16
|
+
load "configuration/#{DistroName}.dist"
|
17
|
+
|
18
|
+
|
19
|
+
DistroTitle="#{DistroName}-#{DistroVersion}"
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
$progdir = File::expand_path( File.dirname(__FILE__))
|
24
|
+
results = " "
|
25
|
+
|
26
|
+
puts "creating #{DistroName} distribution files version #{DistroVersion}"
|
27
|
+
|
28
|
+
#puts "moving up one directory"
|
29
|
+
#Dir.chdir("..")
|
30
|
+
findcmd = "find _arx > /tmp/excludezip"
|
31
|
+
puts "#{findcmd}"
|
32
|
+
`#{findcmd}`
|
33
|
+
|
34
|
+
FileUtils.rm_rf("#{DistroTitle}.zip")
|
35
|
+
zipcreatecmd = "zip -r #{DistroTitle}.zip * -x@/tmp/excludezip"
|
36
|
+
puts "#{zipcreatecmd}"
|
37
|
+
`#{zipcreatecmd}`
|
38
|
+
|
39
|
+
gemspecfilename = "rwdzip#{DistroTitle}.gemspec"
|
40
|
+
tobject = Time.now
|
41
|
+
year = tobject.year.to_s
|
42
|
+
month = tobject.mon.to_s
|
43
|
+
daydate = tobject.day.to_s
|
44
|
+
|
45
|
+
fd = File.open(gemspecfilename,"w")
|
46
|
+
fd.print("Gem::Specification.new do |s|\n")
|
47
|
+
fd.print(" s.name = %q{rwdzip#{DistroName}}\n")
|
48
|
+
fd.print(" s.version = \"#{DistroVersion}\"\n")
|
49
|
+
fd.print(" s.date = %q{#{year}-#{month}-#{daydate}}")
|
50
|
+
load "tests/gemspec-#{DistroName}"
|
51
|
+
fd.print($gemspecvar)
|
52
|
+
fd.close
|
53
|
+
|
54
|
+
ListingCommand = "ls -1 -s -h rwdzip#{DistroTitle}*"
|
55
|
+
|
56
|
+
puts `#{ListingCommand}`
|
57
|
+
|
58
|
+
print "Build finished\n"
|
data/tests/makedist.rb
CHANGED
@@ -14,9 +14,9 @@ require 'fileutils'
|
|
14
14
|
|
15
15
|
DistroName = "rwdwmpd"
|
16
16
|
|
17
|
-
DistroVersion="0.
|
17
|
+
DistroVersion="0.07"
|
18
18
|
|
19
|
-
DistroTitle="#{DistroName}
|
19
|
+
DistroTitle="#{DistroName}.dist"
|
20
20
|
load "configuration/#{DistroTitle}"
|
21
21
|
DistroName = "rwdmpd"
|
22
22
|
DistroTitle = "#{DistroName}-#{DistroVersion}"
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|