Revision: 3557 http://skim-app.svn.sourceforge.net/skim-app/?rev=3557&view=rev Author: hofman Date: 2008-03-26 06:17:00 -0700 (Wed, 26 Mar 2008)
Log Message: ----------- Revert last commit, as the application does not validate the menu items. Modified Paths: -------------- trunk/SKApplicationController.h trunk/SKApplicationController.m trunk/SKLineInspector.h trunk/SKLineInspector.m trunk/SKNotesPanelController.h trunk/SKNotesPanelController.m Modified: trunk/SKApplicationController.h =================================================================== --- trunk/SKApplicationController.h 2008-03-26 13:11:35 UTC (rev 3556) +++ trunk/SKApplicationController.h 2008-03-26 13:17:00 UTC (rev 3557) @@ -53,6 +53,9 @@ + (void)setupDefaults; +- (IBAction)orderFrontLineInspector:(id)sender; +- (IBAction)orderFrontNotesPanel:(id)sender; + - (IBAction)visitWebSite:(id)sender; - (IBAction)visitWiki:(id)sender; - (IBAction)showPreferencePanel:(id)sender; Modified: trunk/SKApplicationController.m =================================================================== --- trunk/SKApplicationController.m 2008-03-26 13:11:35 UTC (rev 3556) +++ trunk/SKApplicationController.m 2008-03-26 13:17:00 UTC (rev 3557) @@ -236,6 +236,20 @@ #pragma mark Actions +- (IBAction)orderFrontLineInspector:(id)sender { + if ([SKLineInspector sharedLineInspectorExists] && [[[SKLineInspector sharedLineInspector] window] isVisible]) + [[[SKLineInspector sharedLineInspector] window] orderOut:sender]; + else + [[[SKLineInspector sharedLineInspector] window] orderFront:sender]; +} + +- (IBAction)orderFrontNotesPanel:(id)sender { + if ([SKNotesPanelController sharedControllerExists] && [[[SKNotesPanelController sharedController] window] isVisible]) + [[[SKNotesPanelController sharedController] window] orderOut:sender]; + else + [[[SKNotesPanelController sharedController] window] orderFront:sender]; +} + - (IBAction)visitWebSite:(id)sender{ if([[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:WEBSITE_URL]] == NO) NSBeep(); Modified: trunk/SKLineInspector.h =================================================================== --- trunk/SKLineInspector.h 2008-03-26 13:11:35 UTC (rev 3556) +++ trunk/SKLineInspector.h 2008-03-26 13:17:00 UTC (rev 3557) @@ -94,11 +94,6 @@ @end [EMAIL PROTECTED] NSApplication (SKLineInspector) -- (IBAction)orderFrontLineInspector:(id)sender; [EMAIL PROTECTED] - - @interface SKNumberArrayFormatter : NSFormatter { NSNumberFormatter *numberFormatter; } Modified: trunk/SKLineInspector.m =================================================================== --- trunk/SKLineInspector.m 2008-03-26 13:11:35 UTC (rev 3556) +++ trunk/SKLineInspector.m 2008-03-26 13:17:00 UTC (rev 3557) @@ -594,15 +594,3 @@ } @end - - [EMAIL PROTECTED] NSApplication (SKLineInspector) - -- (IBAction)orderFrontLineInspector:(id)sender { - if ([SKLineInspector sharedLineInspectorExists] && [[[SKLineInspector sharedLineInspector] window] isVisible]) - [[[SKLineInspector sharedLineInspector] window] orderOut:sender]; - else - [[[SKLineInspector sharedLineInspector] window] orderFront:sender]; -} - [EMAIL PROTECTED] Modified: trunk/SKNotesPanelController.h =================================================================== --- trunk/SKNotesPanelController.h 2008-03-26 13:11:35 UTC (rev 3556) +++ trunk/SKNotesPanelController.h 2008-03-26 13:17:00 UTC (rev 3557) @@ -44,8 +44,3 @@ + (BOOL)sharedControllerExists; - (IBAction)addNote:(id)sender; @end - - [EMAIL PROTECTED] NSApplication (SKNotesPanelController) -- (IBAction)orderFrontNotesPanel:(id)sender; [EMAIL PROTECTED] Modified: trunk/SKNotesPanelController.m =================================================================== --- trunk/SKNotesPanelController.m 2008-03-26 13:11:35 UTC (rev 3556) +++ trunk/SKNotesPanelController.m 2008-03-26 13:17:00 UTC (rev 3557) @@ -93,15 +93,3 @@ } @end - - [EMAIL PROTECTED] NSApplication (SKNotesPanelController) - -- (IBAction)orderFrontNotesPanel:(id)sender { - if ([SKNotesPanelController sharedControllerExists] && [[[SKNotesPanelController sharedController] window] isVisible]) - [[[SKNotesPanelController sharedController] window] orderOut:sender]; - else - [[[SKNotesPanelController sharedController] window] orderFront:sender]; -} - [EMAIL PROTECTED] This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit