671 |
khor |
1 |
@interface BasicOpenGLView : NSOpenGLView < NSDraggingDestination, NSApplicationDelegate >
|
|
|
2 |
{
|
|
|
3 |
NSTimer* timer;
|
|
|
4 |
|
|
|
5 |
bool fAnimate;
|
|
|
6 |
IBOutlet NSMenuItem * animateMenuItem;
|
|
|
7 |
bool fInfo;
|
|
|
8 |
IBOutlet NSMenuItem * infoMenuItem;
|
|
|
9 |
|
|
|
10 |
CFAbsoluteTime time;
|
|
|
11 |
}
|
|
|
12 |
|
|
|
13 |
-(IBAction)save_window_to_pasteboard:(id)sender;
|
|
|
14 |
|
|
|
15 |
- (void) keyDown:(NSEvent *)theEvent;
|
|
|
16 |
- (void) mouseDown:(NSEvent *)theEvent;
|
|
|
17 |
- (void) rightMouseDown:(NSEvent *)theEvent;
|
|
|
18 |
- (void) otherMouseDown:(NSEvent *)theEvent;
|
|
|
19 |
- (void) mouseUp:(NSEvent *)theEvent;
|
|
|
20 |
- (void) rightMouseUp:(NSEvent *)theEvent;
|
|
|
21 |
- (void) otherMouseUp:(NSEvent *)theEvent;
|
|
|
22 |
- (void) mouseDragged:(NSEvent *)theEvent;
|
|
|
23 |
- (void) scrollWheel:(NSEvent *)theEvent;
|
|
|
24 |
- (void) rightMouseDragged:(NSEvent *)theEvent;
|
|
|
25 |
- (void) otherMouseDragged:(NSEvent *)theEvent;
|
|
|
26 |
|
|
|
27 |
- (void) drawRect:(NSRect)rect;
|
|
|
28 |
|
|
|
29 |
-(IBAction)open_file_dialog:(id)sender;
|
|
|
30 |
|
|
|
31 |
- (void) prepareOpenGL;
|
|
|
32 |
- (void) update; // moved or resized
|
|
|
33 |
|
|
|
34 |
- (BOOL) acceptsFirstResponder;
|
|
|
35 |
- (BOOL) becomeFirstResponder;
|
|
|
36 |
- (BOOL) resignFirstResponder;
|
|
|
37 |
|
|
|
38 |
- (id) initWithFrame: (NSRect) frameRect;
|
|
|
39 |
- (void) awakeFromNib;
|
|
|
40 |
- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender;
|
|
|
41 |
@end
|