From 27034a6b99c348ba6a6d3e9a007ecc742aaa7242 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 15 Apr 2009 13:09:00 -0400 Subject: [PATCH] Add a help menu item to display the current print queue * English.lproj/MainMenu.xib * Source/AppController.m+h: (helpQueue:): New method --- English.lproj/MainMenu.xib | 57 +++++++++++++++++++++++++++++--------- Source/AppController.h | 1 + Source/AppController.m | 9 ++++++ 3 files changed, 54 insertions(+), 13 deletions(-) diff --git a/English.lproj/MainMenu.xib b/English.lproj/MainMenu.xib index 758c404..48f866b 100644 --- a/English.lproj/MainMenu.xib +++ b/English.lproj/MainMenu.xib @@ -1,16 +1,16 @@ - + 1040 - 9E17 - 672 - 949.33 - 352.00 + 9G55 + 677 + 949.43 + 353.00 YES - + YES @@ -18,6 +18,15 @@ com.apple.InterfaceBuilderKit com.apple.InterfaceBuilder.CocoaPlugin + + YES + + YES + + + YES + + YES @@ -767,6 +776,14 @@ + + + RGlzcGxheSBwcmludCBxdWV1ZeKApg + + 2147483647 + + + Q2hlY2sgeW91ciBwcmludCBxdW90YeKApg @@ -2115,6 +2132,14 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 570 + + + helpQueue: + + + + 572 + @@ -2466,6 +2491,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA + 2 @@ -3131,6 +3157,11 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA + + 571 + + + @@ -3276,7 +3307,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 354.IBPluginDependency 354.ImportedFromIB2 371.IBEditorWindowLastContentRect - 371.IBPluginDependency 371.IBViewEditorWindowController.showingBoundsRectangles 371.IBViewEditorWindowController.showingLayoutRectangles 371.IBWindowTemplateEditedContentRect @@ -3327,7 +3357,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 535.IBPluginDependency 536.IBPluginDependency 538.IBEditorWindowLastContentRect - 538.IBPluginDependency 538.IBWindowTemplateEditedContentRect 538.NSWindowTemplate.visibleAtLaunch 538.windowTemplate.maxSize @@ -3351,6 +3380,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 57.IBPluginDependency 57.ImportedFromIB2 57.editorWindowContentRectSynchronizationRect + 571.IBPluginDependency 58.IBPluginDependency 58.ImportedFromIB2 72.IBPluginDependency @@ -3386,7 +3416,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA com.apple.InterfaceBuilderKit com.apple.InterfaceBuilder.CocoaPlugin - {{741, 686}, {245, 73}} + {{771, 666}, {245, 93}} com.apple.InterfaceBuilder.CocoaPlugin {{408, 813}, {201, 23}} @@ -3491,7 +3521,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA com.apple.InterfaceBuilder.CocoaPlugin {{337, 763}, {197, 73}} - {{339, 759}, {463, 20}} + {{369, 759}, {463, 20}} com.apple.InterfaceBuilder.CocoaPlugin {74, 862} @@ -3520,7 +3550,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA com.apple.InterfaceBuilder.CocoaPlugin {{399, 299}, {477, 476}} - com.apple.InterfaceBuilder.CocoaPlugin {{399, 299}, {477, 476}} @@ -3571,7 +3600,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin {{395, 148}, {634, 275}} - com.apple.InterfaceBuilder.CocoaPlugin {{395, 148}, {634, 275}} {3.40282e+38, 3.40282e+38} @@ -3596,6 +3624,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{18, 653}, {230, 183}} com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -3644,7 +3673,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA - 570 + 572 @@ -3658,6 +3687,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA YES helpACS: helpCheckPQuota: + helpQueue: print: @@ -3665,6 +3695,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA id id id + id diff --git a/Source/AppController.h b/Source/AppController.h index 50d6cb4..8a3ad41 100644 --- a/Source/AppController.h +++ b/Source/AppController.h @@ -44,5 +44,6 @@ - (IBAction)helpCheckPQuota:(id)sender; - (IBAction)helpACS:(id)sender; +- (IBAction)helpQueue:(id)sender; @end diff --git a/Source/AppController.m b/Source/AppController.m index 8ff2256..0bde4bf 100644 --- a/Source/AppController.m +++ b/Source/AppController.m @@ -345,4 +345,13 @@ shutdown: [[NSWorkspace sharedWorkspace] openURL:url]; } +/** + * Opens the link that displays the queue + */ +- (IBAction)helpQueue:(id)sender +{ + NSURL *url = [NSURL URLWithString:@"http://people.bu.edu/csg-oper/Resnet/"]; + [[NSWorkspace sharedWorkspace] openURL:url]; +} + @end -- 2.22.5