rwdschedule 0.07 → 0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.txt +16 -434
- data/bin/rwdschedule +0 -0
- data/code/ag1core/aa0begin.rb +18 -0
- data/code/ag1core/rwdtinkerversion.rb +15 -0
- data/code/{superant.com.schedule → gg0schedules}/deleteeventrecord.rb +18 -18
- data/code/{superant.com.schedule/viewevent.rb → gg0schedules/gg0viewevent.rb} +20 -20
- data/code/{superant.com.schedule/saveeventrecord.rb → gg0schedules/gg9saveeventchanges.rb} +18 -25
- data/code/{superant.com.schedule/listeventdates.rb → gg0schedules/gh5listdaterecords.rb} +18 -18
- data/code/gg0schedules/gl7clearscreendisplay.rb +15 -0
- data/code/gg0schedules/gm3deletecontactrecord.rb +24 -0
- data/code/{superant.com.schedule/loadicseventrecord.rb → gg0schedules/loadeventrecord.rb} +29 -29
- data/code/{superant.com.schedule → gg0schedules}/renameeventdata.rb +10 -10
- data/code/gg0schedules/rwdaddresseshelpabout.rb +14 -0
- data/code/gg0schedules/rwdschedulehelpabout.rb +14 -0
- data/code/gh9calendar/gh9calendar.rb +16 -0
- data/code/xa5rwdtinkercallable/callable.rb +13 -0
- data/code/xb1rwdtinkerbackwindow/diagnostictab.rb +21 -0
- data/code/xb1rwdtinkerbackwindow/installapplet.rb +20 -0
- data/code/xb1rwdtinkerbackwindow/listinstalledfiles.rb +11 -0
- data/code/xb1rwdtinkerbackwindow/listzips.rb +14 -0
- data/code/xb1rwdtinkerbackwindow/openappletname.rb +18 -0
- data/code/xb1rwdtinkerbackwindow/removeapplet.rb +28 -0
- data/code/xb1rwdtinkerbackwindow/rwdtinkerwin2version.rb +14 -0
- data/code/zz0applicationend/zz0end.rb +1 -2
- data/configuration/language.cnf +5 -0
- data/configuration/rwdcalendar.cnf +4 -0
- data/configuration/rwdcalendarversion.cnf +4 -0
- data/configuration/rwdschedule.cnf +2 -0
- data/configuration/rwdscheduleversion.cnf +3 -0
- data/configuration/rwdtinker.cnf +12 -0
- data/configuration/rwdtinkerversion.cnf +2 -0
- data/configuration/tinkerwin2.cnf +3 -0
- data/configuration/tinkerwin2version.cnf +3 -0
- data/{lib/rwd → ev}/browser.rb +12 -26
- data/{lib/rwd → ev}/ftools.rb +19 -23
- data/{lib/rwd → ev}/net.rb +45 -172
- data/{lib/rwd → ev}/ruby.rb +27 -97
- data/{lib/rwd → ev}/rwd.rb +668 -245
- data/{lib/rwd → ev}/sgml.rb +2 -2
- data/{lib/rwd → ev}/thread.rb +1 -1
- data/{lib/rwd → ev}/tree.rb +7 -35
- data/ev/xml.rb +4 -0
- data/{lib → extras}/cal.rb +166 -158
- data/gui/aa2core/aa0rwdtop.rwd +4 -0
- data/gui/{tinkerbackwindows/superant.com.rwdschedules → gg0schedules}/gg0viewevent.rwd +27 -27
- data/gui/gg0schedules/gl6editrecord.rwd +36 -0
- data/gui/{tinkerbackwindows/superant.com.rwdschedules → gg0schedules}/gl8contactutilities.rwd +24 -25
- data/gui/hl9calendar/hl9calendar.rwd +20 -0
- data/gui/ll1selectiontabbegin/selectiontabbegin.rwd +16 -0
- data/gui/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +12 -0
- data/gui/{frontwindowselections/wwselectionend.rwd → lz1selectiontabend/endselectiontab.rwd} +0 -0
- data/gui/tt0documentsbegin/tt0documentbegin.rwd +6 -0
- data/gui/uu5rwddocuments/uu5documents.rwd +15 -0
- data/gui/uu6rwdtinkerwin2documents/uu5documents.rwd +6 -0
- data/gui/uu8schedule/uu8doc_rwdschedule.rwd +5 -0
- data/gui/ww0documentsend/ww0documentend.rwd +7 -0
- data/gui/{helpaboutbegin/zzzrwdlasttab.rwd → wz6finaltabs/xx0rwdfirsttab.rwd} +0 -0
- data/gui/{tinkerbackwindows/superant.com.versionwindow → xa1versionwindow}/1appname.rwd +2 -2
- data/gui/xa5rwdtinkercallablewindow/1appname.rwd +17 -0
- data/gui/{tinkerbackwindows/superant.com.tinkerhelpwindow → xa5rwdtinkercallablewindow}/9end.rwd +0 -0
- data/gui/xb1rwdtinkerbackwindow/1appname.rwd +5 -0
- data/gui/xb1rwdtinkerbackwindow/2tab1.rwd +11 -0
- data/gui/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +33 -0
- data/gui/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +44 -0
- data/gui/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +35 -0
- data/gui/{tinkerbackwindows/superant.com.tinkerbackwindow → xb1rwdtinkerbackwindow}/9backend.rwd +0 -0
- data/gui/ya1helpaboutbegin/ya0helpscreenstart.rwd +3 -0
- data/gui/yg5rwdhelpabout/1appname.rwd +4 -0
- data/gui/yg5rwdhelpabout/3copyright.rwd +3 -0
- data/gui/yg5rwdhelpabout/5version.rwd +10 -0
- data/gui/yg6rwdwin2helpabout/1appname.rwd +4 -0
- data/gui/yg6rwdwin2helpabout/3copyright.rwd +3 -0
- data/gui/yg6rwdwin2helpabout/5version.rwd +10 -0
- data/gui/yh1helpschedule/1rwdschedule.rwd +6 -0
- data/gui/yh1helpschedule/5version.rwd +9 -0
- data/gui/{helpaboutzend → yy5helpaboutend}/helpscreenend.rwd +0 -0
- data/gui/{zzcoreguiend → za1applicationend}/yy9rwdend.rwd +0 -0
- data/init.rb +198 -144
- data/installed/rwdcalendar-0.5.inf +8 -0
- data/installed/rwdschedule-0.8.inf +7 -0
- data/installed/rwdtinkerwin2-0.5.inf +8 -0
- data/installed/schedulesampledata1.inf +3 -0
- data/lang/alanguagehashbegin.rb +4 -0
- data/lang/en/rwdcalendar/calendar-nl.rb +6 -0
- data/lang/en/rwdcore/languagefile.rb +16 -0
- data/lang/es/rwdcalendar/calendar-nl.rb +6 -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/rwdcalendar/calendar-nl.rb +6 -0
- data/lang/nl/rwdcore/languagefile.rb +19 -0
- data/lang/templangfile.rb +22 -0
- data/lang/vlanguagehashend.rb +6 -0
- data/lang/wlocallangstart.rb +5 -0
- data/lang/xlocallangfile.rb +22 -0
- data/lang/zlocallangend.rb +2 -0
- data/{installed → lib}/temp.rb +0 -0
- data/rwd_files/HowTo_Schedule.txt +83 -197
- data/rwd_files/HowTo_Tinker.txt +35 -258
- data/rwd_files/rwdapplications.html +1 -23
- data/rwd_files/{RubyWebDialogs.html → rwdindex.html} +0 -0
- data/schedules/200501january23CharlotteB-Day.sch +8 -0
- data/schedules/200501january24jazzfuller.sch +8 -0
- data/tests/rwdtinkertestEN.rb +163 -0
- data/tests/test.result +32 -0
- 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
- metadata +147 -279
- data/code/01rwdcore/01rwdcore.rb +0 -29
- data/code/01rwdcore/02helptexthashbegin.rb +0 -16
- data/code/01rwdcore/03helptexthash.rb +0 -21
- data/code/01rwdcore/jumplinkcommand.rb +0 -36
- data/code/01rwdcore/openhelpwindow.rb +0 -38
- data/code/01rwdcore/returntomain.rb +0 -10
- data/code/01rwdcore/rundocuments.rb +0 -10
- data/code/01rwdcore/runeditconfiguration.rb +0 -10
- data/code/01rwdcore/runhelpabout.rb +0 -15
- data/code/01rwdcore/runopentinkerdocument.rb +0 -7
- data/code/01rwdcore/runtab.rb +0 -15
- data/code/01rwdcore/rwdtinkerversion.rb +0 -22
- data/code/01rwdcore/rwdwindowreturn.rb +0 -9
- data/code/01rwdcore/selectiontab.rb +0 -11
- data/code/01rwdcore/setuphelpaboutoptions.rb +0 -15
- data/code/01rwdcore/setuptinkerdocuments.rb +0 -7
- data/code/01rwdcore/test_cases.rb +0 -158
- data/code/01rwdcore/test_harness.rb +0 -20
- data/code/01rwdcore/uploadreturns.rb +0 -65
- data/code/dd0viewphoto/dd0viewphoto.rb +0 -5
- data/code/superant.com.rwdcalendar/gh9calendar.rb +0 -40
- data/code/superant.com.rwdcalendar/helptexthashrwdschedule.rb +0 -14
- data/code/superant.com.rwdcalendar/openhelpwindowrwdschedule.rb +0 -17
- data/code/superant.com.rwdtinkerbackwindow/changelocale.rb +0 -84
- data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +0 -19
- data/code/superant.com.rwdtinkerbackwindow/initiateapplets.rb +0 -169
- data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +0 -38
- data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +0 -20
- data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +0 -12
- data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +0 -55
- data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +0 -14
- data/code/superant.com.rwdtinkerbackwindow/listzips.rb +0 -37
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +0 -24
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb +0 -14
- data/code/superant.com.rwdtinkerbackwindow/network.rb +0 -87
- data/code/superant.com.rwdtinkerbackwindow/openappletname.rb +0 -19
- data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +0 -40
- data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +0 -24
- data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +0 -46
- data/code/superant.com.rwdtinkerbackwindow/removeappletvariables.rb +0 -52
- data/code/superant.com.rwdtinkerbackwindow/runremoteinstall.rb +0 -11
- data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +0 -15
- data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +0 -13
- data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +0 -19
- data/code/superant.com.rwdtinkerbackwindow/showlocaleoptions.rb +0 -9
- data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +0 -23
- data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +0 -24
- data/code/superant.com.rwdtinkerbackwindow/viewlogfile.rb +0 -16
- data/code/superant.com.schedule/0uninstallapplet.rb +0 -24
- data/code/superant.com.schedule/archiveevent.rb +0 -14
- data/code/superant.com.schedule/archiveicsevent.rb +0 -14
- data/code/superant.com.schedule/cleareventscreendisplay.rb +0 -19
- data/code/superant.com.schedule/deleteicseventrecord.rb +0 -19
- data/code/superant.com.schedule/deleterwdscheduleupdatefiles.rb +0 -20
- data/code/superant.com.schedule/downloadrwdschedulefiles.rb +0 -37
- data/code/superant.com.schedule/exporticseventrecord.rb +0 -97
- data/code/superant.com.schedule/helptexthashload.rb +0 -22
- data/code/superant.com.schedule/listicseventdates.rb +0 -19
- data/code/superant.com.schedule/loadconfigurationrecord.rb +0 -22
- data/code/superant.com.schedule/loadconfigurationvariables.rb +0 -14
- data/code/superant.com.schedule/loadeventrecord.rb +0 -38
- data/code/superant.com.schedule/openhelpwindowrwdschedule.rb +0 -43
- data/code/superant.com.schedule/renameicseventdata.rb +0 -17
- data/code/superant.com.schedule/returntomain.rb +0 -10
- data/code/superant.com.schedule/runrwdscheduleicsbackwindow.rb +0 -10
- data/code/superant.com.schedule/runrwdschedulemenu1.rb +0 -34
- data/code/superant.com.schedule/runrwdschedulesyncbackwindow.rb +0 -10
- data/code/superant.com.schedule/rwdversion.rb +0 -10
- data/code/superant.com.schedule/saveconfigurationrecord.rb +0 -19
- data/code/superant.com.schedule/saveicseventrecord.rb +0 -98
- data/code/superant.com.schedule/syncrwdschedule.rb +0 -30
- data/code/superant.com.schedule/test_cases.rb +0 -45
- data/code/superant.com.schedule/uploadrwdschedulefiles.rb +0 -30
- data/code/superant.com.schedule/viewicsevent.rb +0 -20
- data/code/superant.com.schedule/viewrwdschedulesconfiguration.rb +0 -21
- data/configuration/rwdtinker.dist +0 -15
- data/configuration/rwdwschedule.dist +0 -28
- data/configuration/tinkerwin2variables.dist +0 -23
- data/gui/00coreguibegin/applicationguitop.rwd +0 -9
- data/gui/frontwindow0/cc0openphoto.rwd +0 -22
- data/gui/frontwindowselections/00selectiontabbegin.rwd +0 -11
- data/gui/frontwindowselections/jumplinkcommands.rwd +0 -15
- data/gui/frontwindowtdocuments/00documentbegin.rwd +0 -6
- data/gui/frontwindowtdocuments/tinkerdocuments.rwd +0 -14
- data/gui/frontwindowtdocuments/zzdocumentend.rwd +0 -8
- data/gui/helpaboutbegin/zzzzhelpscreenstart.rwd +0 -3
- data/gui/helpaboutbegin/zzzzzzhelpabouttab.rwd +0 -15
- data/gui/helpaboutzend/zhelpscreenstart2.rwd +0 -3
- data/gui/helpaboutzend/zzzzhelpabout2.rwd +0 -15
- data/gui/helpaboutzend/zzzzhelpscreen2end.rwd +0 -3
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/1appname.rwd +0 -5
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/20downloadftp.rwd +0 -45
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/67viewconfiguration.rwd +0 -29
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/70rwddiagnostics.rwd +0 -16
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/m01menubegin.rwd +0 -18
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/zvbackend.rwd +0 -6
- data/gui/tinkerbackwindows/superant.com.rwdschedules/1appname.rwd +0 -5
- data/gui/tinkerbackwindows/superant.com.rwdschedules/gl6editrecord.rwd +0 -56
- data/gui/tinkerbackwindows/superant.com.rwdschedules/hl9calendar.rwd +0 -27
- data/gui/tinkerbackwindows/superant.com.rwdschedules/m01menubegin.rwd +0 -18
- data/gui/tinkerbackwindows/superant.com.rwdschedules/zvbackend.rwd +0 -6
- data/gui/tinkerbackwindows/superant.com.rwdschedulesback/1appname.rwd +0 -5
- data/gui/tinkerbackwindows/superant.com.rwdschedulesback/30viewevent.rwd +0 -27
- data/gui/tinkerbackwindows/superant.com.rwdschedulesback/40editrecord.rwd +0 -49
- data/gui/tinkerbackwindows/superant.com.rwdschedulesback/60eventicsutilities.rwd +0 -25
- data/gui/tinkerbackwindows/superant.com.rwdschedulesback/m01menubegin.rwd +0 -18
- data/gui/tinkerbackwindows/superant.com.rwdschedulesback/zvbackend.rwd +0 -6
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/1appname.rwd +0 -5
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd +0 -41
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/45installremotezip.rwd +0 -44
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd +0 -44
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd +0 -30
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd +0 -29
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdlogfile.rwd +0 -20
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/80localechanger.rwd +0 -17
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd +0 -17
- data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd +0 -31
- data/gui/tinkerbackwindows/superant.com.versionwindow/helpaboutwindow.rwd +0 -17
- data/installed/rwdscheduledate2.inf +0 -6
- data/installed/rwdwschedule.inf +0 -20
- data/lang/en/rwdcalendar/en.po +0 -32
- data/lang/en/rwdcore/en.po +0 -197
- data/lang/es/rwdcalendar/es.po +0 -10
- data/lang/es/rwdcore/es.po +0 -184
- data/lang/fr/rwdcalendar/fr.po +0 -11
- data/lang/fr/rwdcore/fr.po +0 -169
- data/lang/hi/rwdcalendar/hi.po +0 -11
- data/lang/hi/rwdcore/hi.po +0 -173
- data/lang/ja/rwdcalendar/ja.po +0 -11
- data/lang/ja/rwdcore/ja.po +0 -171
- data/lang/nl/rwdcalendar/nl.po +0 -12
- data/lang/nl/rwdcore/nl.po +0 -169
- data/lib/icalendar.rb +0 -18
- data/lib/icalendar/base.rb +0 -17
- data/lib/icalendar/calendar.rb +0 -44
- data/lib/icalendar/calendar_parser.rb +0 -237
- data/lib/icalendar/component.rb +0 -91
- data/lib/icalendar/component/alarm.rb +0 -16
- data/lib/icalendar/component/event.rb +0 -25
- data/lib/icalendar/component/freebusy.rb +0 -12
- data/lib/icalendar/component/journal.rb +0 -25
- data/lib/icalendar/component/timezone.rb +0 -26
- data/lib/icalendar/component/todo.rb +0 -21
- data/lib/icalendar/helpers.rb +0 -103
- data/lib/icalendar/parameter.rb +0 -25
- data/lib/rconftool.rb +0 -387
- data/lib/rwd/mime.rb +0 -328
- data/lib/rwd/xml.rb +0 -101
- data/lib/rwdthemes/default.rwd +0 -317
- data/lib/rwdthemes/pda.rwd +0 -72
- data/lib/rwdthemes/windowslike.rwd +0 -171
- data/lib/rwdtinker/rwdcodedir.rb +0 -56
- data/lib/rwdtinker/rwdguidir.rb +0 -57
- data/lib/rwdtinker/rwdlangdir.rb +0 -60
- data/lib/rwdtinker/rwdtinkertools.rb +0 -25
- data/lib/zip/ioextras.rb +0 -155
- data/lib/zip/stdrubyext.rb +0 -111
- data/lib/zip/tempfile_bugfixed.rb +0 -195
- data/lib/zip/zip.rb +0 -1847
- data/lib/zip/zipfilesystem.rb +0 -609
- data/lib/zip/ziprequire.rb +0 -90
- data/rwd_files/Tinkerhelptexthash.txt +0 -84
- data/rwd_files/log/rwdtinker.log +0 -2
- data/rwd_files/rwdschedulehelpfiles.txt +0 -19
- data/rwd_files/schedules/20050120T09.ics +0 -9
- data/rwd_files/schedules/200505may02a.sch +0 -4
- data/rwd_files/schedules/Enterprise.ics +0 -411
- data/rwd_files/schedules/US Holidays.ics +0 -575
- data/rwd_files/schedules/archive/sample.archive +0 -1
- data/rwd_files/schedules/testics05.ics +0 -11
- data/rwd_files/tinker.png +0 -0
- data/rwdconfig.dist +0 -24
- data/rwdschedule.rb +0 -1
- data/tests/RubyGauge.rb +0 -179
- data/tests/checkdepends.sh +0 -4
- data/tests/cleancnf.sh +0 -6
- data/tests/makedist-rwdwhypernote.rb +0 -56
- data/tests/makedist.rb +0 -66
- data/tests/rdep.rb +0 -354
- data/updates/temp.rb +0 -1
- data/zips/rwdwcalc-0.63.zip +0 -0
- data/zips/rwdwfoldeditor-0.07.zip +0 -0
- data/zips/rwdwhypernote-0.16.zip +0 -0
- data/zips/rwdwmovies-0.98.zip +0 -0
- data/zips/rwdwruby-1.08.zip +0 -0
- data/zips/rwdwschedule-1.07.zip +0 -0
- data/zips/temp.rb +0 -1
- data/zips/tinkerbellw-0.04.zip +0 -0
- data/zips/wrubyslippers-1.08.zip +0 -0
File without changes
|
File without changes
|
data/init.rb
CHANGED
@@ -18,162 +18,216 @@
|
|
18
18
|
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
19
19
|
#*
|
20
20
|
#* For further information please contact the author by e-mail
|
21
|
-
#* at "
|
21
|
+
#* at "steven@superant.com".
|
22
22
|
#***********************************************************************/
|
23
23
|
|
24
|
-
require
|
25
|
-
|
26
|
-
LogDirectory = 'rwd_files/log/'
|
27
|
-
logfilelocation = File.join(LogDirectory, 'rwdtinker.log')
|
28
|
-
|
29
|
-
$rwdtinkerlog = Logger.new( logfilelocation , 'weekly' )
|
30
|
-
$rwdtinkerlog.level = Logger::INFO
|
31
|
-
|
32
|
-
require "lib/rwd/rwd"
|
24
|
+
require "ev/rwd"
|
33
25
|
require 'fileutils'
|
34
|
-
|
35
|
-
|
36
|
-
$KCODE = 'u'
|
37
|
-
require 'jcode'
|
38
|
-
|
26
|
+
|
39
27
|
$progdir = File::expand_path( File.dirname(__FILE__))
|
40
28
|
|
41
|
-
tempdoc = " "
|
42
|
-
|
43
|
-
# integrate the new configuration files
|
44
|
-
MAINconfignew = "rwdconfig.cnf"
|
45
|
-
MAINconfigdist = "rwdconfig.dist"
|
46
|
-
Rconftool::install(MAINconfigdist,MAINconfignew)
|
47
|
-
|
48
|
-
#load main config file
|
49
|
-
load 'rwdconfig.cnf'
|
50
|
-
|
51
|
-
Dir.chdir("configuration") #changes the current working directory
|
52
|
-
|
53
|
-
fileList = Dir.new(".").entries.sort.reverse.delete_if { |x| ! (x =~ /dist$/) } #creates an Array separated with \n
|
54
|
-
@doc = ""
|
55
|
-
fileList.length.times{ #opening of a block
|
56
|
-
configdist =fileList.pop #pops the first item out of the Array
|
57
|
-
tempconfigfile = configdist.gsub(/\.dist$/, "")
|
58
|
-
confignew = tempconfigfile + ".cnf"
|
59
|
-
Rconftool::install(configdist,confignew) #integrates new file with old
|
60
|
-
} #closing block
|
61
|
-
# END of configuration integration
|
62
|
-
Dir.chdir($progdir)
|
63
|
-
|
64
|
-
# Read in the configuration files
|
65
|
-
Dir.chdir("configuration") #changes the current working directory
|
66
|
-
|
67
|
-
fileList = Dir.new(".").entries.sort.reverse.delete_if { |x| ! (x =~ /cnf$/) } #creates an Array separated with \n
|
68
|
-
@doc = ""
|
69
|
-
fileList.length.times{ #opening of a block
|
70
|
-
fileName=fileList.pop #pops the first item out of the Array
|
71
|
-
load fileName #loads the the config file thats in fileName
|
72
|
-
} #closing block
|
73
|
-
# END of configuration reading
|
74
|
-
|
75
|
-
Dir.chdir($progdir) # change back to top program directory
|
76
|
-
|
77
|
-
|
78
|
-
# build the English Language hash file from the parts
|
79
|
-
Message = Hash.new { |hh, kk| hh[kk] = "ERROR: Message not found: #{kk.inspect}."; hh[kk] }
|
80
|
-
langmessage = { :clear => "Clear", :rwdtinker => "Rwdtinker" } ; langmessage.each { |kk, vv| Message[kk] = vv }
|
81
|
-
|
82
|
-
def msgid(programkey)
|
83
|
-
$programkey = programkey
|
84
|
-
end
|
85
|
-
|
86
|
-
def msgstr(programmsg)
|
87
|
-
if programmsg == ""
|
88
|
-
$rwdtinkerlog.info "msgstr: no translation for #{$programkey}"
|
89
|
-
else
|
90
|
-
Message.update( $programkey.to_sym => programmsg )
|
91
|
-
end
|
92
|
-
end
|
29
|
+
$tempdoc = " "
|
93
30
|
|
94
|
-
|
31
|
+
def findfiles(d)
|
32
|
+
a = Array.new(Dir[d].entries.sort)
|
33
|
+
#loop through and get the files names
|
34
|
+
a.each do |x|
|
35
|
+
#adjust the filters to the files you want to see...
|
36
|
+
if(!test(?d,x))
|
37
|
+
# only rwd files
|
38
|
+
if x =~ /rb|rwd|txt/
|
39
|
+
fileA=File.open("#{x}","r") #opens the file thats in fileName as read only
|
40
|
+
$tempdoc+=fileA.read #reads the file into the doc string
|
41
|
+
fileA.close
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
def loadguifile(d)
|
47
|
+
a = Array.new(Dir[d].entries.sort)
|
48
|
+
#loop through and get the files names
|
49
|
+
a.each do |x|
|
50
|
+
#adjust the filters to the files you want to see...
|
51
|
+
if(!test(?d,x))
|
52
|
+
# only rwd files
|
53
|
+
if x =~ /rb|rwd|txt/
|
54
|
+
load x #opens the file thats in fileName and reads it
|
55
|
+
$tempdoc += $rwdguivar # adds the file into the doc string
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# Read in the configuration files
|
95
62
|
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
63
|
+
Dir.chdir("configuration") #changes the current working directory
|
64
|
+
|
65
|
+
fileList = Dir.new(".").entries.sort.reverse.delete_if { |x| ! (x =~ /cnf$/) } #creates an Array separated with \n
|
66
|
+
@doc = ""
|
67
|
+
fileList.length.times{ #opening of a block
|
68
|
+
fileName=fileList.pop #pops the first item out of the Array
|
69
|
+
load fileName #loads the the config file thats in fileName
|
70
|
+
} #closing block
|
71
|
+
# END of configuration reading
|
72
|
+
|
73
|
+
Dir.chdir($progdir) # change back to top program directory
|
74
|
+
|
75
|
+
# build the English Language hash file from the parts
|
76
|
+
startlangdir = @@langdir +"/" + "en"
|
77
|
+
#get a list of the files and subdirectories on the starting directory only
|
78
|
+
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
79
|
+
#loop through the list, ignore the files and add all new directories found
|
80
|
+
alanghash.each do |x|
|
81
|
+
#if a directory...
|
82
|
+
if(test(?d,x))
|
83
|
+
# add to the original list of directories
|
84
|
+
@@tmproot = x + "/**"
|
85
|
+
#adds the new ones to the array
|
86
|
+
blanghash = Dir[@@tmproot].entries.sort
|
87
|
+
blanghash.each do |x|
|
88
|
+
if(test(?d,x))
|
89
|
+
alanghash.push(x) #appends to the end of the array...
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
alanghash.each do |x|
|
95
|
+
#if it is a file...
|
96
|
+
if(!test(?d,x))
|
97
|
+
alanghash.delete(x)
|
98
|
+
else #it is a directory...
|
99
|
+
findfiles(x + "/**")
|
100
|
+
end
|
101
|
+
end
|
102
102
|
|
103
|
-
|
104
|
-
|
103
|
+
fileLangHash=File.open(TempLangHashFile,"w") #deletes and opens a the file in fileName
|
104
|
+
fileLangHash.write($tempdoc) #writes the contents of doc into the file
|
105
|
+
fileLangHash.close
|
106
|
+
# END of Lang building
|
107
|
+
$tempdoc = " "
|
105
108
|
Dir.chdir($progdir) # change back to top program directory
|
109
|
+
|
110
|
+
# build the local Language hash file from the parts
|
111
|
+
startlangdir = @@langdir +"/" + $lang
|
112
|
+
#get a list of the files and subdirectories on the starting directory only
|
113
|
+
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
114
|
+
#loop through the list, ignore the files and add all new directories found
|
115
|
+
alanghash.each do |x|
|
116
|
+
#if a directory...
|
117
|
+
if(test(?d,x))
|
118
|
+
# add to the original list of directories
|
119
|
+
@@tmproot = x + "/**"
|
120
|
+
#adds the new ones to the array
|
121
|
+
blanghash = Dir[@@tmproot].entries.sort
|
122
|
+
blanghash.each do |x|
|
123
|
+
if(test(?d,x))
|
124
|
+
alanghash.push(x) #appends to the end of the array...
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
129
|
+
alanghash.each do |x|
|
130
|
+
#if it is a file...
|
131
|
+
if(!test(?d,x))
|
132
|
+
alanghash.delete(x)
|
133
|
+
else #it is a directory...
|
134
|
+
findfiles(x + "/**")
|
135
|
+
end
|
136
|
+
end
|
106
137
|
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
# Go get all the po files for the language of choice
|
112
|
-
tempdoc = RwdtinkerTools.findlanguagefiles(LangDir,$lang)
|
113
|
-
# the contents of doc into the variable
|
114
|
-
languagehashvariable = languagehashvariable + tempdoc
|
115
|
-
|
116
|
-
Dir.chdir($progdir) # change back to top program directory
|
117
|
-
|
118
|
-
# lets read those po files, first english then the chosen language
|
119
|
-
temp = eval( languagehashvariable )
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
# build the actual program from the code parts
|
124
|
-
require 'lib/rwdtinker/rwdcodedir'
|
125
|
-
|
126
|
-
tempdoc = RwdtinkerTools.findprogramfiles(CodeDir)
|
138
|
+
filelocalLangHash=File.open(LocalLangHashFile,"w") #deletes and opens a the file in fileName
|
139
|
+
filelocalLangHash.write($tempdoc) #writes the contents of doc into the file
|
140
|
+
filelocalLangHash.close
|
127
141
|
|
128
|
-
|
142
|
+
$tempdoc = " "
|
129
143
|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
144
|
+
Dir.chdir($progdir) # change back to top program directory
|
145
|
+
|
146
|
+
# build the language hash constant object from the lang parts
|
147
|
+
#get a list of the files in lang directory only
|
148
|
+
alangfile = Dir.new(@@langdir).entries.sort.reverse.delete_if { |x| ! (x =~ /rb$/) }
|
149
|
+
alangfile.length.times{
|
150
|
+
fileName = alangfile.pop
|
151
|
+
Dir.chdir($progdir)
|
152
|
+
Dir.chdir(@@langdir)
|
153
|
+
fileLangA=File.open("#{fileName}","r") #opens the file thats in fileName as read only
|
154
|
+
$tempdoc += fileLangA.read #reads the file into the doc string
|
155
|
+
fileLangA.close
|
156
|
+
}
|
157
|
+
|
158
|
+
Dir.chdir($progdir)
|
159
|
+
fileLangB=File.open(LangNameFile,"w") #deletes and opens a the file in fileName
|
160
|
+
fileLangB.write($tempdoc) #writes the contents of doc into the file
|
161
|
+
fileLangB.close
|
162
|
+
load LangNameFile # load the file
|
163
|
+
|
164
|
+
$tempdoc = " "
|
165
|
+
|
166
|
+
# build the actual program from the code parts
|
167
|
+
#get a list of the files and subdirectories on the starting directory only
|
168
|
+
a = Array.new(Dir[@@codedir].entries.sort)
|
169
|
+
#loop through the list, ignore the files and add all new directories found
|
170
|
+
a.each do |x|
|
171
|
+
#if a directory...
|
172
|
+
if(test(?d,x))
|
173
|
+
# add to the original list of directories
|
174
|
+
@@root = x + "/**"
|
175
|
+
#adds the new ones to the array
|
176
|
+
b = Dir[@@root].entries.sort
|
177
|
+
b.each do |x|
|
178
|
+
if(test(?d,x))
|
179
|
+
a.push(x) #appends to the end of the array...
|
180
|
+
end
|
181
|
+
end
|
182
|
+
end
|
183
|
+
end
|
184
|
+
a.each do |x|
|
185
|
+
#if it is a file...
|
186
|
+
if(!test(?d,x))
|
187
|
+
a.delete(x)
|
188
|
+
else #it is a directory...
|
189
|
+
findfiles(x + "/**")
|
190
|
+
end
|
191
|
+
end
|
137
192
|
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
193
|
+
fileB=File.open(CodeNameFile,"w") #deletes and opens a the file in fileName
|
194
|
+
fileB.write($tempdoc) #writes the contents of doc into the file
|
195
|
+
fileB.close
|
196
|
+
require CodeName # load the program file
|
197
|
+
|
198
|
+
# build the actual GUI from the gui parts
|
199
|
+
$tempdoc = " "
|
200
|
+
#get a list of the files and subdirectories on the starting directory only
|
201
|
+
a = Array.new(Dir[@@guidir].entries.sort)
|
202
|
+
#loop through the list, ignore the files and add all new directories found
|
203
|
+
a.each do |x|
|
204
|
+
#if a directory...
|
205
|
+
if(test(?d,x))
|
206
|
+
#use this new dir find to add to the original list of directories
|
207
|
+
@@root = x + "/**"
|
208
|
+
#adds the new ones to the array
|
209
|
+
b = Dir[@@root].entries.sort
|
210
|
+
b.each do |x|
|
211
|
+
if(test(?d,x))
|
212
|
+
a.push(x) #appends to the end of the array...
|
213
|
+
end
|
214
|
+
end
|
215
|
+
end
|
216
|
+
end
|
217
|
+
a.each do |x|
|
218
|
+
#if it is a file...
|
219
|
+
if(!test(?d,x))
|
220
|
+
a.delete(x)
|
221
|
+
|
222
|
+
else #it is a directory...
|
223
|
+
loadguifile(x + "/**")
|
224
|
+
end
|
225
|
+
end
|
144
226
|
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
@socket.bind(host, port)
|
151
|
-
freeportfound = true
|
152
|
-
$port = port
|
153
|
-
# Rescue the "Address in use" error
|
154
|
-
rescue Errno::EADDRINUSE
|
155
|
-
$rwdtinkerlog.warn "RWD Startup: Port #{port} on host #{host} is already in use."
|
156
|
-
port=port +1
|
157
|
-
$rwdtinkerlog.warn "trying port: #{port}"
|
158
|
-
# Rescue the "Address not available' error
|
159
|
-
rescue Errno::EADDRNOTAVAIL
|
160
|
-
$rwdtinkerlog.warn "RWD Startup: Address #{host} is not available to bind."
|
161
|
-
port =port + 1
|
162
|
-
$rwdtinkerlog.warn "trying port: #{port}"
|
163
|
-
# Rescue "permission denied errors
|
164
|
-
rescue Errno::EACCES
|
165
|
-
$rwdtinkerlog.warn "RWD Startup: Access denied when binding interface addresses. ?"
|
166
|
-
port =port + 1
|
167
|
-
$rwdtinkerlog.warn "trying port: #{port}"
|
168
|
-
# Rescue all other errors
|
169
|
-
rescue
|
170
|
-
$rwdtinkerlog.warn "RWD Startup: An error occured."
|
171
|
-
port =port + 1
|
172
|
-
$rwdtinkerlog.warn "trying port: #{port}"
|
173
|
-
# Rescue all other errors
|
174
|
-
end
|
175
|
-
$port = port
|
176
|
-
end
|
227
|
+
fileB=File.open(RWDFile,"w") #deletes and opens a the file in fileName
|
228
|
+
fileB.write($tempdoc) #writes the contents of doc into the file
|
229
|
+
fileB.close
|
230
|
+
|
231
|
+
|
177
232
|
|
178
|
-
|
179
|
-
RwdTinker.new( $rwd_gui_tinker ).serve(port) # start the main class and program
|
233
|
+
RwdTinker.file(RWDFile).serve($port) # start the main class and program
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# rwdwin2 - rwd applet in second window - core for Tinker: Applet adding/removing and Diagnostic tab
|
2
|
+
configuration/ab1tinkerwin2.cnf
|
3
|
+
code/xb1rwdtinkerbackwindow
|
4
|
+
gui/ll5rwdtinkerwin2selectiontab
|
5
|
+
gui/xb1rwdtinkerbackwindow
|
6
|
+
gui/uu6rwdtinkerwin2documents
|
7
|
+
gui/yg6rwdwin2helpabout
|
8
|
+
rwd_files/HowTo_TinkerWin2.txt
|
@@ -0,0 +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",
|
16
|
+
:selection_panel => '"Selection Panel"',
|
@@ -0,0 +1,14 @@
|
|
1
|
+
:applet_installed => "applet instalado! ",
|
2
|
+
:clickfor_version => '"click para version"',
|
3
|
+
:documents => '"Documentos"',
|
4
|
+
:help => '"Ayuda"',
|
5
|
+
:module_unknown => "Module desconocido.",
|
6
|
+
:next => '"Siguiente"',
|
7
|
+
:rwdtinker => "RwdTinker",
|
8
|
+
:rwdtinker_help_window => '"RwdTinker Ventana Ayuda"',
|
9
|
+
:rwdtinker_help => '"RwdTinker Ayuda"',
|
10
|
+
:rwdtinker_window_2 => "RwdTinker Ventana 2",
|
11
|
+
:rwdtinker_back_window => '"RwdTinker Ventana Trasera"',
|
12
|
+
:tinker_logo => "Insignia de Tinker",
|
13
|
+
:selection_panel => '"Selecci�n Panel"',
|
14
|
+
|