rwdmovies 0.90 → 0.91

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. data/Readme.txt +379 -80
  2. data/code/superant.com.rwdmovies/amazonsearch.rb +2 -2
  3. data/code/superant.com.rwdtinkerbackwindow/controlclient.rb +25 -26
  4. data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +29 -5
  5. data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +6 -3
  6. data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +6 -7
  7. data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +19 -0
  8. data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +12 -0
  9. data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +2 -2
  10. data/code/superant.com.rwdtinkerbackwindow/listzips.rb +22 -7
  11. data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +3 -0
  12. data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +24 -0
  13. data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +10 -6
  14. data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +1 -1
  15. data/configuration/language.dist +7 -0
  16. data/configuration/rwdapplicationidentity.dist +3 -0
  17. data/configuration/{rwdmovies.cnf → rwdmovies.dist} +4 -1
  18. data/configuration/{rwdtinker.cnf → rwdtinker.dist} +3 -4
  19. data/configuration/tinkerwin2variables.dist +17 -0
  20. data/extras/rconftool.rb +380 -0
  21. data/extras/zip/ioextras.rb +114 -0
  22. data/extras/zip/stdrubyext.rb +111 -0
  23. data/extras/zip/tempfile_bugfixed.rb +195 -0
  24. data/extras/zip/zip.rb +1377 -0
  25. data/extras/zip/zipfilesystem.rb +558 -0
  26. data/extras/zip/ziprequire.rb +61 -0
  27. data/gui/frontwindow0/superant.com.rwdmovies/2openmoviephoto.rwd +6 -4
  28. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd +9 -10
  29. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/45installremotezip.rwd +44 -0
  30. data/init.rb +42 -37
  31. data/rwd_files/HowTo_Movies.txt +6 -0
  32. data/rwd_files/HowTo_Tinker.txt +25 -1
  33. data/rwd_files/moviestmp.jpg +0 -0
  34. data/rwdconfig.dist +6 -0
  35. data/rwdmovies-0.91.gem +0 -0
  36. data/tests/checkdepends.sh +4 -0
  37. data/tests/cleancnf.sh +5 -0
  38. data/tests/makedist.rb +29 -0
  39. data/tests/rdep.rb +354 -0
  40. metadata +26 -21
  41. data/configuration/language.cnf +0 -5
  42. data/configuration/rwdapplicationidentity.cnf +0 -3
  43. data/configuration/rwdmoviesversion.cnf +0 -2
  44. data/configuration/rwdtinkerversion.cnf +0 -2
  45. data/configuration/tinkerwin2variables.cnf +0 -8
  46. data/configuration/tinkerwin2version.cnf +0 -3
  47. data/installed/rwdtinkerwin2-0.5.inf +0 -8
  48. data/lang/alanguagehashbegin.rb +0 -4
  49. data/lang/languagehash.rb +0 -4
  50. data/lang/templangfile.rb +0 -16
  51. data/lang/vlanguagehashend.rb +0 -6
  52. data/lang/wlocallangstart.rb +0 -5
  53. data/lang/xlocallangfile.rb +0 -16
  54. data/lang/zlocallangend.rb +0 -2
  55. data/zips/rwdwcalc-0.50.zip +0 -0
