rwddemo 0.8 → 0.90
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.txt +46 -0
- data/code/{ag1core/aa0begin.rb → 01rwdcore/01rwdcore.rb} +2 -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/{ag1core → 01rwdcore}/rwdtinkerversion.rb +0 -0
- data/code/01rwdcore/rwdwindowreturn.rb +11 -0
- data/code/{dd0shelleval → rwdcalc}/changescriptname.rb +0 -0
- data/code/rwdcalc/clearscriptscreendisplay.rb +9 -0
- data/code/rwdcalc/deletescriptrecord.rb +20 -0
- data/code/rwdcalc/helptexthashrwdcalc.rb +14 -0
- data/code/rwdcalc/listscripts.rb +13 -0
- data/code/rwdcalc/loadscriptrecord.rb +20 -0
- data/code/rwdcalc/mathcommands.rb +53 -0
- data/code/rwdcalc/openhelpwindowrwdcalc.rb +21 -0
- data/code/rwdcalc/playscript.rb +22 -0
- data/code/rwdcalc/renamecalcrecord.rb +14 -0
- data/code/rwdcalc/runrwdcalcwindow.rb +1 -0
- data/code/rwdcalc/savechangedscript.rb +19 -0
- data/code/rwdcalc/viewscript.rb +18 -0
- data/code/superant.com.rwdcalendar/gh9calendar.rb +40 -16
- data/code/superant.com.rwdshell/changescriptname.rb +16 -0
- data/code/{dd0shelleval → superant.com.rwdshell}/clearscriptscreendisplay.rb +0 -0
- data/code/{dd0shelleval → superant.com.rwdshell}/deletescriptrecord.rb +0 -0
- data/code/superant.com.rwdshell/helptexthashrubyslippers.rb +81 -0
- data/code/superant.com.rwdshell/listrubyscripts.rb +13 -0
- data/code/{dd0shelleval → superant.com.rwdshell}/listscripts.rb +0 -0
- data/code/superant.com.rwdshell/loadconfigurationrecord.rb +33 -0
- data/code/superant.com.rwdshell/loadconfigurationvariables.rb +13 -0
- data/code/{dd0shelleval → superant.com.rwdshell}/loadscriptrecord.rb +0 -0
- data/code/superant.com.rwdshell/openhelpwindowrubyslippers.rb +50 -0
- data/code/superant.com.rwdshell/playrubyscript.rb +22 -0
- data/code/{dd0shelleval → superant.com.rwdshell}/playscript.rb +0 -0
- data/code/superant.com.rwdshell/returntomain.rb +10 -0
- data/code/{dd0shelleval → superant.com.rwdshell}/rubyeval.rb +0 -0
- data/code/superant.com.rwdshell/runrwdshellbackwindow.rb +10 -0
- data/code/superant.com.rwdshell/runrwdshellmenu1.rb +57 -0
- data/code/{dd0shelleval → superant.com.rwdshell}/runrwdshellwindow.rb +0 -0
- data/code/{dd0shelleval → superant.com.rwdshell}/rwdshellversion.rb +0 -0
- data/code/{dd0shelleval → superant.com.rwdshell}/savechangedscript.rb +0 -0
- data/code/superant.com.rwdshell/saveconfigurationrecord.rb +18 -0
- data/code/{dd0shelleval → superant.com.rwdshell}/shelleval.rb +0 -0
- data/code/superant.com.rwdshell/viewrubyscript.rb +18 -0
- data/code/{dd0shelleval → superant.com.rwdshell}/viewscript.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/controlclient.rb +99 -0
- data/code/{xb1rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/diagnostictab.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +58 -0
- data/code/{xb1rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/installapplet.rb +9 -8
- 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/{xb1rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/listinstalledfiles.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/listzips.rb +31 -0
- data/code/{xb1rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/loadconfigurationrecord.rb +1 -1
- data/code/{xb1rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/loadconfigurationvariables.rb +1 -1
- data/code/superant.com.rwdtinkerbackwindow/network.rb +87 -0
- data/code/{xb1rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/openappletname.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +42 -0
- data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +24 -0
- data/code/{xb1rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/removeapplet.rb +0 -0
- data/code/{xa5rwdtinkercallable/callable.rb → superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb} +2 -3
- data/code/{xb1rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/rwdtinkerwin2version.rb +0 -0
- data/code/{xb1rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/saveconfigurationrecord.rb +1 -1
- data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +21 -0
- data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +21 -0
- data/configuration/{rwdplayscripts.cnf → playscripts.cnf} +0 -2
- data/configuration/rwdapplicationidentity.cnf +3 -0
- data/configuration/rwdcalc.cnf +1 -0
- data/configuration/rwdcalendar.cnf +4 -27
- data/configuration/rwdcalendarversion.cnf +4 -0
- data/configuration/rwdshellversion.cnf +2 -0
- data/configuration/rwdtinker.cnf +6 -2
- data/configuration/rwdtinkerversion.cnf +1 -1
- data/configuration/tinkerwin2variables.cnf +7 -3
- data/configuration/tinkerwin2version.cnf +1 -1
- data/ev/rwd.rb +4 -3
- data/extras/cal.rb +158 -0
- data/gui/00coreguibegin/applicationguitop.rwd +1 -1
- data/gui/frontwindow0/superant.com.tinkercalendar/hl9calendar.rwd +27 -20
- data/gui/frontwindowselectionbegin/selectiontabbegin/selectiontabbegin.rwd +1 -1
- data/gui/frontwindowselections/superant.com.rwdshellselectiontab/rwdshellbackwindowselectiontab.rwd +12 -0
- data/gui/frontwindowtdocumentbegin/superant.com.documentsbegin/tt0documentbegin.rwd +1 -1
- data/gui/frontwindowtdocuments/{ub7rubyeval → superant.com.rubyeval}/rubyeval.rwd +0 -0
- data/gui/frontwindowtdocuments/{vv1docshellxp → superant.com.shelldocument}/vvdocshellxp.rwd +0 -0
- data/gui/frontwindowtdocuments/uu6rwdcalcdocument/uu5documents.rwd +6 -0
- data/gui/frontwindowtdocumentzend/superant.com.documentsend/ww0documentend.rwd +5 -0
- data/gui/helpaboutinstalled/{yl4rwdshellhelpabout → superant.com.shellhelpabout}/1appname.rwd +0 -0
- data/gui/helpaboutinstalled/{yl2rwddemohelpabout → superant.com.shellhelpabout}/3copyright.rwd +0 -0
- data/gui/helpaboutinstalled/{yl4rwdshellhelpabout → superant.com.shellhelpabout}/5version.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/1appname.rwd +1 -1
- data/gui/tinkerbackwindows/superant.com.rwdcalc/{floatrwdcalc.rwd → 20floatrwdcalc.rwd} +0 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/{intrwdcalc.rwd → 30intrwdcalc.rwd} +0 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/35mathcommands.rwd +25 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/44listplayscripts.rwd +19 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/45listscripts.rwd +25 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/46editscriptrecord.rwd +30 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/4scriptutilities.rwd +25 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/98returntab.rwd +11 -0
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/1appname.rwd +5 -0
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/44listplayscripts.rwd +19 -0
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/45listscripts.rwd +25 -0
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/46editscriptrecord.rwd +30 -0
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/92viewconfiguration.rwd +38 -0
- data/gui/tinkerbackwindows/{superant.com.tinkerbackwindow/3arwddiagnostics.rwd → superant.com.rwdshellbackwindow/94rwddiagnostics.rwd} +0 -0
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/v9returntab.rwd +11 -0
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/zbackend.rwd +6 -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 +1 -1
- 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 +1 -1
- data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd +31 -0
- data/gui/tinkerbackwindows/{superant.com.tinercallablewindow → superant.com.tinkerhelpwindow}/9end.rwd +0 -0
- data/init.rb +38 -2
- data/lang/en/rwdcalendar/calendar-en.rb +6 -0
- data/lang/es/rwdcalendar/calendar-nl.rb +6 -0
- data/lang/nl/rwdcalendar/calendar-nl.rb +6 -0
- data/lang/templangfile.rb +7 -1
- data/lang/xlocallangfile.rb +7 -1
- data/rwd_files/HowTo_RwdDemo.txt +20 -82
- data/rwd_files/HowTo_Shell.txt +15 -1
- data/rwd_files/HowTo_Tinker.txt +63 -6
- data/rwddemo-0.90.gem +0 -0
- data/scripts/test02.math +2 -0
- data/scripts/test02.rb +2 -0
- metadata +153 -89
- data/code/dd0shelleval/rwddemohelpabout.rb +0 -14
- data/code/xb1rwdtinkerbackwindow/listzips.rb +0 -16
- data/configuration/rwddemoversion.cnf +0 -2
- data/configuration/rwdplayscriptsversion.cnf +0 -2
- data/gui/frontwindowtdocuments/uk5rwddemodocuments/documents.rwd +0 -4
- data/gui/helpaboutinstalled/yl2rwddemohelpabout/1appname.rwd +0 -4
- data/gui/helpaboutinstalled/yl2rwddemohelpabout/5version.rwd +0 -9
- data/gui/helpaboutinstalled/yl4rwdshellhelpabout/3copyright.rwd +0 -3
- data/gui/tinkerbackwindows/superant.com.tinercallablewindow/1appname.rwd +0 -17
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40editconfiguration.rwd +0 -36
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistzips.rwd +0 -35
- data/installed/rwdshell-0.92.inf +0 -14
- data/rwd_files/HowTo_RwdCalc.txt +0 -103
data/Readme.txt
CHANGED
@@ -119,6 +119,27 @@ There are two ways to add applets to the directories.
|
|
119
119
|
|
120
120
|
To exit, press the x inside the browser window.
|
121
121
|
|
122
|
+
== To add context sensitive help
|
123
|
+
|
124
|
+
You need to add a hash file that just needs to contain
|
125
|
+
Helptext.update( :myapplet_generalhelp => " This is the general help
|
126
|
+
You can add help text hear")
|
127
|
+
|
128
|
+
And you need to add a help run script that will call runhelpwindow
|
129
|
+
This should have a method that includes:
|
130
|
+
setting $help_topic, and adds to $helptopicsarray, saves the calling window and calls runhelpwindow which will render the help message.
|
131
|
+
|
132
|
+
if @rwd_tab == "gemservescan"
|
133
|
+
$help_topic = "gemdocs_help"
|
134
|
+
end
|
135
|
+
$helptopicsarray = $helptopicsarray | ["rubyslippers_generalhelp", "Install_Gem","GemCommands_help", "gemfilesinstalled","gemdocs_help"]
|
136
|
+
if @rwd_window != "rwdtinkerhelpwindow"
|
137
|
+
$previouswindow = @rwd_window
|
138
|
+
$previoustab = @rwd_tab
|
139
|
+
end
|
140
|
+
runhelpwindow
|
141
|
+
end
|
142
|
+
|
122
143
|
== Languages
|
123
144
|
|
124
145
|
|
@@ -212,6 +233,31 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
|
212
233
|
Thanks, Steven Gibson
|
213
234
|
|
214
235
|
== Changelog
|
236
|
+
version 1.50
|
237
|
+
changed unzip applet to be internal code - no exec to unzip program
|
238
|
+
changed order of tabs on back window - list applets now first
|
239
|
+
added rwdwcalc applet in to zips directory
|
240
|
+
changed width of text fields with help from RubyWebDialogs author
|
241
|
+
|
242
|
+
version 1.49
|
243
|
+
added demon function for remote queries
|
244
|
+
startup application on first available port
|
245
|
+
|
246
|
+
version 1.48
|
247
|
+
fix in context sensitive help so that applets can use it better
|
248
|
+
|
249
|
+
version 1.47
|
250
|
+
change to context sensitive help
|
251
|
+
|
252
|
+
version 1.46
|
253
|
+
more work on context help
|
254
|
+
window calls point to tab as well as windows
|
255
|
+
help added help buttons on Document, Selection, View Applet, tabs
|
256
|
+
|
257
|
+
version 1.45
|
258
|
+
first steps toward context sensitive help
|
259
|
+
added help button on main window/tab
|
260
|
+
|
215
261
|
version 1.44
|
216
262
|
updated directory structure - refactored gui files
|
217
263
|
Changed gui directory names - more like Java package titles
|
@@ -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
|
+
|
File without changes
|
File without changes
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# this method views an existing address record
|
2
|
+
def deletecalcscriptrecord
|
3
|
+
|
4
|
+
require 'fileutils'
|
5
|
+
|
6
|
+
if @a_calcscriptfilename
|
7
|
+
$currentscriptname = @a_calcscriptfilename
|
8
|
+
end
|
9
|
+
|
10
|
+
|
11
|
+
begin # exception trapped block
|
12
|
+
fileName = $calcscript_directory + "/" + $currentscriptname + ".math"
|
13
|
+
File.delete(fileName)
|
14
|
+
@calcscriptfilechangeresult = "File Deleted!"
|
15
|
+
$currentscriptname = ""
|
16
|
+
rescue
|
17
|
+
@calcscriptfilechangeresult = "File Deletion error"
|
18
|
+
end # exception rescue
|
19
|
+
|
20
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# this code is to list the scripts
|
2
|
+
def listcalcscripts
|
3
|
+
fileList = Dir.new($calcscript_directory).entries.sort.delete_if { |x| ! (x =~ /math$/) }
|
4
|
+
@listcalcscriptresult = fileList.rwd_method("fillcalcscriptname")
|
5
|
+
end
|
6
|
+
|
7
|
+
def fillcalcscriptname(inffile)
|
8
|
+
applet = inffile.gsub(/\.math$/, "")
|
9
|
+
@a_calcscriptfilename = applet
|
10
|
+
$currentcalcscriptname = applet
|
11
|
+
@a_calcscriptcmd = applet
|
12
|
+
end
|
13
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# this method views an existing address record
|
2
|
+
def loadcalcscriptrecord
|
3
|
+
|
4
|
+
require 'fileutils'
|
5
|
+
$currentscriptname = @a_calcscriptfilename
|
6
|
+
|
7
|
+
begin # exception trapped block
|
8
|
+
|
9
|
+
|
10
|
+
fileName = $calcscript_directory + "/" + $currentscriptname + ".math"
|
11
|
+
|
12
|
+
fd = File.open(fileName,"r")
|
13
|
+
@a_calcscriptrecord = fd.read
|
14
|
+
|
15
|
+
fd.close
|
16
|
+
rescue SystemCallError, StandardError
|
17
|
+
$stderr.print "system call error: " + $!
|
18
|
+
end # exception rescue
|
19
|
+
|
20
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
|
2
|
+
def runmathcommand
|
3
|
+
|
4
|
+
commandtext = @a_mathcommandinput.to_s
|
5
|
+
|
6
|
+
|
7
|
+
begin # exception trapped block
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
@mathcommandresult = "no result"
|
12
|
+
|
13
|
+
if commandtext == "sin"
|
14
|
+
|
15
|
+
@mathcommandresult = Math.sin( @a_mathtoola.to_f )
|
16
|
+
end
|
17
|
+
if commandtext == "cos"
|
18
|
+
|
19
|
+
@mathcommandresult = Math.cos( @a_mathtoola.to_f )
|
20
|
+
end
|
21
|
+
if commandtext == "atan2"
|
22
|
+
@mathcommandresult = Math.atan2( @a_mathtoola.to_f ,@a_mathtoolsb.to_f)
|
23
|
+
end
|
24
|
+
if commandtext == "exp"
|
25
|
+
|
26
|
+
@mathcommandresult = Math.exp( @a_mathtoola.to_f )
|
27
|
+
end
|
28
|
+
if commandtext == "log"
|
29
|
+
|
30
|
+
@mathcommandresult = Math.log( @a_mathtoola.to_f )
|
31
|
+
end
|
32
|
+
if commandtext == "log10"
|
33
|
+
|
34
|
+
@mathcommandresult = Math.log10( @a_mathtoola.to_f )
|
35
|
+
end
|
36
|
+
if commandtext == "sqrt"
|
37
|
+
|
38
|
+
@mathcommandresult = Math.sqrt( @a_mathtoola.to_f )
|
39
|
+
end
|
40
|
+
if commandtext == "tan"
|
41
|
+
|
42
|
+
@mathcommandresult = Math.tan( @a_mathtoola.to_f )
|
43
|
+
end
|
44
|
+
rescue SystemCallError, StandardError
|
45
|
+
@mathcommandresult = "system call error: " + $!
|
46
|
+
end # exception rescue
|
47
|
+
|
48
|
+
end
|
49
|
+
|
50
|
+
|
51
|
+
def showmathcommandoptions
|
52
|
+
@mathcommandoptions = ["sin","atan2","cos","exp","log","log10","sqrt","tan"].rwd_options
|
53
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# this code is to call the help window
|
2
|
+
def runhelpwindowrwdcalc
|
3
|
+
|
4
|
+
$help_topic = "rwdcalc_generalhelp"
|
5
|
+
|
6
|
+
|
7
|
+
if @rwd_tab == "scriptutilitiesrwdshell"
|
8
|
+
$help_topic = "rwdcalc_generalhelp"
|
9
|
+
end
|
10
|
+
$helptopicsarray = $helptopicsarray | ["rwdcalc_generalhelp"]
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
if @rwd_window != "rwdtinkerhelpwindow"
|
15
|
+
$previouswindow = @rwd_window
|
16
|
+
$previoustab = @rwd_tab
|
17
|
+
end
|
18
|
+
runhelpwindow
|
19
|
+
end
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
def playcalcscript
|
2
|
+
|
3
|
+
|
4
|
+
nametext = "%s" % [@a_calcscriptcmd]
|
5
|
+
|
6
|
+
begin # exception trapped block
|
7
|
+
fileName = "scripts/" + nametext + ".math"
|
8
|
+
|
9
|
+
|
10
|
+
calcfile_contents = File.read( fileName)
|
11
|
+
temp = eval( calcfile_contents)
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
rescue SystemCallError, StandardError
|
20
|
+
$stderr.print "system call error: " + $!
|
21
|
+
end # exception rescue
|
22
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# this code is to change the file name
|
2
|
+
def changecalcscriptname
|
3
|
+
oldName = $calcscript_directory + "/" + @a_calcscriptfilename + ".math"
|
4
|
+
newName = $calcscript_directory + "/" + @a_changecalcscriptname + ".math"
|
5
|
+
begin
|
6
|
+
File.rename(oldName, newName)
|
7
|
+
@calcscriptfilechangeresult = "File Renamed!"
|
8
|
+
rescue
|
9
|
+
@calcscriptfilechangeresult = "rename error"
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
13
|
+
|
14
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
|
2
|
+
def savecalcrecord # this method adds a new script file
|
3
|
+
require 'fileutils'
|
4
|
+
if @a_calcscriptfilename
|
5
|
+
newdata =@a_calcscriptrecord.to_s
|
6
|
+
fullnewname = @a_calcscriptfilename.to_s + ".math"
|
7
|
+
begin # exception trapped block
|
8
|
+
fileName = File.join( $calcscript_directory, fullnewname )
|
9
|
+
fd = File.open(fileName,"w")
|
10
|
+
fd.print(newdata) # save the record info to the file
|
11
|
+
fd.close
|
12
|
+
@newdisplay=newdata # show the record info in the browser
|
13
|
+
$currentscriptname = "%s" % [@a_calcscriptfilename] # grab the new filename to create
|
14
|
+
|
15
|
+
rescue
|
16
|
+
@newdisplay = "\n" + "system error in createnew method"
|
17
|
+
end # exception rescue
|
18
|
+
end
|
19
|
+
end # end of createnew
|
@@ -0,0 +1,18 @@
|
|
1
|
+
def viewcalcscript
|
2
|
+
require 'fileutils'
|
3
|
+
$currentscriptname = "%s" % [@a_calcscriptfilename]
|
4
|
+
|
5
|
+
begin # exception trapped block
|
6
|
+
fileName = $calcscript_directory+ "/" + $currentscriptname + ".math"
|
7
|
+
|
8
|
+
fd = File.open(fileName,"r")
|
9
|
+
@displayscripttext = " "
|
10
|
+
while ! fd.eof?
|
11
|
+
@displayscripttext = fd.read
|
12
|
+
end
|
13
|
+
fd.close
|
14
|
+
rescue
|
15
|
+
@displayscripttext = "\n" + "error"
|
16
|
+
end # exception rescue
|
17
|
+
|
18
|
+
end
|
@@ -1,16 +1,40 @@
|
|
1
|
-
require 'fileutils'
|
2
|
-
|
3
|
-
def showmonth
|
4
|
-
|
5
|
-
begin # begin rescue monitored block
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
1
|
+
require 'fileutils'
|
2
|
+
|
3
|
+
def showmonth
|
4
|
+
require 'date'
|
5
|
+
begin # begin rescue monitored block
|
6
|
+
cal_path = File.join( $extras_directory, 'cal' )
|
7
|
+
require cal_path
|
8
|
+
to = Date.today
|
9
|
+
tempyear ||= to.year
|
10
|
+
tempmonth ||= to.mon
|
11
|
+
if @a_year.to_i > 0 and @a_month.to_i > 1
|
12
|
+
tempyear = @a_year.to_i
|
13
|
+
tempmonth = @a_month.to_i
|
14
|
+
|
15
|
+
end
|
16
|
+
tempweekdaystring = " "
|
17
|
+
|
18
|
+
cal = Cal.new
|
19
|
+
calendardata = cal.print(tempyear,tempmonth)
|
20
|
+
@showcalendartitle = calendardata[0]
|
21
|
+
@showcalendarweektitles = calendardata[1]
|
22
|
+
tempweekdaystring = calendardata[2].tr(' ', '.')
|
23
|
+
@showmonthresult1 = tempweekdaystring
|
24
|
+
|
25
|
+
tempweekdaystring = calendardata[3].tr(' ', '.')
|
26
|
+
@showmonthresult2 = tempweekdaystring
|
27
|
+
tempweekdaystring = calendardata[4].tr(' ', '.')
|
28
|
+
@showmonthresult3 = tempweekdaystring
|
29
|
+
tempweekdaystring = calendardata[5].tr(' ', '.')
|
30
|
+
@showmonthresult4 = tempweekdaystring
|
31
|
+
tempweekdaystring = calendardata[6].tr(' ', '.')
|
32
|
+
@showmonthresult5 = tempweekdaystring
|
33
|
+
tempweekdaystring = calendardata[7].tr(' ', '.')
|
34
|
+
@showmonthresult6 = tempweekdaystring
|
35
|
+
rescue # process exeption
|
36
|
+
@showmonthresult = "\n" + "error in eval"
|
37
|
+
end # end of rescue process # of rescue monitored block
|
38
|
+
|
39
|
+
end
|
40
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# this code is to change the contact name
|
2
|
+
def changescriptname
|
3
|
+
begin
|
4
|
+
oldName = $shellscript_directory + "/" + @a_scriptfilename + ".sh"
|
5
|
+
newName = $shellscript_directory + "/" + @a_changescriptname + ".sh"
|
6
|
+
|
7
|
+
File.rename(oldName, newName)
|
8
|
+
@scriptfilechangeresult = "File Renamed!"
|
9
|
+
$currentscriptname = @a_changescriptname
|
10
|
+
rescue
|
11
|
+
@scriptfilechangeresult = "rename error"
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
15
|
+
|
16
|
+
|
File without changes
|
File without changes
|
@@ -0,0 +1,81 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
Helptext.update( :rubyslippers_generalhelp => " You can view the list of gems you have installed
|
4
|
+
by clicking on the list files button
|
5
|
+
|
6
|
+
You can view the contents of the gemspec file by typing or pasting a name in.
|
7
|
+
|
8
|
+
When you are finished press the open button (leave off the .gemspec ending) ",
|
9
|
+
:Install_Gem => "You can list the Gems available in the repository
|
10
|
+
Click on the button.
|
11
|
+
It will take several seconds then should show the list.
|
12
|
+
|
13
|
+
To install a gem, enter the name into to textbox and
|
14
|
+
click on the install Gem button
|
15
|
+
You should see the result of the command on the screen
|
16
|
+
|
17
|
+
You can check in the first tab if it is installed.",
|
18
|
+
:GemCommands_help => "You can view the setup that Gem has on your system.
|
19
|
+
|
20
|
+
Click on Show Environment
|
21
|
+
This will show your setup
|
22
|
+
|
23
|
+
You can run a Gem command or a shell command
|
24
|
+
|
25
|
+
Click on the 'Show Gem Command Choices' this will bringup the command that will be added to 'gem'
|
26
|
+
you can choose the blank choice or:
|
27
|
+
help,--version,list --local,check -a,check --test,search,search --remote,specification,uninstall
|
28
|
+
|
29
|
+
Enter the command in the box and press the
|
30
|
+
Run Command button
|
31
|
+
|
32
|
+
It displays the result of the command on the screen.
|
33
|
+
|
34
|
+
Click 'List Installed Gem Files' to bring up a list at the bottom of the page.
|
35
|
+
You can click on one to fill in the second command box. You will probably need to remove the version on the end
|
36
|
+
of the file name for the gem command to properly work.
|
37
|
+
the commands that can take a file name are: list --local,check --test,search,search --remote,specification,uninstall
|
38
|
+
|
39
|
+
",
|
40
|
+
:gemfiles_help => "You can view the files that are installed for applications
|
41
|
+
|
42
|
+
Click on Show Gem Dirs
|
43
|
+
This will show your list of Gems installed
|
44
|
+
|
45
|
+
|
46
|
+
Click on Show Application Files
|
47
|
+
This will show your list of files installed",
|
48
|
+
:gemdocs_help => "You can scan for the Gem doc server.
|
49
|
+
|
50
|
+
If the gem doc server is running you can click and view the docs
|
51
|
+
The docs for installed Gems should be visible ",
|
52
|
+
:gemfilesinstalled => "You can see a list of gems that are installed on your system",
|
53
|
+
:gemconfiguration_help => "You can view the configuration file for Rubyslippers and edit it
|
54
|
+
'Fill Record' will load the configuration file rubyslippers.cnf into the screen input boxes
|
55
|
+
'Save Changes' will save the changes you have made - BE CERTAIN YOUR CHANGES ARE CORRECT
|
56
|
+
'Reload Variables' will load the changes you have made - otherwise your changes will be load next reboot
|
57
|
+
|
58
|
+
",
|
59
|
+
:gemspecdata_help => "You can view gemspecs
|
60
|
+
|
61
|
+
The directory searched in is in the rubyslippers.cnf
|
62
|
+
",
|
63
|
+
:editgemspec_help => "You can edit gemspec
|
64
|
+
You need to open a gemspec in the 'View Gemspec' tab first
|
65
|
+
|
66
|
+
The directory searched in is in the rubyslippers.cnf
|
67
|
+
",
|
68
|
+
:buildgem_help => "gem utilities are available as well as the gem build command
|
69
|
+
|
70
|
+
You can rename a gemspec, copy a gemspec or delete a gemspec
|
71
|
+
|
72
|
+
You can select a gemspec by clicking on 'list gemspecs'
|
73
|
+
|
74
|
+
You need to select a directory for the gem to be built in by clicking on 'list Gem Directories'
|
75
|
+
|
76
|
+
The directory searched in is in the rubyslippers.cnf",
|
77
|
+
:viewgemdir_help => "you can view the files in the gem directory before you build it
|
78
|
+
You can select a directory for the gem to be built in by clicking on 'list Gem Directories'
|
79
|
+
"
|
80
|
+
|
81
|
+
)
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# this code is to list the scripts
|
2
|
+
def listrubyscripts
|
3
|
+
fileList = Dir.new($shellscript_directory).entries.sort.delete_if { |x| ! (x =~ /rb$/) }
|
4
|
+
@listrubyscriptresult = fileList.rwd_method("fillrubyscriptname")
|
5
|
+
end
|
6
|
+
|
7
|
+
def fillrubyscriptname(inffile)
|
8
|
+
applet = inffile.gsub(/\.rb$/, "")
|
9
|
+
@a_rubyscriptfilename = applet
|
10
|
+
$currentrubyscriptname = applet
|
11
|
+
@a_rubyscriptcmd = applet
|
12
|
+
end
|
13
|
+
|
File without changes
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# this method puts the configuration rexord on the screen
|
2
|
+
def loadrwdshellconfiguration
|
3
|
+
|
4
|
+
require 'fileutils'
|
5
|
+
|
6
|
+
@a_rshellconfigurationfilename = "playscripts.cnf"
|
7
|
+
|
8
|
+
|
9
|
+
begin # exception trapped block
|
10
|
+
|
11
|
+
Dir.chdir($progdir)
|
12
|
+
fileName = File.join(ConfigurationDir, "playscripts.cnf")
|
13
|
+
|
14
|
+
|
15
|
+
fd = File.open(fileName,"r")
|
16
|
+
@a_rshellconfigline1= fd.readline.chomp
|
17
|
+
@a_rshellconfigline2 = fd.readline.chomp
|
18
|
+
@a_rshellconfigline3 = fd.readline.chomp
|
19
|
+
@a_rshellconfigline4 = fd.readline.chomp
|
20
|
+
@a_rshellconfigline5 = fd.readline.chomp
|
21
|
+
@a_rshellconfigline6 = fd.readline.chomp
|
22
|
+
@a_rshellconfigline7 =fd.readline.chomp
|
23
|
+
@a_rshellconfigline8 = fd.readline.chomp
|
24
|
+
@a_rshellconfigline9 = fd.readline.chomp
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
fd.close
|
29
|
+
rescue SystemCallError, StandardError
|
30
|
+
$stderr.print "system call error: " + $!
|
31
|
+
end # exception rescue
|
32
|
+
|
33
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# this method loads the on screen variables into the running class
|
2
|
+
def loadrubyslippersconfigurationvariables
|
3
|
+
|
4
|
+
configfiletoload = File.join(ConfigurationDir,"rubyslippers.cnf")
|
5
|
+
begin
|
6
|
+
load configfiletoload
|
7
|
+
@extrarsconfigdatadisplay = ""
|
8
|
+
@newrsconfigurationresult = "Config Variables loaded"
|
9
|
+
rescue
|
10
|
+
@extrarsconfigdatadisplay = ""
|
11
|
+
@newrsconfigurationresult = "loading error"
|
12
|
+
end
|
13
|
+
end
|
File without changes
|