rwddialogmap 0.01

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. data/Readme.txt +475 -0
  2. data/bin/rwddialogmap +19 -0
  3. data/code/01rwdcore/01rwdcore.rb +29 -0
  4. data/code/01rwdcore/02helptexthashbegin.rb +4 -0
  5. data/code/01rwdcore/03helptexthash.rb +23 -0
  6. data/code/01rwdcore/04helptextend.rb +6 -0
  7. data/code/01rwdcore/jumplinkcommand.rb +26 -0
  8. data/code/01rwdcore/openhelpwindow.rb +31 -0
  9. data/code/01rwdcore/returntomain.rb +10 -0
  10. data/code/01rwdcore/rundocuments.rb +10 -0
  11. data/code/01rwdcore/runeditconfiguration.rb +10 -0
  12. data/code/01rwdcore/runhelpabout.rb +10 -0
  13. data/code/01rwdcore/runopentinkerdocument.rb +7 -0
  14. data/code/01rwdcore/rwdtinkerversion.rb +22 -0
  15. data/code/01rwdcore/rwdwindowreturn.rb +9 -0
  16. data/code/01rwdcore/selectiontab.rb +9 -0
  17. data/code/01rwdcore/setuphelpaboutoptions.rb +13 -0
  18. data/code/01rwdcore/setuptinkerdocuments.rb +6 -0
  19. data/code/01rwdcore/test_cases.rb +109 -0
  20. data/code/01rwdcore/test_harness.rb +13 -0
  21. data/code/01rwdcore/uploadreturns.rb +62 -0
  22. data/code/dd0viewphoto/dd0viewphoto.rb +3 -0
  23. data/code/superant.com.dialogmap/0uninstallapplet.rb +12 -0
  24. data/code/superant.com.dialogmap/changedir.rb +31 -0
  25. data/code/superant.com.dialogmap/clearhypernotescreendisplay.rb +14 -0
  26. data/code/superant.com.dialogmap/clearlinkscreendisplay.rb +13 -0
  27. data/code/superant.com.dialogmap/createnewnote.rb +28 -0
  28. data/code/superant.com.dialogmap/helptexthashrwdhypernote.rb +38 -0
  29. data/code/superant.com.dialogmap/launchurlfile.rb +35 -0
  30. data/code/superant.com.dialogmap/listdirectories.rb +19 -0
  31. data/code/superant.com.dialogmap/listdirectories3.rb +25 -0
  32. data/code/superant.com.dialogmap/listnotedirshtml3.rb +54 -0
  33. data/code/superant.com.dialogmap/loadconfigurationrecord.rb +22 -0
  34. data/code/superant.com.dialogmap/loadconfigurationvariables.rb +14 -0
  35. data/code/superant.com.dialogmap/loadhtmlnoterecord.rb +24 -0
  36. data/code/superant.com.dialogmap/openhelpwindowrwdhyernote.rb +38 -0
  37. data/code/superant.com.dialogmap/runhypernote.rb +10 -0
  38. data/code/superant.com.dialogmap/runwrdhypernotetxtwindow.rb +10 -0
  39. data/code/superant.com.dialogmap/rwdhypernoteresetdir.rb +7 -0
  40. data/code/superant.com.dialogmap/rwdtinkerversion.rb +10 -0
  41. data/code/superant.com.dialogmap/saveconfigurationrecord.rb +20 -0
  42. data/code/superant.com.dialogmap/savelinkrecord.rb +23 -0
  43. data/code/superant.com.dialogmap/viewdialogmaphtml3.rb +66 -0
  44. data/code/superant.com.dialogmap/xmlprettyprint.rb +65 -0
  45. data/code/superant.com.dialogmap/xmlprettyprint2.rb +74 -0
  46. data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +19 -0
  47. data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +61 -0
  48. data/code/superant.com.rwdtinkerbackwindow/initiateapplets.rb +240 -0
  49. data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +34 -0
  50. data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +20 -0
  51. data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +12 -0
  52. data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +53 -0
  53. data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +12 -0
  54. data/code/superant.com.rwdtinkerbackwindow/listzips.rb +33 -0
  55. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +22 -0
  56. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb +14 -0
  57. data/code/superant.com.rwdtinkerbackwindow/network.rb +87 -0
  58. data/code/superant.com.rwdtinkerbackwindow/openappletname.rb +19 -0
  59. data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +38 -0
  60. data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +24 -0
  61. data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +46 -0
  62. data/code/superant.com.rwdtinkerbackwindow/removeappletvariables.rb +52 -0
  63. data/code/superant.com.rwdtinkerbackwindow/runremoteinstall.rb +11 -0
  64. data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +15 -0
  65. data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +13 -0
  66. data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +19 -0
  67. data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +22 -0
  68. data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +24 -0
  69. data/code/zz0applicationend/zz0end.rb +4 -0
  70. data/configuration/language.dist +8 -0
  71. data/configuration/rwdapplicationidentity.dist +3 -0
  72. data/configuration/rwdtinker.dist +15 -0
  73. data/configuration/rwdwdialogmap-0.01.dist +13 -0
  74. data/configuration/tinkerwin2variables.dist +18 -0
  75. data/gui/00coreguibegin/applicationguitop.rwd +4 -0
  76. data/gui/frontwindow0/cc0openphoto.rwd +22 -0
  77. data/gui/frontwindowselections/00selectiontabbegin.rwd +11 -0
  78. data/gui/frontwindowselections/jumplinkcommands.rwd +15 -0
  79. data/gui/frontwindowselections/wwselectionend.rwd +3 -0
  80. data/gui/frontwindowtdocuments/00documentbegin.rwd +6 -0
  81. data/gui/frontwindowtdocuments/tinkerdocuments.rwd +14 -0
  82. data/gui/frontwindowtdocuments/zzdocumentend.rwd +8 -0
  83. data/gui/helpaboutbegin/zzzrwdlasttab.rwd +6 -0
  84. data/gui/helpaboutbegin/zzzzhelpscreenstart.rwd +3 -0
  85. data/gui/helpaboutbegin/zzzzzzhelpabouttab.rwd +15 -0
  86. data/gui/helpaboutzend/helpscreenend.rwd +3 -0
  87. data/gui/helpaboutzend/zhelpscreenstart2.rwd +3 -0
  88. data/gui/helpaboutzend/zzzzhelpabout2.rwd +15 -0
  89. data/gui/helpaboutzend/zzzzhelpscreen2end.rwd +3 -0
  90. data/gui/tinkerbackwindows/superant.com.dialogmap/10appletbegin.rwd +4 -0
  91. data/gui/tinkerbackwindows/superant.com.dialogmap/12dialogview.rwd +65 -0
  92. data/gui/tinkerbackwindows/superant.com.dialogmap/15aviewxml.rwd +32 -0
  93. data/gui/tinkerbackwindows/superant.com.dialogmap/17aviewxml.rwd +28 -0
  94. data/gui/tinkerbackwindows/superant.com.dialogmap/21editnote.rwd +33 -0
  95. data/gui/tinkerbackwindows/superant.com.dialogmap/67viewconfiguration.rwd +29 -0
  96. data/gui/tinkerbackwindows/superant.com.dialogmap/81jumplinkcommands.rwd +17 -0
  97. data/gui/tinkerbackwindows/superant.com.dialogmap/9end.rwd +6 -0
  98. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/1appname.rwd +5 -0
  99. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd +41 -0
  100. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/45installremotezip.rwd +44 -0
  101. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd +44 -0
  102. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd +30 -0
  103. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd +29 -0
  104. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd +17 -0
  105. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/9backend.rwd +6 -0
  106. data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd +31 -0
  107. data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/9end.rwd +4 -0
  108. data/gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd +19 -0
  109. data/gui/tinkerbackwindows/superant.com.versionwindow/helpaboutwindow.rwd +17 -0
  110. data/gui/zzcoreguiend/yy9rwdend.rwd +4 -0
  111. data/init.rb +277 -0
  112. data/installed/dialogmapdata2.inf +2 -0
  113. data/installed/rwdwdialogmap-0.01.inf +8 -0
  114. data/installed/temp.rb +1 -0
  115. data/lang/en/rwdcore/languagefile.rb +58 -0
  116. data/lang/es/rwdcore/languagefile-es.rb +62 -0
  117. data/lang/fr/rwdcore/languagefile.rb +64 -0
  118. data/lang/jp/rwdcore/languagefile.rb +72 -0
  119. data/lang/nl/rwdcore/languagefile.rb +75 -0
  120. data/lib/rconftool.rb +387 -0
  121. data/lib/rwd/browser.rb +123 -0
  122. data/lib/rwd/ftools.rb +174 -0
  123. data/lib/rwd/mime.rb +328 -0
  124. data/lib/rwd/net.rb +876 -0
  125. data/lib/rwd/ruby.rb +889 -0
  126. data/lib/rwd/rwd.rb +1422 -0
  127. data/lib/rwd/sgml.rb +236 -0
  128. data/lib/rwd/thread.rb +63 -0
  129. data/lib/rwd/tree.rb +371 -0
  130. data/lib/rwd/xml.rb +101 -0
  131. data/lib/rwdthemes/default.rwd +317 -0
  132. data/lib/rwdthemes/pda.rwd +72 -0
  133. data/lib/rwdthemes/windowslike.rwd +171 -0
  134. data/lib/zip/ioextras.rb +114 -0
  135. data/lib/zip/stdrubyext.rb +111 -0
  136. data/lib/zip/tempfile_bugfixed.rb +195 -0
  137. data/lib/zip/zip.rb +1378 -0
  138. data/lib/zip/zipfilesystem.rb +558 -0
  139. data/lib/zip/ziprequire.rb +61 -0
  140. data/rwd_files/HowTo_DialogMap.txt +233 -0
  141. data/rwd_files/HowTo_Tinker.txt +482 -0
  142. data/rwd_files/HowTo_TinkerWin2.txt +202 -0
  143. data/rwd_files/Notes/Another Brain Jam.mm +116 -0
  144. data/rwd_files/Notes/HR.xml +2 -0
  145. data/rwd_files/Notes/TaoistBooks.mm +82 -0
  146. data/rwd_files/Readme.txt +57 -0
  147. data/rwd_files/RubyWebDialogs.html +6 -0
  148. data/rwd_files/favicon.ico +0 -0
  149. data/rwd_files/rdoc-style.css +175 -0
  150. data/rwd_files/rwdapplications.html +54 -0
  151. data/rwd_files/tinker.png +0 -0
  152. data/rwdconfig.dist +22 -0
  153. data/rwddialogmap.rb +1 -0
  154. data/tests/RubyGauge.rb +179 -0
  155. data/tests/checkdepends.sh +4 -0
  156. data/tests/cleancnf.sh +6 -0
  157. data/tests/makedist-rwdwdialogmap.rb +58 -0
  158. data/tests/makedist.rb +65 -0
  159. data/tests/rdep.rb +354 -0
  160. data/tests/totranslate.lang +93 -0
  161. data/zips/rwdwaddresses-1.06.zip +0 -0
  162. data/zips/rwdwcalc-0.62.zip +0 -0
  163. data/zips/rwdwdialogmap-0.01.zip +0 -0
  164. data/zips/rwdwfoldeditor-0.04.zip +0 -0
  165. data/zips/rwdwgutenberg-0.09.zip +0 -0
  166. data/zips/rwdwruby-1.07.zip +0 -0
  167. data/zips/temp.rb +1 -0
  168. data/zips/tinkerbellw-0.02.zip +0 -0
  169. data/zips/wrubyslippers-1.06.zip +0 -0
  170. metadata +226 -0
