rwdhypernote 0.09 → 0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/code/superant.com.hypernote/clearhypernotescreendisplay.rb +9 -0
- data/code/superant.com.hypernote/createnewnotehtml.rb +20 -0
- data/code/superant.com.hypernote/listdirectories.rb +2 -0
- data/code/superant.com.hypernote/rwdhypernotereloadhtml.rb +19 -0
- data/code/superant.com.hypernote/savehtmlhypernoterecord.rb +4 -4
- data/configuration/rwdhypernote.dist +6 -4
- data/gui/frontwindow0/superant.com.hypernote/15editnote.rwd +11 -11
- data/rwd_files/HowTo_HyperNote.txt +3 -0
- metadata +4 -2
@@ -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 ! @
|
5
|
-
if ! @
|
6
|
-
fileName = @
|
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( @
|
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.
|
2
|
-
##NAME
|
1
|
+
##VERSION:0.10
|
2
|
+
##NAME:$rwdhypernote_directory:0
|
3
3
|
$rwdhypernote_directory = "Notes"
|
4
|
-
|
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.
|
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=\"
|
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=\"
|
12
|
+
<button caption=\"Open Detail\" action=\"loadhtmlnoterecord\"/>
|
13
13
|
|
14
|
-
<button caption=\"Create New Note\" action=\"
|
15
|
-
<button caption=\"Load New Title\" action=\"
|
14
|
+
<button caption=\"Create New Note\" action=\"rwdhypernotecreatenewnotehtml\"/>
|
15
|
+
<button caption=\"Load New Title\" action=\"rwdhypernotereloadtabhtml\"/>
|
16
16
|
|
17
|
-
<button caption=\"Save Changes\" action=\"
|
17
|
+
<button caption=\"Save Changes\" action=\"savehtmlhypernoterecord\"/>
|
18
18
|
|
19
19
|
|
20
|
-
<button caption=\"Clear\" action=\"
|
20
|
+
<button caption=\"Clear\" action=\"clearhypernotescreendisplayhtml\"/>
|
21
21
|
<button caption=\"Help\" action=\"runhelpwindowrwdhypernote\"/>
|
22
22
|
|
23
23
|
</horizontal>
|
24
|
-
<textarea name=\"
|
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=\"
|
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>%%
|
41
|
+
<p>%%noterecordsresulth%%</p>
|
42
42
|
<p>%%localnotelinksrecordsresult%%</p>
|
43
43
|
<p>%%notedirectoriesresult%%</p>
|
44
44
|
|
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.
|
7
|
-
date: 2005-05-
|
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
|