rwdhypernote 0.11 → 0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (189) hide show
  1. data/Notes/changes.lnk +0 -0
  2. data/Notes/changes.txt +0 -0
  3. data/Readme.txt +452 -130
  4. data/code/01rwdcore/01rwdcore.rb +4 -0
  5. data/code/01rwdcore/02helptexthashbegin.rb +0 -0
  6. data/code/01rwdcore/03helptexthash.rb +1 -9
  7. data/code/01rwdcore/04helptextend.rb +0 -0
  8. data/code/01rwdcore/jumplinkcommand.rb +1 -1
  9. data/code/01rwdcore/openhelpwindow.rb +1 -1
  10. data/code/01rwdcore/returntomain.rb +0 -0
  11. data/code/01rwdcore/rundocuments.rb +0 -0
  12. data/code/01rwdcore/runeditconfiguration.rb +0 -0
  13. data/code/01rwdcore/runhelpabout.rb +0 -0
  14. data/code/01rwdcore/runopentinkerdocument.rb +0 -0
  15. data/code/01rwdcore/rwdtinkerversion.rb +1 -1
  16. data/code/01rwdcore/rwdwindowreturn.rb +0 -0
  17. data/code/01rwdcore/selectiontab.rb +0 -0
  18. data/code/01rwdcore/setuphelpaboutoptions.rb +0 -0
  19. data/code/01rwdcore/setuptinkerdocuments.rb +0 -0
  20. data/code/01rwdcore/test_cases.rb +0 -0
  21. data/code/01rwdcore/test_harness.rb +0 -0
  22. data/code/01rwdcore/uploadreturns.rb +0 -0
  23. data/code/dd0viewphoto/dd0viewphoto.rb +3 -0
  24. data/code/superant.com.hypernote/0uninstallapplet.rb +14 -0
  25. data/code/superant.com.hypernote/archivehypernote.rb +0 -0
  26. data/code/superant.com.hypernote/changehypernotename.rb +0 -0
  27. data/code/superant.com.hypernote/clearhypernotescreendisplay.rb +0 -0
  28. data/code/superant.com.hypernote/clearlinkscreendisplay.rb +0 -0
  29. data/code/superant.com.hypernote/copyfilename.rb +0 -0
  30. data/code/superant.com.hypernote/createnewnote.rb +0 -0
  31. data/code/superant.com.hypernote/createnewnotehtml.rb +0 -0
  32. data/code/superant.com.hypernote/deletehypernoterecord.rb +0 -0
  33. data/code/superant.com.hypernote/helptexthashrwdhypernote.rb +0 -0
  34. data/code/superant.com.hypernote/hyperlinkcreatelinkfile.rb +0 -0
  35. data/code/superant.com.hypernote/listdirectories.rb +2 -0
  36. data/code/superant.com.hypernote/listhypernotelinks.rb +0 -0
  37. data/code/superant.com.hypernote/listhypernotes.rb +0 -0
  38. data/code/superant.com.hypernote/listlinknotes.rb +0 -0
  39. data/code/superant.com.hypernote/loadconfigurationrecord.rb +2 -2
  40. data/code/superant.com.hypernote/loadconfigurationvariables.rb +3 -2
  41. data/code/superant.com.hypernote/loadhtmlnoterecord.rb +1 -1
  42. data/code/superant.com.hypernote/loadhtmlnoterecord2.rb +1 -1
  43. data/code/superant.com.hypernote/loadlinksrecord.rb +0 -0
  44. data/code/superant.com.hypernote/loadnoterecord.rb +1 -1
  45. data/code/superant.com.hypernote/loadnoterecordhtml.rb +1 -1
  46. data/code/superant.com.hypernote/loadnoterecordhtml2.rb +1 -1
  47. data/code/superant.com.hypernote/openhelpwindowrwdhyernote.rb +0 -0
  48. data/code/superant.com.hypernote/{returntomain.rb → runhypernote.rb} +3 -3
  49. data/code/superant.com.hypernote/runwrdhypernotetxtwindow.rb +0 -0
  50. data/code/superant.com.hypernote/rwdhypernotereloadhtml.rb +0 -0
  51. data/code/superant.com.hypernote/rwdhypernoteresetdir.rb +0 -0
  52. data/code/superant.com.hypernote/rwdtinkerversion.rb +1 -1
  53. data/code/superant.com.hypernote/saveconfigurationrecord.rb +2 -1
  54. data/code/superant.com.hypernote/savehtmlhypernoterecord.rb +0 -0
  55. data/code/superant.com.hypernote/savehypernoterecord.rb +0 -0
  56. data/code/superant.com.hypernote/savelinkrecord.rb +0 -0
  57. data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +0 -0
  58. data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +0 -0
  59. data/code/superant.com.rwdtinkerbackwindow/initiateapplets.rb +239 -0
  60. data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +3 -1
  61. data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +17 -4
  62. data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +0 -0
  63. data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +0 -0
  64. data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +0 -0
  65. data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +0 -0
  66. data/code/superant.com.rwdtinkerbackwindow/listzips.rb +0 -0
  67. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +0 -0
  68. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb +0 -0
  69. data/code/superant.com.rwdtinkerbackwindow/network.rb +0 -0
  70. data/code/superant.com.rwdtinkerbackwindow/openappletname.rb +0 -0
  71. data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +1 -5
  72. data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +0 -0
  73. data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +19 -6
  74. data/code/superant.com.rwdtinkerbackwindow/removeappletvariables.rb +52 -0
  75. data/code/superant.com.rwdtinkerbackwindow/runremoteinstall.rb +0 -0
  76. data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +4 -0
  77. data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +0 -0
  78. data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +0 -0
  79. data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +0 -0
  80. data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +0 -0
  81. data/code/zz0applicationend/zz0end.rb +0 -0
  82. data/configuration/language.dist +2 -1
  83. data/configuration/rwdapplicationidentity.dist +2 -2
  84. data/configuration/rwdtinker.dist +5 -6
  85. data/configuration/{rwdhypernote.dist → rwdwhypernote-0.12.dist} +5 -2
  86. data/configuration/tinkerwin2variables.dist +3 -3
  87. data/ev/browser.rb +0 -0
  88. data/ev/ftools.rb +0 -0
  89. data/ev/mime.rb +0 -0
  90. data/ev/net.rb +2 -2
  91. data/ev/ruby.rb +0 -0
  92. data/ev/rwd.rb +30 -10
  93. data/ev/sgml.rb +0 -0
  94. data/ev/thread.rb +0 -0
  95. data/ev/tree.rb +0 -0
  96. data/ev/xml.rb +0 -0
  97. data/extras/rconftool.rb +0 -0
  98. data/extras/zip/ioextras.rb +0 -0
  99. data/extras/zip/stdrubyext.rb +0 -0
  100. data/extras/zip/tempfile_bugfixed.rb +0 -0
  101. data/extras/zip/zip.rb +3 -2
  102. data/extras/zip/zipfilesystem.rb +0 -0
  103. data/extras/zip/ziprequire.rb +0 -0
  104. data/gui/00coreguibegin/applicationguitop.rwd +1 -1
  105. data/gui/frontwindow0/viewlogo/cc0openphoto.rwd +22 -0
  106. data/gui/frontwindowselectionbegin/selectiontabbegin/00selectiontabbegin.rwd +1 -1
  107. data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/jumplinkcommands.rwd +2 -2
  108. data/gui/frontwindowselectionzend/viewselectionzend/wwselectionend.rwd +0 -0
  109. data/gui/frontwindowselectionzend/viewselectionzend/zzdocumentbegin.rwd +0 -0
  110. data/gui/frontwindowtdocuments/superant.com.documents/tinkerdocuments.rwd +2 -2
  111. data/gui/helpaboutbegin/superant.com.helpaboutbegin/zzdocumentend.rwd +1 -1
  112. data/gui/helpaboutbegin/superant.com.helpaboutbegin/zzzrwdlasttab.rwd +0 -0
  113. data/gui/helpaboutbegin/superant.com.helpaboutbegin/zzzzhelpscreenstart.rwd +1 -1
  114. data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/helpabouttab.rwd +2 -2
  115. data/gui/helpaboutzend/superant.com.helpaboutend/helpscreenend.rwd +0 -0
  116. data/gui/helpaboutzend/superant.com.helpaboutend/zhelpscreenstart2.rwd +1 -1
  117. data/gui/helpaboutzend/superant.com.helpaboutend/zzzzhelpabout2.rwd +2 -2
  118. data/gui/helpaboutzend/superant.com.helpaboutend/zzzzhelpscreen2end.rwd +0 -0
  119. data/gui/tinkerbackwindows/superant.com.hypernote/10appletbegin.rwd +4 -0
  120. data/gui/{frontwindow0 → tinkerbackwindows}/superant.com.hypernote/10htmlnote.rwd +0 -0
  121. data/gui/{frontwindow0 → tinkerbackwindows}/superant.com.hypernote/15editnote.rwd +0 -0
  122. data/gui/{frontwindow0 → tinkerbackwindows}/superant.com.hypernote/25html2note.rwd +0 -0
  123. data/gui/{frontwindow0 → tinkerbackwindows}/superant.com.hypernote/67viewconfiguration.rwd +0 -0
  124. data/gui/tinkerbackwindows/superant.com.hypernote/81jumplinkcommands.rwd +17 -0
  125. data/gui/tinkerbackwindows/superant.com.hypernote/9end.rwd +6 -0
  126. data/gui/tinkerbackwindows/superant.com.hypernotetxt/00appname.rwd +0 -0
  127. data/gui/tinkerbackwindows/superant.com.hypernotetxt/10viewnote.rwd +0 -0
  128. data/gui/tinkerbackwindows/superant.com.hypernotetxt/20editlinks.rwd +0 -0
  129. data/gui/tinkerbackwindows/superant.com.hypernotetxt/30noteutilities.rwd +0 -0
  130. data/gui/tinkerbackwindows/superant.com.hypernotetxt/67viewconfiguration.rwd +0 -0
  131. data/gui/tinkerbackwindows/superant.com.hypernotetxt/81jumplinkcommands.rwd +0 -0
  132. data/gui/tinkerbackwindows/superant.com.hypernotetxt/9backend.rwd +0 -0
  133. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/1appname.rwd +1 -1
  134. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd +9 -10
  135. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/45installremotezip.rwd +5 -5
  136. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd +9 -9
  137. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd +2 -2
  138. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd +1 -1
  139. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd +3 -3
  140. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/9backend.rwd +0 -0
  141. data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd +0 -0
  142. data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/9end.rwd +0 -0
  143. data/gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd +2 -2
  144. data/gui/tinkerbackwindows/superant.com.versionwindow/helpaboutwindow.rwd +3 -3
  145. data/gui/zzcoreguiend/tinkerapplicationguiend/yy9rwdend.rwd +0 -0
  146. data/init.rb +5 -5
  147. data/installed/hypernotedata2.inf +12 -0
  148. data/installed/rwdwhypernote-0.12.inf +10 -0
  149. data/installed/temp.rb +1 -0
  150. data/lang/en/rwdcore/languagefile.rb +57 -15
  151. data/lang/es/rwdcore/languagefile-es.rb +61 -13
  152. data/lang/fr/rwdcore/languagefile.rb +64 -0
  153. data/lang/jp/rwdcore/languagefile.rb +69 -6
  154. data/lang/nl/rwdcore/languagefile.rb +56 -0
  155. data/lib/temp.rb +0 -0
  156. data/rwd_files/HowTo_HyperNote.txt +8 -1
  157. data/rwd_files/HowTo_Tinker.txt +27 -0
  158. data/rwd_files/HowTo_TinkerWin2.txt +0 -0
  159. data/rwd_files/Readme.txt +0 -0
  160. data/rwd_files/RubyWebDialogs.html +0 -0
  161. data/rwd_files/favicon.ico +0 -0
  162. data/rwd_files/rdoc-style.css +0 -0
  163. data/rwd_files/rwdapplications.html +0 -0
  164. data/rwd_files/tinker.png +0 -0
  165. data/rwdconfig.dist +5 -3
  166. data/rwdhypernote.rb +1 -0
  167. data/tests/checkdepends.sh +0 -0
  168. data/tests/cleancnf.sh +2 -1
  169. data/tests/makedist-rwdwhypernote.rb +56 -0
  170. data/tests/makedist.rb +11 -5
  171. data/tests/rdep.rb +0 -0
  172. data/tests/totranslate.lang +0 -0
  173. data/zips/rwdwcalc-0.61.zip +0 -0
  174. data/zips/rwdwgutenberg-0.09.zip +0 -0
  175. data/zips/rwdwhypernote-0.12.zip +0 -0
  176. data/zips/rwdwshell-1.04.zip +0 -0
  177. data/zips/temp.rb +1 -0
  178. data/zips/wrubyslippers-1.06.zip +0 -0
  179. metadata +44 -34
  180. data/Notes/hypernote/hypernote01.html +0 -1
  181. data/Notes/hypernote/hypernote02.txt +0 -1
  182. data/Notes/rwdtinker/RwdtinkerProgrammingQuickStart.htm +0 -14
  183. data/Notes/rwdtinker/RwdtinkerProgrammingQuickStart.lnk +0 -1
  184. data/Notes/rwdtinker/newnote.txt +0 -1
  185. data/Notes/rwdtinker/rwdtinker.html +0 -9
  186. data/code/superant.com.hypernote/jumplinkupdate.rb +0 -7
  187. data/code/superant.com.rwdtinkerbackwindow/controlclient.rb +0 -96
  188. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdcontrol.rwd +0 -33
  189. data/zips/rwdahelloworld-0.5.zip +0 -0
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ def viewphoto
2
+ @rwd_window = "photo"
3
+ end
@@ -0,0 +1,14 @@
1
+
2
+ def rwdwhypernote_0_12()
3
+ $tinkerdocumentsarray.delete_if {|x| x == "HowTo_HyperNote.txt"}
4
+ $tinkerhelpaboutarray.delete_if {|x| x == "RwdHypernote"}
5
+ Helptext.delete_if {|key, value| key == :rwdhypernote_generalhelp}
6
+ Helptext.delete_if {|key, value| key == :hypernoteedit_help }
7
+ Helptext.delete_if {|key, value| key == :hypernoteutility_help }
8
+ Helptext.delete_if {|key, value| key == :hypernotelinks_help }
9
+ Helptext.delete_if {|key, value| key == :rwdhypernote_sync }
10
+ Helptext.delete_if {|key, value| key == :rwdhypernote_configuration }
11
+ $rwdjumplink.delete_if {|x| x == "RwdHypernote"}
12
+ $rwdjumplink.delete_if {|x| x == "RwdHypernoteTXT"}
13
+
14
+ end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -9,6 +9,8 @@ def rwdhypernotedirectories
9
9
 
