rwdmovies 0.94 → 0.95

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. data/Readme.txt +413 -99
  2. data/code/01rwdcore/01rwdcore.rb +1 -1
  3. data/code/01rwdcore/jumplinkcommand.rb +26 -0
  4. data/code/01rwdcore/rundocuments.rb +10 -0
  5. data/code/01rwdcore/runeditconfiguration.rb +10 -0
  6. data/code/01rwdcore/runhelpabout.rb +10 -0
  7. data/code/01rwdcore/selectiontab.rb +9 -0
  8. data/code/01rwdcore/test_cases.rb +53 -59
  9. data/code/01rwdcore/test_harness.rb +1 -0
  10. data/code/superant.com.rwdmovies/runrwdmoviesconfiguration.rb +9 -0
  11. data/code/superant.com.rwdmovies/runrwdmoviestab.rb +9 -0
  12. data/code/superant.com.rwdmovies/test_cases.rb +48 -0
  13. data/code/superant.com.rwdtinkerbackwindow/runremoteinstall.rb +11 -0
  14. data/configuration/rwdapplicationidentity.dist +2 -2
  15. data/configuration/rwdmovies.dist +4 -4
  16. data/configuration/rwdtinker.dist +3 -3
  17. data/configuration/tinkerwin2variables.dist +1 -1
  18. data/gui/00coreguibegin/applicationguitop.rwd +1 -1
  19. data/gui/frontwindow0/superant.com.rwdmovies/6editrecord.rwd +9 -9
  20. data/gui/frontwindowselectionbegin/selectiontabbegin/selectiontabbegin.rwd +2 -7
  21. data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/jumplinkcommands.rwd +15 -0
  22. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd +17 -0
  23. data/rwd_files/HowTo_Tinker.txt +9 -0
  24. data/rwd_files/tinker.png +0 -0
  25. data/rwdconfig.dist +4 -2
  26. data/tests/RubyGauge.rb +179 -0
  27. data/tests/makedist.rb +1 -0
  28. metadata +17 -8
  29. data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +0 -12
  30. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/80tab1.rwd +0 -11
  31. data/tests/rwdtinkertestEN.rb +0 -163
  32. data/tests/test.result +0 -32
data/Readme.txt CHANGED
@@ -1,105 +1,419 @@
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.94
52
- exception rescue wrapping Amazon lib
53
-
54
- version 0.93
55
- some code comments
56
- search screen help
57
- amazon search improvements
58
- add download movie picture from url
59
- add create record on utilities screen
60
-
61
- version 0.92
62
- updated for rwdtinker version 1.60
63
- one button bug report submissions
230
+ Version 1.64
231
+ fix jump with no location
232
+
233
+ Version 1.63
234
+ changed handling of application name returned
235
+ added jump seletion options
236
+ added some unit tests
237
+
238
+ version 1.62
239
+ improve distro release script
240
+ code cleanup
241
+ removed redundent network code
242
+ change handling of window and tab jumps
64
243
 
65
- version 0.91
66
- movie poster opens on from page
67
- updated for rwdtinker version 1.58
68
- added rconftool use to update configuration files
69
- changed applets removal to not use external rm
70
- removed version number from directory name
244
+ version 1.61
245
+ add in test harness
246
+ rwdtinkerwin2 help about removed
247
+ load main config file in init.rb
248
+
249
+ version 1.60
250
+ add rwdapplication info to diagnostic
251
+ turn rescue on in diagnostic upload
252
+
253
+ version 1.59
254
+ removed rwdtinkerwin2 inf file
255
+ refactored diagnotic page - one button to see all information
256
+ added bug report upload to diagnostic page
71
257
 
72
- version 0.9
73
- added back Amazon search
74
- changed width of text fields
75
- updated for rwdtinker version 1.50 - remote control and finding free ports
258
+ version 1.58
259
+ check for zlib
260
+ check for files to delete
76
261
 
77
- version 0.8
78
- added return from picture window
79
- added features to configuration screen
80
- added context sensitive help
262
+ version 1.57
263
+ added rconftool use to update configuration files
264
+ changed applets remove to not used external rm
265
+
266
+ version 1.56
267
+ refactored gui files to load without intermediate files
268
+ refactored code files to load without intermediate files
269
+
270
+ version 1.55
271
+ refactored language files to load without intermediate files
272
+ refactored language files to load without intermediate files
273
+
274
+ version 1.54
275
+ refactored rwdtinker applet installation tab - remote gem and local installs share menu buttons
276
+ corrected some program logic errors in remote control code including close socket
277
+
278
+ version 1.53
279
+ added search of Gems repository for rwdtinker gems
280
+ download and install of Gems
81
281
 
