rwdhypernote 0.09 → 0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,4 +5,13 @@
5
5
  @a_notedata = ""
6
6
 
7
7
 
8
+ end
9
+
10
+ # this method clears the on screen variables
11
+ def clearhypernotescreendisplayhtml
12
+
13
+ @a_viewhypernotehtml = ""
14
+ @a_notedatahtml = ""
15
+
16
+
8
17
  end
@@ -0,0 +1,20 @@
1
+ #create a new note
2
+ def rwdhypernotecreatenewnotehtml
3
+
4
+ @rwd_call_after_back << "reloadtab"
5
+ if @a_notedatahtml.empty?
6
+ newnotecontent = 'new note'
7
+ else
8
+ newnotecontent = @a_notedatahtml.to_s
9
+ end
10
+ if @a_viewhypernotehtml.empty?
11
+ newnotefilename = "newnote.txt"
12
+ else
13
+ newnotefilename = @a_viewhypernotehtml.to_s
14
+ end
15
+
16
+ $reloadaftercreate = true
17
+ download("#{newnotecontent}", "#{newnotefilename}")
18
+
19
+ end
20
+
@@ -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
@@ -0,0 +1,19 @@
1
+ #find title and reload for created a new note
2
+
3
+ def rwdhypernotereloadtabhtml
4
+
5
+ if $reloadaftercreate
6
+ @rwd_tab = "superantcomeditnoterecordfile"
7
+ listnotedirs
8
+
9
+ $notesarray.each { |x|
10
+ if x.include? "#{@a_viewhypernotehtml}"
11
+
12
+ @a_viewhypernotehtml = x
13
+ end
14
+ }
15
+
16
+
17
+ $reloadaftercreate = false
18
+ end
19
+ end
@@ -1,15 +1,15 @@
1
1
  # this method adds a new record
2
2
  def savehtmlhypernoterecord
3
3
  require 'fileutils'
4
- if ! @a_notedata.empty?
5
- if ! @a_viewhypernote.empty?
6
- fileName = @a_viewhypernote.to_s # grab the new filename to create
4
+ if ! @a_notedatahtml.empty?
5
+ if ! @a_viewhypernotehtml.empty?
6
+ fileName = @a_viewhypernotehtml.to_s # grab the new filename to create
7
7
 
8
8
 
9
9
  begin # exception trapped block
10
10
 
11
11
  fd = File.open(fileName,"w")
12
- fd.print( @a_notedata) # save the record info to the file
12
+ fd.print( @a_notedatahtml) # save the record info to the file
13
13
  fd.close
14
14
 
15
15
  rescue SystemCallError, StandardError
@@ -1,7 +1,9 @@
1
- ##VERSION:0.09
2
- ##NAME: $rwdhypernote_directory:0
1
+ ##VERSION:0.10
2
+ ##NAME:$rwdhypernote_directory:0
3
3
  $rwdhypernote_directory = "Notes"
4
- $notesarray = ["Notes/changes.txt"]
4
+ ##NAME:$notesarray:0
5
+ $notesarray = ["Notes/changes.txt"]
6
+ ##NAME:$noteslinksarray:0
5
7
  $noteslinksarray = ["Notes/changes.lnk"]
6
8
  $rwdhypernote_ftpsite = "ftp.mysite.com"
7
9
  $rwdhypernote_ftplogin = "mylogin"
@@ -11,5 +13,5 @@ $rwdhypernote_updatedirectory = "updates"
11
13
  $testharnessarray += ["rwdhypernote_all_tests"]
12
14
  $tinkerhelpaboutarray += ["RwdHypernote"]
13
15
  $tinkerdocumentsarray += ["HowTo_HyperNote.txt"]
14
- RwdHyperNoteVersion = "0.09"
16
+ RwdHyperNoteVersion = "0.10"
15
17
 
@@ -1,27 +1,27 @@
1
1
  $rwdguivar=
2
2
  "
