1 /*
2   Copyright 2002, 2003 Alexander Malmberg <alexander@malmberg.org>
3             2016 Riccardo Mottola
4             2016 Tim Sheridan
5 
6   This file is a part of Terminal.app. Terminal.app is free software; you
7   can redistribute it and/or modify it under the terms of the GNU General
8   Public License as published by the Free Software Foundation; version 2
9   of the License. See COPYING or main.m for more information.
10 */
11 
12 #ifndef TerminalWindow_h
13 #define TerminalWindow_h
14 
15 @class TerminalView;
16 
17 #import <AppKit/NSWindowController.h>
18 #import <AppKit/NSTabView.h>
19 
20 extern NSString *TerminalWindowNoMoreActiveWindowsNotification;
21 
22 @interface TerminalWindowController : NSWindowController
23 {
24 	NSMutableArray *terminal_views;
25 	NSTabView *tab_view;
26         BOOL isShowingTabs;
27 	BOOL close_on_idle;
28 }
29 
30 +(TerminalWindowController *) newTerminalWindow;
31 +(TerminalWindowController *) idleTerminalWindow;
32 
33 +(int) numberOfActiveWindows;
34 +(void) checkActiveWindows;
35 
36 - init;
37 
38 -(TerminalView *) frontTerminalView;
39 
40 -(void) setShouldCloseWhenIdle: (BOOL)should_close;
41 
42 -(BOOL) showTabBar;
43 -(void) setShowTabBar:(BOOL)visible inWindow:(NSWindow *)window;
44 
45 -(void) newTerminalTabInWindow:(NSWindow *)window;
46 -(void) closeTerminalTab:(TerminalView *)tv inWindow:(NSWindow *)window;
47 
48 -(void) showPreviousTab;
49 -(void) showNextTab;
50 
51 -(void) moveTabLeft;
52 -(void) moveTabRight;
53 
54 @end
55 
56 #endif
57 
58