Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (42 sloc) 1.48 KB
// SmartSelection.h
// iTerm
// Created by George Nachman on 9/25/11.
// Copyright 2011 Georgetech. All rights reserved.
#import <Cocoa/Cocoa.h>
#import "ContextMenuActionPrefsController.h"
@class SmartSelectionController;
@protocol SmartSelectionDelegate
- (void)smartSelectionChanged:(SmartSelectionController *)controller;
@interface SmartSelectionController : NSWindowController <ContextMenuActionPrefsDelegate> {
NSString *guid_;
BOOL hasSelection_;
IBOutlet NSObject<SmartSelectionDelegate> *delegate_; // weak
IBOutlet NSTableView *tableView_;
IBOutlet NSTableColumn *regexColumn_;
IBOutlet NSTableColumn *notesColumn_;
IBOutlet NSTableColumn *precisionColumn_;
IBOutlet ContextMenuActionPrefsController *contextMenuPrefsController_;
IBOutlet NSButton *logDebugInfo_;
@property (nonatomic, copy) NSString *guid;
@property (nonatomic, assign) BOOL hasSelection;
@property (nonatomic, assign) NSObject<SmartSelectionDelegate> *delegate;
+ (BOOL)logDebugInfo;
+ (double)precisionInRule:(NSDictionary *)rule;
+ (NSArray *)actionsInRule:(NSDictionary *)rule;
+ (NSString *)regexInRule:(NSDictionary *)rule;
+ (NSArray *)defaultRules;
- (NSArray *)rules;
- (IBAction)addRule:(id)sender;
- (IBAction)removeRule:(id)sender;
- (IBAction)loadDefaults:(id)sender;
- (IBAction)help:(id)sender;
- (IBAction)logDebugInfoChanged:(id)sender;
- (IBAction)editActions:(id)sender;
- (void)windowWillOpen;
- (void)contextMenuActionsChanged:(NSArray *)newActions;
Jump to Line
Something went wrong with that request. Please try again.