rwdfoldeditor 0.05 → 0.07

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. data/code/01rwdcore/01rwdcore.rb +5 -4
  2. data/code/01rwdcore/02helptexthashbegin.rb +14 -2
  3. data/code/01rwdcore/03helptexthash.rb +18 -20
  4. data/code/01rwdcore/jumplinkcommand.rb +1 -0
  5. data/code/01rwdcore/openhelpwindow.rb +7 -0
  6. data/code/01rwdcore/runhelpabout.rb +6 -1
  7. data/code/01rwdcore/runopentinkerdocument.rb +1 -1
  8. data/code/01rwdcore/selectiontab.rb +2 -0
  9. data/code/01rwdcore/setuphelpaboutoptions.rb +2 -0
  10. data/code/01rwdcore/setuptinkerdocuments.rb +1 -0
  11. data/code/01rwdcore/uploadreturns.rb +3 -0
  12. data/code/dd0viewphoto/dd0viewphoto.rb +2 -0
  13. data/code/superant.com.foldeditor/0uninstallapplet.rb +8 -1
  14. data/code/superant.com.foldeditor/addzipfiles.rb +45 -0
  15. data/code/superant.com.foldeditor/helptexthashload.rb +22 -0
  16. data/code/superant.com.foldeditor/launchfoldeditorurl.rb +5 -3
  17. data/code/superant.com.foldeditor/openhelpwindowrwdhyernote.rb +6 -2
  18. data/code/superant.com.rwdtinkerbackwindow/initiateapplets.rb +30 -102
  19. data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +2 -0
  20. data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +2 -0
  21. data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +3 -1
  22. data/code/superant.com.rwdtinkerbackwindow/listzips.rb +2 -0
  23. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +3 -1
  24. data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +1 -0
  25. data/code/superant.com.rwdtinkerbackwindow/viewlogfile.rb +8 -5
  26. data/code/zz0applicationend/zz0end.rb +2 -1
  27. data/configuration/rwdtinker.dist +3 -2
  28. data/configuration/rwdwfoldeditor.dist +7 -5
  29. data/configuration/tinkerwin2variables.dist +5 -9
  30. data/gui/tinkerbackwindows/superant.com.foldeditor/60zipfoldfiles.rwd +31 -0
  31. data/gui/tinkerbackwindows/superant.com.slideshow/10appletbegin.rwd +4 -0
  32. data/gui/tinkerbackwindows/superant.com.slideshow/11viewnamedata.rwd +19 -0
  33. data/gui/tinkerbackwindows/superant.com.slideshow/13listnamerecordfiles.rwd +21 -0
  34. data/gui/tinkerbackwindows/superant.com.slideshow/16editrecord.rwd +39 -0
  35. data/gui/tinkerbackwindows/superant.com.slideshow/17viewvcardrecord.rwd +32 -0
  36. data/gui/tinkerbackwindows/superant.com.slideshow/18contactutilities.rwd +34 -0
  37. data/gui/tinkerbackwindows/superant.com.slideshow/81jumplinkcommands.rwd +17 -0
  38. data/gui/tinkerbackwindows/{superant.com.foldwords/z9end.rwd → superant.com.slideshow/9end.rwd} +0 -0
  39. data/init.rb +61 -164
  40. data/installed/rwdwfoldeditor.inf +3 -8
  41. data/lang/en/rwdcore/en.po +182 -0
  42. data/lang/en/rwdfoldeditor/en.po +28 -0
  43. data/lang/es/rwdcore/es.po +175 -0
  44. data/lang/fr/rwdcore/fr.po +169 -0
  45. data/lang/hi/rwdcore/hi.po +173 -0
  46. data/lang/ja/rwdcore/ja.po +171 -0
  47. data/lang/nl/rwdcore/nl.po +169 -0
  48. data/lib/rwdtinker/rwdcodedir.rb +56 -0
  49. data/lib/rwdtinker/rwdguidir.rb +57 -0
  50. data/lib/rwdtinker/rwdlangdir.rb +60 -0
  51. data/lib/rwdtinker/rwdtinkertools.rb +2 -1
  52. data/rwd_files/HowTo_FoldEditor.txt +9 -0
  53. data/rwd_files/HowTo_Tinker.txt +24 -6
  54. data/rwd_files/Tinkerhelptexthash.txt +82 -0
  55. data/rwd_files/rubylinks.fld +6 -0
  56. data/rwd_files/rwdapplications.html +23 -1
  57. data/rwd_files/rwdfoldeditorhelpfiles.txt +17 -0
  58. data/tests/makedist-rwdwfoldeditor.rb +1 -1
  59. data/tests/makedist.rb +1 -1
  60. data/zips/rwdwfoldeditor-0.07.zip +0 -0
  61. data/zips/rwdwmovies-0.98.zip +0 -0
  62. data/zips/rwdwmpd-0.07.zip +0 -0
  63. data/zips/temp.rb +1 -0
  64. data/zips/tinkerbellw-0.03.zip +0 -0
  65. data/zips/{wrubyslippers-1.07.zip → wrubyslippers-1.08.zip} +0 -0
  66. metadata +33 -29
  67. data/code/01rwdcore/04helptextend.rb +0 -6
  68. data/code/superant.com.foldback/clearhttpview3.rb +0 -9
  69. data/code/superant.com.foldback/dictlookup.rb +0 -20
  70. data/code/superant.com.foldback/eliza.rb +0 -8
  71. data/code/superant.com.foldback/helptexthashrwdhypernote.rb +0 -19
  72. data/code/superant.com.foldback/listwordlookup.rb +0 -37
  73. data/code/superant.com.foldback/openhelpwindowrwdhyernote.rb +0 -13
  74. data/code/superant.com.foldback/runrwdshellwindow.rb +0 -12
  75. data/code/superant.com.foldeditor/helptexthashrwdhypernote.rb +0 -38
  76. data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +0 -61
  77. data/gui/tinkerbackwindows/superant.com.foldwords/1appname.rwd +0 -4
  78. data/gui/tinkerbackwindows/superant.com.foldwords/1dictionary.rwd +0 -19
  79. data/gui/tinkerbackwindows/superant.com.foldwords/3ai.rwd +0 -22
  80. data/gui/tinkerbackwindows/superant.com.foldwords/4thesaurus.rwd +0 -36
  81. data/gui/tinkerbackwindows/superant.com.foldwords/77jumplinkcommands.rwd +0 -17
  82. data/lang/en/rwdcore/languagefile.rb +0 -59
  83. data/lang/es/rwdcore/languagefile-es.rb +0 -63
  84. data/lang/fr/rwdcore/languagefile.rb +0 -65
  85. data/lang/jp/rwdcore/languagefile.rb +0 -73
  86. data/lang/nl/rwdcore/languagefile.rb +0 -76
  87. data/lib/dict.rb +0 -438
  88. data/lib/oothesaurus.rb +0 -76
  89. data/zips/rwdwgutenberg-0.11.zip +0 -0
  90. data/zips/rwdwhypernote-0.15.zip +0 -0
