mirror of
https://github.com/ksherlock/TwoTerm.git
synced 2024-12-22 07:30:40 +00:00
1fec3f120c
git-svn-id: svn://qnap.local/TwoTerm/trunk@3146 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
84 lines
1.5 KiB
Objective-C
84 lines
1.5 KiB
Objective-C
//
|
|
// TermContentView.m
|
|
// 2Term
|
|
//
|
|
// Created by Kelvin Sherlock on 11/26/2011.
|
|
// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import "TermContentView.h"
|
|
#import "TitleBarView.h"
|
|
|
|
@implementation TermContentView
|
|
@synthesize titleBar = _titleBar;
|
|
|
|
-(void)createTrackingArea
|
|
{
|
|
|
|
return;
|
|
#if 0
|
|
NSRect rect;
|
|
NSRect bounds;
|
|
|
|
|
|
if (_trackingArea)
|
|
{
|
|
[self removeTrackingArea: _trackingArea];
|
|
[_trackingArea release];
|
|
_trackingArea = nil;
|
|
}
|
|
|
|
bounds = [self bounds];
|
|
|
|
rect = NSMakeRect(0, bounds.size.height - 24, bounds.size.width, 24);
|
|
|
|
_trackingArea = [[NSTrackingArea alloc] initWithRect: rect
|
|
options: NSTrackingMouseEnteredAndExited | NSTrackingActiveAlways
|
|
owner: self
|
|
userInfo:nil];
|
|
|
|
|
|
[self addTrackingArea: _trackingArea];
|
|
#endif
|
|
}
|
|
|
|
-(void)awakeFromNib
|
|
{
|
|
[super awakeFromNib];
|
|
[self createTrackingArea];
|
|
|
|
}
|
|
|
|
|
|
-(void)updateTrackingAreas
|
|
{
|
|
[self createTrackingArea];
|
|
}
|
|
|
|
|
|
-(void)dealloc
|
|
{
|
|
[_trackingArea release];
|
|
[super dealloc];
|
|
}
|
|
|
|
/*
|
|
-(void)mouseEntered:(NSEvent *)theEvent
|
|
{
|
|
//NSLog(@"%s", sel_getName(_cmd));
|
|
|
|
[_titleBar fadeIn];
|
|
// animate title bar in.
|
|
}
|
|
|
|
-(void)mouseExited:(NSEvent *)theEvent
|
|
{
|
|
//NSLog(@"%s", sel_getName(_cmd));
|
|
|
|
[_titleBar fadeOut];
|
|
// animate title bar out.
|
|
}
|
|
*/
|
|
|
|
@end
|