10
10
  fileList = Dir.new(temp_dir).entries.sort.reverse.delete_if { |x| (x =~ /lnk$|txt$/) }
11
11
  @noterecordsresult = ""
12
+ @noterecordsresulth = ""
13
+
12
14
  @notedirectoriesresult = fileList.rwd_method("fillrwdhypernotedirs")
13
15
  end
14
16
  end
File without changes
File without changes
File without changes
@@ -3,13 +3,13 @@
3
3
 
4
4
  require 'fileutils'
5
5
 
6
- @a_hypconfigurationfilename = "rwdhypernote.cnf"
6
+ @a_hypconfigurationfilename = "rwdwhypernote-" + RwdHyperNoteVersion + ".cnf"
7
7
 
8
8
 
9
9
  begin # exception trapped block
10
10
 
11
11
  Dir.chdir($progdir)
12
- fileName = File.join(ConfigurationDir, "rwdhypernote.cnf")
12
+ fileName = File.join(ConfigurationDir, @a_hypconfigurationfilename )
13
13
 
14
14
 
15
15
  fd = File.open(fileName,"r")
@@ -1,7 +1,8 @@
1
1
  # this method loads the on screen variables into the running class
2
2
  def loadrwdhypernoteconfigurationvariables
3
-
4
- configfiletoload = File.join(ConfigurationDir,"rwdhypernote.cnf")
3
+
4
+ tmpfilename = "rwdwhypernote-" + RwdHyperNoteVersion + ".cnf"
5
+ configfiletoload = File.join(ConfigurationDir, tmpfilename )
5
6
  begin
