rwdmovies 0.6 → 0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. data/Readme.txt +47 -30
  2. data/code/ag1core/aa0begin.rb +18 -18
  3. data/code/ag1core/rwdtinkerversion.rb +15 -15
  4. data/code/xa5rwdtinkercallable/callable.rb +12 -12
  5. data/code/xb1rwdtinkerbackwindow/diagnostictab.rb +21 -21
  6. data/code/xb1rwdtinkerbackwindow/{lm1installapplet.rb → installapplet.rb} +21 -20
  7. data/code/xb1rwdtinkerbackwindow/{05listinstalledfiles.rb → listinstalledfiles.rb} +1 -1
  8. data/code/xb1rwdtinkerbackwindow/{ll5listzips.rb → listzips.rb} +9 -7
  9. data/code/xb1rwdtinkerbackwindow/loadconfigurationrecord.rb +32 -0
  10. data/code/xb1rwdtinkerbackwindow/loadconfigurationvariables.rb +13 -0
  11. data/code/xb1rwdtinkerbackwindow/{ll1openname.rb → openappletname.rb} +18 -18
  12. data/code/xb1rwdtinkerbackwindow/{mm1removeapplet.rb → removeapplet.rb} +28 -28
  13. data/code/xb1rwdtinkerbackwindow/rwdtinkerwin2version.rb +14 -14
  14. data/code/xb1rwdtinkerbackwindow/saveconfigurationrecord.rb +18 -0
  15. data/code/zz0applicationend/zz0end.rb +4 -4
  16. data/configuration/language.cnf +5 -0
  17. data/configuration/rwdmovies.cnf +0 -1
  18. data/configuration/rwdmoviesversion.cnf +2 -0
  19. data/configuration/rwdplayscriptsversion.cnf +2 -0
  20. data/configuration/rwdtinker.cnf +12 -0
  21. data/configuration/rwdtinkerversion.cnf +2 -0
  22. data/configuration/tinkerwin2variables.cnf +8 -0
  23. data/configuration/tinkerwin2version.cnf +3 -0
  24. data/ev/browser.rb +109 -109
  25. data/ev/ftools.rb +170 -170
  26. data/ev/net.rb +750 -750
  27. data/ev/ruby.rb +819 -819
  28. data/ev/rwd.rb +1848 -1848
  29. data/ev/sgml.rb +236 -236
  30. data/ev/thread.rb +63 -63
  31. data/ev/tree.rb +343 -343
  32. data/ev/xml.rb +4 -4
  33. data/gui/00coreguibegin/applicationguitop.rwd +4 -0
  34. data/gui/{ee1rwdmovies → frontwindow0/superant.com.rwdmovies}/1openmoviedata.rwd +0 -0
  35. data/gui/{ee1rwdmovies → frontwindow0/superant.com.rwdmovies}/2openmoviephoto.rwd +0 -0
  36. data/gui/{ee1rwdmovies → frontwindow0/superant.com.rwdmovies}/3listmoviegfiles.rwd +0 -0
  37. data/gui/{ee1rwdmovies → frontwindow0/superant.com.rwdmovies}/6editrecord.rwd +0 -0
  38. data/gui/{ee1rwdmovies → frontwindow0/superant.com.rwdmovies}/movieutilities.rwd +0 -0
  39. data/gui/{ee1rwdmovies → frontwindow0/superant.com.rwdmovies}/viewconfiguration.rwd +0 -0
  40. data/gui/{ll1selectiontabbegin → frontwindowselectionbegin/selectiontabbegin}/selectiontabbegin.rwd +16 -16
  41. data/gui/{ll5rwdtinkerwin2selectiontab → frontwindowselections/superant.com.rwdtinkerwin2selectiontab}/rwdwin2selectiontab.rwd +12 -12
  42. data/gui/{lz1selectiontabend/endselectiontab.rwd → frontwindowselectionzend/viewselectionzend/viewselectionend.rwd} +3 -3
  43. data/gui/{tt0documentsbegin → frontwindowtdocumentbegin/superant.com.documentsbegin}/tt0documentbegin.rwd +6 -6
  44. data/gui/{uu5rwddocuments → frontwindowtdocuments/superant.com.documents}/uu5documents.rwd +15 -15
  45. data/gui/{uv7rwdmovies → frontwindowtdocuments/superant.com.rwdmovies}/uv7docmovies.rwd +0 -0
  46. data/gui/{uu6rwdtinkerwin2documents → frontwindowtdocuments/superant.com.tinkerwin2documents}/uu5documents.rwd +6 -6
  47. data/gui/{ww0documentsend → frontwindowtdocumentzend/superant.com.documentsend}/ww0documentend.rwd +7 -7
  48. data/gui/{wz6finaltabs → frontwindowz1end/frontwindowend}/xx0rwdfirsttab.rwd +6 -6
  49. data/gui/{ya1helpaboutbegin → helpaboutbegin/superant.com.helpaboutbegin}/ya0helpscreenstart.rwd +3 -3
  50. data/gui/{yl2rwdmovieshelpabout → helpaboutinstalled/superant.com.rwdmovieshelpabout}/1movies.rwd +0 -0
  51. data/gui/{yl2rwdmovieshelpabout → helpaboutinstalled/superant.com.rwdmovieshelpabout}/2movies.rwd +0 -0
  52. data/gui/{yl2rwdmovieshelpabout → helpaboutinstalled/superant.com.rwdmovieshelpabout}/5version.rwd +0 -0
  53. data/gui/{yg6rwdwin2helpabout → helpaboutinstalled/superant.com.rwdwin2helpabout}/1appname.rwd +4 -4
  54. data/gui/{yg5rwdhelpabout → helpaboutinstalled/superant.com.rwdwin2helpabout}/3copyright.rwd +3 -3
  55. data/gui/{yg6rwdwin2helpabout → helpaboutinstalled/superant.com.rwdwin2helpabout}/5version.rwd +10 -10
  56. data/gui/{yg5rwdhelpabout → helpaboutinstalled/superant.com.tinkerhelpabout}/1appname.rwd +4 -4
  57. data/gui/{yg6rwdwin2helpabout → helpaboutinstalled/superant.com.tinkerhelpabout}/3copyright.rwd +3 -3
  58. data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/5version.rwd +10 -0
  59. data/gui/helpaboutzend/superant.com.helpaboutend/helpscreenend.rwd +3 -0
  60. data/gui/{xx8rwdmoviespicture → tinkerbackwindows/superant.com.rwdmoviespicture}/xx8moviephotoview.rwd +0 -0
  61. data/gui/{xa5rwdtinkercallablewindow → tinkerbackwindows/superant.com.tinercallablewindow}/1appname.rwd +17 -17
  62. data/gui/{xa5rwdtinkercallablewindow → tinkerbackwindows/superant.com.tinercallablewindow}/9end.rwd +4 -4
  63. data/gui/{xb1rwdtinkerbackwindow → tinkerbackwindows/superant.com.tinkerbackwindow}/1appname.rwd +5 -5
  64. data/gui/{xb1rwdtinkerbackwindow → tinkerbackwindows/superant.com.tinkerbackwindow}/3arwddiagnostics.rwd +33 -33
  65. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40editconfiguration.rwd +36 -0
  66. data/gui/{xb1rwdtinkerbackwindow/4arwdlistapplets.rwd → tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd} +44 -44
  67. data/gui/{xb1rwdtinkerbackwindow/4arwdlistzips.rwd → tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistzips.rwd} +35 -35
  68. data/gui/{xb1rwdtinkerbackwindow/2tab1.rwd → tinkerbackwindows/superant.com.tinkerbackwindow/80tab1.rwd} +11 -11
  69. data/gui/{xb1rwdtinkerbackwindow → tinkerbackwindows/superant.com.tinkerbackwindow}/9backend.rwd +6 -6
  70. data/gui/{xa1versionwindow → tinkerbackwindows/superant.com.versionwindow}/1appname.rwd +19 -19
  71. data/gui/{za1applicationend → zzcoreguiend/tinkerapplicationguiend}/yy9rwdend.rwd +4 -4
  72. data/init.rb +233 -233
  73. data/installed/rwdtinkerwin2-0.5.inf +8 -8
  74. data/installed/rwdviewlogo-0.4.inf +4 -0
  75. data/lang/alanguagehashbegin.rb +4 -4
  76. data/lang/en/rwdcore/languagefile.rb +15 -15
  77. data/lang/es/rwdcore/languagefile-es.rb +14 -14
  78. data/lang/jp/rwdcore/languagefile.rb +9 -0
  79. data/lang/languagehash.rb +4 -4
  80. data/lang/nl/rwdcore/languagefile.rb +19 -0
  81. data/lang/templangfile.rb +15 -21
  82. data/lang/vlanguagehashend.rb +6 -6
  83. data/lang/wlocallangstart.rb +5 -5
  84. data/lang/xlocallangfile.rb +16 -10
  85. data/lang/zlocallangend.rb +2 -2
  86. data/lib/temp.rb +1 -1
  87. data/rwd_files/HowTo_Movies.txt +2 -0
  88. data/rwd_files/HowTo_Tinker.txt +318 -276
  89. data/rwd_files/HowTo_TinkerWin2.txt +202 -202
  90. data/rwd_files/Readme.txt +57 -57
  91. data/rwd_files/moviestmp.jpg +0 -0
  92. data/rwd_files/rdoc-style.css +174 -174
  93. data/rwd_files/rwdapplications.html +54 -54
  94. data/rwd_files/tinker.png +0 -0
  95. data/tests/rwdtinkertestEN.rb +163 -0
  96. data/tests/test.result +32 -0
  97. data/tests/totranslate.lang +93 -93
  98. data/zips/rwdahelloworld-0.5.zip +0 -0
  99. metadata +96 -75
  100. data/code/gh9calendar/gh9calendar.rb +0 -16
  101. data/configuration/aa0rwdframework.cnf +0 -14
  102. data/configuration/ab1tinkerwin2.cnf +0 -4
  103. data/gui/aa2core/aa0rwdtop.rwd +0 -4
  104. data/gui/yg5rwdhelpabout/5version.rwd +0 -10
  105. data/gui/yy5helpaboutend/helpscreenend.rwd +0 -3
  106. data/installed/rubyslippers-0.94.inf +0 -9
  107. data/installed/rwdcalendar-0.5.inf +0 -8
  108. data/lang/en/rwdcalendar/calendar-nl.rb +0 -6
  109. data/lang/es/rwdcalendar/calendar-nl.rb +0 -6
  110. data/lang/nl/rwdcalendar/calendar-nl.rb +0 -6
  111. data/lang/nl/rwdcore/languagefile-nl.rb +0 -4
  112. data/zips/rwdacalendar-0.5.zip +0 -0
  113. data/zips/rwdhelloworld-0.3.zip +0 -0
  114. data/zips/rwdwshell-0.91.zip +0 -0
  115. data/zips/wrubyslippers-0.93.zip +0 -0
