00001 #import <Cocoa/Cocoa.h>
00002 #import "TFController.h";
00003 #import "TFPointModel.h";
00004
00010 @interface TFPointView : NSView {
00011
00012 TFPointModel * _model;
00013 TFController * _controller;
00014
00015 NSPoint _dragPosition;
00017 CGFloat _width;
00018 CGFloat _height;
00020 }
00021
00025 - (id) initWithFrame:(NSRect) frame Controller:(TFController*)controller;
00029 - (id) initWithModel:(TFPointModel *)model Controller:(TFController *)controller;
00030
00031 - (void) mouseDown:(NSEvent *)event;
00032 - (void) mouseDragged:(NSEvent *)event;
00033
00037 - (BOOL) horizontalFixed;
00038
00044 - (void) updateColorPanelAndShow:(BOOL) show;
00045
00046 - (TFPointModel *) model;
00047
00048 @end