6
7
  load configfiletoload
7
8
  @extrahypconfigdatadisplay = ""
@@ -2,7 +2,7 @@
2
2
  def loadhtmlnoterecord
3
3
 
4
4
  require 'fileutils'
5
- @a_eventfilename = $currenteventtext
5
+
6
6
 
7
7
  begin # exception trapped block
8
8
 
@@ -2,7 +2,7 @@
2
2
  def loadhtmlnoterecord2
3
3
 
4
4
  require 'fileutils'
5
- @a_eventfilename = $currenteventtext
5
+
6
6
 
7
7
  begin # exception trapped block
8
8
 
File without changes
@@ -2,7 +2,7 @@
2
2
  def loadnoterecord
3
3
 
4
4
  require 'fileutils'
5
- @a_eventfilename = $currenteventtext
5
+
6
6
 
7
7
  begin # exception trapped block
8
8
 
@@ -2,7 +2,7 @@
2
2
  def loadnoterecordhtml
3
3
 
4
4
  require 'fileutils'
5
- @a_eventfilename = $currenteventtext
5
+
6
6
 
7
7
  begin # exception trapped block
8
8
 
@@ -2,7 +2,7 @@
2
2
  def loadnoterecordhtml
3
3
 
4
4
  require 'fileutils'
5
- @a_eventfilename = $currenteventtext
5
+
6
6
 
