rwdshell 0.93 → 0.94
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.txt +201 -22
- data/code/xb1rwdtinkerbackwindow/installapplet.rb +3 -2
- data/code/xb1rwdtinkerbackwindow/listzips.rb +5 -3
- data/code/xb1rwdtinkerbackwindow/loadconfigurationrecord.rb +32 -0
- data/code/xb1rwdtinkerbackwindow/loadconfigurationvariables.rb +13 -0
- data/code/xb1rwdtinkerbackwindow/saveconfigurationrecord.rb +18 -0
- data/configuration/rwdshellversion.cnf +1 -1
- data/configuration/rwdtinker.cnf +7 -7
- data/configuration/rwdtinkerversion.cnf +1 -1
- data/configuration/tinkerwin2variables.cnf +8 -0
- data/configuration/tinkerwin2version.cnf +1 -1
- data/gui/{aa2core/aa0rwdtop.rwd → 00coreguibegin/applicationguitop.rwd} +0 -0
- data/gui/{ek0shellscripts → frontwindow0/superant.com.shellscripts}/1listplayscripts.rwd +0 -0
- data/gui/{ek0shellscripts → frontwindow0/superant.com.shellscripts}/2listscripts.rwd +0 -0
- data/gui/{ek0shellscripts → frontwindow0/superant.com.shellscripts}/3editscripts.rwd +0 -0
- data/gui/{ek0shellscripts → frontwindow0/superant.com.shellscripts}/4scriptutilities.rwd +0 -0
- data/gui/{ek0shellscripts → frontwindow0/superant.com.shellscripts}/6rwdshelleval.rwd +0 -0
- data/gui/{ek0shellscripts → frontwindow0/superant.com.shellscripts}/cb7rwdrubyeval.rwd +0 -0
- data/gui/{ll1selectiontabbegin → frontwindowselectionbegin/selectiontabbegin}/selectiontabbegin.rwd +0 -0
- data/gui/{ll5rwdtinkerwin2selectiontab → frontwindowselections/superant.com.rwdtinkerwin2selectiontab}/rwdwin2selectiontab.rwd +0 -0
- data/gui/{lz1selectiontabend/endselectiontab.rwd → frontwindowselectionzend/viewselectionzend/viewselectionend.rwd} +0 -0
- data/gui/{tt0documentsbegin → frontwindowtdocumentbegin/superant.com.documentsbegin}/tt0documentbegin.rwd +0 -0
- data/gui/{uu5rwddocuments → frontwindowtdocuments/superant.com.documents}/uu5documents.rwd +0 -0
- data/gui/{ub7rubyeval → frontwindowtdocuments/superant.com.rubyeval}/rubyeval.rwd +0 -0
- data/gui/{vv1docshellxp → frontwindowtdocuments/superant.com.shelldocument}/vvdocshellxp.rwd +0 -0
- data/gui/{uu6rwdtinkerwin2documents → frontwindowtdocuments/superant.com.tinkerwin2documents}/uu5documents.rwd +0 -0
- data/gui/{ww0documentsend → frontwindowtdocumentzend/superant.com.documentsend}/ww0documentend.rwd +0 -0
- data/gui/{wz6finaltabs → frontwindowz1end/frontwindowend}/xx0rwdfirsttab.rwd +0 -0
- data/gui/{ya1helpaboutbegin → helpaboutbegin/superant.com.helpaboutbegin}/ya0helpscreenstart.rwd +0 -0
- data/gui/{yg6rwdwin2helpabout → helpaboutinstalled/superant.com.rwdwin2helpabout}/1appname.rwd +0 -0
- data/gui/{yg5rwdhelpabout → helpaboutinstalled/superant.com.rwdwin2helpabout}/3copyright.rwd +0 -0
- data/gui/{yg6rwdwin2helpabout → helpaboutinstalled/superant.com.rwdwin2helpabout}/5version.rwd +0 -0
- data/gui/{yl4rwdshellhelpabout → helpaboutinstalled/superant.com.shellhelpabout}/1appname.rwd +0 -0
- data/gui/{yg6rwdwin2helpabout → helpaboutinstalled/superant.com.shellhelpabout}/3copyright.rwd +0 -0
- data/gui/{yl4rwdshellhelpabout → helpaboutinstalled/superant.com.shellhelpabout}/5version.rwd +0 -0
- data/gui/{yg5rwdhelpabout → helpaboutinstalled/superant.com.tinkerhelpabout}/1appname.rwd +0 -0
- data/gui/{yl4rwdshellhelpabout → helpaboutinstalled/superant.com.tinkerhelpabout}/3copyright.rwd +0 -0
- data/gui/{yg5rwdhelpabout → helpaboutinstalled/superant.com.tinkerhelpabout}/5version.rwd +0 -0
- data/gui/{yy5helpaboutend → helpaboutzend/superant.com.helpaboutend}/helpscreenend.rwd +0 -0
- data/gui/{xa5rwdtinkercallablewindow → tinkerbackwindows/superant.com.tinercallablewindow}/1appname.rwd +0 -0
- data/gui/{xa5rwdtinkercallablewindow → tinkerbackwindows/superant.com.tinercallablewindow}/9end.rwd +0 -0
- data/gui/{xb1rwdtinkerbackwindow → tinkerbackwindows/superant.com.tinkerbackwindow}/1appname.rwd +0 -0
- data/gui/{xb1rwdtinkerbackwindow → tinkerbackwindows/superant.com.tinkerbackwindow}/3arwddiagnostics.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40editconfiguration.rwd +36 -0
- data/gui/{xb1rwdtinkerbackwindow/4arwdlistapplets.rwd → tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd} +0 -0
- data/gui/{xb1rwdtinkerbackwindow/4arwdlistzips.rwd → tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistzips.rwd} +0 -0
- data/gui/{xb1rwdtinkerbackwindow/2tab1.rwd → tinkerbackwindows/superant.com.tinkerbackwindow/80tab1.rwd} +0 -0
- data/gui/{xb1rwdtinkerbackwindow → tinkerbackwindows/superant.com.tinkerbackwindow}/9backend.rwd +0 -0
- data/gui/{xa1versionwindow → tinkerbackwindows/superant.com.versionwindow}/1appname.rwd +0 -0
- data/gui/{za1applicationend → zzcoreguiend/tinkerapplicationguiend}/yy9rwdend.rwd +0 -0
- data/init.rb +6 -6
- data/installed/rwdviewlogo-0.4.inf +4 -0
- data/lang/templangfile.rb +15 -15
- data/lang/xlocallangfile.rb +15 -15
- data/rwd_files/HowTo_Shell.txt +3 -0
- data/rwd_files/HowTo_Tinker.txt +50 -24
- data/rwd_files/tinker.png +0 -0
- data/tests/rwdtinkertestEN.rb +163 -0
- data/tests/test.result +32 -0
- data/zips/rwdahelloworld-0.5.zip +0 -0
- data/zips/rwdcalc-0.4.zip +0 -0
- metadata +106 -85
- data/configuration/tinkerwin2.cnf +0 -3
- data/zips/rwdaschedule-0.8.zip +0 -0
- data/zips/rwdhelloworld-0.4.zip +0 -0
- data/zips/rwdrefreshacpi-0.4.zip +0 -0
- data/zips/rwdwcalc-0.4.zip +0 -0
- data/zips/rwdwshell-0.92.zip +0 -0
data/Readme.txt
CHANGED
@@ -1,43 +1,172 @@
|
|
1
|
-
|
1
|
+
= RwdShell Program
|
2
|
+
|
3
|
+
How to Use the Shell Program (rwdshell)
|
4
|
+
|
5
|
+
== What is is
|
6
|
+
|
7
|
+
rwdshell is a web brower interface to operating system shell commands
|
8
|
+
|
9
|
+
|
10
|
+
download from http://rubyforge.org/frs/?group_id=444
|
11
|
+
|
12
|
+
run shell commands
|
13
|
+
|
2
14
|
|
3
15
|
The GUI interface used is RubyWebDialogs
|
4
16
|
|
5
|
-
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/
|
6
17
|
|
18
|
+
Start the program by typing<br>
|
19
|
+
ruby init.rb
|
20
|
+
|
21
|
+
Then point your web browser to:
|
22
|
+
http://localhost:7705/
|
23
|
+
|
24
|
+
== using shell commands
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
Enter the shell command you want to run for in the browser form and press execute.
|
29
|
+
After a second the browser should fill with the results of the command.
|
30
|
+
try ls, df, cat "filename", and other shell commands
|
31
|
+
You should be able to run one command after another
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
rwdshell scriptrunner is a web brower interface to operating system shell commands
|
7
36
|
|
8
|
-
|
9
|
-
|
37
|
+
|
38
|
+
1. run shell commands
|
39
|
+
2. run Ruby commands in the browser
|
40
|
+
3. use a calculator
|
41
|
+
4. Open brower windows with html documents
|
42
|
+
|
43
|
+
The GUI interface used is RubyWebDialogs
|
44
|
+
|
45
|
+
|
46
|
+
Start the program by typing
|
10
47
|
ruby init.rb
|
11
48
|
|
12
49
|
Then point your web browser to:
|
13
50
|
http://localhost:7705/
|
14
51
|
|
15
|
-
Or to the port that shows on the console or in the config.cnf file
|
16
52
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
the
|
53
|
+
== To use a shell command
|
54
|
+
|
55
|
+
|
56
|
+
Enter the shell command you want to run for in the browser form and press execute.
|
57
|
+
After a second the browser should fill with the results of the command.
|
58
|
+
try ls, df, cat "filename", and other shell commands
|
59
|
+
You should be able to run one command after another
|
60
|
+
|
61
|
+
|
62
|
+
There are two ways to add scripts to rwdshell directory.
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
== Creating a script
|
67
|
+
|
68
|
+
|
69
|
+
1. Use the "Create New Script" tab
|
70
|
+
<blockquote>
|
71
|
+
The first field is the most important. It is the filename that
|
72
|
+
will be created.
|
73
|
+
myshellscript
|
74
|
+
|
75
|
+
The following line for entry is a shell command.
|
76
|
+
|
77
|
+
The last line is for comment to describe the script
|
78
|
+
When you are finished press the CreateFile button
|
79
|
+
|
80
|
+
|
81
|
+
2. Manually add an entry for a script
|
82
|
+
|
83
|
+
You can use a text editor to create a record
|
84
|
+
put information on separate lines. You can have as many lines as you want
|
85
|
+
name the file with caps and no spaces and end with .sh
|
86
|
+
mynextscript.sh
|
87
|
+
|
88
|
+
Save your file to the scripts/ subdirectory
|
89
|
+
|
90
|
+
|
91
|
+
== Viewing a recorded script entry:
|
92
|
+
|
93
|
+
|
94
|
+
* Go to "List Scripts" tab
|
95
|
+
|
96
|
+
|
97
|
+
You can get a list of all scripts by clicking the listfiles button
|
98
|
+
|
99
|
+
To see the text of a script
|
100
|
+
Type in the name of the script you want.
|
101
|
+
|
102
|
+
type it without the sh ending
|
103
|
+
myscript
|
104
|
+
|
105
|
+
Then click the "ViewScript" button
|
106
|
+
|
107
|
+
If it finds the script it will open it. It displays the text the search box.
|
108
|
+
|
109
|
+
|
110
|
+
== Ruby Commands
|
111
|
+
|
112
|
+
|
113
|
+
At the Ruby tab here are some commands you might try
|
114
|
+
|
115
|
+
print "hello" + "\n"
|
116
|
+
|
117
|
+
bar=46; print "%s" % bar, "\n"
|
118
|
+
|
119
|
+
"abc".each_byte{|c| printf "<%c>", c}; print "\n"
|
120
|
+
|
121
|
+
"a\nb\nc\n".each_line{|l| print l}
|
122
|
+
|
123
|
+
for l in "a\nb\nc\n" ; print l ; end
|
124
|
+
|
125
|
+
print "%s" % "abcdef".length
|
126
|
+
wser window, or in another browser tab.
|
127
|
+
|
128
|
+
== Using over a Network
|
129
|
+
|
130
|
+
To serve the application over your local LAN,change the last line in the
|
131
|
+
init.rb file to something like:
|
132
|
+
RwdTinker.file(RWDFile).serve(8080, "-r" ? ".rwduids" : nil)
|
133
|
+
Then you should be able to login at: http://yourhostname:8080
|
134
|
+
|
135
|
+
You have to authorize yourself. The .rwuids example is a string with
|
136
|
+
the name of the authorization file, relative to the home directory
|
137
|
+
of the user that started the service. This file has to be in the form of:
|
138
|
+
|
139
|
+
user1 = password
|
140
|
+
user2 = pass phrase
|
141
|
+
|
142
|
+
Thus the file .rwduids might contain:
|
143
|
+
|
144
|
+
erik = secret
|
145
|
+
|
146
|
+
|
147
|
+
== Requirements:
|
148
|
+
RubyWebDialogs - I am using 0.0.11 2004-3-9<br>
|
149
|
+
This package you downloaded rwddemo should have a runtime version of
|
150
|
+
the needed rubywebdialog files<br>
|
21
151
|
|
22
152
|
Ruby I am using version 1.8.2
|
23
153
|
|
24
154
|
I have tested this under Linux-Debian kernel 2.6.9
|
25
155
|
|
26
|
-
Operation:
|
27
|
-
The code files reside in the code directory and are combined before
|
28
|
-
the main Class is loaded
|
156
|
+
== Operation:
|
157
|
+
The code files reside in the code directory and are combined before
|
158
|
+
the main Class is loaded
|
29
159
|
|
30
|
-
The rwd files in gui are combined before the gui is activated
|
160
|
+
The rwd files in gui are combined before the gui is activated
|
31
161
|
|
32
|
-
|
162
|
+
== Installing:
|
33
163
|
|
34
|
-
|
35
|
-
tar zxvf rwdapplication-x.y.tar.gz
|
164
|
+
unzip the file
|
36
165
|
then cd to the directory
|
37
|
-
|
38
|
-
|
39
|
-
ruby init.rb
|
166
|
+
unzip rwdashell-x.y.zip
|
167
|
+
|
40
168
|
|
169
|
+
== Trouble shooting:
|
41
170
|
|
42
171
|
If the program is not working, try looking at the ev subdirectory. That is where
|
43
172
|
the runtime of rubywebdialogs are.
|
@@ -52,6 +181,56 @@ Closing the browser doesn't terminate the application. You have to use the appli
|
|
52
181
|
|
53
182
|
Don't use the back-button of the browser! Strange and unpredictable things may and will happen!
|
54
183
|
|
55
|
-
|
56
|
-
|
57
|
-
|
184
|
+
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/
|
185
|
+
|
186
|
+
|
187
|
+
For more information see:
|
188
|
+
http://rwdapplications.rubyforge.org/wiki/wiki.pl
|
189
|
+
|
190
|
+
For more information about RubyWebDialogs see:<br>
|
191
|
+
http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
192
|
+
|
193
|
+
Thanks, Steven Gibson
|
194
|
+
|
195
|
+
== Changelog
|
196
|
+
version 0.94
|
197
|
+
updated for rwdtinker 1.44 - refactor gui directory structure
|
198
|
+
|
199
|
+
version 0.93
|
200
|
+
updated for rwdtinker 1.42 - semi-live updating
|
201
|
+
|
202
|
+
version 0.92
|
203
|
+
added script editing
|
204
|
+
script deletion
|
205
|
+
script renaming
|
206
|
+
added English module to RubyEval
|
207
|
+
added Env module to RubyEval
|
208
|
+
combined scriptrunner HowTo into shell HowTo
|
209
|
+
Changed order of tabs so script are first
|
210
|
+
|
211
|
+
version 0.91
|
212
|
+
updated for rwdtinker version 1.3
|
213
|
+
|
214
|
+
Version 0.9
|
215
|
+
updated for rwdtinker version 1.23
|
216
|
+
|
217
|
+
Version 0.7
|
218
|
+
includes script playing and Ruby eval window.
|
219
|
+
|
220
|
+
Version 0.6
|
221
|
+
added script runner
|
222
|
+
list scripts
|
223
|
+
create scripts
|
224
|
+
Replaced Readme.txt with HowTo.html
|
225
|
+
|
226
|
+
Version 0.3
|
227
|
+
Changed directory structure to work with rwdtinker 0.9 or greater.
|
228
|
+
Improved the filename selection
|
229
|
+
Changed the layout on the list screen
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
@@ -3,9 +3,10 @@
|
|
3
3
|
nametext = "%s" % [@a_installapplet]
|
4
4
|
|
5
5
|
begin # exception trapped block
|
6
|
-
|
6
|
+
fullname = nametext + ".zip"
|
7
|
+
fileName = File.join($zipslocation,fullname)
|
7
8
|
|
8
|
-
commandline =
|
9
|
+
commandline = $unzipprogram + fileName
|
9
10
|
system( commandline+' > temp.output' )
|
10
11
|
|
11
12
|
|
@@ -1,7 +1,9 @@
|
|
1
1
|
# this code is to list the zipped applets that can be installed
|
2
|
-
def listzipfilestoinstall
|
3
|
-
|
4
|
-
|
2
|
+
def listzipfilestoinstall
|
3
|
+
if File.exist?($zipslocation)
|
4
|
+
fileList = Dir.new($zipslocation).entries.sort.delete_if { |x| ! (x =~ /zip$/) }
|
5
|
+
@zipslistresult = fileList.rwd_method("fillziptoinstallname")
|
6
|
+
end
|
5
7
|
end
|
6
8
|
|
7
9
|
def fillziptoinstallname(inffile)
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# this method views an existing address record
|
2
|
+
def loadconfigurationrecord
|
3
|
+
|
4
|
+
require 'fileutils'
|
5
|
+
if TinkerWin2ConfigurationFileName
|
6
|
+
@a_configurationfilename = TinkerWin2ConfigurationFileName
|
7
|
+
end
|
8
|
+
|
9
|
+
begin # exception trapped block
|
10
|
+
|
11
|
+
Dir.chdir($progdir)
|
12
|
+
fileName = File.join(ConfigurationDir, TinkerWin2ConfigurationFileName)
|
13
|
+
|
14
|
+
fd = File.open(fileName,"r")
|
15
|
+
@a_configline1= fd.readline.chomp
|
16
|
+
@a_configline2 = fd.readline.chomp
|
17
|
+
@a_configline3 = fd.readline.chomp
|
18
|
+
@a_configline4 = fd.readline.chomp
|
19
|
+
@a_configline5 = fd.readline.chomp
|
20
|
+
@a_configline6 = fd.readline.chomp
|
21
|
+
@a_configline7 =fd.readline.chomp
|
22
|
+
@a_configline8 = fd.readline.chomp
|
23
|
+
|
24
|
+
while ! fd.eof?
|
25
|
+
@extraconfigdatadisplay = fd.readline
|
26
|
+
end
|
27
|
+
fd.close
|
28
|
+
rescue SystemCallError, StandardError
|
29
|
+
$stderr.print "system call error: " + $!
|
30
|
+
end # exception rescue
|
31
|
+
|
32
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# this method clears the on screen variables
|
2
|
+
def loadconfigurationvariables
|
3
|
+
|
4
|
+
configfiletoload = File.join(ConfigurationDir,TinkerWin2ConfigurationFileName)
|
5
|
+
begin
|
6
|
+
load configfiletoload
|
7
|
+
@extraconfigdatadisplay = ""
|
8
|
+
@newconfigurationresult = "Config Variables loaded"
|
9
|
+
rescue
|
10
|
+
@extraconfigdatadisplay = ""
|
11
|
+
@newconfigurationresult = "loading error"
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# this method adds a new address record
|
2
|
+
def saveconfigurationrecord
|
3
|
+
require 'fileutils'
|
4
|
+
if @a_configurationfilename
|
5
|
+
newname = "%s" % [@a_configurationfilename] # grab the filename to create
|
6
|
+
newdata =@a_configline1.to_s + "\n" + @a_configline2.to_s + "\n" + @a_configline3.to_s + "\n" + @a_configline4.to_s + "\n" + @a_configline5.to_s + "\n" + @a_configline6.to_s + "\n" + @a_configline7.to_s + "\n" + @a_configline8.to_s + "\n"
|
7
|
+
|
8
|
+
begin # exception trapped block
|
9
|
+
fileName = File.join( ConfigurationDir, newname )
|
10
|
+
fd = File.open(fileName,"w")
|
11
|
+
fd.print(newdata) # save the record info to the file
|
12
|
+
fd.close
|
13
|
+
@newconfigurationresult=newdata # show the record info in the browser
|
14
|
+
rescue SystemCallError, StandardError
|
15
|
+
$stderr.print "system call error: " + $!
|
16
|
+
end # exception rescue
|
17
|
+
end
|
18
|
+
end
|
@@ -1,2 +1,2 @@
|
|
1
1
|
|
2
|
-
RwdShellVersion = "0.
|
2
|
+
RwdShellVersion = "0.94"
|
data/configuration/rwdtinker.cnf
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
|
2
|
+
ConfigurationDir = "configuration" # for use in program - init.rb has this value without using this constant
|
2
3
|
CodeName = "rwdtinker"
|
3
4
|
CodeNameFile = CodeName + ".rb"
|
4
5
|
LangNameFile = "rwdlanguage.rb"
|
5
6
|
RWDFile = "rwdtinker.rwd"
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
$port = 7705
|
7
|
+
LangDir = "lang"
|
8
|
+
TempLangHashFile = LangDir + "/" + "templangfile.rb"
|
9
|
+
LocalLangHashFile = LangDir + "/" + "xlocallangfile.rb"
|
10
|
+
CodeDir = "code"
|
11
|
+
GuiDir = "gui"
|
12
|
+
$port = 7705
|
@@ -1,2 +1,2 @@
|
|
1
1
|
|
2
|
-
RwdTinkerVersion = "1.
|
2
|
+
RwdTinkerVersion = "1.44"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/gui/{ll1selectiontabbegin → frontwindowselectionbegin/selectiontabbegin}/selectiontabbegin.rwd
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/gui/{vv1docshellxp → frontwindowtdocuments/superant.com.shelldocument}/vvdocshellxp.rwd
RENAMED
File without changes
|
File without changes
|
data/gui/{ww0documentsend → frontwindowtdocumentzend/superant.com.documentsend}/ww0documentend.rwd
RENAMED
File without changes
|
File without changes
|
data/gui/{ya1helpaboutbegin → helpaboutbegin/superant.com.helpaboutbegin}/ya0helpscreenstart.rwd
RENAMED
File without changes
|
data/gui/{yg6rwdwin2helpabout → helpaboutinstalled/superant.com.rwdwin2helpabout}/1appname.rwd
RENAMED
File without changes
|
data/gui/{yg5rwdhelpabout → helpaboutinstalled/superant.com.rwdwin2helpabout}/3copyright.rwd
RENAMED
File without changes
|
data/gui/{yg6rwdwin2helpabout → helpaboutinstalled/superant.com.rwdwin2helpabout}/5version.rwd
RENAMED
File without changes
|
data/gui/{yl4rwdshellhelpabout → helpaboutinstalled/superant.com.shellhelpabout}/1appname.rwd
RENAMED
File without changes
|
data/gui/{yg6rwdwin2helpabout → helpaboutinstalled/superant.com.shellhelpabout}/3copyright.rwd
RENAMED
File without changes
|
data/gui/{yl4rwdshellhelpabout → helpaboutinstalled/superant.com.shellhelpabout}/5version.rwd
RENAMED
File without changes
|
File without changes
|
data/gui/{yl4rwdshellhelpabout → helpaboutinstalled/superant.com.tinkerhelpabout}/3copyright.rwd
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/gui/{xa5rwdtinkercallablewindow → tinkerbackwindows/superant.com.tinercallablewindow}/9end.rwd
RENAMED
File without changes
|
data/gui/{xb1rwdtinkerbackwindow → tinkerbackwindows/superant.com.tinkerbackwindow}/1appname.rwd
RENAMED
File without changes
|
File without changes
|
@@ -0,0 +1,36 @@
|
|
1
|
+
$rwdguivar=
|
2
|
+
"
|
3
|
+
<tab name=\"editconfigurationfile\" caption=\"Edit Configuration\">
|
4
|
+
<table>
|
5
|
+
<row> <p> </row>
|
6
|
+
<row> <p align=\"right\">You can view or edit the rwdtinker applet confiruration file here</row>
|
7
|
+
<row> <p> </row>
|
8
|
+
<horizontal>
|
9
|
+
<button caption=\"Load Record\" action=\"loadconfigurationrecord\"/>
|
10
|
+
<button caption=\"Save Changes\" action=\"saveconfigurationrecord\"/>
|
11
|
+
<button caption=\"Reload Variables\" action=\"loadconfigurationvariables\"/>
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
</horizontal>
|
17
|
+
<table>
|
18
|
+
<row> <p align=\"right\">FileName:</p> <text name=\"a_configurationfilename\"/> </row>
|
19
|
+
<row> <p align=\"right\">1:</p> <text name=\"a_configline1\"/> </row>
|
20
|
+
<row> <p align=\"right\">2:</p> <text name=\"a_configline2\"/> </row>
|
21
|
+
<row> <p align=\"right\">3:</p> <text name=\"a_configline3\"/> </row>
|
22
|
+
<row> <p align=\"right\">4:</p> <text name=\"a_configline4\"/> </row>
|
23
|
+
<row> <p align=\"right\">5:</p> <text name=\"a_configline5\"/> </row>
|
24
|
+
<row> <p align=\"right\">6:</p> <text name=\"a_configline6\"/> </row>
|
25
|
+
<row> <p align=\"right\">7:</p> <text name=\"a_configline7\"/> </row>
|
26
|
+
<row> <p align=\"right\">8:</p> <text name=\"a_configline8\"/> </row>
|
27
|
+
|
28
|
+
</table>
|
29
|
+
<p>%extraconfigdatadisplay%</p>
|
30
|
+
<p>
|
31
|
+
<p>%newconfigurationresult%</p>
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
</tab>"
|
36
|
+
|
File without changes
|
File without changes
|
File without changes
|
data/gui/{xb1rwdtinkerbackwindow → tinkerbackwindows/superant.com.tinkerbackwindow}/9backend.rwd
RENAMED
File without changes
|
File without changes
|
File without changes
|
data/init.rb
CHANGED
@@ -73,7 +73,7 @@ $progdir = File::expand_path( File.dirname(__FILE__))
|
|
73
73
|
Dir.chdir($progdir) # change back to top program directory
|
74
74
|
|
75
75
|
# build the English Language hash file from the parts
|
76
|
-
startlangdir =
|
76
|
+
startlangdir = File.join(LangDir,"en")
|
77
77
|
#get a list of the files and subdirectories on the starting directory only
|
78
78
|
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
79
79
|
#loop through the list, ignore the files and add all new directories found
|
@@ -108,7 +108,7 @@ $progdir = File::expand_path( File.dirname(__FILE__))
|
|
108
108
|
Dir.chdir($progdir) # change back to top program directory
|
109
109
|
|
110
110
|
# build the local Language hash file from the parts
|
111
|
-
startlangdir =
|
111
|
+
startlangdir = File.join(LangDir,$lang)
|
112
112
|
#get a list of the files and subdirectories on the starting directory only
|
113
113
|
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
114
114
|
#loop through the list, ignore the files and add all new directories found
|
@@ -145,11 +145,11 @@ $tempdoc = " "
|
|
145
145
|
|
146
146
|
# build the language hash constant object from the lang parts
|
147
147
|
#get a list of the files in lang directory only
|
148
|
-
alangfile = Dir.new(
|
148
|
+
alangfile = Dir.new(LangDir).entries.sort.reverse.delete_if { |x| ! (x =~ /rb$/) }
|
149
149
|
alangfile.length.times{
|
150
150
|
fileName = alangfile.pop
|
151
151
|
Dir.chdir($progdir)
|
152
|
-
Dir.chdir(
|
152
|
+
Dir.chdir(LangDir)
|
153
153
|
fileLangA=File.open("#{fileName}","r") #opens the file thats in fileName as read only
|
154
154
|
$tempdoc += fileLangA.read #reads the file into the doc string
|
155
155
|
fileLangA.close
|
@@ -165,7 +165,7 @@ Dir.chdir($progdir)
|
|
165
165
|
|
166
166
|
# build the actual program from the code parts
|
167
167
|
#get a list of the files and subdirectories on the starting directory only
|
168
|
-
a = Array.new(Dir[
|
168
|
+
a = Array.new(Dir[CodeDir].entries.sort)
|
169
169
|
#loop through the list, ignore the files and add all new directories found
|
170
170
|
a.each do |x|
|
171
171
|
#if a directory...
|
@@ -198,7 +198,7 @@ Dir.chdir($progdir)
|
|
198
198
|
# build the actual GUI from the gui parts
|
199
199
|
$tempdoc = " "
|
200
200
|
#get a list of the files and subdirectories on the starting directory only
|
201
|
-
a = Array.new(Dir[
|
201
|
+
a = Array.new(Dir[GuiDir].entries.sort)
|
202
202
|
#loop through the list, ignore the files and add all new directories found
|
203
203
|
a.each do |x|
|
204
204
|
#if a directory...
|
data/lang/templangfile.rb
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
# English Language files for RwdTinker core
|
2
|
-
|
3
|
-
|
4
|
-
:applet_installed => "applet installed!.",
|
5
|
-
:clickfor_version => '"click for version"',
|
6
|
-
:documents => '"Documents"',
|
7
|
-
:help => '"Help"',
|
8
|
-
:module_unknown => "Module unknown",
|
9
|
-
:next => '"Next"',
|
10
|
-
:rwdtinker_window_2 => "RwdTinker Window 2",
|
11
|
-
:rwdtinker => "RwdTinker",
|
12
|
-
:rwdtinker_help_window => '"RwdTinker Help Window"',
|
13
|
-
:rwdtinker_back_window => '"RwdTinker Back Window"',
|
14
|
-
:rwdtinker_help => '"RwdTinker Help"',
|
15
|
-
:tinker_logo => "Tinker Logo",
|
1
|
+
# English Language files for RwdTinker core
|
2
|
+
|
3
|
+
|
4
|
+
:applet_installed => "applet installed!.",
|
5
|
+
:clickfor_version => '"click for version"',
|
6
|
+
:documents => '"Documents"',
|
7
|
+
:help => '"Help"',
|
8
|
+
:module_unknown => "Module unknown",
|
9
|
+
:next => '"Next"',
|
10
|
+
:rwdtinker_window_2 => "RwdTinker Window 2",
|
11
|
+
:rwdtinker => "RwdTinker",
|
12
|
+
:rwdtinker_help_window => '"RwdTinker Help Window"',
|
13
|
+
:rwdtinker_back_window => '"RwdTinker Back Window"',
|
14
|
+
:rwdtinker_help => '"RwdTinker Help"',
|
15
|
+
:tinker_logo => "Tinker Logo",
|
16
16
|
:selection_panel => '"Selection Panel"',
|
data/lang/xlocallangfile.rb
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
# English Language files for RwdTinker core
|
2
|
-
|
3
|
-
|
4
|
-
:applet_installed => "applet installed!.",
|
5
|
-
:clickfor_version => '"click for version"',
|
6
|
-
:documents => '"Documents"',
|
7
|
-
:help => '"Help"',
|
8
|
-
:module_unknown => "Module unknown",
|
9
|
-
:next => '"Next"',
|
10
|
-
:rwdtinker_window_2 => "RwdTinker Window 2",
|
11
|
-
:rwdtinker => "RwdTinker",
|
12
|
-
:rwdtinker_help_window => '"RwdTinker Help Window"',
|
13
|
-
:rwdtinker_back_window => '"RwdTinker Back Window"',
|
14
|
-
:rwdtinker_help => '"RwdTinker Help"',
|
15
|
-
:tinker_logo => "Tinker Logo",
|
1
|
+
# English Language files for RwdTinker core
|
2
|
+
|
3
|
+
|
4
|
+
:applet_installed => "applet installed!.",
|
5
|
+
:clickfor_version => '"click for version"',
|
6
|
+
:documents => '"Documents"',
|
7
|
+
:help => '"Help"',
|
8
|
+
:module_unknown => "Module unknown",
|
9
|
+
:next => '"Next"',
|
10
|
+
:rwdtinker_window_2 => "RwdTinker Window 2",
|
11
|
+
:rwdtinker => "RwdTinker",
|
12
|
+
:rwdtinker_help_window => '"RwdTinker Help Window"',
|
13
|
+
:rwdtinker_back_window => '"RwdTinker Back Window"',
|
14
|
+
:rwdtinker_help => '"RwdTinker Help"',
|
15
|
+
:tinker_logo => "Tinker Logo",
|
16
16
|
:selection_panel => '"Selection Panel"',
|