data/Readme.txt CHANGED
@@ -1,57 +1,74 @@
1
- rwdapplications are web brower applications
1
+ = rwdmovies - for rwdtinker and RubyWebDialogs
2
+
3
+ rwdmovies is meant to be used to keep track of your DVD and VHS collection.
2
4
 
3
5
  The GUI interface used is RubyWebDialogs
4
6
 
5
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/
6
8
 
9
+ Install rwdtinker<br>
10
+ unzip this applet in the directory where you put rwdtinker
7
11
 
8
- Start the program by:
9
- changing to the directory and
12
+ Start the program by typing<br>
10
13
  ruby init.rb
11
14
 
12
- Then point your web browser to:
15
+ Then point your web browser to:<br>
13
16
  http://localhost:7701/
14
17
 
15
- Or to the port that shows on the console or in the config.cnf file
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)
16
25
 
17
26
  Requirements:
18
- RubyWebDialogs - I am using 0.0.11 2004-3-9
19
- This package you downloaded should have a runtime version of
20
- the needed rubywebdialog files
27
+ RubyWebDialogs - I am using 0.1.1 2004-12-5
21
28
 
22
29
  Ruby I am using version 1.8.2
23
30
 
31
+
24
32
  I have tested this under Linux-Debian kernel 2.6.9