@@ -0,0 +1,9 @@
1
+ # this code is to return to the window back from the help window
2
+ def rwdwindowreturn
3
+
4
+ @rwd_window = "#{$previouswindow}"
5
+ @rwd_tab = "#{$previoustab}"
6
+ end
7
+
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # this code is to return to the window back from the help window
2
+ def runselectiontab
3
+
4
+
5
+ @rwd_tab = "selectiontab"
6
+ end
7
+
8
+
9
+
@@ -0,0 +1,13 @@
1
+ # help about option setup for rwdtinker application
2
+ def setuphelpaboutoptions
3
+
4
+ @rwd_window = "tinkerhelpabout"
5
+ @helpaboutoptions = $tinkerhelpaboutarray.rwd_options
6
+ end
7
+
8
+ def setuphelpaboutoptionspassive
9
+
10
+
11
+ @helpaboutoptions = $tinkerhelpaboutarray.rwd_options
12
+ end
13
+
@@ -0,0 +1,6 @@
1
+ # Bind document names to rwdtinker document tab
2
+ def setuptinkerdocuments
3
+
4
+ @tinkerdocumentsarray = $tinkerdocumentsarray.rwd_options
5
+ end
6
+
@@ -0,0 +1,109 @@
1
+ # test harness
2
+
3
+
4
+ require 'test/unit/testcase'
5
+ require 'test/unit/assertions'
6
+ include Test::Unit::Assertions
7
+ include Test::Unit
8
+ def rwdtinker_all_tests
9
+ print "in rwdtinker all tests\n"
10
+ $testrwdtinkertestcase = TestSuite.new
11
+ test_runrwdtinkerbackwindow
12
+ end
13
+
14
+ def test_runrwdtinkerbackwindow
15
+
16
+
17
+ begin
18
+ testasserts = 0
19
+ print "Starting rwdtinker tests!\n"
20
+ runrwdtinkerbackwindow
21
+
22
+ assert_equal("tinkerbackwindow",@rwd_window) ; testasserts += 1
23
+ runselectiontab
24
+ assert_equal("selectiontab",@rwd_tab) ; testasserts += 1
25
+ showjumplinkoptions
26
+ @a_jumplinkinput = "returntomain"
27
+ runjumplinkcommand
28
+ assert_equal("main",@rwd_window) ; testasserts += 1
29
+ @a_jumplinkinput = "helpscreen"
30
+ runjumplinkcommand
31
+
32
+ assert_equal("rwdtinkerhelpwindow",@rwd_window) ; testasserts += 1
33
+ returntomain
34
+ assert_equal("main",@rwd_window) ; testasserts += 1
35
+ runtinkerdocuments
36
+ assert_equal("documentsrwdtinkerone",@rwd_tab) ; testasserts += 1
37
+ runrwdtinkerbackwindow
38
+
39
+ assert_equal("tinkerbackwindow",@rwd_window) ; testasserts += 1
40
+ @a_installapplet="/usr/src/rwdapplets/rwdtinker/zips/rwdahelloworld-0.5"
41
+ viewgemappletcontents
42
+ assert_not_nil(@appletcontentstext) ; testasserts += 1
43
+ runrwdtinkerwin2version
44
+ assert_equal("applicationversion",@rwd_window) ; testasserts += 1
45
+ returntomain
46
+ assert_equal("main",@rwd_window) ; testasserts += 1
47
+ runrwdtinkerbackwindow
48
+
49
+ assert_equal("tinkerbackwindow",@rwd_window) ; testasserts += 1
50
+ runremotezipsinstall
51
+ assert_equal("superantcomremotezipsinstall",@rwd_tab) ; testasserts += 1
52
+ runeditconfiguration
53
+ assert_equal("editconfigurationfile",@rwd_tab) ; testasserts += 1
54
+
55
+
56
+ $stderr.print "tests completed succesfully!\n"
57
+ $stderr.print testasserts, " asserts performed\n"
58
+
59
+ rescue NotImplementedError, Exception
60
+ $stderr.print $!
61
+
62
+ end
63
+
64
+ end
65
+
66
+
67
+
68
+ def teststobedown
69
+ runtinkerhelpabout
70
+ assert_equal("rwdtinkerhelpwindow",@rwd_tab) ; testasserts += 1
71
+ raise NotImplementedError, 'Need to write test_choosenewhelptopic'
72
+ raise NotImplementedError, 'Need to write test_listinstalledfiles'
73
+ raise NotImplementedError, 'Need to write test_listzipfilestoinstall'
74
+ raise NotImplementedError, 'Need to write test_loadconfigurationrecord'
75
+ raise NotImplementedError, 'Need to write test_loadconfigurationvariables'
76
+
77
+ raise NotImplementedError, 'Need to write test_main'
78
+
79
+ raise NotImplementedError, 'Need to write test_network_demon'
80
+
81
+ raise NotImplementedError, 'Need to write test_network_start'
82
+
83
+ raise NotImplementedError, 'Need to write test_openappletname'
84
+
85
+ raise NotImplementedError, 'Need to write test_removeapplet'
86
+
87
+ raise NotImplementedError, 'Need to write test_returntomain'
88
+
89
+ raise NotImplementedError, 'Need to write test_runcontrolcommand'
90
+
91
+ raise NotImplementedError, 'Need to write test_runhelpwindow'
92
+
93
+ raise NotImplementedError, 'Need to write test_runrwdtinkerversion'
94
+
95
+ raise NotImplementedError, 'Need to write test_runrwdtinkerwin2version'
96
+
97
+ raise NotImplementedError, 'Need to write test_runviewplatform'
98
+
99
+ raise NotImplementedError, 'Need to write test_rwdtinkerversiondiagnostic'
100
+
101
+ raise NotImplementedError, 'Need to write test_rwdwindowreturn'
102
+ raise NotImplementedError, 'Need to write test_saveconfigurationrecord'
103
+
104
+ raise NotImplementedError, 'Need to write test_viewappletcontents'
105
+ end
106
+
107
+
108
+
109
+
@@ -0,0 +1,13 @@
1
+ # this to start the test harness
2
+ def rwdtest_harness
3
+
4
+ print "in test harness\n"
5
+
6
+ $testharnessarray.each { |x|
7
+ print "calling #{x}\n"
8
+ eval("#{x}")
9
+
10
+ }
11
+
12
+ end
13
+
@@ -0,0 +1,62 @@
1
+ def uploadreturnsfile
2
+ require 'net/ftp'
3
+ BasicSocket.do_not_reverse_lookup = true
4
+ @returnsftpdisplays = ""
5
+ randomnumber = rand(9999) + 1000
6
+ puts randomnumber.to_i
7
+
8
+
9
+ returns_ftpsite = "ftp.superant.com"
10
+ returns_ftplogin = "anonymous@superant.com"
11
+ returns_ftppassword = "anonymous@superant.com"
12
+ returns_ftpdirectory = "/incoming/returns/"
13
+
14
+ begin
15
+ platformdisplay = "Platform is " + RUBY_PLATFORM + "\n"
16
+ platformdisplay = platformdisplay + "Ruby Version " + VERSION + "\n"
17
+ platformdisplay = platformdisplay + "rwdtinker version " + RwdTinkerVersion + "\n"
18
+ platformdisplay = platformdisplay + "application name " + $rwdapplicationidentity + "\n"
19
+ platformdisplay = platformdisplay + "program directory " + $progdir + "\n"
20
+ platformdisplay = platformdisplay + "hostname " + Resolv.getname(Resolv.getaddress("localhost")) + "\n"
21
+ platformdisplay = platformdisplay + "Date " + Date.today().to_s + "\n"
22
+ if ! @a_emailupload.empty?
23
+ platformdisplay = platformdisplay + @a_emailupload + "\n"
24
+ end
25
+ if ! @a_emailupload.empty?
26
+ platformdisplay = platformdisplay + @a_commentupload + "\n"
27
+ end
28
+ updatefile = Date.today().to_s + Resolv.getname(Resolv.getaddress("localhost")) + randomnumber.to_s
29
+
30
+ tmpdir = ENV['TMP']
31
+ if tmpdir.to_s.empty?
32
+ tmpdir = "/tmp"
33
+ end
34
+ fileName = File.join( tmpdir, updatefile)
35
+ fd = File.open(fileName,"w")
36
+ fd.print(platformdisplay) # save the record info to the file
37
+ fd.close
38
+ ftp = Net::FTP::new(returns_ftpsite)
39
+ @returnsftpdisplay = "data uploaded" + "\n"
40
+
41
+ filedirname = File.join(tmpdir,updatefile)
42
+
43
+ ftp.debug_mode = false
44
+ ftp.login(returns_ftplogin, returns_ftppassword)
45
+ ftp.chdir(returns_ftpdirectory)
46
+ print "I'm in the directory ", ftp.pwd(), "\n"
47
+
48
+ puts filedirname
49
+ ftp.puttextfile(filedirname , updatefile)
50
+ @returnsftpdisplay = @returnsftpdisplay + platformdisplay
51
+
52
+
53
+ ftp.close
54
+
55
+ rescue
56
+ @returnsftpdisplay = "upload error"
57
+ if ftp
58
+ ftp.close
59
+ end
60
+ print "ftp error"
61
+ end
62
+ end
@@ -0,0 +1,3 @@
1
+ def viewphoto
2
+ @rwd_window = "photo"
3
+ end
@@ -0,0 +1,12 @@
1
+
2
+ def rwdwdialogmap_0_01()
3
+ $tinkerdocumentsarray.delete_if {|x| x == "HowTo_HyperDialogMap.txt"}
4
+ $tinkerhelpaboutarray.delete_if {|x| x == "RwdDialogMap"}
5
+ Helptext.delete_if {|key, value| key == :rwddialogmap_generalhelp}
6
+ Helptext.delete_if {|key, value| key == :rwddialogmap_configuration }
7
+ Helptext.delete_if {|key, value| key == :dialogmapedit_help }
8
+ Helptext.delete_if {|key, value| key == :dialogmapxml_help }
9
+ $rwdjumplink.delete_if {|x| x == "RwdDialogMap"}
10
+
11
+
12
+ end
@@ -0,0 +1,31 @@
1
+ # this method clears the on screen variables
2
+ def sagchangedialogmapdirshttp3
3
+ if $temp_rwddialogmap_directory == nil
4
+ temp_dir = $rwddialogmap_directory
5
+ $temp_rwddialogmap_directory = $rwddialogmap_directory
6
+ else
7
+ temp_dir = $temp_rwddialogmap_directory
8
+ end
9
+
10
+
11
+
12
+ if ! @a_dialogchoice3a.to_s.empty?
13
+ if $DEBUG
14
+ $stderr.puts " in sagchangedialogmapdirshttp3"
15
+ end
16
+
17
+ begin
18
+ tmpnewdir = File.expand_path( temp_dir )
19
+ tmpnewdir2 = File.join( tmpnewdir, @a_dialogchoice3a.to_s.strip)
20
+ $temp_rwddialogmap_directory = tmpnewdir2
21
+ Dir.chdir(tmpnewdir2)
22
+ @dialog_directory3 = $temp_rwddialogmap_directory
23
+
24
+ rescue
25
+ if $DEBUG
26
+ $stderr.puts " file error in sagchangedialogmapdirshttp3"
27
+ end
28
+ end
29
+
30
+ end
31
+ end
@@ -0,0 +1,14 @@
1
+ # this method clears the on screen variables
2
+ def cleardialogmapnotescreendisplayhtml
3
+
4
+
5
+ @a_dialogmapdatahtml = ""
6
+
7
+
8
+ end
9
+
10
+ def cleardialogview3
11
+
12
+ @a_dialogdata3 = ""
13
+
14
+ end
@@ -0,0 +1,13 @@
1
+ # this method clears the on screen variables
2
+ def cleardialogmapscreendisplay
3
+
4
+
5
+ @xmlfileresult = ""
6
+
7
+ end
8
+
9
+ def cleardialogmapscreendisplay2
10
+
11
+ @xmlfileresult2 = ""
12
+
13
+ end
@@ -0,0 +1,28 @@
1
+ #create a new note
2
+ def sagdialogmapcreatenewnote
3
+
4
+ @rwd_call_after_back << "rwddialogmapreloadtab"
5
+ if @sagdialogmaprecordsresulth .empty?
6
+ newnotecontent = 'new note'
7
+ else
8
+ newnotecontent = @sagdialogmaprecordsresulth.to_s
9
+ end
10
+ if @a_viewdialogmaphtml.empty?
11
+ newnotefilename = "newnote.txt"
12
+ else
13
+ newnotefilename = @a_viewdialogmaphtml.to_s
14
+ end
15
+
16
+ $reloadaftercreate = true
17
+ download("#{newnotecontent}", "#{newnotefilename}")
18
+
19
+ end
20
+
21
+ def rwddialogmapreloadtab
22
+
23
+ if $reloadaftercreate
24
+ @rwd_tab = "superantcomeditnoterecordfile"
25
+
26
+ $reloadaftercreate = false
27
+ end
28
+ end
@@ -0,0 +1,38 @@
1
+
2
+
3
+ Helptext.update( :rwddialogmap_generalhelp => "
4
+ RwdDialogMap is a knowledge mapping interface
5
+ <p>
6
+ There are tabs to view notes and links and edit configurations
7
+ <p>
8
+ The core assumption, of this Dialog Map software, is that the information you are interested in is out there.<p>
9
+ It is on your computer hard disk and the internet.<p>
10
+ The role of the software is not to help you create the information, but to:
11
+ <p>
12
+ 1. find where it is<p>
13
+ 2. help you not lose it again<p>
14
+ 3. make notes that give summaries of what it is<p>
15
+ 4. make links from one chunk of information in one place with other chunks that can be related
16
+ .",
17
+ :rwddialogmap_configuration => " click on 'Edit Configuration'
18
+ You can view the configuration file
19
+
20
+ You can edit the configuration
21
+
22
+ Remember to reload the configuration variables if you want your
23
+ changes used. ",
24
+ :dialogmapedit_help =>"
25
+ Here you can edit text files or lnk files<p>
26
+ Open Detail<p>
27
+ create new new<p>
28
+ save changes<p>
29
+ clear<p>
30
+ ",
31
+ :dialogmapxml_help => "
32
+ Here you can view a Freemind file:<p>
33
+ for example:<p>
34
+ rwd_files/Notes/TaoistBooks.mm<p>
35
+ rwd_files/Notes/Another Brain Jam.mm<p>
36
+ rwd_files/Notes/HR.xml<p>
37
+ "
38
+ )
@@ -0,0 +1,35 @@
1
+ # this method clears the on screen variables
2
+ def launchnotehttp3a
3
+
4
+ if $temp_rwddialogmap_directory == nil
5
+ startdir = $rwddialogmap_directory
6
+ else
7
+ startdir = $temp_rwddialogmap_directory
8
+ end
9
+ url1 = File.join(File.expand_path( startdir) , @a_dialoginput3a.to_s.strip)
10
+ url = "file://" + url1
11
+ if $DEBUG
12
+ $stderr.puts url
13
+ end
14
+ `#{$dialogmapbrowser} "#{url}"`
15
+
16
+ end
17
+
18
+ def launchnotehttp3b
19
+ url = "file://" + @a_dialoginput3b.to_s.strip
20
+ if $DEBUG
21
+ $stderr.puts url
22
+ end
23
+ `#{$dialogmapbrowser} "#{url}"`
24
+
25
+ end
26
+
27
+ def launchnotehttp3c # launch the browser with a url
28
+
29
+ url = "file://" + @a_dialoginput3c.to_s.strip
30
+ if $DEBUG
31
+ $stderr.puts url
32
+ end
33
+ `#{$dialogmapbrowser} "#{url}"`
34
+
35
+ end
@@ -0,0 +1,19 @@
1
+ # this code is to list the hypernote directories
2
+ def rwddialogmapdirectoryview
3
+ if $temp_rwddialogmap_directory == nil
4
+ temp_dir = $rwddialogmap_directory
5
+ $temp_rwddialogmap_directory = $rwddialogmap_directory
6
+ else
7
+ temp_dir = $temp_rwddialogmap_directory
8
+
9
+ end
10
+
11
+ @dialog_directory3= temp_dir
12
+ if FileTest.directory?(temp_dir)
13
+
14
+ fileList = Dir.new(temp_dir).entries.sort.delete_if { |x| File.extname(x) > '' }
15
+ @dialogchoicepulldown = fileList.rwd_options
16
+ end
17
+ end
18
+
19
+
@@ -0,0 +1,25 @@
1
+ # this code is to list the directories
2
+ def saglistdialogmapdirs
3
+ if $DEBUG
4
+ $stderr.puts " temp_rwddialogmap_directory = #{$temp_rwddialogmap_directory}"
5
+ end
6
+ if $temp_rwddialogmap_directory == nil
7
+ temp_dir = $rwddialogmap_directory
8
+ $temp_rwddialogmap_directory = $rwddialogmap_directory
9
+ else
10
+ temp_dir = $temp_rwddialogmap_directory
11
+ end
12
+
13
+ @dialog_directory3= temp_dir
14
+ if $DEBUG
15
+ $stderr.puts "temp_dir = #{temp_dir}"
16
+ end
17
+
18
+ fileList = Dir.new(temp_dir).entries.sort
19
+
20
+ dialoglines = ["1","2","3"]
21
+ @dialogmapdirectoriesresultA = fileList.rwd_options
22
+ @dialogmapdirectoriesresultB = fileList.rwd_options
23
+ @dialogmapdirectoriesresultC = fileList.rwd_options
24
+
25
+ end
@@ -0,0 +1,54 @@
1
+ # this code is to list the notes
2
+
3
+ def filldialogmapnameh(inffile)
4
+ applet = inffile
5
+ @a_viewdialogmaphtml = applet
6
+
7
+ end
8
+
9
+ def finddialogmapfilesh(d,notesarray)
10
+
11
+ a = Array.new(Dir[d].entries.sort)
12
+
13
+ #loop through and get the files names
14
+ a.each do |x|
15
+ #adjust the filters to the files you want to see...
16
+ if(!test(?d,x))
17
+ # only txt files
18
+ if x =~ /htm|html|lnk|rwd|nam|sch|txt/
19
+ # puts "#{x}" #opens the file thats in fileName as read only
20
+ notesarray = notesarray | ["#{x}"]
21
+ end
22
+ end
23
+ end
24
+ return notesarray
25
+ end
26
+
27
+ def listdialogmapdirshtml
28
+
29
+ if $temp_rwddialogmap_directory.to_s.empty?
30
+ startlangdir = $rwddialogmap_directory
31
+ else
32
+ startlangdir = $temp_rwddialogmap_directory
33
+ end
34
+ @dialogmap_directory = startlangdir
35
+
36
+ notesarray = [""]
37
+
38
+ #get a list of the files and subdirectories on the starting directory only
39
+ anotearray = Array.new(Dir[startlangdir].entries.sort)
40
+
41
+ #loop through the list, ignore the files and add all new directories found
42
+ anotearray.each do |x|
43
+ #if it is a file...
44
+
45
+ if(!test(?d,x))
46
+ anotearray.delete(x)
47
+ else #it is a directory...
48
+ notesarray = finddialogmapfilesh(x + "/**",notesarray)
49
+ end
50
+ end
51
+
52
+ @sagdialogmaprecordsresulth = notesarray.entries.sort.rwd_method("filldialogmapnameh")
53
+ end
54
+
@@ -0,0 +1,22 @@
1
+ # this method puts the configuration rexord on the screen
2
+ def loadrwddialogconfiguration
3
+
4
+ require 'fileutils'
5
+
6
+ @a_diaconfigurationfilename = "rwdwdialogmap-" + RwdDialogMapVersion + ".cnf"
7
+
8
+
9
+ begin # exception trapped block
10
+
11
+ Dir.chdir($progdir)
12
+ fileName = File.join(ConfigurationDir, @a_diaconfigurationfilename )
13
+
14
+
15
+ fd = File.open(fileName,"r")
16
+ @a_diaconfigurationfile= fd.read
17
+ fd.close
18
+ rescue SystemCallError, StandardError
19
+ $stderr.print "system call error: " + $!
20
+ end # exception rescue
21
+
22
+ end
@@ -0,0 +1,14 @@
1
+ # this method loads the on screen variables into the running class
2
+ def loadrwddialogconfigurationvariables
3
+
4
+ tmpfilename = "rwdwdialogmap-" + RwdDialogMapVersion + ".cnf"
5
+ configfiletoload = File.join(ConfigurationDir, tmpfilename )
6
+ begin
7
+ load configfiletoload
8
+ @extradiaconfigdatadisplay = ""
9
+ @newdiaconfigurationresult = "Config Variables loaded"
10
+ rescue
11
+ @extradiaconfigdatadisplay = ""
12
+ @newdiaconfigurationresult = "loading error"
13
+ end
14
+ end
@@ -0,0 +1,24 @@
1
+ # this method views an existing address record
2
+ def loadhtmldialogmap
3
+
4
+ require 'fileutils'
5
+
6
+
7
+ begin # exception trapped block
8
+
9
+
10
+ fileName = @a_viewdialogmaphtml
11
+
12
+ fd = File.open(fileName,"r")
13
+ @a_dialogmapdatahtml = fd.read
14
+
15
+
16
+
17
+
18
+
19
+ fd.close
20
+ rescue SystemCallError, StandardError
21
+ $stderr.print "system call error: " + $!
22
+ end # exception rescue
23
+
24
+ end
@@ -0,0 +1,38 @@
1
+ # this code is to call the help window
2
+ def runhelpwindowrwddialogmap
3
+
4
+ $help_topic = "rwddialogmap_generalhelp"
5
+
6
+
7
+
8
+ if @rwd_tab == "superantcomeditnoterecordfile"
9
+ $help_topic = "dialogmapedit_help"
10
+ end
11
 
