File: TerminalViewPrefs.h

package info (click to toggle)
terminal.app 0.9.4+cvs20051125-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 460 kB
  • ctags: 106
  • sloc: objc: 6,098; makefile: 42; sh: 13
file content (81 lines) | stat: -rw-r--r-- 1,585 bytes parent folder | download | duplicates (5)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/*
copyright 2002, 2003 Alexander Malmberg <alexander@malmberg.org>

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 TerminalViewPrefs_h
#define TerminalViewPrefs_h

#include "PrefBox.h"


@class NSString,NSFont,NSColor;
@class GSVbox,NSTextField,NSColorWell,NSMatrix;

extern NSString *TerminalViewDisplayPrefsDidChangeNotification;

@interface TerminalViewDisplayPrefs : NSObject <PrefBox>
{
	GSVbox *top;
	NSTextField *f_terminalFont,*f_boldTerminalFont;
	NSColorWell *w_cursorColor;
	NSMatrix *m_cursorStyle;
	NSTextField *f_scrollBackLines;
	NSButton *b_useMultiCellGlyphs;

	NSTextField *f_cur;
}

+(NSFont *) terminalFont;
+(NSFont *) boldTerminalFont;

+(BOOL) useMultiCellGlyphs;

+(const float *) brightnessForIntensities;
+(const float *) saturationForIntensities;

#define CURSOR_LINE          0
#define CURSOR_BLOCK_STROKE  1
#define CURSOR_BLOCK_FILL    2
#define CURSOR_BLOCK_INVERT  3
+(int) cursorStyle;
+(NSColor *) cursorColor;

+(int) scrollBackLines;

@end


@interface TerminalViewShellPrefs : NSObject <PrefBox>
{
	GSVbox *top;

	NSTextField *tf_shell;
	NSButton *b_loginShell;
}

+(NSString *) shell;
+(BOOL) loginShell;

@end


@interface TerminalViewKeyboardPrefs : NSObject <PrefBox>
{
	GSVbox *top;

	NSButton *b_commandAsMeta;
	NSButton *b_doubleEscape;
}

+(BOOL) commandAsMeta;
+(BOOL) doubleEscape;

@end

#endif