rwdhypernote 0.15 → 0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. data/code/01rwdcore/01rwdcore.rb +5 -4
  2. data/code/01rwdcore/02helptexthashbegin.rb +13 -11
  3. data/code/01rwdcore/jumplinkcommand.rb +1 -0
  4. data/code/01rwdcore/openhelpwindow.rb +7 -0
  5. data/code/01rwdcore/runhelpabout.rb +6 -1
  6. data/code/01rwdcore/selectiontab.rb +2 -0
  7. data/code/01rwdcore/setuphelpaboutoptions.rb +2 -0
  8. data/code/01rwdcore/setuptinkerdocuments.rb +1 -0
  9. data/code/01rwdcore/uploadreturns.rb +3 -0
  10. data/code/dd0viewphoto/dd0viewphoto.rb +2 -0
  11. data/code/superant.com.dialogmap/changedir.rb +31 -0
  12. data/code/superant.com.dialogmap/clearhypernotescreendisplay.rb +14 -0
  13. data/code/superant.com.dialogmap/clearlinkscreendisplay.rb +13 -0
  14. data/code/superant.com.dialogmap/createnewnote.rb +28 -0
  15. data/code/superant.com.dialogmap/launchurlfile.rb +35 -0
  16. data/code/superant.com.dialogmap/listdirectories.rb +19 -0
  17. data/code/superant.com.dialogmap/listdirectories3.rb +25 -0
  18. data/code/superant.com.dialogmap/listnotedirshtml3.rb +54 -0
  19. data/code/superant.com.dialogmap/loadconfigurationrecord.rb +22 -0
  20. data/code/superant.com.dialogmap/loadconfigurationvariables.rb +14 -0
  21. data/code/superant.com.dialogmap/loadhtmlnoterecord.rb +24 -0
  22. data/code/superant.com.dialogmap/runhypernote.rb +10 -0
  23. data/code/superant.com.dialogmap/runwrdhypernotetxtwindow.rb +10 -0
  24. data/code/superant.com.dialogmap/rwdhypernoteresetdir.rb +7 -0
  25. data/code/superant.com.dialogmap/rwdtinkerversion.rb +10 -0
  26. data/code/superant.com.dialogmap/saveconfigurationrecord.rb +20 -0
  27. data/code/superant.com.dialogmap/savelinkrecord.rb +23 -0
  28. data/code/superant.com.dialogmap/viewdialogmaphtml3.rb +66 -0
  29. data/code/superant.com.dialogmap/xmlprettyprint.rb +65 -0
  30. data/code/superant.com.dialogmap/xmlprettyprint2.rb +74 -0
  31. data/code/superant.com.hypernote/0uninstallapplet.rb +10 -0
  32. data/code/superant.com.hypernote/helptexthashload.rb +21 -0
  33. data/code/superant.com.hypernote/openhelpwindowrwdhyernote.rb +29 -0
  34. data/code/superant.com.rwdtinkerbackwindow/initiateapplets.rb +0 -1
  35. data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +2 -0
  36. data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +2 -0
  37. data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +3 -1
  38. data/code/superant.com.rwdtinkerbackwindow/listzips.rb +2 -0
  39. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +3 -1
  40. data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +1 -0
  41. data/code/superant.com.rwdtinkerbackwindow/viewlogfile.rb +8 -5
  42. data/code/zz0applicationend/zz0end.rb +2 -1
  43. data/configuration/rwdtinker.dist +3 -3
  44. data/configuration/rwdwhypernote.dist +18 -8
  45. data/gui/tinkerbackwindows/superant.com.dialogmap/10appletbegin.rwd +4 -0
  46. data/gui/tinkerbackwindows/superant.com.dialogmap/12dialogview.rwd +65 -0
  47. data/gui/tinkerbackwindows/superant.com.dialogmap/15aviewxml.rwd +32 -0
  48. data/gui/tinkerbackwindows/superant.com.dialogmap/17aviewxml.rwd +28 -0
  49. data/gui/tinkerbackwindows/superant.com.dialogmap/21editnote.rwd +33 -0
  50. data/gui/tinkerbackwindows/{superant.com.hypernote → superant.com.dialogmap}/67viewconfiguration.rwd +1 -1
  51. data/gui/tinkerbackwindows/superant.com.dialogmap/81jumplinkcommands.rwd +17 -0
  52. data/gui/tinkerbackwindows/superant.com.dialogmap/9end.rwd +6 -0
  53. data/init.rb +7 -1
  54. data/installed/rwdwhypernote.inf +4 -1
  55. data/lang/en/rwdcore/en.po +16 -0
  56. data/lang/es/rwdcore/es.po +16 -13
  57. data/lang/fr/rwdcore/fr.po +4 -1
  58. data/lang/hi/rwdcore/hi.po +39 -36
  59. data/lang/ja/rwdcore/ja.po +3 -0
  60. data/lang/nl/rwdcore/nl.po +4 -1
  61. data/rwd_files/HowTo_HyperNote.txt +27 -0
  62. data/rwd_files/HowTo_Tinker.txt +4 -0
  63. data/rwd_files/Maps/Another Brain Jam.mm +116 -0
  64. data/rwd_files/Maps/HR.xml +2 -0
  65. data/rwd_files/Maps/TaoistBooks.mm +82 -0
  66. data/rwd_files/Tinkerhelptexthash.txt +3 -2
  67. data/rwd_files/log/rwdtinker.log +0 -628
  68. data/rwd_files/rwdapplications.html +23 -1
  69. data/{code/superant.com.hypernote/helptexthashrwdhypernote.rb → rwd_files/rwdhypernotehelpfiles.txt} +65 -22
  70. data/tests/makedist-rwdwhypernote.rb +1 -1
  71. data/tests/makedist.rb +1 -1
  72. data/zips/rwdwfoldeditor-0.06.zip +0 -0
  73. data/zips/rwdwhypernote-0.16.zip +0 -0
  74. data/zips/rwdwmpd-0.07.zip +0 -0
  75. metadata +47 -14
  76. data/zips/rwdwfoldeditor-0.05.zip +0 -0
  77. data/zips/rwdwhypernote-0.15.zip +0 -0
