rwdmpd 0.07 → 0.08

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. data/code/01rwdcore/01rwdcore.rb +5 -4
  2. data/code/01rwdcore/02helptexthashbegin.rb +13 -11
  3. data/code/01rwdcore/jumplinkcommand.rb +1 -0
  4. data/code/01rwdcore/openhelpwindow.rb +7 -0
  5. data/code/01rwdcore/runhelpabout.rb +6 -1
  6. data/code/01rwdcore/selectiontab.rb +2 -0
  7. data/code/01rwdcore/setuphelpaboutoptions.rb +2 -0
  8. data/code/01rwdcore/setuptinkerdocuments.rb +1 -0
  9. data/code/01rwdcore/uploadreturns.rb +3 -0
  10. data/code/dd0viewphoto/dd0viewphoto.rb +2 -0
  11. data/code/superant.com.podhandler/clearnotescreen.rb +7 -0
  12. data/code/superant.com.podhandler/listdirectories3.rb +24 -0
  13. data/code/superant.com.podhandler/listpodfiles.rb +22 -0
  14. data/code/superant.com.podhandler/loadeditfile.rb +22 -0
  15. data/code/superant.com.podhandler/pausepodnumber.rb +43 -0
  16. data/code/superant.com.podhandler/playpodnumber.rb +28 -0
  17. data/code/superant.com.podhandler/resetpodfile.rb +16 -0
  18. data/code/superant.com.podhandler/saveeditfoldrecord.rb +22 -0
  19. data/code/superant.com.rwdmp3/0uninstallapplet.rb +3 -0
  20. data/code/superant.com.rwdmp3/controlmpd.rb +4 -4
  21. data/code/superant.com.rwdmp3/helptexthashload.rb +21 -0
  22. data/code/superant.com.rwdmp3/mpd_seek.rb +2 -2
  23. data/code/superant.com.rwdmp3/openhelpwindowrwdmp3.rb +9 -2
  24. data/code/superant.com.rwdmp3/pausempd.rb +14 -0
  25. data/code/superant.com.rwdmp3/plaympd.rb +15 -0
  26. data/code/superant.com.rwdtinkerbackwindow/initiateapplets.rb +0 -1
  27. data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +2 -0
  28. data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +2 -0
  29. data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +3 -1
  30. data/code/superant.com.rwdtinkerbackwindow/listzips.rb +2 -0
  31. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +3 -1
  32. data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +1 -0
  33. data/code/superant.com.rwdtinkerbackwindow/viewlogfile.rb +8 -5
  34. data/code/zz0applicationend/zz0end.rb +2 -1
  35. data/configuration/rwdtinker.dist +3 -3
  36. data/configuration/rwdwmpd.dist +5 -3
  37. data/gui/00coreguibegin/applicationguitop.rwd +6 -1
  38. data/gui/tinkerbackwindows/superant.com.rwdmp3/20rwdmpd.rwd +11 -2
  39. data/gui/tinkerbackwindows/superant.com.rwdmp3/27podhandler.rwd +53 -0
  40. data/gui/tinkerbackwindows/superant.com.rwdmp3/28podedit.rwd +31 -0
  41. data/init.rb +7 -1
  42. data/installed/rwdwmpd.inf +6 -0
  43. data/lang/en/rwdcore/en.po +16 -0
  44. data/lang/es/rwdcore/es.po +16 -13
  45. data/lang/fr/rwdcore/fr.po +4 -1
  46. data/lang/hi/rwdcore/hi.po +39 -36
  47. data/lang/ja/rwdcore/ja.po +3 -0
  48. data/lang/nl/rwdcore/nl.po +4 -1
  49. data/rwd_files/HowTo_Tinker.txt +4 -0
  50. data/rwd_files/Tinkerhelptexthash.txt +3 -2
  51. data/rwd_files/helptexthashmpd.txt +57 -0
  52. data/rwd_files/mpd.COMMANDS +275 -0
  53. data/rwd_files/podfolds/podfold03.fld +25 -0
  54. data/rwd_files/rwdapplications.html +23 -1
  55. data/tests/makedist-rwdwmpd.rb +1 -1
  56. data/tests/makedist.rb +1 -1
  57. data/zips/rwdwfoldeditor-0.06.zip +0 -0
  58. data/zips/{rwdwmpd-0.07.zip → rwdwmpd-0.08.zip} +0 -0
  59. metadata +20 -7
  60. data/code/superant.com.rwdmp3/helptexthashrwdmp3.rb +0 -41
  61. data/tests/makedist-tinkerbellw.rb +0 -58
  62. data/zips/rwdwfoldeditor-0.05.zip +0 -0
  63. data/zips/rwdwhypernote-0.15.zip +0 -0
