File: MyTextField.h

package info (click to toggle)
wcalc 2.2.2-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,228 kB
  • ctags: 698
  • sloc: ansic: 6,918; objc: 1,835; sh: 766; yacc: 644; lex: 573; makefile: 78
file content (24 lines) | stat: -rw-r--r-- 478 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* MyTextField */

#include <Cocoa/Cocoa.h>
#include "WcalcController.h"

#include <gmp.h>
#include <mpfr.h>

@interface MyTextField : NSTextField
{
	IBOutlet WcalcController *mainController;
	IBOutlet NSTextField *AnswerField;

	/* "Simple Calculator" Variables */
	char lastchar;
	char oper;
	mpfr_t cur_number;
	mpfr_t prev_number;
}
- (void)keyDown:(NSEvent*) theEvent;
- (void)keyUp:(NSEvent*) theEvent;
- (BOOL) acceptsFirstResponder;
- (BOOL) refusesFirstResponder;
@end