rwdfoldeditor 0.01 → 0.02

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,8 +4,8 @@
4
4
  # For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
5
5
  # This class is the top class for the RwdTinker application
6
6
 
7
- $DEBUG=true
8
- $VERBOSE=true
7
+ $DEBUG=false
8
+ $VERBOSE=false
9
9
 
10
10
  class RwdTinker < RWDialog
11
11
 
@@ -1,5 +1,5 @@
1
1
 
2
- def rwdwfoldeditor_0_01()
2
+ def rwdwfoldeditor_0_02()
3
3
  $tinkerdocumentsarray.delete_if {|x| x == "HowTo_FoldEditor.txt"}
4
4
  $tinkerhelpaboutarray.delete_if {|x| x == "RwdFoldEditor"}
5
5
  Helptext.delete_if {|key, value| key == :rwdfoldeditor_generalhelp}
@@ -5,33 +5,33 @@
5
5
  text notes can be entered and saved and organized into a fold link file
6
6
 
7
7
  Notes can be saved in any structure you want in directories
8
-
8
+ <p>
9
9
 
10
10
  There are tabs to enter notes and links and edit configurations
11
-
11
+ <p>
12
12
  'View/Edit Document' - to create a note or edit and existing note
13
-
13
+ <p>
14
14
  'FoldEditor File View' - to view and navigate the fold link file
15
-
15
+ <p>
16
16
  'RwdFoldEditor edit file' - to edit change fold link files
17
17
  ",
18
- :foldlinkview_help => "You can create or edit notes
19
- click the bottom button 'list notes' to see a lists
20
- of the notes you already have.
21
- 'save changes' to save your edits
22
- 'clear' to clear the screen
23
- 'Create New Note' to start a new note
24
- After creating a new note, you must click 'Load New Title'
25
- to select it, or it will NOT be SAVED",
18
+ :foldlinkview_help => "You can create or edit notes<p>
19
+ 'Open Detail' to view the selected note you already have.<p>
20
+ 'Save changes' to save your edits
21
+ <p>
22
+ 'Create New Note' to start a new note<p>
23
+ Before you come to this tab, you need to visit the Foldeditor FileView to select
24
+ the note from the list in a fold file.
25
+ ",
26
26
  :foldlinkutility_help => "You can choose the link file to work on
27
-
27
+ <p>
28
28
  You can edit links for note pages
29
-
29
+ <p>
30
30
  You can open the link file if you have one already
31
-
31
+ <p>
32
32
  You can see the list of link files by clicking 'List Local Link Files'
33
33
  You can open one of those file
34
-
34
+ <p>
35
35
  If you do not have a link file, you can create one with 'create link file' button
36
36
 
37
37
  "
@@ -0,0 +1,10 @@
1
+ # launch the browser with a url
2
+ def foldeditorlaunchurl
3
+
4
+
5
+
6
+ url = "file://" + @a_viewfoldlink.to_s.strip
7
+
8
+ `#{$foldeditorbrowser} "#{url}"`
9
+
10
+ end
@@ -1,7 +1,7 @@
1
1
  # this code is to list the fold files that are available
2
2
  def loadfoldeditorlinkfilelist
3
3
 
4
- fileList = Dir.new("rwd_files").entries.sort.delete_if { |x| ! (x =~ /fld$/) }
4
+ fileList = Dir.new($rwdfoldeditor_directory).entries.sort.delete_if { |x| ! (x =~ /fld$/) }
5
5
  @foldeditorlinkfiles = fileList.rwd_options
6
6
  end
7
7
 
@@ -0,0 +1,22 @@
1
+ # this method puts the configuration rexord on the screen
2
+ def loadrwdfoldeditorconfiguration
3
+
4
+ require 'fileutils'
5
+
6
+ @a_foldeditconfigurationfilename = "rwdwfoldeditor-" + RwdFoldEditorVersion + ".cnf"
7
+
8
+
9
+ begin # exception trapped block
10
+
11
+ Dir.chdir($progdir)
12
+ fileName = File.join(ConfigurationDir, @a_foldeditconfigurationfilename )
13
+
14
+
15
+ fd = File.open(fileName,"r")
16
+ @a_foldeditconfigurationfile= 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 loadrwdfoldeditorconfigurationvariables
3
+
4
+ tmpfilename = "rwdwfoldeditor-" + RwdFoldEditorVersion + ".cnf"
5
+ configfiletoload = File.join(ConfigurationDir, tmpfilename )
6
+ begin
7
+ load configfiletoload
8
+ @extrahypconfigdatadisplay = ""
9
+ @newhypconfigurationresult = "Config Variables loaded"
10
+ rescue
11
+ @extrahypconfigdatadisplay = ""
12
+ @newhypconfigurationresult = "loading error"
13
+ end
14
+ end
@@ -0,0 +1,20 @@
1
+ # this method saves configuration record
2
+ def saverwdfoldeditorconfiguration
3
+ require 'fileutils'
4
+
5
+
6
+ newname = "rwdwfoldeditor-" + RwdFoldEditorVersion + ".cnf" # grab the filename to create
7
+ newdata = @a_foldeditconfigurationfile
8
+
9
+
10
+ begin # exception trapped block
11
+ fileName = File.join( ConfigurationDir, newname )
12
+ fd = File.open(fileName,"w")
13
+ fd.print(newdata) # save the record info to the file
14
+ fd.close
15
+ @newconfigurationresult=newdata # show the record info in the browser
16
+ rescue SystemCallError, StandardError
17
+ $stderr.print "system call error: " + $!
18
+ end # exception rescue
19
+
20
+ end
@@ -1,6 +1,8 @@
1
- ##VERSION:0.01
1
+ ##VERSION:0.02
2
2
  ##NAME:$rwdfoldeditor_directory:0