7
7
  begin # exception trapped block
8
8
 
@@ -3,8 +3,8 @@
3
3
  # For more information about see http://www.rubyforge.net/projects/rwdapplications
4
4
 
5
5
  # call the window
6
- def returntomainx
7
- @rwd_window = "main"
8
- @rwd_tab = "rwdscheduleselectiontab"
6
+ def runrwdhypernotemain
7
+ @rwd_window = "rwdhypernotewindow"
8
+ @rwd_tab = "superantcomhtmlnoterecordfile"
9
9
  end
10
10
 
File without changes
@@ -4,7 +4,7 @@
4
4
 
5
5
  # return the version constant defined in the config file
6
6
  def rwdhypernotehelpaboutsetup
7
- return ["RwdHypernote","(c) 2005 Steven Gibson ","Version #{RwdHyperNoteVersion}"]
7
+ return ["RwdHypernote","(c) 2005-2008 Steven Gibson ","Version #{RwdHyperNoteVersion}"]
8
8
  end
9
9
 
10
10
 
@@ -1,8 +1,9 @@
1
1
  # this method adds a new address record
2
2
  def saverwdhypernoteconfiguration
3
3
  require 'fileutils'
4
+
4
5
 
5
- newname = "rwdhypernote.cnf" # grab the filename to create
6
+ newname = "rwdwhypernote" + RwdHyperNoteVersion + ".cnf" # grab the filename to create
6
7
  newdata = @a_hypconfigurationfile