25
33
 
26
- Operation:
27
- The code files reside in the code directory and are combined before
28
- the main Class is loaded
34
+ PROBLEMS:
35
+ you should consult what beginning 3 characters for you files.
29
36
 
30
- The rwd files in gui are combined before the gui is activated
31
37
 
32
- Trouble shooting:
38
+ don't type in the extension .sch
33
39
 
34
- untar the file
35
- tar zxvf rwdapplication-x.y.tar.gz
36
- then cd to the directory
37
- cd rwdapplication-x.y
38
- then start the init.rb program file
39
- ruby init.rb
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!
40
43
 
44
+ Steven Gibson
45
+ steven@superant.com
41
46
 
42
- If the program is not working, try looking at the ev subdirectory. That is where
43
- the runtime of rubywebdialogs are.
44
47
 
45
- for long term installation, I would suggest putting most files in a lib directory
46
- like /usr/lib/rwdshell
47
- then make a writable directory the local directory for command files to be written
48
- like ~/rwdshell
48
+ http://rwdapplications.rubyforge.org/wiki/wiki.pl
49
49
 
50
+ == Changelog
51
+ version 0.7
52
+ updated for rwdtinker version 1.44
53
+
54
+ version 0.6
55
+ updated for rwdtinker version 1.4
56
+ added configuration screen
57
+ added rename movie filename
58
+ added delete movie record
59
+ added edit movie record
60
+ added attach picture
61
+
62
+ version 0.5
63
+ changed directory structure for rwdtinker 0.9 and later
64
+ added conf file for movie record directory location
65
+ split inf file for sample data
66
+ added nophoto.jpg and code to handle no jpg found
67
+ improved name selection on the main screen
68
+
69
+ version 0.4
70
+ Deleted Amazon search. Converted to be an
71
+ applet drop in for rwdtinker
50
72
 
