rwdhypernote 0.03
Sign up to get free protection for your applications and to get access to all the features.
- data/Notes/changes.lnk +1 -0
- data/Notes/changes.txt +1 -0
- data/Notes/hypernote/hypernote01.txt +1 -0
- data/Notes/hypernote/hypernote02.txt +1 -0
- data/Notes/hypernote/newnote3.txt +2 -0
- data/Notes/rwdtinker/RwdtinkerProgrammingQuickStart.lnk +1 -0
- data/Notes/rwdtinker/RwdtinkerProgrammingQuickStart.txt +11 -0
- data/Notes/rwdtinker/newnote.txt +1 -0
- data/Notes/rwdtinker/rwdtinker01.txt +9 -0
- data/Notes/rwdtinker/testnote2.txt +1 -0
- data/Readme.txt +97 -0
- data/bin/rwdhypernote +19 -0
- data/code/01rwdcore/01rwdcore.rb +20 -0
- data/code/01rwdcore/02helptexthashbegin.rb +4 -0
- data/code/01rwdcore/03helptexthash.rb +31 -0
- data/code/01rwdcore/04helptextend.rb +6 -0
- data/code/01rwdcore/openhelpwindow.rb +31 -0
- data/code/01rwdcore/returntomain.rb +10 -0
- data/code/01rwdcore/rwdtinkerversion.rb +15 -0
- data/code/01rwdcore/rwdwindowreturn.rb +11 -0
- data/code/superant.com.hypernote/archiveevent.rb +14 -0
- data/code/superant.com.hypernote/changehypernotename.rb +21 -0
- data/code/superant.com.hypernote/clearhypernotescreendisplay.rb +8 -0
- data/code/superant.com.hypernote/clearlinkscreendisplay.rb +8 -0
- data/code/superant.com.hypernote/copyfilename.rb +10 -0
- data/code/superant.com.hypernote/createnewnote.rb +14 -0
- data/code/superant.com.hypernote/deletehypernoterecord.rb +20 -0
- data/code/superant.com.hypernote/helptexthashrwdhypernote.rb +60 -0
- data/code/superant.com.hypernote/hyperlinkcreatelinkfile.rb +19 -0
- data/code/superant.com.hypernote/listhypernotelinks.rb +52 -0
- data/code/superant.com.hypernote/listhypernotes.rb +55 -0
- data/code/superant.com.hypernote/listlinknotes.rb +33 -0
- data/code/superant.com.hypernote/loadconfigurationrecord.rb +34 -0
- data/code/superant.com.hypernote/loadconfigurationvariables.rb +13 -0
- data/code/superant.com.hypernote/loadlinksrecord.rb +21 -0
- data/code/superant.com.hypernote/loadnoterecord.rb +24 -0
- data/code/superant.com.hypernote/openhelpwindowrwdhyernote.rb +23 -0
- data/code/superant.com.hypernote/returntomain.rb +10 -0
- data/code/superant.com.hypernote/rwdhypernotehelpabout.rb +14 -0
- data/code/superant.com.hypernote/saveconfigurationrecord.rb +18 -0
- data/code/superant.com.hypernote/savehypernoterecord.rb +20 -0
- data/code/superant.com.hypernote/savelinkrecord.rb +23 -0
- data/code/superant.com.hypernote/viewrwdschedulesconfiguration.rb +21 -0
- data/code/superant.com.rwdtinkerbackwindow/controlclient.rb +99 -0
- data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +21 -0
- data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +58 -0
- data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +22 -0
- data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +20 -0
- data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +19 -0
- data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +12 -0
- data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +54 -0
- data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +11 -0
- data/code/superant.com.rwdtinkerbackwindow/listzips.rb +31 -0
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +32 -0
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb +13 -0
- data/code/superant.com.rwdtinkerbackwindow/network.rb +87 -0
- data/code/superant.com.rwdtinkerbackwindow/openappletname.rb +18 -0
- data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +42 -0
- data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +24 -0
- data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +28 -0
- data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +12 -0
- data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +14 -0
- data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +18 -0
- data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +21 -0
- data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +21 -0
- data/code/zz0applicationend/zz0end.rb +4 -0
- data/configuration/language.cnf +5 -0
- data/configuration/rwdapplicationidentity.cnf +3 -0
- data/configuration/rwdhypernote.cnf +9 -0
- data/configuration/rwdhypernoteversion.cnf +3 -0
- data/configuration/rwdtinker.cnf +16 -0
- data/configuration/rwdtinkerversion.cnf +2 -0
- data/configuration/tinkerwin2variables.cnf +12 -0
- data/configuration/tinkerwin2version.cnf +3 -0
- data/ev/browser.rb +109 -0
- data/ev/ftools.rb +170 -0
- data/ev/net.rb +750 -0
- data/ev/ruby.rb +819 -0
- data/ev/rwd.rb +1849 -0
- data/ev/sgml.rb +236 -0
- data/ev/thread.rb +63 -0
- data/ev/tree.rb +343 -0
- data/ev/xml.rb +4 -0
- data/extras/zip/ioextras.rb +114 -0
- data/extras/zip/stdrubyext.rb +111 -0
- data/extras/zip/tempfile_bugfixed.rb +195 -0
- data/extras/zip/zip.rb +1376 -0
- data/extras/zip/zipfilesystem.rb +558 -0
- data/extras/zip/ziprequire.rb +61 -0
- data/gui/00coreguibegin/applicationguitop.rwd +4 -0
- data/gui/frontwindow0/superant.com.hypernote/10viewnote.rwd +32 -0
- data/gui/frontwindow0/superant.com.hypernote/20editlinks.rwd +34 -0
- data/gui/frontwindow0/superant.com.hypernote/30noteutilities.rwd +27 -0
- data/gui/frontwindowselectionbegin/selectiontabbegin/selectiontabbegin.rwd +16 -0
- data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +12 -0
- data/gui/frontwindowselectionzend/viewselectionzend/viewselectionend.rwd +3 -0
- data/gui/frontwindowtdocumentbegin/superant.com.documentsbegin/tt0documentbegin.rwd +6 -0
- data/gui/frontwindowtdocuments/superant.com.documents/uu5documents.rwd +15 -0
- data/gui/frontwindowtdocuments/superant.com.rwdhypernotedocument/rwdhypernotedocument.rwd +5 -0
- data/gui/frontwindowtdocuments/superant.com.tinkerwin2documents/uu5documents.rwd +6 -0
- data/gui/frontwindowtdocumentzend/superant.com.documentsend/ww0documentend.rwd +12 -0
- data/gui/frontwindowz1end/frontwindowend/xx0rwdfirsttab.rwd +6 -0
- data/gui/helpaboutbegin/superant.com.helpaboutbegin/ya0helpscreenstart.rwd +3 -0
- data/gui/helpaboutinstalled/superant.com.rwdhypernotehelpabout/1versionname.rwd +6 -0
- data/gui/helpaboutinstalled/superant.com.rwdhypernotehelpabout/5version.rwd +9 -0
- data/gui/helpaboutinstalled/superant.com.rwdwin2helpabout/1appname.rwd +4 -0
- data/gui/helpaboutinstalled/superant.com.rwdwin2helpabout/3copyright.rwd +3 -0
- data/gui/helpaboutinstalled/superant.com.rwdwin2helpabout/5version.rwd +10 -0
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/1appname.rwd +4 -0
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/3copyright.rwd +3 -0
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/5version.rwd +10 -0
- data/gui/helpaboutzend/superant.com.helpaboutend/helpscreenend.rwd +3 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/1appname.rwd +5 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd +42 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/45installremotezip.rwd +44 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd +44 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd +38 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd +33 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdcontrol.rwd +33 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/80tab1.rwd +11 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/9backend.rwd +6 -0
- data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd +31 -0
- data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/9end.rwd +4 -0
- data/gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd +19 -0
- data/gui/zzcoreguiend/tinkerapplicationguiend/yy9rwdend.rwd +4 -0
- data/init.rb +269 -0
- data/lang/alanguagehashbegin.rb +4 -0
- data/lang/en/rwdcore/languagefile.rb +16 -0
- data/lang/es/rwdcore/languagefile-es.rb +14 -0
- data/lang/jp/rwdcore/languagefile.rb +9 -0
- data/lang/languagehash.rb +4 -0
- data/lang/nl/rwdcore/languagefile.rb +19 -0
- data/lang/templangfile.rb +16 -0
- data/lang/vlanguagehashend.rb +6 -0
- data/lang/wlocallangstart.rb +5 -0
- data/lang/xlocallangfile.rb +16 -0
- data/lang/zlocallangend.rb +2 -0
- data/lib/temp.rb +1 -0
- data/rwd_files/HowTo_HyperNote.txt +97 -0
- data/rwd_files/HowTo_Tinker.txt +375 -0
- data/rwd_files/HowTo_TinkerWin2.txt +202 -0
- data/rwd_files/Readme.txt +57 -0
- data/rwd_files/favicon.ico +0 -0
- data/rwd_files/rdoc-style.css +175 -0
- data/rwd_files/rwdapplications.html +54 -0
- data/rwd_files/rwdindex.html +6 -0
- data/rwd_files/tinker.png +0 -0
- data/zips/rwdahelloworld-0.5.zip +0 -0
- metadata +202 -0
data/Notes/changes.lnk
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Notes/changes.txt
|
data/Notes/changes.txt
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
# rwdhypernotes
|
@@ -0,0 +1 @@
|
|
1
|
+
This is information about hypernote
|
@@ -0,0 +1 @@
|
|
1
|
+
More information about hypernote
|
@@ -0,0 +1 @@
|
|
1
|
+
Notes/changes.txt
|
@@ -0,0 +1,11 @@
|
|
1
|
+
rwdtinker programs are free and can be downloaded from the rubyforge; go to http://www.rubyforge.org/ and search for rwd.
|
2
|
+
|
3
|
+
using rwdtinker consists of several options (not all have to be done for all projects):
|
4
|
+
|
5
|
+
* producing gui screens as rwd file in the gui directory
|
6
|
+
* producing program logic in rb files in the code directory
|
7
|
+
* producing configuration login in the configuration directory
|
8
|
+
* providing data if needed for your program
|
9
|
+
* producing HTML or text for the documentation tab in the rwd_files directory
|
10
|
+
|
11
|
+
This is a quick get started guide and should help you:
|
@@ -0,0 +1 @@
|
|
1
|
+
This is a new note.
|
@@ -0,0 +1,9 @@
|
|
1
|
+
The source code and the gui code are split into atomic parts and use init.rb to merge the parts together.
|
2
|
+
|
3
|
+
With the framework, we are able to ship a "plugin" or "applet" that can be dropped into a directory and installed automatically. Also uninstalled. I am calling this framework Tinker, so the core program I call rwdtinker. My wife, Charlotte. suggested the name. It relates to the "Tinker Toys" that has blocks and dowls and shapes that can be assembled by children and take different shapes. Without the word toy, it reminds us if the older English meaning of "a person who repairs pots and household devices by soldering and hammering.
|
4
|
+
|
5
|
+
The delivered applet is setup in the required directory structure with code configueration gui including help files location of documentation rwd_files = where documention for the applet can go. installed = a inf file that lists the manifest of files
|
6
|
+
|
7
|
+
This package is zipped up and uploaded as a file like rwdashedule-0.2.zip
|
8
|
+
|
9
|
+
The enduser who has the rwdtinker program drops the zip file into a directory called zips. I have parts of rwdtinker now (for Linux) that can install it automatically and remove it (based on the .inf file)
|
@@ -0,0 +1 @@
|
|
1
|
+
This is a new note.
|
data/Readme.txt
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
= rwdhypernote - for rwdtinker and RubyWebDialogs
|
2
|
+
|
3
|
+
rwdhypernote is a little hierarchical notes editor
|
4
|
+
|
5
|
+
The GUI interface used is RubyWebDialogs
|
6
|
+
|
7
|
+
RubyWebDialogs is a platform independent graphical user interface for Ruby applications. It generates HTML and serves it with an internal HTTP server, so you can use your favorite web browser as the front end for your Ruby application. All this means, that it can be used on almost every platform, like Ruby itself. http://www.erikveen.dds.nl/rubywebdialogs/
|
8
|
+
|
9
|
+
== Quick Start
|
10
|
+
Start the program by typing
|
11
|
+
ruby init.rb
|
12
|
+
|
13
|
+
Then point your web browser to:
|
14
|
+
http://localhost:7705/
|
15
|
+
|
16
|
+
To exit, press the x inside the browser window.
|
17
|
+
|
18
|
+
== rwdhypernote
|
19
|
+
|
20
|
+
This program is a hierarchical notes editor
|
21
|
+
text notes can be entered and saved in a Notes directory
|
22
|
+
|
23
|
+
Notes can be saved in a hierarchical structure in directories
|
24
|
+
Links can be recorded connecting Notes -similar to wikiwiki
|
25
|
+
|
26
|
+
== Tabs
|
27
|
+
|
28
|
+
There are tabs to enter notes and links and edit configurations
|
29
|
+
|
30
|
+
View/Edit Note - to create a note or edit and existing note
|
31
|
+
|
32
|
+
View/Edit Links - to edit links
|
33
|
+
|
34
|
+
Note Utilities - to rename or delete notes
|
35
|
+
|
36
|
+
Edit Configuration - to change the configuration of rwdhypernote
|
37
|
+
|
38
|
+
|
39
|
+
== Using over a Network
|
40
|
+
|
41
|
+
To serve the application over your local LAN,change the last line in the
|
42
|
+
init.rb file to something like:
|
43
|
+
RwdTinker.file(RWDFile).serve(8080, "-r" ? ".rwduids" : nil)
|
44
|
+
Then you should be able to login at: http://yourhostname:8080
|
45
|
+
|
46
|
+
You have to authorize yourself. The .rwuids example is a string with
|
47
|
+
the name of the authorization file, relative to the home directory
|
48
|
+
of the user that started the service. This file has to be in the form of:
|
49
|
+
|
50
|
+
user1 = password
|
51
|
+
user2 = pass phrase
|
52
|
+
|
53
|
+
Thus the file .rwduids might contain:
|
54
|
+
|
55
|
+
erik = secret
|
56
|
+
|
57
|
+
== Requirements:
|
58
|
+
RubyWebDialogs - I am using 0.0.12
|
59
|
+
Ruby I am using version 1.8.2
|
60
|
+
|
61
|
+
|
62
|
+
I have tested this under Linux-Debian kernel 2.6.9
|
63
|
+
|
64
|
+
== PROBLEMS:
|
65
|
+
|
66
|
+
Closing the browser doesn't terminate the application. You have to use the application's close-button And terminating the application doesn't terminate the application when running in network mode. You just log out.
|
67
|
+
|
68
|
+
Don't use the back-button of the browser! Strange and unpredictable things may and will happen!
|
69
|
+
|
70
|
+
|
71
|
+
== contacts
|
72
|
+
For more information see:
|
73
|
+
http://rwdapplications.rubyforge.org/wiki/wiki.pl
|
74
|
+
|
75
|
+
|
76
|
+
For more information about RubyWebDialogs see:
|
77
|
+
http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
78
|
+
|
79
|
+
|
80
|
+
Steven Gibson
|
81
|
+
steven@superant.com
|
82
|
+
|
83
|
+
== Changelog
|
84
|
+
version 0.03
|
85
|
+
view and edit note
|
86
|
+
view and edit links
|
87
|
+
rename and delete files
|
88
|
+
|
89
|
+
version 0.02
|
90
|
+
updated for rwdtinker 1.54
|
91
|
+
adding internal links
|
92
|
+
beginning help
|
93
|
+
helpabout
|
94
|
+
|
95
|
+
version 0.01
|
96
|
+
First Release
|
97
|
+
|
data/bin/rwdhypernote
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#--
|
3
|
+
# Copyright 2004 Steven Gibson <steven@superant.com>
|
4
|
+
# RwdTinker application
|
5
|
+
#
|
6
|
+
# This program is free software. It may be redistributed and/or modified under
|
7
|
+
# the terms of the GPL version 2 (or later), or the
|
8
|
+
# Ruby licence.
|
9
|
+
#
|
10
|
+
#++
|
11
|
+
|
12
|
+
|
13
|
+
$progdir = File::expand_path( File.dirname(__FILE__))
|
14
|
+
|
15
|
+
Dir.chdir($progdir)
|
16
|
+
|
17
|
+
Dir.chdir("..")
|
18
|
+
|
19
|
+
`ruby init.rb`
|
@@ -0,0 +1,20 @@
|
|
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
|
6
|
+
|
7
|
+
class RwdTinker < RWDialog
|
8
|
+
|
9
|
+
def main
|
10
|
+
@rwd_window = "main"
|
11
|
+
@result = "idle"
|
12
|
+
@display= "idle"
|
13
|
+
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
def inspect
|
18
|
+
"Rwdtinker Application "
|
19
|
+
end
|
20
|
+
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Help files for RwdTinker core
|
2
|
+
|
3
|
+
|
4
|
+
:general_help => "You can work with Applets: go to 'Selection tab',
|
5
|
+
On that back screen you will find:
|
6
|
+
List Applets: you can see and delete installed applets
|
7
|
+
List Zips: you can see lists of applets that you can install
|
8
|
+
Edit Configuration: You can view the rwdtinker configuration and change it
|
9
|
+
Diagnostic Tab: You can view the environments variables that rwdtinker is running with
|
10
|
+
",
|
11
|
+
:network_help => "Using over a Network: To serve the application over your local LAN,change the last line in the
|
12
|
+
init.rb file to something like:\n
|
13
|
+
RwdTinker.file(RWDFile).serve(8080, '-r' ? '.rwduids' : nil)\n
|
14
|
+
Then you should be able to login at: http://yourhostname:8080",
|
15
|
+
|
16
|
+
|
17
|
+
:documents_rwdtinker => "Documents:
|
18
|
+
|
19
|
+
|
20
|
+
when you click on a document name, the document should pop up in a
|
21
|
+
browser window, or in another browser tab.",
|
22
|
+
:remote_control => "Remote control gives you a way to determine what applications are running on which ports
|
23
|
+
|
24
|
+
The name of the application is set in the config file
|
25
|
+
You need to click the show remote command choices first - this will show the port and query choices
|
26
|
+
Then you can click in 'Run Command' to see if other applications are running.
|
27
|
+
|
28
|
+
The remote ports daemon will not be running unless you start it.
|
29
|
+
|
30
|
+
"
|
31
|
+
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# this code is to call the help window
|
2
|
+
def runhelpwindow
|
3
|
+
$helptopicsarray = $helptopicsarray | ["applet_installation","applet_viewing","applet_tinkerbackeditconfiguration","remote_control"]
|
4
|
+
|
5
|
+
if @rwd_window == "main"
|
6
|
+
if @rwd_tab == "documentsrwdtinkerone"
|
7
|
+
$help_topic = "documents_rwdtinker"
|
8
|
+
end
|
9
|
+
|
10
|
+
end
|
11
|
+
|
12
|
+
if @rwd_window == "rwdtinkerhelpwindow"
|
13
|
+
puts "in help window processing"
|
14
|
+
else
|
15
|
+
$previouswindow = @rwd_window
|
16
|
+
$previoustab = @rwd_tab
|
17
|
+
end
|
18
|
+
|
19
|
+
|
20
|
+
@rwdhelptopic = $help_topic
|
21
|
+
@rwdhelpdataoutput = "#{Helptext[:"#{$help_topic}"]}"
|
22
|
+
@rwdhelpsubchoicesoutput = $helptopicsarray.rwd_method("choosenewhelptopic")
|
23
|
+
@rwd_window = "rwdtinkerhelpwindow"
|
24
|
+
end
|
25
|
+
|
26
|
+
def choosenewhelptopic(inffile)
|
27
|
+
$help_topic = inffile
|
28
|
+
runhelpwindow
|
29
|
+
end
|
30
|
+
|
31
|
+
|
@@ -0,0 +1,15 @@
|
|
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
|
+
|
6
|
+
# return the version constant defined in the config file
|
7
|
+
def runrwdtinkerversion
|
8
|
+
@rwd_window = "applicationversion"
|
9
|
+
@versionappnamedisplay = "RwdTinker"
|
10
|
+
@versioncopyrightdisplay = "(c) 2004 Steven Gibson "
|
11
|
+
@versionnumberdisplay = "Version " + RwdTinkerVersion
|
12
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# this code is to archive the event
|
2
|
+
def archiveevent
|
3
|
+
oldName = $rwdschedule_directory + "/" + @a_viewevent + ".sch"
|
4
|
+
newName = $rwdschedule_directory + "/" + "archive" + "/" + @a_viewevent + ".sch"
|
5
|
+
begin
|
6
|
+
File.move(oldName, newName)
|
7
|
+
@eventfilechangeresult = "event archived"
|
8
|
+
rescue
|
9
|
+
@eventfilechangeresult = "archive error"
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
13
|
+
|
14
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# this code is to change the note name
|
2
|
+
def changehypernotedata
|
3
|
+
if ! @a_changehypernotedata.empty?
|
4
|
+
if ! @a_viewhypernote.empty?
|
5
|
+
oldName = @a_viewhypernote + ".txt"
|
6
|
+
|
7
|
+
|
8
|
+
newName = @a_changehypernotedata + ".txt"
|
9
|
+
if File.exist?(oldName)
|
10
|
+
File.rename(oldName, newName)
|
11
|
+
oldlinkName = @a_viewhypernote + ".lnk"
|
12
|
+
newlinkName = @a_changehypernotedata + ".lnk"
|
13
|
+
if File.exist?(oldlinkName)
|
14
|
+
File.rename(oldlinkName, newlinkName)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
#
|
2
|
+
def rwdhypernotecreatenewnote
|
3
|
+
if @a_notedata.empty?
|
4
|
+
newnotecontent = 'new note'
|
5
|
+
else
|
6
|
+
newnotecontent = @a_notedata.to_s
|
7
|
+
end
|
8
|
+
if @a_viewhypernote.empty?
|
9
|
+
newnotefilename = "newnote.txt"
|
10
|
+
else
|
11
|
+
newnotefilename = @a_viewhypernote.to_s + ".txt"
|
12
|
+
end
|
13
|
+
download("#{newnotecontent}", "#{newnotefilename}")
|
14
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# this method deletes a record
|
2
|
+
def deletehypernoterecord
|
3
|
+
|
4
|
+
require 'fileutils'
|
5
|
+
if ! @a_viewhypernote.empty?
|
6
|
+
fileName = @a_viewhypernote + ".txt"
|
7
|
+
fileNamelnk = @a_viewhypernote + ".lnk"
|
8
|
+
begin # exception trapped block
|
9
|
+
if File.exist?(fileName)
|
10
|
+
File.delete(fileName)
|
11
|
+
if File.exist?(fileNamelnk)
|
12
|
+
File.delete(fileNamelnk)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
@hypernotefilechangeresult = "File Deleted!"
|
16
|
+
rescue
|
17
|
+
@hypernotefilechangeresult = "File Deletion error"
|
18
|
+
end # exception rescue
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
Helptext.update( :rwdhypernote_generalhelp => "This program is a hierarchical notes editor
|
4
|
+
|
5
|
+
text notes can be entered and saved in a Notes directory
|
6
|
+
|
7
|
+
Notes can be saved in a hierarchical structure in directories
|
8
|
+
Links can be recorded connecting Notes -similar to wikiwiki
|
9
|
+
|
10
|
+
There are tabs to enter notes and links and edit configurations
|
11
|
+
|
12
|
+
'View/Edit Note' - to create a note or edit and existing note
|
13
|
+
|
14
|
+
'View/Edit Links' - to edit links
|
15
|
+
|
16
|
+
'Note Utilities' - to rename or delete notes
|
17
|
+
|
18
|
+
'Edit Configuration' - to change the configuration of rwdhypernote
|
19
|
+
|
20
|
+
.",
|
21
|
+
:hypernotelinks_help => " You can edit links for note pages
|
22
|
+
|
23
|
+
If you have selected a note on the 'View/Edit Note' tab
|
24
|
+
the name should be in the Note Record box
|
25
|
+
|
26
|
+
You can open the link file if you have one already
|
27
|
+
|
28
|
+
You can see the list of link files by clicking 'List Local Link Files'
|
29
|
+
You can open one of those file
|
30
|
+
|
31
|
+
If you do not have a link file, you can create one with 'create link file' button
|
32
|
+
|
33
|
+
",
|
34
|
+
|
35
|
+
:rwdschedule_configuration => " click on 'Edit Configuration'
|
36
|
+
You can view the configuration file
|
37
|
+
|
38
|
+
You can edit the configuration
|
39
|
+
|
40
|
+
Remember to reload the configuration variables if you want your
|
41
|
+
changes used.",
|
42
|
+
:rwdhypernote_sync => "Sync for multiple computers
|
43
|
+
|
44
|
+
If you are like me, you have more than one system
|
45
|
+
I use rwdTinker at home on my Linux laptop
|
46
|
+
at work I use it on XP
|
47
|
+
on the go I use rwdtinker on my Zaurus PDA
|
48
|
+
So I am adding notes on different machines.
|
49
|
+
There is a function to help sync the separate systems
|
50
|
+
|
51
|
+
in 'Selection Panel' click on 'Open HyperNote Sync Window'
|
52
|
+
|
53
|
+
First you need your ftp details set in the
|
54
|
+
configuration/rwdhypernote.cnf file
|
55
|
+
|
56
|
+
you can upload your notes from your local Notes directory to the ftp site
|
57
|
+
you can download Notes from the ftp site to your local updates directory
|
58
|
+
|
59
|
+
"
|
60
|
+
)
|