282
+ version 1.52
283
+ added function to install applets from gem directory
284
+
285
+ version 1.51
286
+ changed return to main
287
+ changed configuration of remote ports
288
+ updated context sensitive help
289
+
290
+ version 1.50
291
+ changed unzip applet to be internal code - no exec to unzip program
292
+ changed order of tabs on back window - list applets now first
293
+ added rwdwcalc applet in to zips directory
294
+ changed width of text fields with help from RubyWebDialogs author
295
+ changed listing of help options, vertical instead of horizontal
296
+
297
+ version 1.49
298
+ added demon function for remote queries
299
+ startup application on first available port
300
+
301
+ version 1.48
302
+ fix in context sensitive help so that applets can use it better
303
+
304
+ version 1.47
305
+ change to context sensitive help
306
+
307
+ version 1.46
308
+ more work on context help
309
+ window calls point to tab as well as windows
310
+ help added help buttons on Document, Selection, View Applet, tabs
311
+
312
+ version 1.45
313
+ first steps toward context sensitive help
314
+ added help button on main window/tab
315
+
316
+ version 1.44
317
+ updated directory structure - refactored gui files
318
+ Changed gui directory names - more like Java package titles
319
+
320
+ version 1.43
321
+ changed setup variables file for live changes
322
+ added editing and reloading of config file
323
+ added unzip filename to config file
324
+
325
+ version 1.42
326
+ update for live update system
327
+ update applets for live update
328
+ code file name cleanup
329
+
330
+ version 1.41
331
+ l10n work es,nl, jp
332
+ separated out languge.cnf
333
+ added zip applets refreshacpi, rwdcalc
334
+
335
+ version 1.40
336
+ removed extra lines from init.rb
337
+ fixed help second window
338
+ added some tranlations for Spanish
339
+ More work on l10n
340
+
341
+ version 1.3
342
+ refactored gui files to do easier i10n
343
+ removed lang directories under gui
344
+ added lang files under lang dir
345
+ removed redundant code files left from moving applet handling to back window
346
+ removed zipped applets not yet refactored
347
+
348
+ version 1.24
349
+ added internet usage instructions to HowTo_Tinker.txt
350
+ removed HowTo_Tinker.html
351
+ added panels for Helpabout
352
+ changed photo logo tab to only have embedded picture, no button
353
+
354
+ version 1.23
355
+ moving diagnostic tab and applet handling tabs to second window
356
+ added selection panel tab to choose secondary windows.
357
+
358
+ version 1.21
359
+ changing version on help screen to be button
360
+ added version window
361
+ added diagnostic tab
362
+
363
+ version 1.2
364
+ added gemspec for creating a rwdtinker.gem
365
+ added rdoc comments
366
+ changed order on remove applets tab
367
+
368
+ version 1.1
369
+ changed order of elements on install applet tab
370
+ Add more i81n ablility - added lang directorys for language hash files
371
+ added in test file using WATIR stands for "Web Application Testing In Ruby,
372
+
373
+ version 1.0
374
+ Improved name selection in zips and applet screens
375
+ added rubyslippers applet and rwdrefreshacpi applets as zips
376
+
377
+ version 0.9
378
+ Fixed bug introduced in 0.8 - code files not sorted correctly - class end was not in correct location
379
+ updated RubyWebDialogs for people who do not have it installed
380
+ added rwdschedule applet as zip file
381
+
382
+ version 0.8
383
+ changed location of code files
384
+ only directory of code files needs to be added to inf file
385
+ changed location of gui files
386
+ only directory of gui files needs to be added to inf file
387
+ Added constants in conf file for code location and gui location
388
+ removed all zips not yt updated to new directory layout
389
+ change loading of conf files to not need intermediate file
390
+ and favicon.ico
391
+
82
392
  version 0.7
83
- updated for rwdtinker 1.44
84
-
85
- version 0.6
86
- updated for rwdtinker version 1.4
87
- added configuration screen
88
- added rename movie filename
89
- added delete movie record
90
- added edit movie record
91
- added attach picture
92
-
93
- version 0.5
94
- changed directory structure for rwdtinker 0.9 and later
95
- added conf file for movie record directory location
96
- split inf file for sample data
97
- added nophoto.jpg and code to handle no jpg found
98
- improved name selection on the main screen
99
-
100
- version 0.4
101
- Deleted Amazon search. Converted to be an
102
- applet drop in for rwdtinker
103
-
104
-
105
-
393
+ moved changelog to HowTo_Tinker.html
394
+ copied english gui text to the dirs I think we should translate to
395
+ update backup zip files to newest versions
396
+ upgraded the ev directory - for those who don't have RubyWebDialogs
397
+
398
+ version 0.6
399
+ updated version number
400
+ changed merge name to rwdtinker.rb
401
+
402
+ version 0.4
403
+ added zip listing and installing - Linux only
404
+
405
+ Version 0,3
406
+ changed name to Tinker
407
+
408
+ Version 0.2
409
+ added some i18n directories for the gui files
410
+
411
+ Version 0.1
412
+ first public version released
413
+ includes document screen
414
+ Open Photo screen
415
+ included configuration directory
416
+ zips directories
417
+ installed directory
418
+ installed applet lister
419
+