@@ -0,0 +1,56 @@
1
+ # part of rwdtinker smalllinux@gmail.com
2
+ # copyleft gpl 2008 Steven Gibson
3
+
4
+ require 'lib/rwdtinker/rwdtinkertools'
5
+
6
+ tmpmodload = '
7
+ def RwdtinkerTools.findfilesp(d)
8
+
9
+ a = Array.new(Dir[d].entries.sort)
10
+ #loop through and get the files names
11
+ a.each do |x|
12
+ #adjust the filters to the files you want to see...
13
+ if(!test(?d,x))
14
+ # only rwd files
15
+ if x =~ /rb|rwd|txt/
16
+ fileA=File.open("#{x}","r") #opens the file thats in fileName as read only
17
+ @@tempdoc+=fileA.read #reads the file into the doc string
18
+ fileA.close
19
+ end
20
+ end
21
+ end
22
+
23
+ end
24
+
25
+ def RwdtinkerTools.findprogramfiles(codedir, specificdir = "")
26
+ @@tempdoc = ""
27
+ #get a list of the files and subdirectories on the starting directory only
28
+ a = Array.new(Dir[codedir].entries.sort)
29
+ #loop through the list, ignore the files and add all new directories found
30
+ a.each do |x|
31
+ #if a directory...
32
+ if(test(?d,x))
33
+ # add to the original list of directories
34
+ @@root = x + "/**"
35
+ #adds the new ones to the array
36
+ b = Dir[@@root].entries.sort
37
+ b.each do |x|
38
+ if(test(?d,x))
39
+ a.push(x) #appends to the end of the array...
40
+ end
41
+ end
42
+ end
43
+ end
44
+ a.each do |x|
45
+ #if it is a file...
46
+ if(!test(?d,x))
47
+ a.delete(x)
48
+ else #it is a directory...
49
+ findfilesp(x + "/**")
50
+ end
51
+ end
52
+ return @@tempdoc
53
+ end
54
+ '
55
+
56
+ RwdtinkerTools.module_eval(tmpmodload)
@@ -0,0 +1,57 @@
1
+ # part of rwdtinker smalllinux@gmail.com
2
+ # copyleft gpl 2008 Steven Gibson
3
+
4
+ require 'lib/rwdtinker/rwdtinkertools'
5
+
6
+ tmpmodload = '
7
+ def RwdtinkerTools.loadguifile(d)
8
+
9
+ a = Array.new(Dir[d].entries.sort)
10
+ #loop through and get the files names
11
+ a.each do |x|
12
+ #adjust the filters to the files you want to see...
13
+ if(!test(?d,x))
14
+ # only rwd files
15
+ if x =~ /rb|rwd|txt/
16
+
17
+ load x #opens the file thats in fileName and reads it
18
+ @@tempdoc += $rwdguivar # adds the file into the doc string
19
+ end
20
+ end
21
+ end
22
+ end
23
+
24
+ def RwdtinkerTools.findguifiles(guidir)
25
+ @@tempdoc = ""
26
+ #get a list of the files and subdirectories on the starting directory only
27
+ a = Array.new(Dir[guidir].entries.sort)
28
+ #loop through the list, ignore the files and add all new directories found
29
+ a.each do |x|
30
+ #if a directory...
31
+ if(test(?d,x))
32
+ #use this new dir find to add to the original list of directories
33
+ @@root = x + "/**"
34
+ #adds the new ones to the array
35
+ b = Dir[@@root].entries.sort
36
+ b.each do |x|
37
+ if(test(?d,x))
38
+ a.push(x) #appends to the end of the array...
39
+ end
40
+ end
41
+ end
42
+ end
43
+ a.each do |x|
44
+ #if it is a file...
45
+ if(!test(?d,x))
46
+ a.delete(x)
47
+
48
+ else #it is a directory...
49
+ loadguifile(x + "/**")
50
+ end
51
+ end
52
+ return @@tempdoc
53
+
54
+ end
55
+ '
56
+
57
+ RwdtinkerTools.module_eval(tmpmodload)
@@ -0,0 +1,60 @@
1
+ # part of rwdtinker smalllinux@gmail.com
2
+ # copyleft gpl 2008 Steven Gibson
3
+
4
+ require 'lib/rwdtinker/rwdtinkertools'
5
+
6
+ tmpmodload = '
7
+ def RwdtinkerTools.findfilest(d)
8
+ a = Array.new(Dir[d].entries.sort)
9
+ #loop through and get the files names
10
+ a.each do |x|
11
+ #adjust the filters to the files you want to see...
12
+ if(!test(?d,x))
13
+ # only rwd files
14
+ if x =~ /rb|po|txt/
15
+ fileA=File.open("#{x}","r") #opens the file thats in fileName as read only
16
+ @@tempdoc+=fileA.read #reads the file into the doc string
17
+ fileA.close
18
+ end
19
+ end
20
+ end
21
+
22
+ end
23
+
24
+
25
+ def RwdtinkerTools.findlanguagefiles(langdir,lang)
26
+ @@tempdoc = ""
27
+
28
+ startlangdir = File.join(langdir,lang)
29
+ #get a list of the files and subdirectories on the starting directory only
30
+ alanghash = Array.new(Dir[startlangdir].entries.sort)
31
+ #loop through the list, ignore the files and add all new directories found
32
+ alanghash.each do |x|
33
+ #if a directory...
34
+ if(test(?d,x))
35
+ # add to the original list of directories
36
+ @@tmproot = x + "/**"
37
+ #adds the new ones to the array
38
+ blanghash = Dir[@@tmproot].entries.sort
39
+ blanghash.each do |x|
40
+ if(test(?d,x))
41
+ alanghash.push(x) #appends to the end of the array...
42
+ end
43
+ end
44
+ end
45
+ end
46
+ alanghash.each do |x|
47
+ #if it is a file...
48
+ if(!test(?d,x))
49
+ alanghash.delete(x)
50
+ else #it is a directory...
51
+ findfilest(x + "/**")
52
+ end
53
+ end
54
+
55
+ return @@tempdoc
56
+
57
+ end
58
+ '
59
+
60
+ RwdtinkerTools.module_eval(tmpmodload)
@@ -1,4 +1,5 @@
1
-
1
+ # part of rwdtinker smalllinux@gmail.com
2
+ # copyleft gpl 2008 Steven Gibson
2
3
 
