From e016d557cc94a233808d21d005db9548b5cb48fd Mon Sep 17 00:00:00 2001 From: Vasileios Georgitzikis Date: Thu, 3 Jun 2010 16:21:14 +0000 Subject: [PATCH] Added a Start button on the drawer that calls the startQueue: method when pressed git-svn-id: https://svn.macports.org/repository/macports/branches/gsoc10-gui@68443 d073be05-634f-4543-b044-5fe20cf6d1d6 --- Pallet/English.lproj/MainMenu.xib | 81 ++++++++++++++++++++++++++----- Pallet/MPActionsController.h | 4 +- Pallet/MPActionsController.m | 5 ++ 3 files changed, 78 insertions(+), 12 deletions(-) diff --git a/Pallet/English.lproj/MainMenu.xib b/Pallet/English.lproj/MainMenu.xib index e2ad15d..8f4b6e2 100644 --- a/Pallet/English.lproj/MainMenu.xib +++ b/Pallet/English.lproj/MainMenu.xib @@ -12,7 +12,7 @@ YES - + @@ -3389,6 +3389,26 @@ 256 YES + + + 290 + {{0, -1}, {240, 35}} + + YES + + -2080244224 + 134217728 + Start + + + -2033434369 + 162 + + + 400 + 75 + + 274 @@ -3402,7 +3422,7 @@ 256 - {238, 265} + {238, 418} YES @@ -3481,7 +3501,7 @@ 17 - -702545920 + -700448768 4 @@ -3491,7 +3511,7 @@ 0 - {{1, 17}, {238, 265}} + {{1, 17}, {238, 418}} @@ -3534,7 +3554,7 @@ - {240, 283} + {{0, 32}, {240, 436}} 530 @@ -3546,7 +3566,7 @@ QSAAAEEgAABBmAAAQZgAAA - {240, 283} + {240, 468} NSView @@ -3561,7 +3581,7 @@ - + YES id @@ -4541,10 +4561,26 @@ queue - + 868 + + + startQueueButton + + + + 871 + + + + startQueue: + + + + 873 + @@ -5998,6 +6034,7 @@ YES + Drawer Content View @@ -6127,10 +6164,24 @@ 867 - + Queue + + 869 + + + YES + + + + + + 870 + + + @@ -6464,6 +6515,8 @@ 857.IBPluginDependency 858.IBPluginDependency 867.IBPluginDependency + 869.IBPluginDependency + 870.IBPluginDependency 92.IBPluginDependency 92.ImportedFromIB2 @@ -6783,7 +6836,9 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{354, 355}, {240, 283}} + {{354, 170}, {240, 468}} + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -6816,7 +6871,7 @@ - 868 + 873 @@ -6872,6 +6927,7 @@ installWithVariants: openPreferences: selfupdate: + startQueue: sync: uninstall: upgrade: @@ -6886,6 +6942,7 @@ id id id + id @@ -6896,6 +6953,7 @@ cancel ports queue + startQueueButton tableController @@ -6904,6 +6962,7 @@ NSToolbarItem NSArrayController NSArrayController + NSButton PortsTableController diff --git a/Pallet/MPActionsController.h b/Pallet/MPActionsController.h index 635ce13..fb73bf0 100644 --- a/Pallet/MPActionsController.h +++ b/Pallet/MPActionsController.h @@ -18,7 +18,7 @@ IBOutlet ActivityController *activityController; IBOutlet NSToolbarItem *cancel; - + IBOutlet NSButton *startQueueButton; IBOutlet NSArrayController *queue; } @@ -31,4 +31,6 @@ - (IBAction)selfupdate:(id)sender; - (IBAction)cancel:(id)sender; +-(IBAction) startQueue:(id) sender; + @end diff --git a/Pallet/MPActionsController.m b/Pallet/MPActionsController.m index d3a12a7..f4a13e4 100644 --- a/Pallet/MPActionsController.m +++ b/Pallet/MPActionsController.m @@ -95,4 +95,9 @@ - (void)applicationWillTerminate:(NSNotification *)aNotification { } } +-(void) startQueue:(id) sender +{ + NSLog(@"Starting Queue Operations"); +} + @end