rwdschedule 0.93 → 0.94
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.txt +6 -0
- data/code/01rwdcore/01rwdcore.rb +20 -20
- data/code/01rwdcore/02helptexthashbegin.rb +4 -4
- data/code/01rwdcore/03helptexthash.rb +30 -47
- data/code/01rwdcore/04helptextend.rb +6 -6
- data/code/01rwdcore/openhelpwindow.rb +10 -24
- data/code/01rwdcore/returntomain.rb +10 -0
- data/code/01rwdcore/rwdtinkerversion.rb +15 -15
- data/code/01rwdcore/rwdwindowreturn.rb +9 -9
- data/code/superant.com.rwdtinkerbackwindow/controlclient.rb +100 -0
- data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +21 -21
- data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +37 -0
- data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +21 -21
- data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +1 -1
- data/code/superant.com.rwdtinkerbackwindow/listzips.rb +6 -6
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +31 -31
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb +13 -13
- data/code/superant.com.rwdtinkerbackwindow/network.rb +87 -0
- data/code/superant.com.rwdtinkerbackwindow/openappletname.rb +18 -18
- data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +39 -0
- data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +28 -28
- data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +11 -11
- data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +14 -14
- data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +18 -18
- data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +21 -0
- data/code/superant.com.schedule/helptexthashrwdschedule.rb +19 -3
- data/code/superant.com.schedule/{openhelpwindowrubyslippers.rb → openhelpwindowrwdschedule.rb} +11 -2
- data/code/superant.com.schedule/returntomain.rb +10 -0
- data/code/superant.com.schedule/runrwdschedulemenu1.rb +34 -0
- data/code/zz0applicationend/zz0end.rb +4 -4
- data/configuration/language.cnf +5 -5
- data/configuration/rwdapplicationidentity.cnf +3 -0
- data/configuration/rwdscheduleversion.cnf +1 -1
- data/configuration/rwdtinker.cnf +1 -0
- data/configuration/rwdtinkerversion.cnf +2 -2
- data/configuration/tinkerwin2variables.cnf +8 -8
- data/configuration/tinkerwin2version.cnf +3 -3
- data/ev/browser.rb +109 -109
- data/ev/ftools.rb +170 -170
- data/ev/net.rb +750 -750
- data/ev/ruby.rb +819 -819
- data/ev/rwd.rb +1849 -1848
- data/ev/sgml.rb +236 -236
- data/ev/thread.rb +63 -63
- data/ev/tree.rb +343 -343
- data/ev/xml.rb +4 -4
- data/gui/00coreguibegin/applicationguitop.rwd +4 -4
- data/gui/frontwindow0/superant.com.rwdschedules/gg0viewevent.rwd +1 -1
- data/gui/frontwindow0/superant.com.rwdschedules/gl6editrecord.rwd +10 -10
- data/gui/frontwindow0/superant.com.rwdschedules/gl8contactutilities.rwd +1 -0
- data/gui/frontwindow0/superant.com.zmenus/m01menubegin.rwd +10 -0
- data/gui/frontwindow0/superant.com.zmenus/m02menu.rwd +36 -0
- data/gui/frontwindow0/superant.com.zmenus/m03menu.rwd +12 -0
- data/gui/frontwindow0/superant.com.zmenus/m85menu.rwd +21 -0
- data/gui/frontwindow0/superant.com.zmenus/m88menu.rwd +12 -0
- data/gui/frontwindow0/superant.com.zmenus/m99menuend.rwd +3 -0
- data/gui/frontwindowselectionbegin/selectiontabbegin/selectiontabbegin.rwd +16 -16
- data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +12 -12
- data/gui/frontwindowselectionzend/viewselectionzend/viewselectionend.rwd +3 -3
- data/gui/frontwindowtdocumentbegin/superant.com.documentsbegin/tt0documentbegin.rwd +6 -6
- data/gui/frontwindowtdocuments/superant.com.documents/uu5documents.rwd +15 -15
- data/gui/frontwindowtdocuments/superant.com.tinkerwin2documents/uu5documents.rwd +6 -6
- data/gui/frontwindowtdocumentzend/superant.com.documentsend/ww0documentend.rwd +12 -12
- data/gui/frontwindowz1end/frontwindowend/xx0rwdfirsttab.rwd +6 -6
- data/gui/helpaboutbegin/superant.com.helpaboutbegin/ya0helpscreenstart.rwd +3 -3
- data/gui/helpaboutinstalled/superant.com.rwdwin2helpabout/1appname.rwd +4 -4
- data/gui/helpaboutinstalled/superant.com.rwdwin2helpabout/3copyright.rwd +3 -3
- data/gui/helpaboutinstalled/superant.com.rwdwin2helpabout/5version.rwd +10 -10
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/1appname.rwd +4 -4
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/3copyright.rwd +3 -3
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/5version.rwd +10 -10
- data/gui/helpaboutzend/superant.com.helpaboutend/helpscreenend.rwd +2 -2
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/67viewconfiguration.rwd +38 -0
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/m01menubegin.rwd +10 -0
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/m02menu.rwd +36 -0
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/m03menu.rwd +12 -0
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/m85menu.rwd +21 -0
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/m88menu.rwd +12 -0
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/m99menuend.rwd +3 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/1appname.rwd +5 -5
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/{50rwdlistzips.rwd → 40rwdlistzips.rwd} +42 -35
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd +44 -44
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd +38 -37
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd +33 -33
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdcontrol.rwd +33 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/80tab1.rwd +11 -11
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/9backend.rwd +6 -6
- data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd +30 -31
- data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/9end.rwd +4 -4
- data/gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd +19 -19
- data/gui/zzcoreguiend/tinkerapplicationguiend/yy9rwdend.rwd +4 -4
- data/init.rb +269 -233
- data/installed/rwdtinkerwin2-0.5.inf +8 -8
- data/lang/alanguagehashbegin.rb +4 -4
- data/lang/en/rwdcore/languagefile.rb +15 -15
- data/lang/es/rwdcore/languagefile-es.rb +14 -14
- data/lang/jp/rwdcore/languagefile.rb +9 -9
- data/lang/languagehash.rb +4 -4
- data/lang/nl/rwdcore/languagefile.rb +19 -19
- data/lang/vlanguagehashend.rb +6 -6
- data/lang/wlocallangstart.rb +5 -5
- data/lang/zlocallangend.rb +2 -2
- data/lib/temp.rb +1 -1
- data/rwd_files/HowTo_Schedule.txt +6 -0
- data/rwd_files/HowTo_Tinker.txt +361 -348
- data/rwd_files/HowTo_TinkerWin2.txt +202 -202
- data/rwd_files/Readme.txt +57 -57
- data/rwd_files/rdoc-style.css +174 -174
- data/rwd_files/rwdapplications.html +54 -54
- data/tests/totranslate.lang +93 -0
- data/zips/rwdahelloworld-0.5.zip +0 -0
- data/zips/rwdwcalc-0.50.zip +0 -0
- metadata +33 -17
- data/configuration/rwdplayscriptsversion.cnf +0 -2
- data/gui/frontwindow0/superant.com.rwdschedules/zviewconfiguration.rwd +0 -38
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/66viewconfiguration.rwd +0 -16
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/80returntab.rwd +0 -11
- data/installed/rwdviewlogo-0.4.inf +0 -4
- data/rwd_files/tinker.png +0 -0
- data/updates/200502Februay01 Lynn back.sch +0 -8
- data/updates/200502Februay21 PCU Diner.sch +0 -8
- data/updates/200502february16a.sch +0 -8
- data/updates/200505may02a.sch +0 -8
- data/updates/200506june20a.sch +0 -8
- data/updates/200506june29a.sch +0 -8
- data/updates/200510october26a.sch +0 -8
data/Readme.txt
CHANGED
@@ -148,6 +148,12 @@ Steven Gibson
|
|
148
148
|
steven@superant.com
|
149
149
|
|
150
150
|
== Changelog
|
151
|
+
version 0.94
|
152
|
+
added RwdSchedule Menu tab for easier navigation
|
153
|
+
wider text boxes for contact information
|
154
|
+
Improvement to context sensitive help
|
155
|
+
updated for rwdtinker 1.51 - finds available port and remote control
|
156
|
+
|
151
157
|
version 0.93
|
152
158
|
added some context sensitive help
|
153
159
|
added edit config file and reload config variables
|
data/code/01rwdcore/01rwdcore.rb
CHANGED
@@ -1,20 +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
|
-
|
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
|
+
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
Helptext = Hash.new { |hh, kk| hh[kk] = "ERROR: Identificador de mensaje desconocido: #{kk.inspect}."; hh[kk] }
|
4
|
-
helpmessage = {
|
1
|
+
|
2
|
+
|
3
|
+
Helptext = Hash.new { |hh, kk| hh[kk] = "ERROR: Identificador de mensaje desconocido: #{kk.inspect}."; hh[kk] }
|
4
|
+
helpmessage = {
|
@@ -1,48 +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
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
click on the 'list zips' tab\n
|
33
|
-
click on 'list applets available for installing'\n
|
34
|
-
|
35
|
-
chose the applet you want\n
|
36
|
-
click on 'install applet'\n
|
37
|
-
If all goes well the applet should be installed.\n
|
38
|
-
You will need to restart rwdtinker to see the new screens",
|
39
|
-
:applet_tinkerbackeditconfiguration => " You can edit the configuration
|
40
|
-
|
41
|
-
Remember to reload the configuration variables if you want your
|
42
|
-
changes used.",
|
43
|
-
:documents_rwdtinker => "Documents:
|
44
|
-
|
45
|
-
|
46
|
-
when you click on a document name, the document should pop up in a
|
47
|
-
browser window, or in another browser tab."
|
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
|
+
"
|
48
31
|
|
@@ -1,6 +1,6 @@
|
|
1
|
-
|
2
|
-
}
|
3
|
-
helpmessage.each { |kk, vv| Helptext[kk] = vv }
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
|
2
|
+
}
|
3
|
+
helpmessage.each { |kk, vv| Helptext[kk] = vv }
|
4
|
+
|
5
|
+
|
6
|
+
|
@@ -1,36 +1,22 @@
|
|
1
1
|
# this code is to call the help window
|
2
2
|
def runhelpwindow
|
3
|
-
|
3
|
+
$helptopicsarray = $helptopicsarray | ["applet_installation","applet_viewing","applet_tinkerbackeditconfiguration","remote_control"]
|
4
|
+
|
4
5
|
if @rwd_window == "main"
|
5
6
|
if @rwd_tab == "documentsrwdtinkerone"
|
6
7
|
$help_topic = "documents_rwdtinker"
|
7
8
|
end
|
8
|
-
|
9
|
+
|
10
|
+
end
|
11
|
+
|
12
|
+
if @rwd_window == "rwdtinkerhelpwindow"
|
13
|
+
puts "in help window processing"
|
14
|
+
else
|
9
15
|
$previouswindow = @rwd_window
|
10
16
|
$previoustab = @rwd_tab
|
11
|
-
|
12
|
-
end
|
13
|
-
|
14
|
-
if @rwd_window == "tinkerbackwindow"
|
15
|
-
if @rwd_tab == "filelister"
|
16
|
-
$help_topic = "applet_viewing"
|
17
|
-
$helptopicsarray = $helptopicsarray | ["applet_installation","applet_viewing"]
|
18
|
-
end
|
19
|
-
if @rwd_tab == "zipslister"
|
20
|
-
$help_topic = "applet_installation"
|
21
|
-
$helptopicsarray = $helptopicsarray | ["applet_installation","applet_viewing"]
|
22
|
-
end
|
23
|
-
if @rwd_tab == "editconfigurationfile"
|
24
|
-
$help_topic = "applet_tinkerbackeditconfiguration"
|
25
|
-
$helptopicsarray = $helptopicsarray | ["applet_installation","applet_viewing"]
|
26
|
-
end
|
27
|
-
|
28
|
-
$previouswindow = @rwd_window
|
29
|
-
$previoustab = @rwd_tab
|
30
|
-
end
|
31
|
-
if @rwd_window == "rwdtinkerhelpwindow"
|
32
|
-
$helptopicsarray = $helptopicsarray | ["applet_installation","applet_viewing"]
|
33
17
|
end
|
18
|
+
|
19
|
+
|
34
20
|
@rwdhelptopic = $help_topic
|
35
21
|
@rwdhelpdataoutput = "#{Helptext[:"#{$help_topic}"]}"
|
36
22
|
@rwdhelpsubchoicesoutput = $helptopicsarray.rwd_method("choosenewhelptopic")
|
@@ -1,15 +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
|
-
|
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
|
+
|
@@ -1,11 +1,11 @@
|
|
1
|
-
# this code is to return to the window back from the help window
|
2
|
-
def rwdwindowreturn
|
3
|
-
|
4
|
-
|
5
|
-
@rwd_window = "#{$previouswindow}"
|
6
|
-
@rwd_tab = "#{$previoustab}"
|
1
|
+
# this code is to return to the window back from the help window
|
2
|
+
def rwdwindowreturn
|
3
|
+
|
4
|
+
|
5
|
+
@rwd_window = "#{$previouswindow}"
|
6
|
+
@rwd_tab = "#{$previoustab}"
|
7
7
|
end
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
|
10
|
+
|
11
|
+
|
@@ -0,0 +1,100 @@
|
|
1
|
+
#
|
2
|
+
|
3
|
+
def runcontrolcommand
|
4
|
+
require 'socket'
|
5
|
+
|
6
|
+
# Change this line...
|
7
|
+
ip = '127.0.0.1'
|
8
|
+
# And this one...
|
9
|
+
port = $rwdcontrolport1
|
10
|
+
if @a_remoteportinput
|
11
|
+
port = @a_remoteportinput.to_i
|
12
|
+
end
|
13
|
+
# Done!
|
14
|
+
|
15
|
+
|
16
|
+
commandtext = @a_remotecommandinput.to_s
|
17
|
+
|
18
|
+
remotehostnotfound = true
|
19
|
+
|
20
|
+
client = UDPSocket::new()
|
21
|
+
client.send(commandtext, 0, ip, port)
|
22
|
+
|
23
|
+
|
24
|
+
if (commandtext == "stop")
|
25
|
+
begin
|
26
|
+
@socket = UDPSocket::new()
|
27
|
+
@socket.bind(ip, port)
|
28
|
+
# Rescue the "Address in use" error
|
29
|
+
rescue Errno::EADDRINUSE
|
30
|
+
|
31
|
+
databack, info = client.recv(128)
|
32
|
+
@remotecommandresult = databack
|
33
|
+
@lastremotecommand = "rwdtinker remote:: Port #{port} on host #{ip} ."
|
34
|
+
remotehostnotfound = false
|
35
|
+
|
36
|
+
# Rescue the "Address not available" error
|
37
|
+
rescue Errno::EADDRNOTAVAIL
|
38
|
+
puts "Network plugin: Address #{host} is not available to bind."
|
39
|
+
|
40
|
+
# Rescue "permission denied errors
|
41
|
+
rescue Errno::EACCES
|
42
|
+
puts "Network plugin: Access denied when binding interface addresses. Did you try to bind a port under 1024 as a regular user?"
|
43
|
+
|
44
|
+
# Rescue all other errors
|
45
|
+
rescue
|
46
|
+
puts "Network plugin: An error occured."
|
47
|
+
|
48
|
+
# Rescue all other errors
|
49
|
+
end
|
50
|
+
if remotehostnotfound
|
51
|
+
@remotecommandresult = "Remote Host not running"
|
52
|
+
end
|
53
|
+
@socket.close
|
54
|
+
end
|
55
|
+
|
56
|
+
remotehostnotfound = true
|
57
|
+
if (commandtext == "query")
|
58
|
+
begin
|
59
|
+
@socket = UDPSocket::new()
|
60
|
+
@socket.bind(ip, port)
|
61
|
+
# Rescue the "Address in use" error
|
62
|
+
rescue Errno::EADDRINUSE
|
63
|
+
|
64
|
+
|
65
|
+
databack, info = client.recv(128)
|
66
|
+
@remotecommandresult = databack
|
67
|
+
@lastremotecommand = "rwdtinker remote: Port #{port} on host #{ip} "
|
68
|
+
remotehostnotfound = false
|
69
|
+
|
70
|
+
# Rescue the "Address not available' error
|
71
|
+
rescue Errno::EADDRNOTAVAIL
|
72
|
+
puts "Network plugin: Address #{host} is not available to bind."
|
73
|
+
|
74
|
+
# Rescue "permission denied errors
|
75
|
+
rescue Errno::EACCES
|
76
|
+
puts "Network plugin: Access denied when binding interface addresses. Did you try to bind a port under 1024 as a regular user?"
|
77
|
+
|
78
|
+
# Rescue all other errors
|
79
|
+
rescue
|
80
|
+
puts "Network plugin: An error occured."
|
81
|
+
|
82
|
+
# Rescue all other errors
|
83
|
+
end
|
84
|
+
@socket.close
|
85
|
+
end
|
86
|
+
if remotehostnotfound
|
87
|
+
@remotecommandresult = "Remote Host not running"
|
88
|
+
end
|
89
|
+
# Close the socket after use
|
90
|
+
client.close()
|
91
|
+
|
92
|
+
end
|
93
|
+
|
94
|
+
def showremoteportoptions
|
95
|
+
|
96
|
+
@remoteportoptions = $rwdcontrolports.rwd_options
|
97
|
+
@remotecommandoptions = ["query","stop"].rwd_options
|
98
|
+
end
|
99
|
+
|
100
|
+
|
@@ -1,21 +1,21 @@
|
|
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 Ruby constant
|
7
|
-
def runrubyversion
|
8
|
-
@rubyversion = "Version " + VERSION
|
9
|
-
end
|
10
|
-
|
11
|
-
# return the platform constan
|
12
|
-
def runviewplatform
|
13
|
-
@platformdisplay = "Platform is " + RUBY_PLATFORM
|
14
|
-
end
|
15
|
-
|
16
|
-
# return Rwdtinker version to diagnostic tab
|
17
|
-
def rwdtinkerversiondiagnostic
|
18
|
-
@rwdtinkerversionreturn = "rwdtinker version " + RwdTinkerVersion
|
19
|
-
end
|
20
|
-
|
21
|
-
|
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 Ruby constant
|
7
|
+
def runrubyversion
|
8
|
+
@rubyversion = "Version " + VERSION
|
9
|
+
end
|
10
|
+
|
11
|
+
# return the platform constan
|
12
|
+
def runviewplatform
|
13
|
+
@platformdisplay = "Platform is " + RUBY_PLATFORM
|
14
|
+
end
|
15
|
+
|
16
|
+
# return Rwdtinker version to diagnostic tab
|
17
|
+
def rwdtinkerversiondiagnostic
|
18
|
+
@rwdtinkerversionreturn = "rwdtinker version " + RwdTinkerVersion
|
19
|
+
end
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,37 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
Helptext.update( :tinkerwin2_help => " You can view the list of applets you can install
|
4
|
+
by clicking on the list files button
|
5
|
+
|
6
|
+
You can download an applet created by someone else
|
7
|
+
|
8
|
+
put the file in the zips directory",
|
9
|
+
:applet_viewing => "You can get a list of all installed applets by clicking the 'listfiles button'
|
10
|
+
To see the text of a install file
|
11
|
+
Type in the name of the file you want.
|
12
|
+
|
13
|
+
type it without the inf ending
|
14
|
+
rwdapplet-0.1
|
15
|
+
|
16
|
+
Then click the 'View Installed File' button
|
17
|
+
|
18
|
+
If it finds the file it will open it. It displays the text the search box.
|
19
|
+
|
20
|
+
You can uninstall applets on this screen",
|
21
|
+
|
22
|
+
:applet_installation => " You can download an applet created by someone else\n
|
23
|
+
put the file in the zips directory\n
|
24
|
+
|
25
|
+
click on the 'list zips' tab\n
|
26
|
+
click on 'list applets available for installing'\n
|
27
|
+
|
28
|
+
chose the applet you want\n
|
29
|
+
click on 'install applet'\n
|
30
|
+
If all goes well the applet should be installed.\n
|
31
|
+
You will need to restart rwdtinker to see the new screens",
|
32
|
+
:applet_tinkerbackeditconfiguration => " You can edit the configuration
|
33
|
+
|
34
|
+
Remember to reload the configuration variables if you want your
|
35
|
+
changes used."
|
36
|
+
|
37
|
+
)
|