// // $Id$ // // SPBundleEditorController.h // sequel-pro // // Created by Hans-Jörg Bibiko on November 12, 2010 // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // More info at #import #import #import "SPBundleCommandTextView.h" #import "SPOutlineView.h" @class SRRecorderControl; @interface SPBundleEditorController : NSWindowController { IBOutlet id commandTextView; IBOutlet NSTableView* commandsTableView; IBOutlet id commandsOutlineView; IBOutlet NSTextField* nameTextField; IBOutlet NSTextField* tootlipTextField; IBOutlet NSTextField* categoryTextField; IBOutlet NSTextField* fallbackLabelField; IBOutlet NSPopUpButton* inputPopupButton; IBOutlet NSPopUpButton* inputFallbackPopupButton; IBOutlet NSPopUpButton* outputPopupButton; IBOutlet NSPopUpButton* scopePopupButton; IBOutlet NSButton *removeButton; IBOutlet NSButton *addButton; IBOutlet NSMenuItem *duplicateMenuItem; IBOutlet NSMenuItem *revealInFinderMenuItem; IBOutlet SRRecorderControl *keyEquivalentField; IBOutlet NSTreeController *commandBundleTreeController; NSMutableArray *commandBundleArray; NSMutableArray *touchedBundleArray; NSMutableDictionary *commandBundleTree; NSString *bundlePath; NSString *draggedFilePath; NSString *oldBundleName; BOOL isTableCellEditing; NSMenu *inputGeneralScopePopUpMenu; NSMenu *inputInputFieldScopePopUpMenu; NSMenu *inputDataTableScopePopUpMenu; NSMenu *inputNonePopUpMenu; NSMenu *outputGeneralScopePopUpMenu; NSMenu *outputInputFieldScopePopUpMenu; NSMenu *outputDataTableScopePopUpMenu; NSMenu *inputFallbackInputFieldScopePopUpMenu; NSArray *inputGeneralScopeArray; NSArray *inputInputFieldScopeArray; NSArray *inputDataTableScopeArray; NSArray *outputGeneralScopeArray; NSArray *outputInputFieldScopeArray; NSArray *outputDataTableScopeArray; NSArray *inputFallbackInputFieldScopeArray; BOOL doGroupDueToChars; BOOL allowUndo; BOOL wasCutPaste; BOOL selectionChanged; NSUndoManager *esUndoManager; } - (IBAction)inputPopupButtonChanged:(id)sender; - (IBAction)inputFallbackPopupButtonChanged:(id)sender; - (IBAction)outputPopupButtonChanged:(id)sender; - (IBAction)scopeButtonChanged:(id)sender; - (IBAction)duplicateCommandBundle:(id)sender; - (IBAction)addCommandBundle:(id)sender; - (IBAction)removeCommandBundle:(id)sender; - (IBAction)revealCommandBundleInFinder:(id)sender; - (IBAction)saveBundle:(id)sender; - (IBAction)showHelp:(id)sender; - (IBAction)saveAndCloseWindow:(id)sender; - (IBAction)reloadBundles:(id)sender; - (BOOL)saveBundle:(NSDictionary*)bundle atPath:(NSString*)aPath; - (void)setWasCutPaste; - (void)setDoGroupDueToChars; @end