51
- 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.
52
73
 
53
- Don't use the back-button of the browser! Strange and unpredictable things may and will happen!
54
74
 
55
- Steven Gibson
56
- stevengibson@superant.com
57
- http://rwdapplications.rubyforge.org/
@@ -1,18 +1,18 @@
1
- # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
2
- # This application is a framework for writing programs from RubyWebDialogs
3
- # http://www.erikveen.dds.nl/rubywebdialogs/index.html
4
- # For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
5
- # This class is the top class for the RwdTinker application
6
-
7
- class RwdTinker < RWDialog
8
-
9
- def main
10
- @rwd_window = "main"
11
- @result = "idle"
12
- @display= "idle"
13
- end
14
-
15
- def inspect
16
- "Rwdtinker Application "
17
- end
18
-
1
+ # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
2
+ # This application is a framework for writing programs from RubyWebDialogs
3
+ # http://www.erikveen.dds.nl/rubywebdialogs/index.html
4
+ # For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
5
+ # This class is the top class for the RwdTinker application
6
+
7
+ class RwdTinker < RWDialog
8
+
9
+ def main
10
+ @rwd_window = "main"
11
+ @result = "idle"
12
+ @display= "idle"
13
+ end
14
+
15
+ def inspect
16
+ "Rwdtinker Application "
17
+ end
18
+
@@ -1,15 +1,15 @@
1
- # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
2
- # This application is a framework for writing programs from RubyWebDialogs
3
- # http://www.erikveen.dds.nl/rubywebdialogs/index.html
4
- # For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
5
-
6
- # return the version constant defined in the config file
7
- def runrwdtinkerversion
8
- @rwd_window = "applicationversion"
9
- @versionappnamedisplay = "RwdTinker"
10
- @versioncopyrightdisplay = "(c) 2004 Steven Gibson "
11
- @versionnumberdisplay = "Version " + RwdTinkerVersion
12
-
13
- end
14
-
15
-
1
+ # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
2
+ # This application is a framework for writing programs from RubyWebDialogs
3
+ # http://www.erikveen.dds.nl/rubywebdialogs/index.html
4
+ # For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
5
+
6
+ # return the version constant defined in the config file
7
+ def runrwdtinkerversion
8
+ @rwd_window = "applicationversion"
9
+ @versionappnamedisplay = "RwdTinker"
10
+ @versioncopyrightdisplay = "(c) 2004 Steven Gibson "
11
+ @versionnumberdisplay = "Version " + RwdTinkerVersion
12
+
13
+ end
14
+
15
+
@@ -1,13 +1,13 @@
1
- # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
2
- # This application is a framework for writing programs from RubyWebDialogs
3
- # http://www.erikveen.dds.nl/rubywebdialogs/index.html
4
- # For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
5
-
6
- # call the rwdtinker helpwindow
7
- def runrwdtinkerhelpwindow
8
- @rwd_window = "rwdtinkerhelpwindow"
9
- end
10
- def runrwdtinkerbackwindow
11
- @rwd_window = "tinkerbackwindow"
12
- end
1
+ # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
2
+ # This application is a framework for writing programs from RubyWebDialogs
3
+ # http://www.erikveen.dds.nl/rubywebdialogs/index.html
4
+ # For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
5
+
6
+ # call the rwdtinker helpwindow
7
+ def runrwdtinkerhelpwindow
8
+ @rwd_window = "rwdtinkerhelpwindow"
9
+ end
10
+ def runrwdtinkerbackwindow
11
+ @rwd_window = "tinkerbackwindow"
12
+ end
13
13
 
