mirror of
https://github.com/macports/pallet.git
synced 2026-07-12 18:18:47 -07:00
Added reclaim and diagnose to the GUI.
git-svn-id: https://svn.macports.org/repository/macports/branches/gsoc15-pallet@138475 d073be05-634f-4543-b044-5fe20cf6d1d6
This commit is contained in:
+1497
-10120
File diff suppressed because it is too large
Load Diff
@@ -57,6 +57,8 @@ extern BOOL altWasPressed;
|
||||
- (IBAction)uninstall:(id)sender;
|
||||
- (IBAction)upgrade:(id)sender;
|
||||
- (IBAction)sync:(id)sender;
|
||||
- (IBAction)diagnose:(id)sender;
|
||||
- (IBAction)reclaim:(id)sender;
|
||||
- (IBAction)selfupdate:(id)sender;
|
||||
- (IBAction)cancel:(id)sender;
|
||||
- (IBAction)toggleInfoPanel: (id) sender;
|
||||
|
||||
@@ -210,6 +210,18 @@
|
||||
[self startQueue:nil];
|
||||
}
|
||||
|
||||
- (IBAction)reclaim:(id)sender
|
||||
{
|
||||
[tableController open:nil];
|
||||
[self queueOperation:@"reclaim" portName:@"-" portObject:@"-" variants:0];
|
||||
}
|
||||
|
||||
- (IBAction)diagnose:(id)sender
|
||||
{
|
||||
[tableController open:nil];
|
||||
[self queueOperation:@"diagnose" portName:@"-" portObject:@"-" variants:0];
|
||||
}
|
||||
|
||||
- (IBAction)selfupdate:(id)sender {
|
||||
if (altWasPressed)
|
||||
{
|
||||
@@ -475,6 +487,14 @@
|
||||
{
|
||||
image = [NSImage imageNamed:@"TB_Selfupdate.icns"];
|
||||
}
|
||||
else if([operation isEqualToString:@"diagnose"])
|
||||
{
|
||||
image = [NSImage imageNamed:@"NSAdvanced"];
|
||||
}
|
||||
else if([operation isEqualToString:@"reclaim"])
|
||||
{
|
||||
image = [NSImage imageNamed:@"NSTrashFull"];
|
||||
}
|
||||
|
||||
//If we have variants, print them out for debugging purposes
|
||||
if(variants!=nil)
|
||||
|
||||
BIN
Binary file not shown.
Reference in New Issue
Block a user