data/Readme.txt CHANGED
@@ -1,84 +1,383 @@
1
- = rwdmovies - for rwdtinker and RubyWebDialogs
2
-
3
- rwdmovies is meant to be used to keep track of your DVD and VHS collection.
4
-
5
- The GUI interface used is RubyWebDialogs
6
-
7
- RubyWebDialogs is a platform independent graphical user interface for Ruby applications. It generates HTML and serves it with an internal HTTP server, so you can use your favorite web browser as the front end for your Ruby application. All this means, that it can be used on almost every platform, like Ruby itself. http://www.erikveen.dds.nl/rubywebdialogs/
8
-
9
- Install rwdtinker<br>
10
- unzip this applet in the directory where you put rwdtinker
11
-
12
- Start the program by typing<br>
13
- ruby init.rb
14
-
15
- Then point your web browser to:<br>
16
- http://localhost:7701/
17
-
18
- The rwdtinker framework is used by:<br>
19
-
20
- Spliting the source code and the gui code into atomic parts and use init.rb to merge the parts together.
21
- With the framework, we are able to ship a "plugin" or as I calling them "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 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.
22
- 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
23
- This package is zipped up and uploaded as a file like rwdashedule-0.2.zip
24
- 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)
25
-
26
- Requirements:
27
- RubyWebDialogs - I am using 0.1.1 2004-12-5
28
-
29
- Ruby I am using version 1.8.2
30
-
31
-
32
- I have tested this under Linux-Debian kernel 2.6.9
33
-
34
- PROBLEMS:
35
- you should consult what beginning 3 characters for you files.
36
-
37
-
38
- don't type in the extension .sch
39
-
40
- 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.
41
-
42
- Don't use the back-button of the browser! Strange and unpredictable things may and will happen!
43
-
44
- Steven Gibson
45
- steven@superant.com
46
-
47
-
48
- http://rwdapplications.rubyforge.org/wiki/wiki.pl
49
-
1
+ = RwdTinker framework for RubyWebDialogs
2
+
3
+ RwdTinker is a web brower interface to and system for developing programs
4
+
5
+ == Usage
6
+
7
+ How to Use the Tinker framework Program (rwdtinker)
8
+
9
+ 1. stand alone application
10
+ 2. framework for building applications
11
+ 3. Open brower windows with html documents
12
+
13
+ The GUI interface used is RubyWebDialogs
14
+
15
+
16
+ Start the program by typing
17
+ ruby init.rb
18
+
19
+ Then point your web browser to:
20
+ http://localhost:7705/
21
+
22
+ == Viewing installed Applets:
23
+
24
+ Go to "List Scripts" tab
25
+
26
+ You can get a list of all installed applets by clicking the listfiles button
27
+
28
+ To see the text of a install file
29
+ Type in the name of the file you want.
30
+
31
+ type it without the inf ending
32
+ rwdapplet-0.1
33
+
34
+ Then click the "View Installed File" button
35
+
36
+ If it finds the file it will open it. It displays the text the search box.
37
+
38
+ You can uninstall applets on this screen
39
+
40
+ == Installing Applets
41
+
42
+ click on the "Selection Panel"
43
+ click on Rwdtinker Back Window
44
+
45
+ You can download an applet created by someone else
46
+ put the file in the zips directory
47
+
48
+ click on the "list zips" tab
49
+ click on "list applets available for installing"
50
+
51
+ chose the applet you want
52
+ click on "install applet"
53
+ If all goes well the applet should be installed.
54
+ You will need to restart rwdtinker to see the new screens
55
+
56
+
57
+ == Changing configuration file
58
+
59
+ click on "Edit Configuration"
60
+ You can view the configuration file
61
+
62
+ You can edit the configuration
63
+
64
+ Remember to reload the configuration variables if you want your
65
+ changes used.
66
+
67
+ == Manually installing applets
68
+
69
+ * unzip an applet
70
+
71
+ unzip the applet into the program directoy
72
+ unzip randomapplet.zip
73
+
74
+ This should place the needed files in the correct directories
75
+
76
+
77
+ == Creating Applets
78
+
79
+ To add code, commands and gui tabs
80
+
81
+ Move program files into a directory under the code directory.
82
+ Move gui files into a directory under the gui directory.
83
+ The gui directory name you create is important, because the gui
84
+ rwd file is built in alpha order by directory name
85
+
86
+
87
+ There are two ways to add applets to the directories.
88
+
89
+ Creating code
90
+
91
+
92
+ * Manually write code and gui files
93
+
94
+ The files go into your code directory
95
+ the filenames for code do not matter
96
+
97
+ The gui files go into your gui directory
98
+ The gui files need to be in order by name and end with .rwd
99
+
100
+
101
+
102
+ If you need a config file that goes in the configuration directory
103
+
104
+ internationalization and localization are helped by replacing the
105
+ gui files in the subdirectories under gui
106
+
107
+
108
+ == Documents
109
+
110
+
111
+ when you click on a document name, the document should pop up in a
112
+ browser window, or in another browser tab.
113
+
114
+ To exit, press the x inside the browser window.
115
+
116
+ == To add context sensitive help
117
+
118
+ You need to add a hash file that just needs to contain
119
+ Helptext.update( :myapplet_generalhelp => " This is the general help
120
+ You can add help text hear")
121
+
122
+ And you need to add a help run script that will call runhelpwindow
123
+ This should have a method that includes:
124
+ setting $help_topic, and adds to $helptopicsarray, saves the calling window and calls runhelpwindow which will render the help message.
125
+
126
+ if @rwd_tab == "gemservescan"
127
+ $help_topic = "gemdocs_help"
128
+ end
129
+ $helptopicsarray = $helptopicsarray | ["rubyslippers_generalhelp", "Install_Gem","GemCommands_help", "gemfilesinstalled","gemdocs_help"]
130
+ if @rwd_window != "rwdtinkerhelpwindow"
131
+ $previouswindow = @rwd_window
132
+ $previoustab = @rwd_tab
133
+ end
134
+ runhelpwindow
135
+ end
136
+
137
+ == Languages
138
+
139
+
140
+ You can add tranlations in the lang subdirectory
141
+ You change the $lang constant in Tinker config file in the configuration directory
142
+ You can see one translation on the install applet tab, after you have installed and applet
143
+
144
+ == Using over a Network
145
+
146
+ To serve the application over your local LAN,change the last line in the
147
+ init.rb file to something like:
148
+ RwdTinker.file(RWDFile).serve(8080, "-r" ? ".rwduids" : nil)
149
+ Then you should be able to login at: http://yourhostname:8080
150
+
151
+ You have to authorize yourself. The .rwuids example is a string with
152
+ the name of the authorization file, relative to the home directory
153
+ of the user that started the service. This file has to be in the form of:
154
+
155
+ user1 = password
156
+ user2 = pass phrase
157
+
158
+ Thus the file .rwduids might contain:
159
+
160
+ erik = secret
161
+
162
+ == Requirements:
163
+ RubyWebDialogs - I am using 0.1.2
164
+ This package you downloaded should have a runtime version of
165
+ the needed rubywebdialog files
166
+
167
+ Ruby I am using version 1.8.2
168
+
169
+ I have tested this under Linux-Debian kernel 2.6.9
170
+
171
+ = Operation:
172
+ The code files reside in the code directory and are combined before
173
+ the main Class is loaded
174
+
175
+ The rwd files in gui are combined before the gui is activated
176
+
177
+ Translated text reside in the lang directory
178
+
179
+ == Installing:
180
+
181
+ untar the file
182
+ tar zxvf rwdtinker-x.y.tar.gz
183
+ then cd to the directory
184
+ cd rwdshell-x.y
185
+ then start the init.rb program file
186
+ ruby init.rb
187
+ Then point your browser at http://localhost:7705
188
+ or where it tells you.
189
+ Trouble shooting:
190
+
191
+ If the program is not working, try looking at the ev subdirectory. That is where
192
+ the runtime of rubywebdialogs are.
193
+
194
+ for long term installation, I would suggest putting most files in a lib directory
195
+ like /usr/lib/rwdshell
196
+ then make a writable directory the local directory for command files to be written
197
+ like ~/rwdshell
198
+
199
+
200
+ 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.
201
+
202
+ Don't use the back-button of the browser! Strange and unpredictable things may and will happen!
203
+
204
+ RubyWebDialogs is a platform independent graphical user interface for Ruby applications. It generates HTML and serves it with an internal HTTP server, so you can use your favorite web browser as the front end for your Ruby application. All this means, that it can be used on almost every platform, like Ruby itself. http://www.erikveen.dds.nl/rubywebdialogs/
205
+
206
+ == Credits
207
+
208
+ Thanks go to:
209
+
210
+ * Matz, for creating Ruby in the first place.
211
+ * Erik, for creating RubyWebDialogs.
212
+ * Charlotte, my wife for coming up for the name Tinker.
213
+
214
+ == License
215
+
216
+ rwdtinker is copyright (c) 2004 Steven Gibson. It is free software, and may be redistributed
217
+ under the terms of the GPL licence:
218
+
219
+ == Contact
220
+ For more information see:
221
+ http://rwdapplications.rubyforge.org/wiki/wiki.pl
222
+
223
+
224
+ For more information about RubyWebDialogs see:
225
+ http://www.erikveen.dds.nl/rubywebdialogs/index.html
226
+
227
+ Thanks, Steven Gibson
228
+
50
229
  == Changelog
51
- version 0.9
52
- added back Amazon search
53
- changed width of text fields
54
- updated for rwdtinker version 1.50 - remote control and finding free ports
230
+ version 1.56
231
+ refactored gui files to load without intermediate files
232
+ refactored code files to load without intermediate files
55
233
 
56
- version 0.8
57
- added return from picture window
58
- added features to configuration screen
59
- added context sensitive help
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
60
245
 
246
+ version 1.52
247
+ added function to install applets from gem directory
248
+
249
+ version 1.51
250
+ changed return to main
251
+ changed configuration of remote ports
252
+ updated context sensitive help
253
+
254
+ version 1.50
255
+ changed unzip applet to be internal code - no exec to unzip program
256
+ changed order of tabs on back window - list applets now first
257
+ added rwdwcalc applet in to zips directory
258
+ changed width of text fields with help from RubyWebDialogs author
259
+ changed listing of help options, vertical instead of horizontal
260
+
261
+ version 1.49
262
+ added demon function for remote queries
263
+ startup application on first available port
264
+
265
+ version 1.48
266
+ fix in context sensitive help so that applets can use it better
267
+
268
+ version 1.47
269
+ change to context sensitive help
270
+
271
+ version 1.46
272
+ more work on context help
273
+ window calls point to tab as well as windows
274
+ help added help buttons on Document, Selection, View Applet, tabs
275
+
276
+ version 1.45
277
+ first steps toward context sensitive help
278
+ added help button on main window/tab
279
+
280
+ version 1.44
281
+ updated directory structure - refactored gui files
282
+ Changed gui directory names - more like Java package titles
283
+
284
+ version 1.43
285
+ changed setup variables file for live changes
286
+ added editing and reloading of config file
287
+ added unzip filename to config file
288
+
289
+ version 1.42
290
+ update for live update system
291
+ update applets for live update
292
+ code file name cleanup
293
+
294
+ version 1.41
295
+ l10n work es,nl, jp
296
+ separated out languge.cnf
297
+ added zip applets refreshacpi, rwdcalc
298
+
299
+ version 1.40
300
+ removed extra lines from init.rb
301
+ fixed help second window
302
+ added some tranlations for Spanish
303
+ More work on l10n
304
+
305
+ version 1.3
306
+ refactored gui files to do easier i10n
307
+ removed lang directories under gui
308
+ added lang files under lang dir
309
+ removed redundant code files left from moving applet handling to back window
310
+ removed zipped applets not yet refactored
311
+
312
+ version 1.24
313
+ added internet usage instructions to HowTo_Tinker.txt
314
+ removed HowTo_Tinker.html
315
+ added panels for Helpabout
316
+ changed photo logo tab to only have embedded picture, no button
317
+
318
+ version 1.23
319
+ moving diagnostic tab and applet handling tabs to second window
320
+ added selection panel tab to choose secondary windows.
321
+
322
+ version 1.21
323
+ changing version on help screen to be button
324
+ added version window
325
+ added diagnostic tab
326
+
327
+ version 1.2
328
+ added gemspec for creating a rwdtinker.gem
329
+ added rdoc comments
330
+ changed order on remove applets tab
331
+
332
+ version 1.1
333
+ changed order of elements on install applet tab
334
+ Add more i81n ablility - added lang directorys for language hash files
335
+ added in test file using WATIR stands for "Web Application Testing In Ruby,
336
+
337
+ version 1.0
338
+ Improved name selection in zips and applet screens
339
+ added rubyslippers applet and rwdrefreshacpi applets as zips
340
+
341
+ version 0.9
342
+ Fixed bug introduced in 0.8 - code files not sorted correctly - class end was not in correct location
343
+ updated RubyWebDialogs for people who do not have it installed
344
+ added rwdschedule applet as zip file
345
+
346
+ version 0.8
347
+ changed location of code files
348
+ only directory of code files needs to be added to inf file
349
+ changed location of gui files
350
+ only directory of gui files needs to be added to inf file
351
+ Added constants in conf file for code location and gui location
352
+ removed all zips not yt updated to new directory layout
353
+ change loading of conf files to not need intermediate file
354
+ and favicon.ico
355
+
61
356
  version 0.7
62
- updated for rwdtinker 1.44
63
-
64
- version 0.6
65
- updated for rwdtinker version 1.4
66
- added configuration screen
67
- added rename movie filename
68
- added delete movie record
69
- added edit movie record
70
- added attach picture
71
-
72
- version 0.5
73
- changed directory structure for rwdtinker 0.9 and later
74
- added conf file for movie record directory location
75
- split inf file for sample data
76
- added nophoto.jpg and code to handle no jpg found
77
- improved name selection on the main screen
78
-
79
- version 0.4
80
- Deleted Amazon search. Converted to be an
81
- applet drop in for rwdtinker
82
-
83
-
84
-
357
+ moved changelog to HowTo_Tinker.html
358
+ copied english gui text to the dirs I think we should translate to
359
+ update backup zip files to newest versions
360
+ upgraded the ev directory - for those who don't have RubyWebDialogs
361
+
362
+ version 0.6
363
+ updated version number
364
+ changed merge name to rwdtinker.rb
365
+
366
+ version 0.4
367
+ added zip listing and installing - Linux only
368
+
369
+ Version 0,3
370
+ changed name to Tinker
371
+
372
+ Version 0.2
373
+ added some i18n directories for the gui files
374
+
375
+ Version 0.1
376
+ first public version released
377
+ includes document screen
378
+ Open Photo screen
379
+ included configuration directory
380
+ zips directories
381
+ installed directory
382
+ installed applet lister
383
+