@@ -1,21 +1,21 @@
1
- # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
2
- # This application is a framework for writing programs from RubyWebDialogs
3
- # http://www.erikveen.dds.nl/rubywebdialogs/index.html
4
- # For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
5
-
6
- # return the Ruby constant
7
- def runrubyversion
8
- @rubyversion = "Version " + VERSION
9
- end
10
-
11
- # return the platform constan
12
- def runviewplatform
13
- @platformdisplay = "Platform is " + RUBY_PLATFORM
14
- end
15
-
16
- # return Rwdtinker version to diagnostic tab
17
- def rwdtinkerversiondiagnostic
18
- @rwdtinkerversionreturn = "rwdtinker version " + RwdTinkerVersion
19
- end
20
-
21
-
1
+ # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
2
+ # This application is a framework for writing programs from RubyWebDialogs
3
+ # http://www.erikveen.dds.nl/rubywebdialogs/index.html
4
+ # For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
5
+
6
+ # return the Ruby constant
7
+ def runrubyversion
8
+ @rubyversion = "Version " + VERSION
9
+ end
10
+
11
+ # return the platform constan
12
+ def runviewplatform
13
+ @platformdisplay = "Platform is " + RUBY_PLATFORM
14
+ end
15
+
16
+ # return Rwdtinker version to diagnostic tab
17
+ def rwdtinkerversiondiagnostic
18
+ @rwdtinkerversionreturn = "rwdtinker version " + RwdTinkerVersion
19
+ end
20
+
21
+
@@ -1,20 +1,21 @@
1
- def installapplet
2
- require 'fileutils'
3
- nametext = "%s" % [@a_installapplet]
4
-
5
- begin # exception trapped block
6
- fileName = "zips/" + nametext + ".zip"
7
-
8
- commandline = "unzip -o " + fileName
9
- system( commandline+' > temp.output' )
10
-
11
-
12
-
13
- system(commandline)
14
- @installapplettext = Message[:applet_installed]
15
-
16
- rescue
17
- @installapplettext = "Done! - Check applet list - restart rwd to activate the new applet"
18
- end # exception rescue
19
-
20
- end
1
+ def installapplet
2
+ require 'fileutils'
3
+ nametext = "%s" % [@a_installapplet]
4
+
5
+ begin # exception trapped block
6
+ fullname = nametext + ".zip"
7
+ fileName = File.join($zipslocation,fullname)
8
+
9
+ commandline = $unzipprogram + fileName
10
+ system( commandline+' > temp.output' )
11
+
12
+
13
+
14
+ system(commandline)
15
+ @installapplettext = Message[:applet_installed]
16
+
17
+ rescue
18
+ @installapplettext = "Done! - Check applet list - restart rwd to activate the new applet"
19
+ end # exception rescue
20
+
21
+ end
@@ -1,4 +1,4 @@
1
- # this code is to list the applets that are installed
1
+ # this code is to list the applets that are installed
2
2
  def listinstalledfiles
3
3
  fileList = Dir.new("installed").entries.sort.reverse.delete_if { |x| ! (x =~ /inf$/) }
4
4
  @filesresult = fileList.rwd_method("fillappletname")
@@ -1,7 +1,9 @@
1
- # this code is to list the zipped applets that can be installed
2
- def listzipfilestoinstall
3
- fileList = Dir.new("zips").entries.sort.reverse.delete_if { |x| ! (x =~ /zip$/) }
4
- @zipslistresult = fileList.rwd_method("fillziptoinstallname")
1
+ # this code is to list the zipped applets that can be installed
2
+ def listzipfilestoinstall
3
+ if File.exist?($zipslocation)
4
+ fileList = Dir.new($zipslocation).entries.sort.delete_if { |x| ! (x =~ /zip$/) }
5
+ @zipslistresult = fileList.rwd_method("fillziptoinstallname")
6
+ end
5
7
  end
6
8
 
7
9
  def fillziptoinstallname(inffile)
@@ -9,6 +11,6 @@ def fillziptoinstallname(inffile)
9
11
  @a_installapplet = applet
10
12
 
11
13
  end
