Files
gitx/PBRefMenuItem.h
T
André Berg 1551084b16 Update context menu to include remote target and other dynamic title changes.
When right-clicking on a ref label, if the ref has a default remote configured , 
a new greyed out menu entry with the remote's name is put above all other menu
entries and separated by a menu item separator.
2009-11-07 04:25:12 +01:00

26 lines
599 B
Objective-C

//
// PBRefMenuItem.h
// GitX
//
// Created by Pieter de Bie on 01-11-08.
// Copyright 2008 Pieter de Bie. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "PBGitRef.h"
#import "PBGitCommit.h"
@interface PBRefMenuItem : NSMenuItem {
PBGitRef *ref;
PBGitCommit *commit;
}
@property (retain) PBGitCommit *commit;
@property (retain) PBGitRef *ref;
+ (PBRefMenuItem *)addRemoteMethod:(BOOL)isRemote title:(NSString *)title action:(SEL)selector;
+ (NSArray *)defaultMenuItemsForRef:(PBGitRef *)ref commit:(PBGitCommit *)commit target:(id)target;
+ (PBRefMenuItem *)separatorItem;
@end