@@ -1,5 +1,8 @@
1
1
  # English Language files for RwdTinker core
2
2
 
3
+ msgid "error_message_id_unknown"
4
+ msgstr ""
5
+
3
6
  msgid "applet_installed"
4
7
  msgstr ""
5
8
 
@@ -1,4 +1,7 @@
1
- # English Language files for RwdTinker core
1
+ # Language files for RwdTinker core
2
+
3
+ msgid "error_message_id_unknown"
4
+ msgstr ""
2
5
 
3
6
  msgid "applet_installed"
4
7
  msgstr "Applet geinstalleerd"
@@ -228,11 +228,15 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
228
228
  Thanks, Steven Gibson
229
229
 
230
230
  == Changelog
231
+ version 1.83
232
+ adding more Spanish and Hindu po strings
233
+
231
234
  version 1.82
232
235
  switch to po files for translation files
233
236
  add beginning of Hindi po file
234
237
  added more Japanese strings
235
238
  changed handling of lang change = in the tinkerwin2variables.cnf file the [0] setting of $langarray will be the language choosen.
239
+ refactored init.rb to move routines into lib/rwdtinker modules
236
240
 
237
241
  version 1.81
238
242
  condensed config files from 4 -> 2
@@ -1,4 +1,4 @@
1
- # Help files for RwdTinker core
1
+ # Help files for RwdTinker core Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
2
2
 
3
3
 
