version 1.4, 2006/03/08 04:58:14 |
version 1.5, 2006/03/10 11:48:01 |
Line 245 static NSMenuItem *menuItemPrettyPrint = nil; // pret |
|
Line 245 static NSMenuItem *menuItemPrettyPrint = nil; // pret |
|
NSLog(@"myDocumentSaidTheMessageAboutX=%d\n",myDocumentSaidTheMessageAboutX); |
NSLog(@"myDocumentSaidTheMessageAboutX=%d\n",myDocumentSaidTheMessageAboutX); |
if (!myDocumentSaidTheMessageAboutX) { |
if (!myDocumentSaidTheMessageAboutX) { |
if ([MyEnvironment checkX] != 1) |
if ([MyEnvironment checkX] != 1) |
[self messageDialog: |
// [self messageDialog: |
NSLocalizedString(@"A few commands (plot, ...) cannot be used, because X11 is not running.",nil) with: 0]; |
// NSLocalizedString(@"A few commands (plot, ...) cannot be used, because X11 is not running.",nil) with: 0]; |
|
[self changeOutputCounterFieldWithString: |
|
[NSLocalizedString(@"Output mini-view: ",nil) stringByAppendingString: |
|
NSLocalizedString(@"A few commands (plot, ...) cannot be used, because X11 is not running.",nil)]]; |
myDocumentSaidTheMessageAboutX = 1; |
myDocumentSaidTheMessageAboutX = 1; |
} |
} |
} |
} |
Line 273 static NSMenuItem *menuItemPrettyPrint = nil; // pret |
|
Line 276 static NSMenuItem *menuItemPrettyPrint = nil; // pret |
|
cmd0 = [self getContentsOfInputCell]; |
cmd0 = [self getContentsOfInputCell]; |
[self prepareOutputCell]; |
[self prepareOutputCell]; |
}else if (onlySelectedArea) { |
}else if (onlySelectedArea) { |
|
[self outputBorderLine: [NSColor yellowColor]]; |
r = [textViewIn selectedRange]; |
r = [textViewIn selectedRange]; |
// NSLog(@"r=(%d,%d)\n",r.location,r.length); |
// NSLog(@"r=(%d,%d)\n",r.location,r.length); |
cmd0 = [textViewIn string]; |
cmd0 = [textViewIn string]; |
Line 408 static NSMenuItem *menuItemPrettyPrint = nil; // pret |
|
Line 412 static NSMenuItem *menuItemPrettyPrint = nil; // pret |
|
else [mc outputStringToOutputWindow: amt]; |
else [mc outputStringToOutputWindow: amt]; |
} |
} |
} |
} |
|
-(void)outputBorderLine: (NSColor *)color { |
|
MyOutputWindowController *mc; |
|
mc = [MyOutputWindowController sharedMyOutputWindowController: self]; |
|
[mc outputStringToOutputWindow: @"----------------------------------------\n" withColor: color]; |
|
} |
- (void) outputErrorString: (NSString *) amt { |
- (void) outputErrorString: (NSString *) amt { |
int oldEnd; |
int oldEnd; |
int newEnd; |
int newEnd; |
Line 1051 int debugInbound = 0; |
|
Line 1060 int debugInbound = 0; |
|
-(void)openGLMeta: (NSString *) cmd to: (int) gid{ |
-(void)openGLMeta: (NSString *) cmd to: (int) gid{ |
MyOpenGLController *oglc; |
MyOpenGLController *oglc; |
oglc = [MyOpenGLController getOglWindow: gid]; |
oglc = [MyOpenGLController getOglWindow: gid]; |
if (!oglc) {[self outputErrorString: [NSString stringWithFormat: @"Invalid gid %d in openGLMeta\n",gid]]; return; } |
if (!oglc) {[self printErrorMessage: |
|
[NSString stringWithFormat: @"Invalid gid %d in openGLMeta command %@\n",gid,cmd]]; return; } |
if ([cmd hasPrefix: @"meta_showListOfOglComm"]) { |
if ([cmd hasPrefix: @"meta_showListOfOglComm"]) { |
[self showListOfOglComm: gid]; return ; |
[self showListOfOglComm: gid]; return ; |
}else if ([cmd hasPrefix: @"meta_removeAllInit"]) { // longer command must come first, because we use prefix. |
}else if ([cmd hasPrefix: @"meta_removeAllInit"]) { // longer command must come first, because we use prefix. |
Line 1063 int debugInbound = 0; |
|
Line 1073 int debugInbound = 0; |
|
}else if ([cmd hasPrefix: @"meta_removeLast"]) { |
}else if ([cmd hasPrefix: @"meta_removeLast"]) { |
[oglc removeLastOfOglComm]; |
[oglc removeLastOfOglComm]; |
}else{ |
}else{ |
[self outputErrorString: [NSString stringWithFormat: @"Unknown OpenGL meta command %@\n",cmd]]; |
[self printErrorMessage: [NSString stringWithFormat: @"Unknown OpenGL meta command %@\n",cmd]]; |
} |
} |
} |
} |
-(void) showListOfOglComm: (int) gid { |
-(void) showListOfOglComm: (int) gid { |