12
-
13
-
14
-
14
+
15
+
16
+
@@ -0,0 +1,32 @@
1
+ # this method views an existing address record
2
+ def loadconfigurationrecord
3
+
4
+ require 'fileutils'
5
+ if TinkerWin2ConfigurationFileName
6
+ @a_configurationfilename = TinkerWin2ConfigurationFileName
7
+ end
8
+
9
+ begin # exception trapped block
10
+
11
+ Dir.chdir($progdir)
12
+ fileName = File.join(ConfigurationDir, TinkerWin2ConfigurationFileName)
13
+
14
+ fd = File.open(fileName,"r")
15
+ @a_configline1= fd.readline.chomp
16
+ @a_configline2 = fd.readline.chomp
17
+ @a_configline3 = fd.readline.chomp
18
+ @a_configline4 = fd.readline.chomp
19
+ @a_configline5 = fd.readline.chomp
20
+ @a_configline6 = fd.readline.chomp
21
+ @a_configline7 =fd.readline.chomp
22
+ @a_configline8 = fd.readline.chomp
23
+
24
+ while ! fd.eof?
25
+ @extraconfigdatadisplay = fd.readline
26
+ end
27
+ fd.close
28
+ rescue SystemCallError, StandardError
29
+ $stderr.print "system call error: " + $!
30
+ end # exception rescue
31
+
32
+ end
@@ -0,0 +1,13 @@
1
+ # this method clears the on screen variables
2
+ def loadconfigurationvariables
3
+
4
+ configfiletoload = File.join(ConfigurationDir,TinkerWin2ConfigurationFileName)
5
+ begin
6
+ load configfiletoload
7
+ @extraconfigdatadisplay = ""
8
+ @newconfigurationresult = "Config Variables loaded"
9
+ rescue
10
+ @extraconfigdatadisplay = ""
11
+ @newconfigurationresult = "loading error"
12
+ end
13
+ end
@@ -1,18 +1,18 @@
1
- def openname
2
- require 'fileutils'
3
- nametext = "%s" % [@a_installlist]
4
-
5
- begin # exception trapped block
6
- fileName = "installed/" + nametext + ".inf"
7
-
8
- fd = File.open(fileName,"r")
9
- @displaytext = " "
10
- while ! fd.eof?
11
- @displaytext = fd.read
12
- end
13
- fd.close
14
- rescue
15
- @displaytext = "\n" + "error"
16
- end # exception rescue
17
-
18
- end
1
+ def openappletname
2
+ require 'fileutils'
3
+ nametext = "%s" % [@a_installlist]
4
+
5
+ begin # exception trapped block
6
+ fileName = "installed/" + nametext + ".inf"
7
+
8
+ fd = File.open(fileName,"r")
9
+ @displaytext = " "
10
+ while ! fd.eof?
11
+ @displaytext = fd.read
12
+ end
13
+ fd.close
14
+ rescue
15
+ @displaytext = "\n" + "error"
16
+ end # exception rescue
17
+
18
+ end
@@ -1,28 +1,28 @@
1
- def removeapplet
2
- require 'fileutils'
3
- nametext = "%s" % [@a_removeapplet]
4
-
5
- begin # exception trapped block
6
- fileName = "installed/" + nametext + ".inf"
7
- count = 0
8
- fd = File.open(fileName,"r")
9
-
10
-
11
- fd.each { |oneline|
12
- if count == 1
13
- commandline = "rm -r " + oneline
14
- system( commandline+' > temp.output' )
15
- end
16
- count = 1
17
- }
18
- fd.close
19
- commandline = "rm " + fileName
20
-
21
- system(commandline)
22
- @removeapplettext = "applet files removed! - restart rwd to finish uninstalling"
23
-
24
- rescue
25
- @removeapplettext = "\n" + "error"
26
- end # exception rescue
27
-
28
- end
1
+ def removeapplet
2
+ require 'fileutils'
3
+ nametext = "%s" % [@a_removeapplet]
4
+
5
+ begin # exception trapped block
6
+ fileName = "installed/" + nametext + ".inf"
7
+ count = 0
8
+ fd = File.open(fileName,"r")
9
+
10
+
11
+ fd.each { |oneline|
12
+ if count == 1
13
+ commandline = "rm -r " + oneline
14
+ system( commandline+' > temp.output' )
15
+ end
16
+ count = 1
17
+ }
18
+ fd.close
19
+ commandline = "rm " + fileName
20
+
21
+ system(commandline)
22
+ @removeapplettext = "applet files removed! - restart rwd to finish uninstalling"
23
+
24
+ rescue
25
+ @removeapplettext = "\n" + "error"
26
+ end # exception rescue
27
+
28
+ end
@@ -1,14 +1,14 @@
1
- # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
2
- # This application is a framework for writing programs from RubyWebDialogs
3
- # http://www.erikveen.dds.nl/rubywebdialogs/index.html
4
- # For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
5
-
6
- # return the version constant defined in the config file
7
- def runrwdtinkerwin2version
8
- @rwd_window = "applicationversion"
9
- @versionappnamedisplay = "RwdTinkerWin2"
10
- @versioncopyrightdisplay = "(c) 2004 Steven Gibson "
11
- @versionnumberdisplay = "Version " + RwdTinkerWin2Version
12
-
13
- end
14
-
1
+ # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
2
+ # This application is a framework for writing programs from RubyWebDialogs
3
+ # http://www.erikveen.dds.nl/rubywebdialogs/index.html
4
+ # For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
5
+
6
+ # return the version constant defined in the config file
7
+ def runrwdtinkerwin2version
8
+ @rwd_window = "applicationversion"
9
+ @versionappnamedisplay = "RwdTinkerWin2"
10
+ @versioncopyrightdisplay = "(c) 2004 Steven Gibson "
11
+ @versionnumberdisplay = "Version " + RwdTinkerWin2Version
12
+
13
+ end
14
+
@@ -0,0 +1,18 @@
1
+ # this method adds a new address record
2
+ def saveconfigurationrecord
3
+ require 'fileutils'
4
+ if @a_configurationfilename
5
+ newname = "%s" % [@a_configurationfilename] # grab the filename to create
6
+ newdata =@a_configline1.to_s + "\n" + @a_configline2.to_s + "\n" + @a_configline3.to_s + "\n" + @a_configline4.to_s + "\n" + @a_configline5.to_s + "\n" + @a_configline6.to_s + "\n" + @a_configline7.to_s + "\n" + @a_configline8.to_s + "\n"
7
+
8
+ begin # exception trapped block
9
+ fileName = File.join( ConfigurationDir, newname )
10
+ fd = File.open(fileName,"w")
11
+ fd.print(newdata) # save the record info to the file
12
+ fd.close
13
+ @newconfigurationresult=newdata # show the record info in the browser
14
+ rescue SystemCallError, StandardError
15
+ $stderr.print "system call error: " + $!
16
+ end # exception rescue
17
+ end
18
+ end
@@ -1,4 +1,4 @@
1
-
2
-
3
- end # end of rwdtinker class
4
-
1
+
2
+
3
+ end # end of rwdtinker class
4
+
@@ -0,0 +1,5 @@
1
+
2
+ #$lang = "jp"
3
+ $lang= "en"
4
+ #$lang= "nl"
5
+ #$lang= "es"
@@ -1,4 +1,3 @@
1
1
 