7
8
 
8
9
 
File without changes
File without changes
@@ -0,0 +1,239 @@
1
+
2
+ #***********************************************************************
3
+ #* Rwd/Tinker -- A Ruby program for the RudyWebDialog.
4
+ #* Copyright (c) 2004 - 2005 by Steven Gibson. All Rights Reserved.
5
+ #*
6
+ #* This library is free software; you can redistribute it and/or
7
+ #* modify it under the terms of the GNU General Public
8
+ #* License as published by the Free Software Foundation; either
9
+ #* .
10
+ #*
11
+ #* These files are distributed in the hope that they will be useful,
12
+ #* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ #* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ #* General Public License for more details.
15
+ #*
16
+ #* You should have received a copy of the GNU General Public
17
+ #* License along with these files; if not, write to the Free Software
18
+ #* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
+ #*
20
+ #* For further information please contact the author by e-mail
21
+ #* at "smalllinux@gmail.com".
22
+ #***********************************************************************/
23
+
24
+
25
+
26
+ # integrate the new configuration files
27
+ def initiateapplet(nametextlocal)
28
+
29
+ debuginitiate = 0
30
+
31
+ if $DEBUG
32
+ $stderr.puts "starting config load with: #{nametextlocal}"
33
+ end
34
+
35
+
36
+ Dir.chdir($progdir ) #changes the current working directory
37
+
38
+ @confignew = "configuration/" + "#{nametextlocal}.cnf"
39
+ @configdist = "configuration/" + "#{nametextlocal}.dist"
40
+ Rconftool::install(@configdist,@confignew)
41
+
42
+ begin
43
+
44
+ configfileload = File.open(@configdist){|f| f.read}
45
+
46
+ eval configfileload #load config file
47
+
48
+ setuphelpaboutoptions # update the help about list
49
+ setuptinkerdocuments # update the document pull down list
50
+ runhelpwindow # update the help menu
51
+ showjumplinkoptions # update the application link menu
52
+ runrwdtinkerbackwindow # back to applet window
53
+
54
+ rescue
55
+
56
+ if $DEBUG
57
+ $stderr.puts "error in initiateapplets - config load"
58
+ end
59
+ debuginitiate += 1
60
+ end
61
+ tempguistorage = $rwd_gui_tinker # if gui load fails restore old
62
+ begin # error trap
63
+
64
+ # build the actual GUI from the gui parts
65
+ $tempdoc = " "
66
+ #get a list of the files and subdirectories on the starting directory only
67
+ a = Array.new(Dir[GuiDir].entries.sort)
68
+ #loop through the list, ignore the files and add all new directories found
69
+ a.each do |x|
70
+ #if a directory...
71
+ if(test(?d,x))
72
+ #use this new dir find to add to the original list of directories
73
+ @@root = x + "/**"
74
+ #adds the new ones to the array
75
+ b = Dir[@@root].entries.sort
76
+ b.each do |x|
77
+ if(test(?d,x))
78
+ a.push(x) #appends to the end of the array...
79
+ end
80
+ end
81
+ end
82
+ end
83
+ a.each do |x|
84
+ #if it is a file...
85
+ if(!test(?d,x))
86
+ a.delete(x)
87
+
88
+ else #it is a directory...
89
+ loadguifile(x + "/**")
90
+
91
+
92
+ end
93
+ end
94
+
95
+ $rwd_gui_tinker = $tempdoc
96
+
97
+
98
+ rescue
99
+ $rwd_gui_tinker = tempguistorage # restore old gui
100
+ if $DEBUG
101
+ $stderr.puts "error in initiateapplets - gui building"
102
+ end
103
+
104
+ debuginitiate += 1
105
+ end
106
+
107
+ begin # error trap
108
+ # now load in the code files
109
+
110
+ $tempdoc = ""
111
+ tempcodeinstallline = ""
112
+
113
+ @fileName = "installed/" + nametextlocal + ".inf"
114
+
115
+ tmpfilearray = File.readlines(@fileName)
116
+
117
+ tmpfilearray.each do |line|
118
+
119
+ tempcodeinstallline = line.chomp
120
+ if tempcodeinstallline.include?('code/')
121
+ findfiles(tempcodeinstallline + "/**")
122
+ tempcoderesult = eval( $tempdoc ) # read the program code and evaluate
123
+ end
124
+ end
125
+
126
+ # resultend = tempcodeinstallline .index("\n",resultstart)
127
+ tempresult = @fileName
128
+
129
+ return " applet loading successful " + tempresult
130
+
131
+ rescue
132
+ if $DEBUG
133
+ $stderr.puts "error in initiateapplets - code building"
134
+ end
135
+ debuginitiate += 1
136
+
137
+
138
+ end
139
+
140
+ if debuginitiate > 0
141
+ return " initiateapplet .."
142
+ else
143
+ return " initiateapplet success"
144
+ end
145
+
146
+ end
147
+
148
+ =begin
149
+
150
+
151
+ Dir.chdir($progdir) # change back to top program directory
152
+
153
+ # build the English Language hash file from the parts
154
+ languagehashvariable = 'Message = Hash.new { |hh, kk| hh[kk] = "ERROR: Message not found: #{kk.inspect}."; hh[kk] }
155
+ langmessage = {' + "\n"
156
+ startlangdir = File.join(LangDir,"en")
157
+ #get a list of the files and subdirectories on the starting directory only
158
+ alanghash = Array.new(Dir[startlangdir].entries.sort)
159
+ #loop through the list, ignore the files and add all new directories found
160
+ alanghash.each do |x|
161
+ #if a directory...
162
+ if(test(?d,x))
163
+ # add to the original list of directories
164
+ @@tmproot = x + "/**"
165
+ #adds the new ones to the array
166
+ blanghash = Dir[@@tmproot].entries.sort
167
+ blanghash.each do |x|
168
+ if(test(?d,x))
169
+ alanghash.push(x) #appends to the end of the array...
170
+ end
171
+ end
172
+ end
173
+ end
174
+ alanghash.each do |x|
175
+ #if it is a file...
176
+ if(!test(?d,x))
177
+ alanghash.delete(x)
178
+ else #it is a directory...
179
+ findfiles(x + "/**")
180
+ end
181
+ end
182
+
183
+
184
+ #writes the contents of doc into the languagehashvariable
185
+ languagehashvariable = languagehashvariable + $tempdoc + "} ; langmessage.each { |kk, vv| Message[kk] = vv }"
186
+
187
+ # END of en Lang building
188
+ $tempdoc = " "
189
+ Dir.chdir($progdir) # change back to top program directory
190
+
191
+ # build the local Language hash file from the parts
192
+ startlangdir = File.join(LangDir,$lang)
193
+ #get a list of the files and subdirectories on the starting directory only
194
+ alanghash = Array.new(Dir[startlangdir].entries.sort)
195
+ #loop through the list, ignore the files and add all new directories found
196
+ alanghash.each do |x|
197
+ #if a directory...
198
+ if(test(?d,x))
199
+ # add to the original list of directories
200
+ @@tmproot = x + "/**"
201
+ #adds the new ones to the array
202
+ blanghash = Dir[@@tmproot].entries.sort
203
+ blanghash.each do |x|
204
+ if(test(?d,x))
205
+ alanghash.push(x) #appends to the end of the array...
206
+ end
207
+ end
208
+ end
209
+ end
210
+ alanghash.each do |x|
211
+ #if it is a file...
212
+ if(!test(?d,x))
213
+ alanghash.delete(x)
214
+ else #it is a directory...
215
+ findfiles(x + "/**")
216
+ end
217
+ end
218
+
219
+
220
+ #writes the contents of doc into the variable
221
+ languagehashvariable = languagehashvariable + " ; Message.update(" + $tempdoc + ' :rwdtinker => "Rwdtinker" ) '
222
+
223
+
224
+ $tempdoc = " "
225
+
226
+ Dir.chdir($progdir) # change back to top program directory
227
+
228
+ temp = eval( languagehashvariable )
229
+
230
+ $tempdoc = " "
231
+
232
+
233
+
234
+
235
+
236
+
237
+ =end
238
+
239
+
@@ -12,10 +12,12 @@ def installapplet
12
12
 
13
13
  zf = Zip::ZipFile.new(fileName)
14
14
  zf.sort.each {
15
+
15
16
  |entry|
16
17
  zf.extract(entry.to_s, entry.to_s)
17
18
  }
18
- @installapplettext = Message[:applet_installed]
19
+ @returninitateresults = initiateapplet(nametext)
20
+ @installapplettext = Message[:applet_installed] + " " + @returninitateresults
19
21
 
20
22
  rescue
21
23
  @installapplettext = "unzip error - applet may not be installed correctly"
@@ -12,10 +12,23 @@ def installgemapplet
12
12
  |entry|
13
13
  zf.extract(entry.to_s, entry.to_s)
14
14
  }
