rwdschedule 1.01 → 1.02

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,14 @@
1
+
2
+
3
+ Helptext.update(
4
+ :calendar_help => "On the 'Show Month' tab
5
+ You can see the current month or
6
+ enter a year and month
7
+ for example:
8
+ Year: 2005
9
+ Month: 2
10
+ Click on 'show month'
11
+
12
+ It will display one month
13
+ "
14
+ )
@@ -0,0 +1,17 @@
1
+ # this code is to call the help window
2
+ def runhelpwindowrwdcalendar
3
+
4
+ $help_topic = "calendar_help"
5
+ if @rwd_tab == "calendar"
6
+ $help_topic = "calendar_help"
7
+ end
8
+ $helptopicsarray = $helptopicsarray | ["calendar_help"]
9
+
10
+ if @rwd_window != "rwdtinkerhelpwindow"
11
+ $previouswindow = @rwd_window
12
+ $previoustab = @rwd_tab
13
+ end
14
+ runhelpwindow
15
+ end
16
+
17
+
@@ -10,20 +10,17 @@ def downloadrwdschedulefiles
10
10
  ftp.chdir($rwdschedule_ftpdirectory)
11
11
  print "I'm in the directory ", ftp.pwd(), "\n"
12
12
  schfiles = ftp.nlst($rwdschedule_ftpdirectory)
13
- #puts schfiles
14
- $stderr.print $rwdschedule_updatedirectory
15
13
 
