rwdaddresses 0.97 → 0.98
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.txt +5 -0
- data/code/superant.com.rwdtinkerbackwindow/controlclient.rb +25 -26
- data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +25 -4
- data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +1 -0
- data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +20 -0
- data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +19 -0
- data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +12 -0
- data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +54 -0
- data/code/superant.com.rwdtinkerbackwindow/listzips.rb +22 -7
- data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +3 -0
- data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +24 -0
- data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +1 -1
- data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +21 -0
- data/configuration/rwdaddressesversion.cnf +1 -1
- data/configuration/rwdtinker.cnf +3 -6
- data/configuration/rwdtinkerversion.cnf +1 -1
- data/configuration/tinkerwin2variables.cnf +7 -3
- data/extras/cmdline_parse +47 -0
- data/extras/config_file +69 -0
- data/extras/errorMsg +19 -0
- data/extras/makePlaylist +34 -0
- data/extras/mp3controld +289 -0
- data/extras/playlist +186 -0
- data/extras/plugins/Network +237 -0
- data/extras/showHelp +18 -0
- data/gui/00coreguibegin/applicationguitop.rwd +1 -1
- data/gui/frontwindow0/superant.com.rwdaddresses/11viewnamedata.rwd +3 -1
- data/gui/frontwindow0/superant.com.rwdaddresses/13listnamerecordfiles.rwd +7 -1
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd +11 -11
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/45installremotezip.rwd +44 -0
- data/init.rb +22 -35
- data/installed/rwdviewlogo-0.4.inf +4 -0
- data/names/elektra.jpg +0 -0
- data/names/elektra.nam +7 -0
- data/rwd_files/HowTo_Addresses.txt +5 -0
- data/rwd_files/HowTo_Tinker.txt +19 -0
- data/rwd_files/contacttmp.jpg +0 -0
- metadata +27 -21
- data/installed/addressessample1.inf +0 -5
- data/lang/alanguagehashbegin.rb +0 -4
- data/lang/languagehash.rb +0 -4
- data/lang/templangfile.rb +0 -16
- data/lang/vlanguagehashend.rb +0 -6
- data/lang/wlocallangstart.rb +0 -5
- data/lang/xlocallangfile.rb +0 -16
- data/lang/zlocallangend.rb +0 -2
- data/tests/rwdtinkertestEN.rb +0 -163
- data/tests/test.result +0 -32
- data/tests/totranslate.lang +0 -93
- data/zips/rwdaschedule-0.921.zip +0 -0
- data/zips/rwdcalc-0.4.zip +0 -0
@@ -0,0 +1,237 @@
|
|
1
|
+
#!ruby
|
2
|
+
require 'socket' # Network stuff
|
3
|
+
require 'timeout' # Timeout functions
|
4
|
+
|
5
|
+
class Network
|
6
|
+
|
7
|
+
def Network::start()
|
8
|
+
# Find configuration variables
|
9
|
+
host = $configFile.getParam('networkConfig', 'listenIP')
|
10
|
+
port = $configFile.getParam('networkConfig', 'listenPort')
|
11
|
+
|
12
|
+
# Create a socket to listen on and bind it to the host and port
|
13
|
+
begin
|
14
|
+
@socket = UDPSocket::new()
|
15
|
+
@socket.bind(host, port)
|
16
|
+
# Rescue the "Address in use" error
|
17
|
+
rescue Errno::EADDRINUSE
|
18
|
+
errorMsg("Network plugin: Port #{port} on host #{host} is already in use.")
|
19
|
+
return -1
|
20
|
+
# Rescue the "Address not available' error
|
21
|
+
rescue Errno::EADDRNOTAVAIL
|
22
|
+
errorMsg("Network plugin: Address #{host} is not available to bind.")
|
23
|
+
return -1
|
24
|
+
# Rescue "permission denied errors
|
25
|
+
rescue Errno::EACCES
|
26
|
+
errorMsg("Network plugin: Access denied when binding interface addresses. Did you try to bind a port under 1024 as a regular user?")
|
27
|
+
return -1
|
28
|
+
# Rescue all other errors
|
29
|
+
rescue
|
30
|
+
errorMsg("Network plugin: An error occured.")
|
31
|
+
return -1
|
32
|
+
# Rescue all other errors
|
33
|
+
end
|
34
|
+
|
35
|
+
# Get all acceptable hosts
|
36
|
+
hosts = $configFile.getParam('networkConfig', 'acceptHosts').split()
|
37
|
+
# Do some nice errorchecking
|
38
|
+
if(hosts.type != Array)
|
39
|
+
errorMsg("Network plugin: No hosts found in networkConfig/acceptHosts. Shutting down plugin.")
|
40
|
+
return -1 # Return the errorcode for plugin failure
|
41
|
+
end
|
42
|
+
|
43
|
+
# Main loop
|
44
|
+
while(true)
|
45
|
+
# Get data and client data from the client
|
46
|
+
data, info = @socket.recvfrom(256)
|
47
|
+
|
48
|
+
# Is this an acceptable IP address?
|
49
|
+
if(hosts.include?(info[2]) || hosts.include?(info[3]))
|
50
|
+
command, parameter = data.split(';')
|
51
|
+
|
52
|
+
# Command actions
|
53
|
+
command.downcase!()
|
54
|
+
case command
|
55
|
+
when 'next'
|
56
|
+
MP3Control::next_song()
|
57
|
+
|
58
|
+
when 'prev'
|
59
|
+
MP3Control::prev_song()
|
60
|
+
|
61
|
+
when 'play'
|
62
|
+
MP3Control::play()
|
63
|
+
|
64
|
+
when 'pause'
|
65
|
+
MP3Control::pause()
|
66
|
+
|
67
|
+
when 'stop'
|
68
|
+
MP3Control::stop()
|
69
|
+
|
70
|
+
when 'repeat', 'wrap'
|
71
|
+
if(parameter) # Make sure we actually DO have a parameter
|
72
|
+
if(parameter.downcase() == 'true' || parameter.downcase() == 'on' || parameter.downcase() == 'yes') # Positive?
|
73
|
+
$current_playlist.wrap = true # Do wrap
|
74
|
+
else
|
75
|
+
$current_playlist.wrap = false # Don't wrap
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
when 'random', 'shuffle'
|
80
|
+
if(parameter) # Make sure we actually DO have a parameter
|
81
|
+
if(parameter.downcase() == 'true' || parameter.downcase() == 'on' || parameter.downcase() == 'yes') # Positive?
|
82
|
+
$current_playlist.shuffle()
|
83
|
+
else
|
84
|
+
$current_playlist.re_read()
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
when 'die', 'terminate', 'quit'
|
89
|
+
errorMsg("Network plugin: Shutting down MaGnuX MP3 Control Server", 0)
|
90
|
+
|
91
|
+
when 'title'
|
92
|
+
@socket.send($current_playlist.song_info["songname"], 0, info[3], info[1].to_i)
|
93
|
+
|
94
|
+
when 'filename'
|
95
|
+
@socket.send($current_playlist.song_info["filename"], 0, info[3], info[1].to_i)
|
96
|
+
|
97
|
+
when 'time'
|
98
|
+
@socket.send(MP3Control::getTime('elapsed'), 0, info[3], info[1].to_i)
|
99
|
+
|
100
|
+
when 'timeleft'
|
101
|
+
@socket.send(MP3Control::getTime('left'), 0, info[3], info[1].to_i)
|
102
|
+
|
103
|
+
when 'totaltime'
|
104
|
+
@socket.send(MP3Control::getTime('total'), 0, info[3], info[1].to_i)
|
105
|
+
|
106
|
+
when 'playlist'
|
107
|
+
# Make sure we actually DO have a parameter
|
108
|
+
if(parameter)
|
109
|
+
playlist = $configFile.getParam(parameter, 'listFile')
|
110
|
+
|
111
|
+
# Check if the playlist entry exists
|
112
|
+
if(playlist.type != String)
|
113
|
+
errorMsg("The listFile entry for #{parameter} doesn't exist in #{$configFile.filename}! Please choose another playlist.")
|
114
|
+
else
|
115
|
+
# Make sure the playlist file exists and is readable
|
116
|
+
if( !FileTest::readable_real?(playlist) )
|
117
|
+
errorMsg("The playlist file (#{playlist}) doesn't exist. Please create it.")
|
118
|
+
# Everything seems to be in order. Create a new playlist
|
119
|
+
else
|
120
|
+
foo_playlist = Playlist::create_from_file(playlist)
|
121
|
+
# Do we have a new playlist?
|
122
|
+
if(foo_playlist.type == Playlist)
|
123
|
+
if(foo_playlist.length() > 0)
|
124
|
+
# Successful! Make this our current playlist!
|
125
|
+
$current_playlist = foo_playlist
|
126
|
+
$current_playlist_name = parameter
|
127
|
+
|
128
|
+
$current_playlist.wrap = true if($configFile.getParam(parameter, 'repeat') == 'true')
|
129
|
+
$current_playlist.shuffle() if($configFile.getParam(parameter, 'random') == 'true')
|
130
|
+
$current_playlist.goto(0) # Rewind the playlist
|
131
|
+
else
|
132
|
+
errorMsg("Playlist #{parameter} (#{playlist}) doesn't contain any entries.")
|
133
|
+
end
|
134
|
+
else
|
135
|
+
errorMsg("Playlist creation from playlist '#{parameter}' (#{playlist}) failed.")
|
136
|
+
end # Successfully created playlist?
|
137
|
+
end # End of "is readable" if-test
|
138
|
+
end # End of "playlist configfile section" if-test
|
139
|
+
|
140
|
+
end # Do we have a parameter?
|
141
|
+
|
142
|
+
when 'get_playlist'
|
143
|
+
if(parameter) # If user provided a parameter, send him all playlists available
|
144
|
+
res = Array::new()
|
145
|
+
$configFile.each_section { |section|
|
146
|
+
listFile = $configFile.getParam(section, 'listFile')
|
147
|
+
res << section if(listFile) # There is a value
|
148
|
+
}
|
149
|
+
@socket.send(res.join(' | '), 0, info[3], info[1].to_i)
|
150
|
+
else
|
151
|
+
# Find the playlist name. If it can't be found, return the filename
|
152
|
+
pl = ''
|
153
|
+
$configFile.each_section { |section|
|
154
|
+
listFile = $configFile.getParam(section, 'listFile')
|
155
|
+
pl = section if(listFile == $current_playlist.filename) # There is a value
|
156
|
+
}
|
157
|
+
if(pl != '')
|
158
|
+
@socket.send(pl, 0, info[3], info[1].to_i)
|
159
|
+
else
|
160
|
+
@socket.send($current_playlist.filename, 0, info[3], info[1].to_i)
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
when 'find'
|
165
|
+
# Make sure we DO have a parameter
|
166
|
+
if(parameter)
|
167
|
+
|
168
|
+
# Create variables
|
169
|
+
result = Array::new()
|
170
|
+
lastIndex = 0
|
171
|
+
parameter, fields = parameter.split(/\|\|/)
|
172
|
+
fields = fields.split(/,/) if(fields)
|
173
|
+
|
174
|
+
fields = ["filename", "songname"] if(!fields)
|
175
|
+
|
176
|
+
# Find all songs that match this
|
177
|
+
$current_playlist.find(parameter, true, fields).each { |index|
|
178
|
+
songname = $current_playlist.song_info(index)["songname"]
|
179
|
+
filename = $current_playlist.song_info(index)["filename"]
|
180
|
+
result << "#{songname} [#{filename}] [#{index}]"
|
181
|
+
lastIndex = index
|
182
|
+
}
|
183
|
+
|
184
|
+
puts("Search finished") if($commandline["--verbose"] == 'on')
|
185
|
+
|
186
|
+
# More than one song matched?
|
187
|
+
if(result.length() == 1)
|
188
|
+
$current_playlist.goto(lastIndex)
|
189
|
+
MP3Control::play()
|
190
|
+
end
|
191
|
+
if(result.join(' | ').length < 65535)
|
192
|
+
@socket.send(result.join(' | '), 0, info[3], info[1].to_i)
|
193
|
+
else
|
194
|
+
while(result.join(' | ').length > 65535)
|
195
|
+
result = result[0..(result.length-100)]
|
196
|
+
puts("Removing search results...") if($commandline["--verbose"] == 'on')
|
197
|
+
end
|
198
|
+
@socket.send(result.join(' | '), 0, info[3], info[1].to_i)
|
199
|
+
end
|
200
|
+
|
201
|
+
end # End of the "have parameter" if
|
202
|
+
|
203
|
+
when '5b'
|
204
|
+
MP3Control::backward(5)
|
205
|
+
|
206
|
+
when '5f'
|
207
|
+
MP3Control::forward(5)
|
208
|
+
|
209
|
+
when 'index'
|
210
|
+
if(parameter) # User supplied us with a parameter. Go to that index.
|
211
|
+
$current_playlist.goto(parameter.to_i)
|
212
|
+
else
|
213
|
+
@socket.send($current_playlist.index.to_s, 0, info[3], info[1].to_i)
|
214
|
+
end
|
215
|
+
|
216
|
+
when 'length'
|
217
|
+
@socket.send($current_playlist.length.to_s, 0, info[3], info[1].to_i)
|
218
|
+
|
219
|
+
when 'info'
|
220
|
+
if(parameter) # Make sure we actually DO have a parameter
|
221
|
+
res = $current_playlist.song_info(parameter.to_i)
|
222
|
+
if(res.type == Hash) # Make sure there is a result
|
223
|
+
# songname, artist, album, year, comment, tracknum, genre_id, genre
|
224
|
+
@socket.send("#{res["filename"]} | #{res["songname"]} | #{res["artist"]} | #{res["album"]} | #{res["year"]} | #{res["comment"]} | #{res["tracknum"]} | #{res["genre_id"]} | #{res["genre"]}", 0, info[3], info[1].to_i)
|
225
|
+
else
|
226
|
+
@socket.send("Index out of bounds", 0, info[3], info[1].to_i)
|
227
|
+
end # End of result check
|
228
|
+
end # Parameter check
|
229
|
+
|
230
|
+
end # case command
|
231
|
+
|
232
|
+
end # Access control if
|
233
|
+
end # while(true)
|
234
|
+
|
235
|
+
end # Network::start()
|
236
|
+
|
237
|
+
end
|
data/extras/showHelp
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
|
3
|
+
# --- showHelp ----
|
4
|
+
#
|
5
|
+
# Author: Magnus Engstr�m
|
6
|
+
# Email: magnus@gisab.se
|
7
|
+
# File: showHelp
|
8
|
+
#
|
9
|
+
# Description
|
10
|
+
# -----------
|
11
|
+
# This function
|
12
|
+
# print the help
|
13
|
+
# message on STDOUT
|
14
|
+
# -----------------
|
15
|
+
|
16
|
+
def showHelp()
|
17
|
+
STDOUT.puts("MaGnuX Mp3 Management server - Ruby Edition v0.2a\n-------------------------------------------------\n\n--help\t\t\tShow this message\n--debug on\t\tShow some debug data\n--configfile file\tSelect configuration file\n--daemon, -D (yes*|no)\tGo to background on startup\n\n")
|
18
|
+
end
|
@@ -3,12 +3,18 @@ $rwdguivar=
|
|
3
3
|
<table>
|
4
4
|
|
5
5
|
|
6
|
-
|
6
|
+
|
7
7
|
<p>%viewnamedatadisplay%</p>
|
8
|
+
</table>
|
9
|
+
<table>
|
10
|
+
<image src=\"contacttmp.jpg\"></image>
|
11
|
+
</table>
|
12
|
+
<table>
|
8
13
|
<horizontal>
|
9
14
|
<button caption=\"List Contacts\" action=\"listnamerecordfiles\"/>
|
10
15
|
</horizontal>
|
11
16
|
<p>%%listnamerecordfilesresult%%</p>
|
17
|
+
</table>
|
12
18
|
</tab>"
|
13
19
|
|
14
20
|
|
@@ -3,34 +3,34 @@ $rwdguivar=
|
|
3
3
|
<tab name=\"rwdzipslister\" caption=\"List Zips\">
|
4
4
|
|
5
5
|
<table>
|
6
|
-
<row> <p align=\"right\">File Name:</p> <text name=\"a_installapplet\"/> </row>
|
6
|
+
<row> <p align=\"right\">File Name:</p> <text size=70 name=\"a_installapplet\"/> </row>
|
7
7
|
|
8
8
|
</table>
|
9
|
-
|
10
|
-
<button caption=\"view applet contents\" action=\"viewappletcontents\"/>
|
11
|
-
|
12
|
-
</horizontal>
|
13
|
-
<p>%appletcontentstext%</p>
|
9
|
+
|
14
10
|
|
15
11
|
<horizontal>
|
16
12
|
|
17
|
-
|
18
|
-
<button caption=\"install applet\" action=\"
|
13
|
+
|
14
|
+
<button caption=\"install (rwdtinker) applet\" action=\"installgemapplet\"/>
|
19
15
|
<button caption=\"Help\" action=\"runhelpwindowtinkerwin2\"/>
|
20
16
|
|
21
17
|
</horizontal>
|
22
18
|
<p>%installapplettext%</p>
|
23
19
|
|
24
|
-
|
20
|
+
<horizontal>
|
21
|
+
|
22
|
+
<button caption=\"view (rwdtinker) applet contents\" action=\"viewgemappletcontents\"/>
|
23
|
+
</horizontal>
|
24
|
+
<p>%appletcontentstext%</p>
|
25
25
|
<table>
|
26
26
|
<row> <p align=\"right\">Click below to view the list of zip files </row>
|
27
27
|
|
28
28
|
</table>
|
29
29
|
|
30
30
|
<horizontal>
|
31
|
-
<button caption=\"List applets available for installing\" action=\"listzipfilestoinstall\"/>
|
31
|
+
<button caption=\"List (zip directory) applets available for installing\" action=\"listzipfilestoinstall\"/>
|
32
32
|
|
33
|
-
|
33
|
+
<button caption=\"List applets (in the GEM Directory) available for installing\" action=\"listgemzips\"/>
|
34
34
|
|
35
35
|
</horizontal>
|
36
36
|
|
@@ -0,0 +1,44 @@
|
|
1
|
+
$rwdguivar=
|
2
|
+
"
|
3
|
+
<tab name=\"superantcomremotezipsinstall\" caption=\"Install Remote Applets\">
|
4
|
+
|
5
|
+
<table>
|
6
|
+
<row> <p align=\"right\">File Name:</p> <text size=70 name=\"superantcominstallremoteappletinput\"/> </row>
|
7
|
+
|
8
|
+
</table>
|
9
|
+
<horizontal>
|
10
|
+
<button caption=\"install remote Gem applet package\" action=\"superantcominstallremotegemapplet\"/>
|
11
|
+
<button caption=\"Help\" action=\"runhelpwindowtinkerwin2\"/>
|
12
|
+
|
13
|
+
</horizontal>
|
14
|
+
<p>%superantcominstallremotegemappletresult%</p>
|
15
|
+
|
16
|
+
<horizontal>
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
<button caption=\"view already installed GEM applets\" action=\"superantcomshowgemfiledirs\"/>
|
21
|
+
</horizontal>
|
22
|
+
<p>%%superantcomshowgemappletdirsresult%%</p>
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
<table>
|
29
|
+
<row> <p align=\"right\">Click below to view the list of zip files </row>
|
30
|
+
|
31
|
+
</table>
|
32
|
+
|
33
|
+
<horizontal>
|
34
|
+
|
35
|
+
<button caption=\"List applets in the Remote GEM Repository available for downloading\" action=\"superantcomremotegemlist\"/>
|
36
|
+
|
37
|
+
</horizontal>
|
38
|
+
<p>%superantcomremotegemappletsfullresult%</p>
|
39
|
+
<p>%%superantcomremotegemappletsresult%%</p>
|
40
|
+
|
41
|
+
</tab>"
|
42
|
+
|
43
|
+
|
44
|
+
|
data/init.rb
CHANGED
@@ -51,8 +51,9 @@ $progdir = File::expand_path( File.dirname(__FILE__))
|
|
51
51
|
if(!test(?d,x))
|
52
52
|
# only rwd files
|
53
53
|
if x =~ /rb|rwd|txt/
|
54
|
-
|
55
|
-
|
54
|
+
|
55
|
+
load x #opens the file thats in fileName and reads it
|
56
|
+
$tempdoc += $rwdguivar # adds the file into the doc string
|
56
57
|
end
|
57
58
|
end
|
58
59
|
end
|
@@ -73,6 +74,8 @@ $progdir = File::expand_path( File.dirname(__FILE__))
|
|
73
74
|
Dir.chdir($progdir) # change back to top program directory
|
74
75
|
|
75
76
|
# build the English Language hash file from the parts
|
77
|
+
languagehashvariable = 'Message = Hash.new { |hh, kk| hh[kk] = "ERROR: Message not found: #{kk.inspect}."; hh[kk] }
|
78
|
+
langmessage = {' + "\n"
|
76
79
|
startlangdir = File.join(LangDir,"en")
|
77
80
|
#get a list of the files and subdirectories on the starting directory only
|
78
81
|
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
@@ -100,10 +103,11 @@ $progdir = File::expand_path( File.dirname(__FILE__))
|
|
100
103
|
end
|
101
104
|
end
|
102
105
|
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
106
|
+
|
107
|
+
#writes the contents of doc into the languagehashvariable
|
108
|
+
languagehashvariable = languagehashvariable + $tempdoc + "} ; langmessage.each { |kk, vv| Message[kk] = vv }"
|
109
|
+
|
110
|
+
# END of en Lang building
|
107
111
|
$tempdoc = " "
|
108
112
|
Dir.chdir($progdir) # change back to top program directory
|
109
113
|
|
@@ -135,31 +139,16 @@ $progdir = File::expand_path( File.dirname(__FILE__))
|
|
135
139
|
end
|
136
140
|
end
|
137
141
|
|
138
|
-
|
139
|
-
|
140
|
-
|
142
|
+
|
143
|
+
#writes the contents of doc into the variable
|
144
|
+
languagehashvariable = languagehashvariable + " ; Message.update(" + $tempdoc + ' :rwdtinker => "Rwdtinker" ) '
|
145
|
+
|
141
146
|
|
142
147
|
$tempdoc = " "
|
143
148
|
|
144
149
|
Dir.chdir($progdir) # change back to top program directory
|
145
|
-
|
146
|
-
|
147
|
-
#get a list of the files in lang directory only
|
148
|
-
alangfile = Dir.new(LangDir).entries.sort.reverse.delete_if { |x| ! (x =~ /rb$/) }
|
149
|
-
alangfile.length.times{
|
150
|
-
fileName = alangfile.pop
|
151
|
-
Dir.chdir($progdir)
|
152
|
-
Dir.chdir(LangDir)
|
153
|
-
fileLangA=File.open("#{fileName}","r") #opens the file thats in fileName as read only
|
154
|
-
$tempdoc += fileLangA.read #reads the file into the doc string
|
155
|
-
fileLangA.close
|
156
|
-
}
|
157
|
-
|
158
|
-
Dir.chdir($progdir)
|
159
|
-
fileLangB=File.open(LangNameFile,"w") #deletes and opens a the file in fileName
|
160
|
-
fileLangB.write($tempdoc) #writes the contents of doc into the file
|
161
|
-
fileLangB.close
|
162
|
-
load LangNameFile # load the file
|
150
|
+
|
151
|
+
temp = eval( languagehashvariable )
|
163
152
|
|
164
153
|
$tempdoc = " "
|
165
154
|
|
@@ -190,10 +179,9 @@ Dir.chdir($progdir)
|
|
190
179
|
end
|
191
180
|
end
|
192
181
|
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
require CodeName # load the program file
|
182
|
+
|
183
|
+
# load the program file
|
184
|
+
tempcoderesult = eval( $tempdoc )
|
197
185
|
|
198
186
|
# build the actual GUI from the gui parts
|
199
187
|
$tempdoc = " "
|
@@ -224,9 +212,8 @@ Dir.chdir($progdir)
|
|
224
212
|
end
|
225
213
|
end
|
226
214
|
|
227
|
-
|
228
|
-
|
229
|
-
fileB.close
|
215
|
+
# gui variable is done
|
216
|
+
guiRWD = $tempdoc
|
230
217
|
|
231
218
|
require 'socket' # Network stuff
|
232
219
|
host = "127.0.0.1"
|
@@ -266,4 +253,4 @@ $port = port
|
|
266
253
|
end
|
267
254
|
|
268
255
|
|
269
|
-
RwdTinker.
|
256
|
+
RwdTinker.new( guiRWD).serve(port) # start the main class and program
|
data/names/elektra.jpg
ADDED
Binary file
|
data/names/elektra.nam
ADDED
@@ -147,6 +147,11 @@ erik = secret
|
|
147
147
|
Thanks, Steven Gibson
|
148
148
|
|
149
149
|
== Changelog
|
150
|
+
version 0.98
|
151
|
+
updated for rwdtinker 1.56
|
152
|
+
first debian version
|
153
|
+
added photo to front viewing screen
|
154
|
+
|
150
155
|
version 0.97
|
151
156
|
updated for rwdtinker version 1.51
|
152
157
|
added RwdAddresses Menu tab for easier navigation
|
data/rwd_files/HowTo_Tinker.txt
CHANGED
@@ -227,6 +227,25 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
|
227
227
|
Thanks, Steven Gibson
|
228
228
|
|
229
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
|
+
|
230
249
|
version 1.51
|
231
250
|
changed return to main
|
232
251
|
changed configuration of remote ports
|
data/rwd_files/contacttmp.jpg
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.8.
|
2
|
+
rubygems_version: 0.8.6
|
3
3
|
specification_version: 1
|
4
4
|
name: rwdaddresses
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: "0.
|
7
|
-
date: 2005-
|
6
|
+
version: "0.98"
|
7
|
+
date: 2005-03-01
|
8
8
|
summary: rwdaddresses is contact book application using rwdtinker and RubyWebDialogs.
|
9
9
|
require_paths:
|
10
10
|
- "."
|
@@ -32,25 +32,31 @@ files:
|
|
32
32
|
- code/01rwdcore/03helptexthash.rb
|
33
33
|
- code/01rwdcore/04helptextend.rb
|
34
34
|
- code/01rwdcore/openhelpwindow.rb
|
35
|
+
- code/01rwdcore/returntomain.rb
|
35
36
|
- code/01rwdcore/rwdtinkerversion.rb
|
36
37
|
- code/01rwdcore/rwdwindowreturn.rb
|
37
|
-
- code/01rwdcore/returntomain.rb
|
38
38
|
- code/superant.com.rwdtinkerbackwindow/controlclient.rb
|
39
39
|
- code/superant.com.rwdtinkerbackwindow/diagnostictab.rb
|
40
|
+
- code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb
|
40
41
|
- code/superant.com.rwdtinkerbackwindow/installapplet.rb
|
42
|
+
- code/superant.com.rwdtinkerbackwindow/installgemapplet.rb
|
41
43
|
- code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb
|
42
44
|
- code/superant.com.rwdtinkerbackwindow/listzips.rb
|
43
45
|
- code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb
|
44
46
|
- code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb
|
45
47
|
- code/superant.com.rwdtinkerbackwindow/network.rb
|
46
48
|
- code/superant.com.rwdtinkerbackwindow/openappletname.rb
|
49
|
+
- code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb
|
47
50
|
- code/superant.com.rwdtinkerbackwindow/removeapplet.rb
|
48
51
|
- code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb
|
49
52
|
- code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb
|
50
53
|
- code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb
|
51
54
|
- code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb
|
52
|
-
- code/superant.com.rwdtinkerbackwindow/
|
53
|
-
- code/superant.com.rwdtinkerbackwindow/
|
55
|
+
- code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb
|
56
|
+
- code/superant.com.rwdtinkerbackwindow/listgemdirs.rb
|
57
|
+
- code/superant.com.rwdtinkerbackwindow/remotegemlist.rb
|
58
|
+
- code/superant.com.rwdtinkerbackwindow/installremotegem.rb
|
59
|
+
- code/superant.com.rwdtinkerbackwindow/listgemzips.rb
|
54
60
|
- code/zz0applicationend/zz0end.rb
|
55
61
|
- code/superant.com.rwdaddresses/viewphoto.rb
|
56
62
|
- code/superant.com.rwdaddresses/viewnamedata.rb
|
@@ -88,17 +94,28 @@ files:
|
|
88
94
|
- configuration/rwdaddresses.cnf
|
89
95
|
- configuration/rwdaddressesversion.cnf
|
90
96
|
- extras/zip
|
97
|
+
- extras/cmdline_parse
|
98
|
+
- extras/config_file
|
99
|
+
- extras/errorMsg
|
100
|
+
- extras/makePlaylist
|
101
|
+
- extras/mp3controld
|
102
|
+
- extras/playlist
|
103
|
+
- extras/plugins
|
104
|
+
- extras/showHelp
|
91
105
|
- names/Angelina Jolie.nam
|
92
106
|
- names/Steven Gibson.nam
|
93
107
|
- names/Angelina Jolie.jpg
|
94
108
|
- names/Steven Gibson.jpg
|
95
109
|
- names/nophoto.jpg
|
110
|
+
- names/elektra.nam
|
111
|
+
- names/elektra.jpg
|
96
112
|
- extras/zip/ioextras.rb
|
97
113
|
- extras/zip/stdrubyext.rb
|
98
114
|
- extras/zip/tempfile_bugfixed.rb
|
99
115
|
- extras/zip/zip.rb
|
100
116
|
- extras/zip/zipfilesystem.rb
|
101
117
|
- extras/zip/ziprequire.rb
|
118
|
+
- extras/plugins/Network
|
102
119
|
- ev/browser.rb
|
103
120
|
- ev/ftools.rb
|
104
121
|
- ev/net.rb
|
@@ -108,13 +125,6 @@ files:
|
|
108
125
|
- ev/thread.rb
|
109
126
|
- ev/tree.rb
|
110
127
|
- ev/xml.rb
|
111
|
-
- lang/alanguagehashbegin.rb
|
112
|
-
- lang/languagehash.rb
|
113
|
-
- lang/templangfile.rb
|
114
|
-
- lang/vlanguagehashend.rb
|
115
|
-
- lang/wlocallangstart.rb
|
116
|
-
- lang/xlocallangfile.rb
|
117
|
-
- lang/zlocallangend.rb
|
118
128
|
- lang/en/rwdcore/languagefile.rb
|
119
129
|
- lang/es/rwdcore/languagefile-es.rb
|
120
130
|
- lang/jp/rwdcore/languagefile.rb
|
@@ -170,13 +180,14 @@ files:
|
|
170
180
|
- gui/tinkerbackwindows/superant.com.addressesphotowindow
|
171
181
|
- gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow
|
172
182
|
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/1appname.rwd
|
183
|
+
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd
|
173
184
|
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd
|
174
185
|
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd
|
175
186
|
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd
|
176
187
|
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdcontrol.rwd
|
177
188
|
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/80tab1.rwd
|
178
189
|
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/9backend.rwd
|
179
|
-
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/
|
190
|
+
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/45installremotezip.rwd
|
180
191
|
- gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd
|
181
192
|
- gui/tinkerbackwindows/superant.com.tinkerhelpwindow/9end.rwd
|
182
193
|
- gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd
|
@@ -194,7 +205,7 @@ files:
|
|
194
205
|
- gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/m99menuend.rwd
|
195
206
|
- gui/zzcoreguiend/tinkerapplicationguiend/yy9rwdend.rwd
|
196
207
|
- installed/rwdtinkerwin2-0.5.inf
|
197
|
-
- installed/
|
208
|
+
- installed/rwdviewlogo-0.4.inf
|
198
209
|
- rwd_files/favicon.ico
|
199
210
|
- rwd_files/HowTo_Tinker.txt
|
200
211
|
- rwd_files/HowTo_TinkerWin2.txt
|
@@ -206,13 +217,8 @@ files:
|
|
206
217
|
- rwd_files/HowTo_Addresses.txt
|
207
218
|
- rwd_files/contacttmp.jpg
|
208
219
|
- zips/rwdahelloworld-0.5.zip
|
209
|
-
- zips/rwdcalc-0.4.zip
|
210
|
-
- zips/rwdaschedule-0.921.zip
|
211
|
-
- tests/rwdtinkertestEN.rb
|
212
|
-
- tests/test.result
|
213
|
-
- tests/totranslate.lang
|
214
|
-
- init.rb
|
215
220
|
- Readme.txt
|
221
|
+
- init.rb
|
216
222
|
test_files: []
|
217
223
|
rdoc_options:
|
218
224
|
- "--main"
|