15
- @installapplettext = Message[:applet_installed]
16
-
17
- rescue
18
- @installapplettext = "unzip error - applet may not be installed correctly"
15
+
16
+ rescue
17
+
18
+ if $DEBUG
19
+ $stderr.puts "unzip error - applet may not be installed correctly"
20
+ end
21
+ @installapplettext = " .. "
22
+
19
23
  end # exception rescue
24
+
25
+ @nametextbase = File.basename(nametext)
26
+ @returninitateresults = initiateapplet(@nametextbase)
27
+ @installapplettext = Message[:applet_installed] + " " + @returninitateresults
28
+
29
+
30
+ RWDWindow.new($rwd_gui_tinker, @rwd_window).render("DEFAULT")
31
+
32
+
20
33
  end
21
34
 
File without changes
File without changes
File without changes
File without changes
@@ -18,11 +18,7 @@ def runhelpwindowtinkerwin2
18
18
  end
19
19
  if @rwd_tab == "editconfigurationfile"
20
20
  $help_topic = "applet_tinkerbackeditconfiguration"
21
-
22
- end
23
- if @rwd_tab == "rwdremotecontrol"
24
- $help_topic = "remote_control"
25
-
21
+
26
22
  end
27
23
  if @rwd_tab == "superantcomremotezipsinstall"