3
3
  $rwdfoldeditor_directory = "rwd_files"
4
+ ##NAME:$foldeditorbrowser:0
5
+ $foldeditorbrowser = "firefox"
4
6
  ##NAME:$testharnesssarray:0
5
7
  $testharnessarray += ["rwdfoldeditor_all_tests"]
6
8
  $tinkerhelpaboutarray += ["RwdFoldEditor"]
@@ -8,5 +10,5 @@ $tinkerdocumentsarray += ["HowTo_FoldEditor.txt"]
8
10
  JumpLink.update(:RwdFoldEditor=>"runrwdfoldeditorwindow")
9
11
  $rwdjumplink +=["RwdFoldEditor"]
10
12
  ##NAME:RwdFoldEditorVersion:0
11
- RwdFoldEditorVersion = "0.01"
13
+ RwdFoldEditorVersion = "0.02"
12
14
 
@@ -31,7 +31,7 @@ $rwdguivar=
31
31
 
32
32
 
33
33
 
34
-
34
+ <button caption=\"Launch Links URL\" action=\"foldeditorlaunchurl\"/>
35
35
  <button caption=\"Choose note file\" action=\"choosefoldnotefile\"/>
36
36
  <button caption=\"Clear file list\" action=\"clearfoldlinklist3\"/>
37
37
 
@@ -0,0 +1,27 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"viewrwdfoldeditorconfiguration\" caption=\"RwdFoldEditor Configuration\">
4
+
5
+
6
+
7
+ <table>
8
+ <row> <p> </row>
9
+ <row> <p align=\"right\">You can view or edit the rwdfoldeditor configuration file here</row>
10
+ <row> <p> </row>
11
+ <horizontal>
12
+ <button caption=\"Fill Record\" action=\"loadrwdfoldeditorconfiguration\"/>
13
+ <button caption=\"Save Changes\" action=\"saverwdfoldeditorconfiguration\"/>
14
+ <button caption=\"Reload Variables\" action=\"loadrwdfoldeditorconfigurationvariables\"/>
15
+ <button caption=\"Help\" action=\"runhelpwindowrwdfoldeditor\"/>
16
+ </horizontal>
17
+ <table>
18
+
19
+ <textarea name=\"a_foldeditconfigurationfile\"/> </row>
20
+
21
+ </table>
22
+
23
+
24
+
25
+
26
+ </tab>"
27
+
@@ -4,8 +4,8 @@ code/superant.com.foldeditor
4
4
  tests/makedist-rwdwfoldeditor.rb
5
5
  tests/gemspec-rwdwfoldeditor
6
6
  rwd_files/HowTo_FoldEditor.txt
7
- configuration/rwdwfoldeditor-0.01.cnf
8
- configuration/rwdwfoldeditor-0.01.dist
7
+ configuration/rwdwfoldeditor-0.02.cnf
8
+ configuration/rwdwfoldeditor-0.02.dist
9
9
  rwd_files/default.fld
10
10
  rwd_files/rwdhypernote-0.13.fld
11
11
 
@@ -96,6 +96,10 @@ Steven Gibson
96
96
  steven@superant.com
97
97
 
98
98
  == Changelog
99
+ version 0.02
100
+ add configuration file editing
101
+ corrected handling of fold directory
102
+ added url launch for non text files
99
103
 
100
104
  version 0.01
101
105
  First Release
@@ -12,7 +12,7 @@ $rwdjumplink = [""]
12
12
  JumpLink = Hash.new("default")
13
13
  require 'fileutils'
14
14
  DistroName = "rwdwfoldeditor"