2
- RwdMoviesVersion = "0.6"
3
2
  $rwdmovies_directory="movies"
4
3
  $tmpmoviepicture_directory = "/tmp"
@@ -0,0 +1,2 @@
1
+
2
+ RwdMoviesVersion = "0.6"
@@ -0,0 +1,2 @@
1
+
2
+ RwdShellVersion = "0.92"
@@ -0,0 +1,12 @@
1
+
2
+ ConfigurationDir = "configuration" # for use in program - init.rb has this value without using this constant
3
+ CodeName = "rwdtinker"
4
+ CodeNameFile = CodeName + ".rb"
5
+ LangNameFile = "rwdlanguage.rb"
6
+ RWDFile = "rwdtinker.rwd"
7
+ LangDir = "lang"
8
+ TempLangHashFile = LangDir + "/" + "templangfile.rb"
9
+ LocalLangHashFile = LangDir + "/" + "xlocallangfile.rb"
10
+ CodeDir = "code"
11
+ GuiDir = "gui"
12
+ $port = 7705
@@ -0,0 +1,2 @@
1
+
2
+ RwdTinkerVersion = "1.44"
@@ -0,0 +1,8 @@
1
+
2
+ TinkerWin2ConfigurationFileName = "tinkerwin2variables.cnf" # this file name - do not change
3
+ $zipslocation = "zips" # location of applets to add
4
+ $unzipprogram = "unzip -o "
5
+
6
+
7
+
8
+
@@ -0,0 +1,3 @@
1
+
2
+ RwdTinkerWin2Version = "0.7"
3
+