3
- <tab name=\"superantcomeditnoterecordfile\" caption=\"View/Edit Note\">
3
+ <tab name=\"superantcomeditnoterecordfile\" caption=\"View/Edit HTML Note\">
4
4
 
5
5
  <table>
6
6
  <row>View your event list and detail on this Tab</row>
7
7
  <row> <p> </row>
8
- <row> <p align=\"right\">Note Record:</p> <text size=70 name=\"a_viewhypernote\"/> </row>
9
-
8
+ <row> <p align=\"right\">Note Record:</p> <text size=70 name=\"a_viewhypernotehtml\"/> </row>
9
+
10
10
  </table>
11
11
  <horizontal>
12
- <button caption=\"Open Detail\" action=\"loadnoterecord\"/>
12
+ <button caption=\"Open Detail\" action=\"loadhtmlnoterecord\"/>
13
13
 
14
- <button caption=\"Create New Note\" action=\"rwdhypernotecreatenewnote\"/>
15
- <button caption=\"Load New Title\" action=\"rwdhypernotereloadtab\"/>
14
+ <button caption=\"Create New Note\" action=\"rwdhypernotecreatenewnotehtml\"/>
15
+ <button caption=\"Load New Title\" action=\"rwdhypernotereloadtabhtml\"/>
16
16
 
17
- <button caption=\"Save Changes\" action=\"savehypernoterecord\"/>
17
+ <button caption=\"Save Changes\" action=\"savehtmlhypernoterecord\"/>
18
18
 
19
19
 
20
- <button caption=\"Clear\" action=\"clearhypernotescreendisplay\"/>
20
+ <button caption=\"Clear\" action=\"clearhypernotescreendisplayhtml\"/>
21
21
  <button caption=\"Help\" action=\"runhelpwindowrwdhypernote\"/>
22
22
 
23
23
  </horizontal>
24
- <textarea name=\"a_notedata\"/>
24
+ <textarea name=\"a_notedatahtml\"/>
25
25
 
26
26
 
27
27
  <horizontal>
@@ -32,13 +32,13 @@ $rwdguivar=
32
32
  </horizontal>
33
33
 
34
34
  <horizontal>
35
- <button caption=\"List Notes\" action=\"listnotedirs\"/>
35
+ <button caption=\"List HTML Notes\" action=\"listnotedirshtml\"/>
36
36
  <button caption=\"Show Internal Links\" action=\"listlocalnotelinks\"/>
37
37
 
38
38
 
39
39
  </horizontal>
40
40
 
41
- <p>%%noterecordsresult%%</p>
41
+ <p>%%noterecordsresulth%%</p>
42
42
  <p>%%localnotelinksrecordsresult%%</p>
43
43
  <p>%%notedirectoriesresult%%</p>
44
44
 
@@ -81,6 +81,9 @@ Steven Gibson
81
81
  steven@superant.com
82
82
 
83
83
  == Changelog
84
+ Version 0.10
85
+ Bug fix of html note editing
86
+
84
87
  Version 0.09
85
88
  added html view tab
86
89
  added 2nd html view tab
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.10
3
3
  specification_version: 1
4
4
  name: rwdhypernote
5
5
  version: !ruby/object:Gem::Version
6
- version: "0.09"
7
- date: 2005-05-28
6
+ version: "0.10"
7
+ date: 2005-05-29
8
8
  summary: rwdhypernote application is a hierarchical note taker for RubyWebDialogs.
9
9
  require_paths:
10
10
  - "."
@@ -103,6 +103,8 @@ files:
103
103
  - code/superant.com.hypernote/listnotedirshtml2.rb
104
104
  - code/superant.com.hypernote/loadnoterecordhtml2.rb
105
105
  - code/superant.com.hypernote/loadhtmlnoterecord2.rb
106
+ - code/superant.com.hypernote/createnewnotehtml.rb
107
+ - code/superant.com.hypernote/rwdhypernotereloadhtml.rb
106
108
  - configuration/tinkerwin2variables.dist
107
109
  - configuration/rwdtinker.dist
108
110
  - configuration/language.dist