15
- DistroVersion=0.01
15
+ DistroVersion=0.02
16
16
  load "configuration/#{DistroName}-#{DistroVersion}.dist"
17
17
 
18
18
 
data/tests/makedist.rb CHANGED
@@ -14,7 +14,7 @@ require 'fileutils'
14
14
 
15
15
  DistroName = "rwdwfoldeditor"
16
16
 
17
- DistroVersion="0.01"
17
+ DistroVersion="0.02"
18
18
 
19
19
  DistroTitle="#{DistroName}-#{DistroVersion}.dist"
20
20
  load "configuration/#{DistroTitle}"
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rwdfoldeditor
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.01"
4
+ version: "0.02"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Gibson
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-09-13 00:00:00 -07:00
12
+ date: 2008-09-14 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -89,15 +89,19 @@ files:
89
89
  - code/superant.com.foldeditor/openhelpwindowrwdhyernote.rb
90
90
  - code/superant.com.foldeditor/changehypernotename.rb
91
91
  - code/superant.com.foldeditor/loadrwdfoldeditlinkfile.rb
92
+ - code/superant.com.foldeditor/saveconfigurationrecord.rb
92
93
  - code/superant.com.foldeditor/0uninstallapplet.rb
93
94
  - code/superant.com.foldeditor/rwdtinkerversion.rb
95
+ - code/superant.com.foldeditor/loadconfigurationrecord.rb
94
96
  - code/superant.com.foldeditor/rwddisplayfoldlinks.rb
95
97
  - code/superant.com.foldeditor/helptexthashrwdhypernote.rb
96
98
  - code/superant.com.foldeditor/createnewnotehtml.rb
97
99
  - code/superant.com.foldeditor/hyperlinkcreatelinkfile.rb
100
+ - code/superant.com.foldeditor/loadconfigurationvariables.rb
98
101
  - code/superant.com.foldeditor/listfoldeditorfiles.rb
99
102
  - code/superant.com.foldeditor/loadfolddocument.rb
100
103
  - code/superant.com.foldeditor/choosenotefile.rb
104
+ - code/superant.com.foldeditor/launchfoldeditorurl.rb
101
105
  - code/superant.com.foldeditor/chooselinkfile.rb
102
106
  - code/superant.com.foldeditor/savefoldlinkfile.rb
103
107
  - code/superant.com.foldeditor/runrwdapplet.rb
@@ -105,7 +109,7 @@ files:
105
109
  - configuration/tinkerwin2variables.dist
106
110
  - configuration/language.dist
107
111
  - configuration/rwdapplicationidentity.dist
108
- - configuration/rwdwfoldeditor-0.01.dist
112
+ - configuration/rwdwfoldeditor-0.02.dist
109
113
  - lang/en/rwdcore/languagefile.rb
110
114
  - lang/es/rwdcore/languagefile-es.rb
111
115
  - lang/fr/rwdcore/languagefile.rb
@@ -131,6 +135,7 @@ files:
131
135
  - gui/tinkerbackwindows/superant.com.foldeditor/56viewfold.rwd
132
136
  - gui/tinkerbackwindows/superant.com.foldeditor/15htmlview.rwd
133
137
  - gui/tinkerbackwindows/superant.com.foldeditor/9end.rwd
138
+ - gui/tinkerbackwindows/superant.com.foldeditor/67viewconfiguration.rwd
134
139
  - gui/tinkerbackwindows/superant.com.foldeditor/10aviewnote.rwd
135
140
  - gui/tinkerbackwindows/superant.com.foldeditor/10appletbegin.rwd
136
141
  - gui/tinkerbackwindows/superant.com.foldeditor/81jumplinkcommands.rwd
@@ -150,7 +155,7 @@ files:
150
155
  - gui/frontwindowselections/00selectiontabbegin.rwd
151
156
  - gui/zzcoreguiend/yy9rwdend.rwd
152
157
  - installed/temp.rb
153
- - installed/rwdwfoldeditor-0.01.inf
158
+ - installed/rwdwfoldeditor-0.02.inf
154
159
  - rwd_files/tinker.png
155
160
  - rwd_files/favicon.ico
156
161
  - rwd_files/default.fld
@@ -164,7 +169,7 @@ files:
164
169
  - rwd_files/HowTo_FoldEditor.txt
165
170
  - zips/rwdwgutenberg-0.09.zip
166
171
  - zips/temp.rb
167
- - zips/rwdwfoldeditor-0.01.zip
172
+ - zips/rwdwfoldeditor-0.02.zip
168
173
  - zips/rwdwcalc-0.61.zip
169
174
  - zips/rwdwshell-1.04.zip
170
175
  - zips/rwdwaddresses-1.05.zip
Binary file