4
4
  Helptext.update( :network_help => "Using over a Network: To serve the application over your local LAN,change the last line in the<br>
@@ -6,7 +6,8 @@ init.rb file to something like:\n<br>
6
6
  RwdTinker.file(RWDFile).serve(8080, '-r' ? '.rwduids' : nil)\n<br>
7
7
  Then you should be able to login at: http://yourhostname:8080")
8
8
 
9
-
9
+ Helptext.update( :general_help => "#{Message[:message_general_help]}" )
10
+
10
11
  Helptext.update( :documents_rwdtinker => "<b>Documents:
11
12
  <p>
12
13
 
@@ -0,0 +1,57 @@
1
+
2
+
3
+ Helptext.update( :rwdmpd_help => " This program uses the files from the libmpd project
4
+ You can play mp3 ogg flac files with this program
5
+ <p>
6
+ You need mpd installed",
7
+ :rwdmpd_generalhelp => "
8
+
9
+ You will need mpd installed
10
+ <p>
11
+ Commands Available:<p>
12
+ next<p>
13
+ pause<p>
14
+ play<p>
15
+ prev<p>
16
+ stop<p>
17
+ stats ")
18
+
19
+ Helptext.update( :mpdcommand_help => "
20
+ Commands Available: (use | to divide arguments)<p>
21
+ albums<p>
22
+ artists<p>
23
+ connected?<p>
24
+ current_song<p>
25
+ list| (album,artist,title,file)<p>
26
+ directories<p>
27
+ files<p>
28
+ playlists<p>
29
+ songs<p>
30
+ songs_by_artist<p>
31
+ playlist_version<p>
32
+ playlist<p>
33
+ song_at_pos|(integer)
34
+ ")
35
+
36
+ Helptext.update( :mpdplaylist_help => "
37
+ The $rwdmpdplaylist_directory needs to be set<p>
38
+ on Debian Linux the default is '/var/lib/mpd/playlists/'<p>
39
+ You can load and edit playlists<p>
40
+ The song locations start from the MPD music directory<p>
41
+ ")
42
+
43
+ Helptext.update( :mpdpodhandler_help => "
44
+ need to have the files of podcast in directories accessable to the mpd music directory<p>
45
+ remember to click on display pod list after pausing<p>
46
+ you need a playlist: tmppodcast.m3u with exactly 1 valid audio file in it in the mpd playlist directory<p>
47
+ fld files are placed in the $rwdmpdpodfolder_directory which defaults to = rwd_files/podfolds<p>
48
+ each line of the fld file has one audio file address that is relative to the mpd music directory<p>
49
+ one space after the audio title can optional be an integer that represents an offset into the audio file<p>
50
+ This offset will be used as the starting point for playing the audio file.<p>
51
+ When you click on pause, a new starting offset will be placed in the fld file.<p>
52
+ " )
53
+
54
+ Helptext.update(:mpdpodedit_help => "
55
+ need to have the files of podcast in directories accessable to the mpd music directory<p>
56
+ remember to click on display pod list after pausing<p>
57
+ ")
@@ -0,0 +1,275 @@
1
+ Music Player Daemon - Commands
2
+
3
+ WARNING
4
+ This document has not been updated to reflect recent changes in
5
+ the MPD protocol. It does not contain all supported commands,
6
+ and some commands may now take additional arguments. However,
7
+ clients conforming to this specification should still be
8
+ compatible with the latest release of MPD. For more up to date
9
+ documentation, please see the protocol reference on the wiki at
10
+ <http://mpd.wikia.com/wiki/Protocol_Reference>.
11
+
12
+ This document is intended for client developers, not end users.
13
+
14
+ Format:
15
+ -------
16
+
17
+ If arguments contain spaces, they should be surrounded by double quotation
18
+ marks, ".
19
+
20
+ command <type arg1> <type arg2> ...
21
+ explanation: w/ arg1 and arg2
22
+
23
+ All data between the client and server is encoded in UTF-8. (Note,
24
+ that in UTF-8 all standard ansi characters, 0-127, are the same as a standard
25
+ ansi encoding. Also, no ansi character appears in any multi-byte
26
+ characters. So, you can use standard C functions like strlen, and strcpy
27
+ just fine with UTF-8 encoded strings. For example: "OK\n" encoded in UTF-8 is
28
+ simply "OK\n". For more information on UTF=8:
29
+ http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 )
30
+
31
+ Command Completion:
32
+ -------------------
33
+
34
+ A command returns "OK\n" on completion or "ACK some error\n" on failure.
35
+ These denote the end of command execution.
36
+
37
+ NOTE:
38
+ -----
39
+
40
+ For manipulating playlists and playing, there are two sets of commands. One
41
+ set uses the song id of a song in the playlist, while another set uses the
42
+ playlist position of the song. The commands using song id's should be used
43
+ instead of the commands that manipulate and control playback based on playlist
44
+ position. Using song id's is a safer method when multiple clients are
45
+ interacting with MPD.
46
+
47
+ Commands:
48
+ ---------
49
+
50
+ add <string path>
51
+ add the file _path_ to the playlist (directories add recursively)
52
+ _path_ can also be a single file
53
+ increments playlist version by for each song added
54
+
55
+ clear
56
+ clears the current playlist
57
+ increments playlist version by 1
58
+
59
+ clearerror
60
+ clear the current error message in status
61
+ (this is also accomplished by any command that starts playback)
62
+
63
+ close
64
+ close the connection with the MPD
65
+
66
+ crossfade <int seconds>
67
+ sets crossfading between songs
68
+
69
+ currentsong
70
+ displays the song info of current song (same song that is identified
71
+ in status)
72
+
73
+ delete <int song>
74
+ delete _song_ from playlist
75
+ increments playlist version by 1
76
+
77
+ deleteid <int songid>
78
+ delete song with _songid_ from playlist
79
+ increments playlist version by 1
80
+
81
+ find <string type> <string what>
82
+ finds songs in the db that are exactly _what_
83
+ _type_ should be "album", "artist", or "title"
84
+ _what_ is what to find
85
+
86
+ kill
87
+ kill MPD
88
+
89
+ list <string type> <string arg1>
90
+ list all tags of _type_
91
+ _type_ should be "album" or "artist"
92
+ _arg1_ is an optional parameter when type is album, this specifies
93
+ to list albums by a artist, where artist is specified with
94
+ arg1
95
+
96
+ listall <string path>
97
+ lists all songs and directories in _path_ (recursively)
98
+ _path_ is optional and maybe a directory or path
99
+
100
+ listallinfo <string path>
101
+ same as listall command, except it also returns metadata info
102
+ in the same format as lsinfo
103
+
104
+ load <string name>
105
+ loads the playlist _name_.m3u from the playlist directory
106
+ increments playlist version by the number of songs added
107
+
108
+ lsinfo <string directory>
109
+ list contents of _directory_, from the db. _directory_ is optional
110
+
111
+ move <int from> <int to>
112
+ move song at _from_ to _to_ in the playlist
113
+ increments playlist version by 1
114
+
115
+ moveid <int songid> <int to>
116
+ move song with _songid_ to _to_ in the playlist
117
+ increments playlist version by 1
118
+
119
+ next
120
+ plays next song in playlist
121
+
122
+ pause <bool pause>
123
+ toggle pause/resume playing
124
+ _pause_ is required and should be 0 or 1
125
+ NOTE: use of pause command w/o the _pause_ argument is deprecated
126
+
127
+ password <string password>
128
+ this is used for authentication with the server.
129
+ _password_ is simply the plaintext password
130
+
131
+ ping
132
+ does nothing but return "OK"
133
+
134
+ play <int song>
135
+ begin playing playlist at song number _song_, _song_ is optional
136
+
137
+ playid <int songid>
138
+ begin playing playlist at song with _songid_, _songid_ is optional
139
+
140
+ playlist
141
+ displays the current playlist
142
+ NOTE: do not use this, instead use 'playlistinfo'
143
+
144
+ playlistinfo <int song>
145
+ displays list of songs in the playlist
146
+ _song_ is optional and specifies a single song to display info for
147
+
148
+ playlistid <int songid>
149
+ displays list of songs in the playlist
150
+ _songid_ is optional and specifies a single song to display info for
151
+
152
+ plchanges <playlist version>
153
+ displays changed songs currently in the playlist since
154
+ _playlist version_
155
+ NOTE: to detect songs that were deleted at the end of the playlist,
156
+ use playlistlength returned by status command.
157
+
158
+ plchangesposid <playlist version>
159
+ displays changed songs currently in the playlist since
160
+ _playlist version_
161
+ This function only returns the position and the id of the changed song, not the complete metadata. This is more bandwidth efficient.
162
+ NOTE: to detect songs that were deleted at the end of the playlist,
163
+ use playlistlength returned by status command.
164
+
165
+ previous
166
+ plays previous song in playlist
167
+
168
+ random <int state>
169
+ set random state to _state_, _state_ should be 0 or 1
170
+
171
+ repeat <int state>
172
+ set repeat state to _state_, _state_ should be 0 or 1
173
+
174
+ rm <string name>
175
+ removes the playlist <name>.m3u from the playlist directory
176
+
177
+ save <string name>
178
+ saves the current playlist to _name_.m3u in the playlist directory
179
+
180
+ search <string type> <string what>
181
+ searches for any song that contain _what_
182
+ _type_ can be "title","artist","album", or "filename"
183
+ search is not case sensitive
184
+
185
+ seek <int song> <int time>
186
+ seeks to the position _time_ (in seconds) of entry _song_ in the
187
+ playlist
188
+
189
+ seekid <int songid> <int time>
190
+ seeks to the position _time_ (in seconds) of song with _songid_
191
+
192
+ setvol <int vol>
193
+ set volume to _vol_
194
+ _vol_ the range of volume is 0-100
195
+
196
+ shuffle
197
+ shuffles the current playlist
198
+ increments playlist version by 1
199
+
200
+ stats
201
+ display stats
202
+ artists: number of artists
203
+ albums: number of albums
204
+ songs: number of songs
205
+ uptime: daemon uptime in seconds
206
+ db_playtime: sum of all song times in db
207
+ db_update: last db update in UNIX time
208
+ playtime: time length of music played
209
+
210
+ status
211
+ reports current status of player, and volume level.
212
+ volume: (0-100).
213
+ repeat: (0 or 1)
214
+ playlist: (31-bit unsigned integer, the playlist version number)
215
+ playlistlength: (integer, the length of the playlist)
216
+ state: ("play", "stop", or "pause")
217
+ song: (current song stopped on or playing, playlist song number)
218
+ songid: (current song stopped on or playing, playlist songid)
219
+ time: <int elapsed>:<time total> (of current playing/paused song)
220
+ bitrate: <int bitrate> (instantaneous bitrate in kbps)
221
+ xfade: <int seconds> (crossfade in seconds)
222
+ audio: <int sampleRate>:<int bits>:<int channels>
223
+ updatings_db: <int job id>
224
+ error: if there is an error, returns message here
225
+
226
+ stop
227
+ stop playing
228
+
229
+ swap <int song1> <int song2>
230
+ swap positions of _song1_ and _song2_
231
+ increments playlist version by 1
232
+
233
+ swapid <int songid1> <int songid2>
234
+ swap positions of of songs with song id's of _songid1_ and _songid2_
235
+ increments playlist version by 1
236
+
237
+ update <string path>
238
+ searches mp3 directory for new music and removes old music from the db
239
+ _path_ is an optional argument that maybe a particular directory or
240
+ song/file to update.
241
+ returned:
242
+ updating_db: <int job id>
243
+ where job id, is the job id requested for your update, and is displayed
244
+ in status, while the requested update is happening
245
+ increments playlist version by 1
246
+ NOTE: To update a number of paths/songs at once, use command_list,
247
+ it will be much more faster/efficient. Also, if you use a
248
+ command_list for updating, only one update_db job id will be returned
249
+ per sequence of updates.
250
+
251
+ volume <int change>
252
+ change volume by amount _change_
253
+ NOTE: volume command is deprecated, use setvol instead
254
+
255
+ COMMAND LIST
256
+ ------------
257
+
258
+ To facilitate faster adding of files, etc, you can pass a list of commands all
259
+ at once using a command list. The command list beings with:
260
+
261
+ command_list_begin
262
+
263
+ or:
264
+
265
+ command_list_ok_begin
266
+
267
+ And ends with:
268
+
269
+ command_list_end
270
+
271
+ It does not execute any commands until the list has ended. The return
272
+ value is whatever the return for a list of commands is. On success
273
+ for all commands, OK is returned. If a command fails, no more commands
274
+ are executed and the appropriate ACK error is returned. If "command_list_ok_begin is used", "list_OK\n" is returned for each successful command executed
275
+ in the command list.
@@ -0,0 +1,25 @@
1
+ podcasts/stuff/dawnanddrew-128233-10-09-2008.mp3
2
+ podcasts/news/npr_95580348.mp3 9
3
+ podcasts/news/npr_95546548.mp3 58
4
+ podcasts/stuff/dv_100808_64.mp3 10
5
+ podcasts/tech/Engadget_Podcast_112.mp3 52
6
+ podcasts/news/today_20081009-1028a.mp3 28
7
+ podcasts/news_tech/WTPpodcast213.mp3 53
8
+ podcasts/misc/AWA_08-10-06.mp3 25
9
+ podcasts/news/080904_shuffle_podcast.mp3 31
10
+ podcasts/news_tech/npr_95380508.mp3 25
11
+ podcasts/news_tech/npr_95541906.mp3 10
12
+ podcasts/stuff/NLO-345-10082008.mp3 7
13
+ podcasts/stuff/KATG-2008-10-07.mp3 10
14
+ podcasts/stuff/dv_100908_64.mp3 27
15
+ podcasts/tech/ITC.SO-Episode25-2008.10.07.mp3 29
16
+ podcasts/tech/ITC.TM-MicahSifry-2008.09.29.mp3 36
17
+ podcasts/tech/ITC.TN-ChristianWeyer-2008.10.09.mp3 5
18
+ podcasts/tech/ITC.TN-FrankWilczek-2008.10.09.mp3 12
19
+ podcasts/stuff/KATG-2008-10-08.mp3 17
20
+ podcasts/tech/SN-165.mp3 8
21
+ podcasts/tech/TWiT0163H.mp3 41
22
+ podcasts/tech/ntv013.ogg 23
23
+ podcasts/tech/tllts_266-10-08-08.ogg 68
24
+ podcasts/commentary/issuenumberone0925.mp3 19
25
+ podcasts/stuff/KATG-2008-10-06.mp3 35
@@ -9,11 +9,33 @@ rwdapplications information
9
9
  rwdapplications information (rwdshell)
10
10
  </h1>
11
11
  <br>
12
+ <h2>
13
+ Overview of the Project
14
+ </h2>
15
+ <h3><b>
16
+ RwdTinker framework for RubyWebDialogs</b>
17
+ <p>
18
+ RwdTinker is a web brower interface to and system for developing programs
19
+ <p>
20
+ Usage
21
+ <p>
22
+ How to Use the Tinker framework Program (rwdtinker)
23
+ <p>
24
+ 1. stand alone application 2. framework for building applications 3. Open brower windows with html documents
25
+ <p>
26
+ The GUI interface used is RubyWebDialogs The source code and the gui code are split into atomic parts and use init.rb to merge the parts together.
27
+ <p>
28
+ With the framework, we are able to ship a "plugin" or "applet" that can be dropped into a directory and installed automatically. Also uninstalled. I am calling this framework Tinker, so the core program I call rwdtinker. My wife, Charlotte. suggested the name. It relates to the "Tinker Toys" that has blocks and dowls and shapes that can be assembled by children and take different shapes. Without the word toy, it reminds us if the older English meaning of "a person who repairs pots and household devices by soldering and hammering.
29
+ <p>
30
+ The delivered applet is setup in the required directory structure with code configueration gui including help files location of documentation rwd_files = where documention for the applet can go. installed = a inf file that lists the manifest of files
31
+ <p>
32
+ This package is zipped up and uploaded as a file like rwdashedule-0.2.zip
33
+ <p>
34
+ The enduser who has the rwdtinker program drops the zip file into a directory called zips. I have parts of rwdtinker now (for Linux) that can install it automatically and remove it (based on the .inf file)
12
35
  <h2>
13
36
 
14
37
  Some additional programs in this series
15
38
  </h2>
16
- <h3>
17
39
  <br><blockquote>
18
40
  rwdaddresses a little address book
19
41
  <br><br>