mirror of
https://github.com/ksherlock/TwoTerm.git
synced 2025-01-02 16:31:38 +00:00
41c311fb8a
commit b9723cf13690c3a6ecefeee81b1d95a23bde0422 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Fri Feb 9 22:41:59 2018 -0500 remove most gui config stuff from new window. commit c690c5ebd99d6268f605094f429114a39ab3c180 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Thu Feb 8 11:48:29 2018 -0500 crosshatch cursor, push/pop cursor state when no longer key window. commit ebaa0e535ee52a85a514efbaa872f891f7e817f1 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Thu Feb 8 11:47:20 2018 -0500 child monitor - removeAll commit e591630339f3cd22ca461f2006f4c360fa43d026 Author: Kelvin Sherlock <ksherlock@gmail.com> Date: Thu Feb 8 11:46:19 2018 -0500 add config popup for the term window.
79 lines
1.9 KiB
Objective-C
79 lines
1.9 KiB
Objective-C
//
|
|
// TermWindowController.h
|
|
// 2Term
|
|
//
|
|
// Created by Kelvin Sherlock on 7/2/2010.
|
|
// Copyright 2010 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#include <atomic>
|
|
|
|
@class EmulatorView;
|
|
@class ColorView;
|
|
|
|
@protocol Emulator;
|
|
|
|
@interface TermWindowController : NSWindowController <NSWindowDelegate, NSPopoverDelegate> {
|
|
|
|
IBOutlet EmulatorView *_emulatorView;
|
|
IBOutlet ColorView *_colorView;
|
|
|
|
|
|
NSObject <Emulator> *_emulator;
|
|
|
|
/* popover configuration options */
|
|
IBOutlet NSColorWell *_fg;
|
|
IBOutlet NSColorWell *_bg;
|
|
|
|
IBOutlet NSButton *_effectsButton;
|
|
IBOutlet NSSlider *_blurSlider;
|
|
IBOutlet NSSlider *_lightenSlider;
|
|
IBOutlet NSSlider *_darkenSlider;
|
|
IBOutlet NSSlider *_bloomSlider;
|
|
IBOutlet NSSlider *_vignetteSlider;
|
|
}
|
|
|
|
@property (nonatomic, retain) IBOutlet NSViewController *popoverViewController;
|
|
@property (nonatomic, retain) IBOutlet NSPopover *popover;
|
|
|
|
|
|
@property (nonatomic, retain) NSObject<Emulator> *emulator;
|
|
|
|
@property (nonatomic, assign) BOOL effectsEnabled;
|
|
@property (nonatomic, assign) double blurValue;
|
|
@property (nonatomic, assign) double bloomValue;
|
|
@property (nonatomic, assign) double backlightValue;
|
|
@property (nonatomic, assign) double scanlineValue;
|
|
@property (nonatomic, assign) double vignetteValue;
|
|
|
|
@property (nonatomic, retain) NSColor *foregroundColor;
|
|
@property (nonatomic, retain) NSColor *backgroundColor;
|
|
|
|
|
|
-(void)initPTY;
|
|
-(void)childFinished: (int)status;
|
|
-(void)processData: (const void *)buffer size: (size_t)size;
|
|
|
|
-(void)setParameters: (NSDictionary *)parameters;
|
|
|
|
@end
|
|
|
|
|
|
@interface TermWindowController (Config)
|
|
|
|
- (IBAction)configure: (id)sender;
|
|
|
|
- (IBAction)foregroundColor:(id)sender;
|
|
- (IBAction)backgroundColor:(id)sender;
|
|
- (IBAction)swapColors:(id)sender;
|
|
|
|
- (IBAction)filterParameterChanged: (id)sender;
|
|
|
|
-(void) updateBackgroundColor;
|
|
-(void) updateForegroundColor;
|
|
|
|
-(NSArray *)effectsFilter;
|
|
|
|
@end
|