16
14
  schfiles.each {|x|
17
- #adjust the filters to the files you want to see...
15
+ #adjust the filters to the files you want to see...
18
16
 
19
- if x =~ /sch/
20
- #lastslash = x.rindex('/')+1
21
- #newstring = x.slice!(lastslash..256)
22
- newstring = x
23
- # $stderr.print newstring.to_s
24
- localupdatefile = File.join($rwdschedule_updatedirectory, "#{x}")
25
- ftp.getbinaryfile("#{x}" , localupdatefile )
26
- @rwdscheduleftpdisplay = @rwdscheduleftpdisplay + newstring + "\n"
17
+ if x =~ /sch/
18
+ lastslash = x.rindex('/')+1
19
+ newstring = x.slice(lastslash..256)
20
+
21
+ localupdatefile = $rwdschedule_updatedirectory +"/"+ "#{newstring}"
22
+ ftp.getbinaryfile("#{x}" , localupdatefile )
23
+ @rwdscheduleftpdisplay = @rwdscheduleftpdisplay + newstring + "\n"
27
24
 
28
25
  end
29
26
 
@@ -2,10 +2,10 @@
2
2
 
3
3
  JumpLink.update(:ScheduleBackWindow=>"runrwdschedulesyncbackwindow",
4
4
  :RwdScheduleConfiguration=>"runrwdschedulemenu10",
5
- :ViewEventTab=>"runrwdschedulemenu1",
6
- :EditEventRecord=>"runrwdschedulemenu2",
7
- :EventUtilitiesTab=>"runrwdschedulemenu3",
5
+ :ScheduleViewTab=>"runrwdschedulemenu1",
6
+ :ScheduleEditRecord=>"runrwdschedulemenu2",
7
+ :ScheduleUtilitiesTab=>"runrwdschedulemenu3",
8
8
  :ScheduleICSwindow=>"runrwdscheduleicsbackwindow"
9
9
 
10
10
  )
11
- $rwdjumplink +=["ScheduleICSwindow","EventUtilitiesTab","EditEventRecord","ViewEventTab","RwdScheduleConfiguration","ScheduleBackWindow"]
11
+ $rwdjumplink +=["ScheduleICSwindow","ScheduleUtilitiesTab","ScheduleEditRecord","ScheduleViewTab","RwdScheduleConfiguration","ScheduleBackWindow"]
@@ -4,7 +4,7 @@
4
4
 
5
5
  # call the window
6
6
  def returntomainrwdschedule
7
- @rwd_window = "main"
7
+ @rwd_window = "rwdschedulewindow"
8
8
  @rwd_tab = "rwdscheduleselectiontab"
9
9
  end
10
10
 
@@ -31,4 +31,4 @@
31
31
  @rwd_window = "main"
32
32
  @rwd_tab = "documentsrwdtinkerone"
33
33
  end
34
-
34
+
@@ -7,16 +7,4 @@ def rwdschedulehelpaboutsetup
7
7
  return ["RwdSchedule","(c) 2004,2005 Steven Gibson ","Version #{RwdScheduleVersion}"]
8
8
  end
9
9
 
10
- def runrwdtinkerversion
11
- @rwd_window = "applicationversion"
12
- helpaboutinput = @a_helpaboutinput.downcase
13
- versionarraysetup = "#{helpaboutinput}helpaboutsetup"
14
- versionarray= self.send(versionarraysetup)
15
-
16
- @versionappnamedisplay = versionarray[0].to_s
17
- @versioncopyrightdisplay = versionarray[1].to_s
18
- @versionnumberdisplay = versionarray[2].to_s
19
-
20
- end
21
-
22
10
 
@@ -23,8 +23,8 @@ def syncrwdscheduledata
23
23
 
24
24
 
25
25
  rescue
26
-
27
-
26
+
27
+
28
28
  print "sync error"
29
29
  end
30
30
  end
@@ -16,7 +16,7 @@ def test_runrwdschedule
16
16
 
17
17
  begin
18
18
  testasserts = 0
19
- print "Starting rwdtorrent tests!\n"
19
+ print "Starting rwdschedule tests!\n"
20
20
  runselectiontab
21
21
  assert_equal("selectiontab",@rwd_tab) ; testasserts += 1
22
22
  runrwdschedulemenu10
@@ -1,18 +1,18 @@
1
- ##VERSION:1.01
2
- ##NAME:$rwdschedule_directory:0
1
+ ##VERSION:1.02
2
+ ##NAME: $rwdschedule_directory:0
3
3
  $rwdschedule_directory = "schedules"
4
- ##NAME:$rwdschedule_ftpsite:0
5
- $rwdschedule_ftpsite = "ftp.mysite.com"
6
- ##NAME:$rwdschedule_ftplogin:0
7
- $rwdschedule_ftplogin = "mylogin"
8
- ##NAME:$rwdschedule_ftppassword:0
9
- $rwdschedule_ftppassword = "mypassword"
10
- ##NAME:$rwdschedule_ftpdirectory:0
11
- $rwdschedule_ftpdirectory = "/incoming/rwdschedules/"
12
- ##NAME:$rwdschedule_updatedirectory:0
13
- $rwdschedule_updatedirectory = "updates"
4
+ ##NAME: $rwdschedule_ftpsite:0
5
+ $rwdschedule_ftpsite = "ftp.site.com"
6
+ ##NAME: $rwdschedule_ftplogin:0
7
+ $rwdschedule_ftplogin = "login"
8
+ ##NAME: $rwdschedule_ftppassword:0
9
+ $rwdschedule_ftppassword = "anonymous"
10
+ ##NAME: $rwdschedule_ftpdirectory:0
11
+ $rwdschedule_ftpdirectory = "/incoming/rwdschedules"
12
+ ##NAME: $rwdschedule_updatedirectory:0
13
+ $rwdschedule_updatedirectory = "updates"
14
14
  $testharnessarray += ["rwdschedule_all_tests"]
15
15
  $tinkerhelpaboutarray += ["RwdSchedule"]
16
16
  $tinkerdocumentsarray += ["HowTo_Schedule.txt"]
17
- RwdScheduleVersion = "1.01"
18
-
17
+ $extras_directory = "extras"
18
+ RwdScheduleVersion = "1.02"
@@ -0,0 +1,6 @@
1
+ ## rwdschedule sample data
2
+ schedules/20050120T09.ics
3
+ schedules/Enterprise.ics
4
+ schedules/US Holidays.ics
5
+ schedules/testics05.ics
6
+ schedules/200505may02a.sch
@@ -0,0 +1,17 @@
1
+ ## rwdwschedule
2
+ configuration/rwdschedule.dist
3
+ configuration/rwdcalendar.dist
4
+ extras/icalendar
5
+ extras/cal.rb
6
+ extras/icalendar.rb
7
+ gui/tinkerbackwindows/superant.com.rwdschedules
8
+ gui/frontwindow0/superant.com.rwdschedulebackwindow
9
+ gui/tinkerbackwindows/superant.com.rwdschedulesback
10
+ lang/en/rwdcalendar
11
+ lang/es/rwdcalendar
12
+ lang/nl/rwdcalendar
13
+ rwd_files/HowTo_Schedule.txt
14
+ code/superant.com.rwdcalendar
15
+ code/superant.com.schedule
16
+ schedules/archive/sample.archive
17
+ tests/makerwschedule-1.02.rb
@@ -153,7 +153,14 @@ Don't use the back-button of the browser! Strange and unpredictable things may a
153
153
  Steven Gibson
154
154
  steven@superant.com
155
155
 
156
- == Changelog
156
+ == Changelog
157
+ Version 1.02
158
+ correct config file handling
159
+ add menu to main window of appletange
160
+ changed menu names to be more consistent
161
+ corrected download routine
162
+
163
+
157
164
  Version 1.01
158
165
  changed schedule configuration screen
159
166
  updated for rwdtinker 1.66
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.8
2
+ rubygems_version: 0.8.10
3
3
  specification_version: 1
4
4
  name: rwdschedule
5
5
  version: !ruby/object:Gem::Version
6
- version: "1.01"
7
- date: 2005-04-19
6
+ version: "1.02"
7
+ date: 2005-05-02
8
8
  summary: rwdschedule is an calendar application using rwdtinker and RubyWebDialogs.
9
9
  require_paths:
10
10
  - "."
@@ -71,6 +71,8 @@ files:
71
71
  - code/superant.com.rwdtinkerbackwindow/runremoteinstall.rb
72
72
  - code/zz0applicationend/zz0end.rb
73
73
  - code/superant.com.rwdcalendar/gh9calendar.rb
74
+ - code/superant.com.rwdcalendar/helptexthashrwdschedule.rb
75
+ - code/superant.com.rwdcalendar/openhelpwindowrwdschedule.rb
74
76
  - code/superant.com.schedule/archiveevent.rb
75
77
  - code/superant.com.schedule/cleareventscreendisplay.rb
76
78
  - code/superant.com.schedule/deleteeventrecord.rb
@@ -105,12 +107,11 @@ files:
105
107
  - code/superant.com.schedule/jumplinkupdate.rb
106
108
  - code/superant.com.schedule/test_cases.rb
107
109
  - code/superant.com.schedule/rwdtinkerversion.rb
110
+ - configuration/rwdschedule.dist
108
111
  - configuration/tinkerwin2variables.dist
109
112
  - configuration/rwdtinker.dist
110
113
  - configuration/language.dist
111
114
  - configuration/rwdapplicationidentity.dist
112
- - configuration/rwdcalendar.dist
113
- - configuration/rwdschedule.dist
114
115
  - extras/rconftool.rb
115
116
  - extras/cal.rb
116
117
  - extras/icalendar.rb
@@ -137,8 +138,6 @@ files:
137
138
  - schedules/US Holidays.ics
138
139
  - schedules/testics05.ics
139
140
  - schedules/200505may02a.sch
140
- - schedules/200502february20.ics
141
- - schedules/200502february26.ics
142
141
  - schedules/archive/sample.archive
143
142
  - ev/browser.rb
144
143
  - ev/ftools.rb
@@ -158,11 +157,10 @@ files:
158
157
  - lang/nl/rwdcalendar/calendar-nl.rb
159
158
  - gui/00coreguibegin/applicationguitop.rwd
160
159
  - gui/frontwindow0/superant.com.rwdschedules
161
- - gui/frontwindow0/superant.com.tinkercalendar
162
160
  - gui/frontwindow0/superant.com.rwdschedules/gg0viewevent.rwd
163
161
  - gui/frontwindow0/superant.com.rwdschedules/gl6editrecord.rwd
164
162
  - gui/frontwindow0/superant.com.rwdschedules/gl8contactutilities.rwd
165
- - gui/frontwindow0/superant.com.tinkercalendar/hl9calendar.rwd
163
+ - gui/frontwindow0/superant.com.rwdschedules/hl9calendar.rwd
166
164
  - gui/frontwindowselectionbegin/selectiontabbegin/00selectiontabbegin.rwd
167
165
  - gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab
168
166
  - gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/jumplinkcommands.rwd
@@ -213,6 +211,8 @@ files:
213
211
  - gui/tinkerbackwindows/superant.com.rwdschedulesback/m01menubegin.rwd
214
212
  - gui/zzcoreguiend/tinkerapplicationguiend/yy9rwdend.rwd
215
213
  - installed/rwdviewlogo-0.4.inf
214
+ - installed/rwdscheduledate2.inf
215
+ - installed/rwdwschedule-1.02.inf
216
216
  - rwd_files/favicon.ico
217
217
  - rwd_files/HowTo_Tinker.txt
218
218
  - rwd_files/HowTo_TinkerWin2.txt
@@ -229,10 +229,9 @@ files:
229
229
  - tests/rdep.rb
230
230
  - tests/checkdepends.sh
231
231
  - tests/makedist.rb
232
- - tests/makerwdwaddresses-1.04.rb
233
- - Readme.txt
234
232
  - init.rb
235
233
  - rwdconfig.dist
234
+ - Readme.txt
236
235
  test_files: []
237
236
  rdoc_options:
238
237
  - "--main"
@@ -1,10 +0,0 @@
1
- ##VERSION:0.98
2
- # rwdcalendar
3
- ##NAME:$extras_directory:0
4
- $extras_directory = "extras"
5
-
6
-
7
-
8
-
9
-
10
-
@@ -1,11 +0,0 @@
1
- BEGIN:VCALENDAR
2
- VERSION:3.2
3
- PRODID:rwdtinker-prodid
4
- BEGIN:VEVENT
5
- DTEND:20050220T121000
6
- DTSTART:20050220T1000
7
- LOCATION:home
8
- SUMMARY:test event
9
- DESCRIPTION:first test event
10
- END:VEVENT
11
- END:VCALENDAR
@@ -1,11 +0,0 @@
1
- BEGIN:VCALENDAR
2
- VERSION:3.2
3
- PRODID:rwdtinker-prodid
4
- BEGIN:VEVENT
5
- DTEND:20050226T150000
6
- DTSTART:20050226T140000
7
- LOCATION:work
8
- SUMMARY:back page teste
9
- DESCRIPTION:back page test
10
- END:VEVENT
11
- END:VCALENDAR
@@ -1,40 +0,0 @@
1
- #!/usr/bin/ruby -w
2
- #***********************************************************************
3
- #* Rwd/Tinker -- A Ruby program for the RudyWebDialog.
4
- #* Copyright (c) 2004, 2005 by Steven Gibson. All Rights Reserved.
5
- #* at "steven@superant.com".
6
- #***********************************************************************/
7
- $progdir =""
8
- require 'fileutils'
9
-
10
- DistroName = "rwdwaddresses-1.04"
11
-
12
- $progdir = File::expand_path( File.dirname(__FILE__))
13
- results = " "
14
-
15
- puts "creating #{DistroName} applet distribution files "
16
- sourcedir = "../rwdaddresses/"
17
-
18
-
19
- fileName = "installed/" + "#{DistroName}" + ".inf"
20
-
21
- fd = File.open(fileName,"r")
22
- @@displaytext = " "
23
- temp = fd.readline.chomp
24
- while ! fd.eof?
25
-
26
- @@displaytext = fd.readline.chomp
27
- lastslash = @@displaytext.rindex('/')
28
- @@pathaddress = @@displaytext.slice(0..lastslash)
29
- puts @@pathaddress
30
- sourcefile = sourcedir + @@displaytext
31
- puts @@displaytext
32
- FileUtils.mkdir_p(@@pathaddress)
33
- @@copycommand = "cp -v -r -f -a #{sourcefile} #{@@pathaddress}"
34
-
35
- puts `#{@@copycommand}`
36
- end
37
- fd.close
38
-
39
-
40
- ListingCommand = "ls -1 -s -h *"