From 555de33d3f18cf215976cf31588a578eb45b71d9 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 15 Sep 2008 17:31:03 -0400 Subject: [PATCH] Adding two help menu items to link to MyACS and the CC webpage * English.lproj/MainMenu.xib: Add the menu items to the XIB * Source/AppController.m+h: (helpCheckPQuota): Add IBA to open MyACS URL (helpACS): ditto, with CC url --- English.lproj/MainMenu.xib | 91 +++++++++++++++++++++++++++++++++++--- Source/AppController.h | 3 ++ Source/AppController.m | 18 ++++++++ 3 files changed, 105 insertions(+), 7 deletions(-) diff --git a/English.lproj/MainMenu.xib b/English.lproj/MainMenu.xib index 5881e48..758c404 100644 --- a/English.lproj/MainMenu.xib +++ b/English.lproj/MainMenu.xib @@ -3,14 +3,14 @@ 1040 9E17 - 670 + 672 949.33 352.00 YES - + YES @@ -757,6 +757,32 @@ + + + YES + YES + + + 2147483647 + + + + + + Q2hlY2sgeW91ciBwcmludCBxdW90YeKApg + + 2147483647 + + + + + + QUNTIEhlbHAgRGVza+KApg + + 2147483647 + + + @@ -2073,6 +2099,22 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 565 + + + helpCheckPQuota: + + + + 569 + + + + helpACS: + + + + 570 + @@ -2421,6 +2463,9 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA YES + + + 2 @@ -3071,6 +3116,21 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA + + 566 + + + + + 567 + + + + + 568 + + + @@ -3284,6 +3344,9 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 562.IBPluginDependency 563.IBPluginDependency 564.IBPluginDependency + 566.IBPluginDependency + 567.IBPluginDependency + 568.IBPluginDependency 57.IBEditorWindowLastContentRect 57.IBPluginDependency 57.ImportedFromIB2 @@ -3323,7 +3386,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA com.apple.InterfaceBuilderKit com.apple.InterfaceBuilder.CocoaPlugin - {{886, 751}, {201, 23}} + {{741, 686}, {245, 73}} com.apple.InterfaceBuilder.CocoaPlugin {{408, 813}, {201, 23}} @@ -3428,7 +3491,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA com.apple.InterfaceBuilder.CocoaPlugin {{337, 763}, {197, 73}} - {{484, 774}, {463, 20}} + {{339, 759}, {463, 20}} com.apple.InterfaceBuilder.CocoaPlugin {74, 862} @@ -3525,6 +3588,9 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin {{546, 537}, {235, 203}} com.apple.InterfaceBuilder.CocoaPlugin @@ -3578,7 +3644,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA - 565 + 570 @@ -3587,8 +3653,19 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA AppController NSObject - print: - id + YES + + YES + helpACS: + helpCheckPQuota: + print: + + + YES + id + id + id + YES diff --git a/Source/AppController.h b/Source/AppController.h index 8a4398a..50d6cb4 100644 --- a/Source/AppController.h +++ b/Source/AppController.h @@ -42,4 +42,7 @@ - (IBAction)print:(id)sender; +- (IBAction)helpCheckPQuota:(id)sender; +- (IBAction)helpACS:(id)sender; + @end diff --git a/Source/AppController.m b/Source/AppController.m index ca33061..6e902c2 100644 --- a/Source/AppController.m +++ b/Source/AppController.m @@ -326,4 +326,22 @@ shutdown: return [NSString stringWithFormat:@"~/%@.%d.pdf", safeName, random()]; } +/** + * Opens the print quota check page + */ +- (IBAction)helpCheckPQuota:(id)sender +{ + NSURL *url = [NSURL URLWithString:@"http://www.bu.edu/phpbin/myacs/"]; + [[NSWorkspace sharedWorkspace] openURL:url]; +} + +/** + * Opens the link to the ACS help desk homepage + */ +- (IBAction)helpACS:(id)sender +{ + NSURL *url = [NSURL URLWithString:@"http://www.bu.edu/cc/"]; + [[NSWorkspace sharedWorkspace] openURL:url]; +} + @end -- 2.43.5