File: TerminalWindow.h

package info (click to toggle)
terminal.app 0.9.9-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 708 kB
  • sloc: objc: 6,715; makefile: 13
file content (57 lines) | stat: -rw-r--r-- 1,369 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
  Copyright 2002, 2003 Alexander Malmberg <alexander@malmberg.org>
            2016 Riccardo Mottola
            2016 Tim Sheridan

  This file is a part of Terminal.app. Terminal.app 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; version 2
  of the License. See COPYING or main.m for more information.
*/

#ifndef TerminalWindow_h
#define TerminalWindow_h

@class TerminalView;

#import <AppKit/NSWindowController.h>
#import <AppKit/NSTabView.h>

extern NSString *TerminalWindowNoMoreActiveWindowsNotification;

@interface TerminalWindowController : NSWindowController
{
	NSMutableArray *terminal_views;
	NSTabView *tab_view;
        BOOL isShowingTabs;
	BOOL close_on_idle;
}

+(TerminalWindowController *) newTerminalWindow;
+(TerminalWindowController *) idleTerminalWindow;

+(int) numberOfActiveWindows;
+(void) checkActiveWindows;

- init;

-(TerminalView *) frontTerminalView;

-(void) setShouldCloseWhenIdle: (BOOL)should_close;

-(BOOL) showTabBar;
-(void) setShowTabBar:(BOOL)visible inWindow:(NSWindow *)window;

-(void) newTerminalTabInWindow:(NSWindow *)window;
-(void) closeTerminalTab:(TerminalView *)tv inWindow:(NSWindow *)window;

-(void) showPreviousTab;
-(void) showNextTab;

-(void) moveTabLeft;
-(void) moveTabRight;

@end

#endif