12
+ if @rwd_tab == "superantcomxmlfile"
13
+
14
+ $help_topic = "dialogmapxml_help"
15
+ end
16
+
17
+ if @rwd_tab == "superantcommmfile"
18
+
19
+ $help_topic = "dialogmapxml_help"
20
+ end
21
+
22
+
23
+
24
+ if @rwd_tab == "viewrwddialogconfiguration"
25
+ $help_topic = "rwddialogmap_configuration"
26
+ end
27
+
28
+ $helptopicsarray = $helptopicsarray | ["rwddialogmap_configuration","dialogmapedit_help","rwddialogmap_generalhelp"]
29
+
30
+
31
+
32
+ if @rwd_window != "rwdtinkerhelpwindow"
33
+ $previouswindow = @rwd_window
34
+ $previoustab = @rwd_tab
35
+ end
36
+ runhelpwindow
37
+ end
38
+
39
+
@@ -0,0 +1,10 @@
1
+ # Application rwdtinker orginally (c) 2004 Steven Gibson under GPL.
2
+ #
3
+ # For more information about see http://www.rubyforge.net/projects/rwdapplications
4
+
5
+ # call the window
6
+ def runrwddialogmapmain
7
+ @rwd_window = "rwddialogmapwindow"
8
+ @rwd_tab = "superantcomeditnoterecordfile"
9
+ end
10
+
@@ -0,0 +1,10 @@
1
+ # Application RwdAddresses orginally (c) 2004 Steven Gibson under GPL.
2
+ # This application is a contact book
3
+ # For more information about see http://www.rubyforge.net/projects/rwdapplications
4
+
5
+ # call the window
6
+ def runrwddialogmapbackwindow
7
+ @rwd_window = "rwddialogmapbackwindow"
8
+ @rwd_tab = "superantcomeditnoterecordfile"
9
+ end
10
+
@@ -0,0 +1,7 @@
1
+ # this method resets the hypernote directory to the top default setting
2
+ def rwddialogmapresetdir
3
+
4
+
5
+ $temp_rwddialogmap_directory = $rwddialogmap_directory
6
+ @dialog_directory3 = $temp_rwddialogmap_directory
7
+ end
@@ -0,0 +1,10 @@
1
+ # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
2
+ # This application is a framework for writing programs from RubyWebDialogs
3
+ # For information see http://www.rubyforge.net/projects/rwdapplications
4
+
5
+ # return the version constant defined in the config file
6
+ def rwddialogmaphelpaboutsetup
7
+ return ["RwdDialogMap","(c) 2005-2008 Steven Gibson ","Version #{RwdDialogMapVersion}"]
8
+ end
9
+
10
+