28
24
  $help_topic = "remotegemapplet_install"
@@ -3,8 +3,17 @@ def removeapplet
3
3
  require 'fileutils'
4
4
  nametext = "%s" % [@a_removeapplet]
5
5
 
6
+ fileName = "installed/" + nametext + ".inf"
7
+ @appletremoveresult = removeappletvariables(nametext)
8
+
9
+ setuphelpaboutoptions # update the help about list
10
+ setuptinkerdocuments # update the document pull down list
11
+ runhelpwindow # update the help menu
12
+ showjumplinkoptions # update the application link menu
13
+ runrwdtinkerbackwindow # back to applet window
14
+
6
15
  begin # exception trapped block
7
- fileName = "installed/" + nametext + ".inf"
16
+
8
17
  count = 0
9
18
  fd = File.open(fileName,"r")
10
19
 
@@ -19,14 +28,18 @@ def removeapplet
19
28
  count = 1
20
29
  }
21
30
  fd.close
31
+
32
+
22
33
 
23
34
  FileUtils.rm_rf( fileName)
24
-
25
-
26
- @removeapplettext = "applet files removed! - restart rwd to finish uninstalling"
27
-
35
+
36
+
37
+ @removeapplettext = "applet files removed!" + " " + @appletremoveresult
38
+
39
+ runbackwindowappletremove
40
+
28
41
  rescue
