Permalink
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (52 sloc) 2.09 KB
/*
** ProfilesWindow.h
** iTerm
**
** Created by George Nachman on 8/29/10.
** Project: iTerm
**
** Description: Display a window with searchable bookmarks. You can use this
** to open bookmarks in a new window or tab.
**
** 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
*/
#import <Cocoa/Cocoa.h>
#import "ProfileListView.h"
@interface ProfilesWindow : NSWindowController <ProfileListViewDelegate, NSWindowDelegate> {
IBOutlet ProfileListView* tableView_;
IBOutlet NSSegmentedControl* actions_;
IBOutlet NSButton* horizontalPaneButton_;
IBOutlet NSButton* verticalPaneButton_;
IBOutlet NSButton* tabButton_;
IBOutlet NSButton* windowButton_;
IBOutlet NSButton* closeAfterOpeningBookmark_;
IBOutlet NSButton* newTabsInNewWindowButton_;
}
+ (ProfilesWindow*)sharedInstance;
- (id)init;
- (id)initWithWindowNibName:(NSString *)windowNibName;
- (IBAction)openBookmarkInHorizontalPane:(id)sender;
- (IBAction)openBookmarkInVerticalPane:(id)sender;
- (IBAction)openBookmarkInTab:(id)sender;
- (IBAction)openBookmarkInWindow:(id)sender;
- (void)profileTableSelectionDidChange:(id)profileTable;
- (void)profileTableSelectionWillChange:(id)profileTable;
- (void)profileTableRowSelected:(id)profileTable;
- (NSMenu*)profileTable:(id)profileTable menuForEvent:(NSEvent*)theEvent;
- (IBAction)editBookmarks:(id)sender;
- (IBAction)closeAfterOpeningChanged:(id)sender;
- (IBAction)newTabsInNewWindow:(id)sender;
// NSWindow Delegate
- (void)windowDidBecomeKey:(NSNotification *)notification;
@end