@@ -1,8 +1,5 @@
1
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
2
+
6
3
 
7
4
  $DEBUG=false
8
5
  $VERBOSE=false
@@ -27,3 +24,7 @@ class RwdTinker < RWDialog
27
24
  "#{$rwdapplicationidentity}"
28
25
  end
29
26
 
27
+
28
+ # for original RWD work see: http://www.erikveen.dds.nl/rubywebdialogs/index.html
29
+ # For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
30
+ # This class is the top class for the RwdTinker application
@@ -1,14 +1,16 @@
1
-
1
+ # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
2
2
 
3
- Helptext = Hash.new { |hh, kk| hh[kk] = "ERROR: Identificador de mensaje desconocido: #{kk.inspect}."; hh[kk] }
3
+ Helptext = Hash.new { |hh, kk| hh[kk] = "ERROR: Message-ID Unknown: #{kk.inspect}."; hh[kk] }
4
4
  helpmessage = {
5
- :general_help => "You can work with Applets: go to 'Selection tab', <br>
6
- On that back screen you will find:<br>
7
- List Applets: you can see and delete installed applets<br>
8
- List Zips: you can see lists of applets that you can install<br>
9
- Edit Configuration: You can view the rwdtinker configuration and change it<br>
10
- Diagnostic Tab: You can view the environments variables that rwdtinker is running with<br>
11
- "
12
-
5
+ :tinker_help => "rwdtinker is the core application for the
6
+ rwdapplications. "
7
+
13
8
  }
14
- helpmessage.each { |kk, vv| Helptext[kk] = vv }
9
+ helpmessage.each { |kk, vv| Helptext[kk] = vv }
10
+
11
+
12
+ =begin
13
+ this is to set up the help buttons
14
+ this uses a hash
15
+ =end
16
+
@@ -1,3 +1,4 @@
1
+ # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
1
2
  # Bind message passing socket to rwdtinker application
2
3
 
3
4
  locationlink = {
@@ -1,4 +1,7 @@
1
+ # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
1
2
  # this code is to call the help window
3
+ # for RwdTinker core
4
+
2
5
  def runhelpwindow
3
6
  $helptopicsarray = $helptopicsarray | ["applet_installation","applet_viewing","applet_tinkerbackeditconfiguration"]
4
7
 
@@ -29,3 +32,7 @@ def choosenewhelptopic(inffile)
29
32
  end
30
33
 
31
34
 
35
+
36
+ # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
37
+ # this code is to call the help window
38
+ # for RwdTinker core
@@ -7,4 +7,9 @@
7
7
  @rwd_window = "rwdtinkerhelpwindow"
8
8
 
9
9
  end
10
-
10
+
11
+ =begin
12
+ This def runtinkerhelpabout
13
+ is to call the rwdtinkerhelpwindow
14
+ =end
15
+
@@ -1,4 +1,6 @@
1
+ # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
1
2
  # this code is to return to the window back from the help window
3
+
2
4
  def runselectiontab
3
5
 
4
6
 
@@ -1,4 +1,6 @@
1
+ # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
1
2
  # help about option setup for rwdtinker application
3
+
2
4
  def setuphelpaboutoptions
3
5
 
4
6
  @rwd_window = "tinkerhelpabout"
@@ -1,3 +1,4 @@
1
+ # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
1
2
  # Bind document names to rwdtinker document tab
2
3
  def setuptinkerdocuments
3
4
 
@@ -1,3 +1,6 @@
1
+ # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
2
+ # return information to the author
3
+
1
4
  def uploadreturnsfile
2
5
  require 'net/ftp'
3
6
  BasicSocket.do_not_reverse_lookup = true
@@ -1,3 +1,5 @@
1
+ # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
2
+
1
3
  def viewphoto
2
4
  @rwd_window = "photo"
3
5
  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 == nil
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,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.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.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,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