29
- @removeapplettext = "\n" + "error"
42
+ @removeapplettext = " removeapplet" + " .."
30
43
 
31
44
  end # exception rescue
32
45
 
@@ -0,0 +1,52 @@
1
+
2
+ #***********************************************************************
3
+ #* Rwd/Tinker -- A Ruby program for the RudyWebDialog.
4
+ #* Copyright (c) 2004 - 2005 by Steven Gibson. All Rights Reserved.
5
+ #*
6
+ #* This library is free software; you can redistribute it and/or
7
+ #* modify it under the terms of the GNU General Public
8
+ #* License as published by the Free Software Foundation; either
9
+ #* .
10
+ #*
11
+ #* These files are distributed in the hope that they will be useful,
12
+ #* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ #* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ #* General Public License for more details.
15
+ #*
16
+ #* You should have received a copy of the GNU General Public
17
+ #* License along with these files; if not, write to the Free Software
18
+ #* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
+ #*
20
+ #* For further information please contact the author by e-mail
21
+ #* at "steven@superant.com".
22
+ #***********************************************************************/
23
+
24
+ def removeappletvariables(tempremovename)
25
+
26
+ begin # exception trapped block
27
+ if $DEBUG
28
+ $stderr.puts "in removeappletvariables"
29
+ end
30
+ # removefileinf = File.open(tempremove){|f| f.read}
31
+
32
+ temp = tempremovename.gsub("-","_")
33
+ removemethod = temp.gsub(".","_")
34
+
35
+
36
+ send "#{removemethod}"
37
+
38
+ tmpremoveapplet = " successfull applet variable removal "
39
+
40
+ rescue
41
+
42
+ tmpremoveapplet = " removeappletvariables .."
43
+
44
+ end # exception rescue
45
+
46
+ return tmpremoveapplet
47
+
48
+ end
49
+
50
+
51
+
52
+
@@ -9,3 +9,7 @@ def runrwdtinkerbackwindow
9
9
  @rwd_tab = "rwdzipslister"
10
10
  end
11
11
 
12
+ def runbackwindowappletremove
13
+ @rwd_window = "tinkerbackwindow"
14
+ @rwd_tab = "filelister"
15
+ end
File without changes