3
4
  module RwdtinkerTools
4
5
 
@@ -96,6 +96,15 @@ Steven Gibson
96
96
  steven@superant.com
97
97
 
98
98
  == Changelog
99
+ verion 0.07
100
+ updated for rwdtinker 1.83
101
+ moved help files to en.po
102
+ added zip of fold file links for emailing, etc
103
+
104
+ version 0.06
105
+ fixed local url launch
106
+ removed words back window
107
+
99
108
  version 0.05
100
109
  added http url launch
101
110
 
@@ -97,8 +97,7 @@ There are two ways to add applets to the directories.
97
97
  The gui files go into your gui directory
98
98
  The gui files need to be in order by name and end with .rwd
99
99
 
100
-
101
-
100
+
102
101
  If you need a config file that goes in the configuration directory
103
102
 
104
103
  internationalization and localization are helped by replacing the
@@ -136,9 +135,11 @@ To exit, press the x inside the browser window.
136
135
 
137
136
  == Languages
138
137
 
139
-
140
138
  You can add tranlations in the lang subdirectory
141
- You change the $lang constant in Tinker config file in the configuration directory
139
+ You change the $langarray constant in Tinker config file in the configuration directory
140
+
141
+ to change language => in the tinkerwin2variables.cnf file the [0] setting of $langarray will be the language choosen.
142
+
142
143
  You can see one translation on the install applet tab, after you have installed and applet
