Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (36 sloc) 1.382 kb
//
// ContextMenuActionPrefsController.h
// iTerm
//
// Created by George Nachman on 11/18/11.
// Copyright 2011 Georgetech. All rights reserved.
//
#import <Cocoa/Cocoa.h>
typedef enum {
kOpenFileContextMenuAction,
kOpenUrlContextMenuAction,
kRunCommandContextMenuAction,
kRunCoprocessContextMenuAction
} ContextMenuActions;
@protocol ContextMenuActionPrefsDelegate
- (void)contextMenuActionsChanged:(NSArray *)newActions;
@end
@interface ContextMenuActionPrefsController : NSWindowController <NSTableViewDelegate, NSTableViewDataSource> {
IBOutlet NSTableView *tableView_;
IBOutlet NSTableColumn *titleColumn_;
IBOutlet NSTableColumn *actionColumn_;
IBOutlet NSTableColumn *parameterColumn_;
NSMutableArray *model_;
NSObject<ContextMenuActionPrefsDelegate> *delegate_;
BOOL hasSelection_;
}
@property (nonatomic, assign) NSObject<ContextMenuActionPrefsDelegate> *delegate;
@property (nonatomic, assign) BOOL hasSelection;
+ (ContextMenuActions)actionForActionDict:(NSDictionary *)dict;
+ (NSString *)titleForActionDict:(NSDictionary *)dict withCaptureComponents:(NSArray *)components;
+ (NSString *)parameterForActionDict:(NSDictionary *)dict withCaptureComponents:(NSArray *)components;
- (IBAction)ok:(id)sender;
- (void)setActions:(NSArray *)newActions;
- (IBAction)add:(id)sender;
- (IBAction)remove:(id)sender;
@end
Jump to Line
Something went wrong with that request. Please try again.