Annotation of OpenXM_contrib/gnuplot/NeXT/gnuviewController.m, Revision 1.1.1.1
1.1 maekawa 1: #import "gnuviewController.h"
2: #import "Controller.h"
3:
4: @implementation gnuviewController
5:
6: - window
7: {
8: return window;
9: }
10:
11: - gnuView
12: {
13: return gnuView;
14: }
15:
16: - windowWillClose:sender
17: {
18: [sender setDelegate: nil];
19: [controller termWillClose:self];
20:
21: return self;
22: }
23:
24: - windowDidBecomeMain:sender
25: {
26: [controller setKeyTerm:self];
27:
28: return self;
29: }
30:
31: - activatePushed:sender
32: {
33: if ([sender state] == 1) {
34: [controller setActiveTerm: self];
35: [sender setTitle:"--- ACTIVE ---"];
36: }
37: else {
38: [controller setActiveTerm:nil];
39: [sender setTitle:"Activate"];
40: }
41:
42: return self;
43: }
44:
45: - deactivate:sender
46: {
47: [activateButton setState:0];
48: [activateButton setTitle:"Activate"];
49:
50: return self;
51: }
52:
53: - GVactivate:sender
54: {
55: [activateButton setState:1];
56: [activateButton setTitle:"--- ACTIVE ---"];
57:
58: return self;
59: }
60:
61: - largerPushed:sender
62: {
63: NXRect oldFrame;
64: double factor;
65:
66: [[window contentView] getFrame:&oldFrame];
67:
68: factor = 1.3;
69:
70: [window sizeWindow:oldFrame.size.width*factor:oldFrame.size.height*factor];
71: [[window contentView] display];
72:
73: return self;
74: }
75:
76: - smallerPushed:sender
77: {
78: NXRect oldFrame;
79: double factor;
80:
81: [[window contentView] getFrame:&oldFrame];
82:
83: factor = 1.3;
84:
85: [window sizeWindow:oldFrame.size.width/factor:oldFrame.size.height/factor];
86: [[window contentView] display];
87: return self;
88: }
89:
90:
91:
92: @end
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>