143
144
 
144
145
  == Using over a Network
@@ -168,14 +169,15 @@ Ruby I am using version 1.8.2
168
169
 
169
170
  I have tested this under Linux-Debian kernel 2.6.9
170
171
 
171
- = Operation:
172
+ == Operation:
173
+
172
174
  The code files reside in the code directory and are combined before
173
175
  the main Class is loaded
174
176
 
175
177
  The rwd files in gui are combined before the gui is activated
176
178
 
177
179
  Translated text reside in the lang directory
178
-
180
+
179
181
  == Installing:
180
182
 
181
183
  untar the file
@@ -226,6 +228,22 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
226
228
  Thanks, Steven Gibson
227
229
 
228
230
  == Changelog
231
+ version 1.83
232
+ adding more Spanish and Hindu po strings
233
+
234
+ version 1.82
235
+ switch to po files for translation files
236
+ add beginning of Hindi po file
237
+ added more Japanese strings
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
240
+
241
+ version 1.81
242
+ condensed config files from 4 -> 2
243
+ fixed document launch bug
244
+ add $KCODE = 'u'
245
+ move help files to rwd_files directory
246
+
229
247
  version 1.80
230
248
  changed pda handling in rwd.rb
231
249
  added logging
@@ -0,0 +1,82 @@
1
+ # Help files for RwdTinker core Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
2
+
3
+
4
+ Helptext.update( :network_help => "Using over a Network: To serve the application over your local LAN,change the last line in the<br>
5
+ init.rb file to something like:\n<br>
6
+ RwdTinker.file(RWDFile).serve(8080, '-r' ? '.rwduids' : nil)\n<br>
7
+ Then you should be able to login at: http://yourhostname:8080")
8
+
9
+ Helptext.update( :general_help => "#{Message[:message_general_help]}" )
10
+
11
+ Helptext.update( :documents_rwdtinker => "<b>Documents:
12
+ <p>
13
+
14
+ when you click on a document name, the document should pop up in a <br>
15
+ browser window, or in another browser tab.</b>
16
+ ")
17
+
18
+ Helptext.update( :tinkerwin2_help => " You can view the list of applets you can install
19
+ by clicking on the list files button
20
+ <br><br>
21
+ You can download an applet created by someone else
22
+ <br><br>
23
+ put the file in the zips directory
24
+ <br>
25
+ rwdtinker applets packaged as RubyGems can be used if you have RubyGems installed.
26
+ You can download rwdtinker gems at the 'Install Remote Applets' tab
27
+ to install applets you need the ruby zlib library installed
28
+ ")
29
+
30
+ Helptext.update(
31
+ :applet_viewing => "You can get a list of all installed applets by clicking the 'listfiles button'<br>
32
+ To see the text of a install file<br>
33
+ Type in the name of the file you want.<br>
34
+ <p>
35
+ type it without the inf ending
36
+ rwdapplet-0.1<br>
37
+ <p>
38
+ Then click the 'View Installed File' button
39
+ <p>
40
+ If it finds the file it will open it. It displays the text the search box.
41
+ <p>
42
+ You can uninstall applets on this screen")
43
+
44
+ Helptext.update(
45
+ :applet_installation => " You can download an applet created by someone else<br>
46
+ put the file in the zips directory<br>
47
+
48
+ click on the 'list zips' tab<br>
49
+ click on 'list applets available for installing<br>
50
+ <br>
51
+ chose the applet you want<br>
52
+ click on 'install applet'<br>
53
+ If all goes well the applet should be installed.<br>
54
+ You will need to restart rwdtinker to see the new screens<br>
55
+ to install applets you need the ruby zlib library installed")
56
+
57
+ Helptext.update(
58
+ :applet_tinkerbackeditconfiguration => " You can edit the configuration
59
+ <p>
60
+ Remember to reload the configuration variables if you want your
61
+ changes used.")
62
+
63
+ Helptext.update(
64
+ :remotegemapplet_install => " To download and install use the 'Install Remote Applets'
65
+ <br>
66
+ First click on 'List applets in the Remote GEM Repository available for downloading'<br>
67
+ then go to the very bottom to click on the applet you want<br>
68
+ then on the top click 'install remote Gem applet package'
69
+ <br>
70
+ This installs the package in the Gem system<br>
71
+ You still need to install it into rwdtinker - do that in the 'List Zips' tab<br>
72
+ <br>
73
+ For this feature to work, you need<br>
74
+ RubyGems installed<br>
75
+ Variables set correctly in the tinerwin2.cnf file<br>
76
+ $xpcommand, $gemdirectory_withgemfiles and $geminstalled_directory<br>
77
+ the defaults as shipped will normally be for a Debian Linux system <br>
78
+ On Debian Linux, you would usually need to be running rwdtinker as root in order to install RubyGems
79
+ <br><br>
80
+ You can view the list of rwdtinker applets you have installed already by clicking 'view already installed GEM applets'
81
+ "
82
+ )
@@ -0,0 +1,6 @@
1
+ http://rubyforge.org/
2
+ http://rubyforge.org/projects/rwdapplications/
3
+ http://rubycorner.com/
4
+ http://www.rubyinside.com/
5
+ http://www.ruby-lang.org/en/community/weblogs/
6
+ http://statecollegeruby.org/forums/2/topics/4
@@ -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>
@@ -0,0 +1,17 @@
1
+ #help file for rwdfoldeditor
2
+
3
+ Helptext.update( :rwdfoldeditor_generalhelp => "#{Message[:fold_rwdfoldeditor_generalhelp]} ")
4
+
5
+ Helptext.update(
6
+ :foldlinkview_help => "#{Message[:fold_linkview_help]}"
7
+ )
8
+
9
+ Helptext.update(
10
+ :foldlinkutility_help => "#{Message[:fold_linkutility_help]} ")
11
+ # you can choose the link file to work on
12
+ #You can edit links for note pages
13
+
14
+ Helptext.update(
15
+ :foldzipfile_help => "#{Message[:fold_zipfile_help]}")
16
+ #You can zip the fold file transport
17
+ # You can view the fole links
@@ -12,7 +12,7 @@ $rwdjumplink = [""]
12
12
  JumpLink = Hash.new("default")
13
13
  require 'fileutils'
14
14
  DistroName = "rwdwfoldeditor"
15
- DistroVersion="0.05"
15
+ DistroVersion="0.07"
16
16
  load "configuration/#{DistroName}.dist"
17
17
 
18
18
 
data/tests/makedist.rb CHANGED
@@ -14,7 +14,7 @@ require 'fileutils'
14
14
 
15
15
  DistroName = "rwdwfoldeditor"
16
16
 
17
- DistroVersion="0.05"
17
+ DistroVersion="0.07"
18
18
 
19
19
  DistroTitle="#{DistroName}.dist"
20
20
  load "configuration/#{DistroTitle}"
Binary file
Binary file
Binary file
data/zips/temp.rb ADDED
@@ -0,0 +1 @@
1
+ # this file does nothing
Binary file