version 1.5, 2006/03/10 11:48:01 |
version 1.10, 2016/09/30 01:13:38 |
Line 74 static NSMenuItem *menuItemPrettyPrint = nil; // pret |
|
Line 74 static NSMenuItem *menuItemPrettyPrint = nil; // pret |
|
[self addMenuExec]; // adding the execution menu. |
[self addMenuExec]; // adding the execution menu. |
[textViewIn setAllowsUndo:YES]; |
[textViewIn setAllowsUndo:YES]; |
if ([textViewIn isContinuousSpellCheckingEnabled]) [textViewIn toggleContinuousSpellChecking: self]; // Turn off the spell checking. |
if ([textViewIn isContinuousSpellCheckingEnabled]) [textViewIn toggleContinuousSpellChecking: self]; // Turn off the spell checking. |
|
if ([textViewIn isAutomaticQuoteSubstitutionEnabled]) [textViewIn toggleAutomaticQuoteSubstitution: self]; // Turn off the smart quote. |
|
if ([MyEnvironment isX11Installed] != 1) |
|
[self messageDialog: NSLocalizedString(@"X11 is not installed. To install it, insert MacOS DVD1 and open Optional install->Applications->X11",nil) with: 0]; |
|
// if ([MyEnvironment isGccInstalled] != 1) |
|
// [self messageDialog: NSLocalizedString(@"gcc is not installed. To install it, insert MacOS DVD1 and open Xcode Tools->XcodeTools.mpkg",nil) with: 0]; |
[self sayTheMessageAboutX]; |
[self sayTheMessageAboutX]; |
[self initAux]; |
[self initAux]; |
} |
} |
Line 152 static NSMenuItem *menuItemPrettyPrint = nil; // pret |
|
Line 157 static NSMenuItem *menuItemPrettyPrint = nil; // pret |
|
[self openMyModel: myEnvironment ]; |
[self openMyModel: myEnvironment ]; |
[MyOpenGLController initMyOpenGLController]; // For the second execution, it will do nothing. |
[MyOpenGLController initMyOpenGLController]; // For the second execution, it will do nothing. |
} |
} |
-(int) getMyDocumentKey { return myDocumentKey; } |
-(NSString *) getMyDocumentKey { return myDocumentKey; } |
|
|
-(id) openMyModel: (MyEnvironment *) myEnvironment { |
-(id) openMyModel: (MyEnvironment *) myEnvironment { |
[myEnvironment showForDebug]; // for debug. |
[myEnvironment showForDebug]; // for debug. |
Line 167 static NSMenuItem *menuItemPrettyPrint = nil; // pret |
|
Line 172 static NSMenuItem *menuItemPrettyPrint = nil; // pret |
|
[peerEndEvaluteMark retain]; |
[peerEndEvaluteMark retain]; |
|
|
[self stopIndicator]; |
[self stopIndicator]; |
if (NoEngine && (!restartMode)) { task = nil; return; } |
if (NoEngine && (!restartMode)) { task = nil; return self; } |
|
|
// Initialization to call /bin/bash |
// Initialization to call /bin/bash |
outboundPipe = [NSPipe pipe]; // since autorelease is called in pipe. |
outboundPipe = [NSPipe pipe]; // since autorelease is called in pipe. |
Line 276 static NSMenuItem *menuItemPrettyPrint = nil; // pret |
|
Line 281 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 293 static NSMenuItem *menuItemPrettyPrint = nil; // pret |
|
Line 297 static NSMenuItem *menuItemPrettyPrint = nil; // pret |
|
[textViewIn replaceCharactersInRange: NSMakeRange(pos,0) withString: @"\n"]; |
[textViewIn replaceCharactersInRange: NSMakeRange(pos,0) withString: @"\n"]; |
} |
} |
cmd0 = [cmd0 substringWithRange:r ]; |
cmd0 = [cmd0 substringWithRange:r ]; |
} |
} |
|
[self outputBorderLine: [NSColor magentaColor]]; |
|
[self outputString: cmd0]; |
|
if ([cmd0 length] > 0) { |
|
if ([cmd0 characterAtIndex: ([cmd0 length]-1)] != 0xa) [self outputString: @"\n"]; |
|
} |
|
[self outputBorderLine: [NSColor yellowColor]]; |
}else{ |
}else{ |
cmd0 = [textViewIn string]; |
cmd0 = [textViewIn string]; |
MyOutputWindowController *mc; |
MyOutputWindowController *mc; |
Line 1041 int debugInbound = 0; |
|
Line 1051 int debugInbound = 0; |
|
return -1; |
return -1; |
} |
} |
gid = [[a objectAtIndex: 0] intValue]; |
gid = [[a objectAtIndex: 0] intValue]; |
if ([[a objectAtIndex: 1] hasPrefix: @"meta"]) {[self openGLMeta: [a objectAtIndex: 1] to: gid]; return; } |
if ([[a objectAtIndex: 1] hasPrefix: @"meta"]) {[self openGLMeta: [a objectAtIndex: 1] to: gid]; return 0; } |
[MyOpenGLController addOglComm: [a objectAtIndex: 1] to: gid from: self]; |
[MyOpenGLController addOglComm: [a objectAtIndex: 1] to: gid from: self]; |
return 0; |
return 0; |
} |
} |
Line 1118 int debugInbound = 0; |
|
Line 1128 int debugInbound = 0; |
|
// NSLog(@"%@",a); |
// NSLog(@"%@",a); |
if ([[a objectAtIndex: 0] hasPrefix: @"notAvailable"]) { |
if ([[a objectAtIndex: 0] hasPrefix: @"notAvailable"]) { |
[self messageDialog: |
[self messageDialog: |
NSLocalizedString(@"Typeset the output by TeX is not available. latex, dvips, and pstoimg must be installed.",nil) with: 0]; |
NSLocalizedString(@"Typeset the output by TeX is not available. latex and dvipng must be installed.",nil) with: 0]; |
prettyPrint = 1; [self setPrettyPrint: nil]; |
prettyPrint = 1; [self setPrettyPrint: nil]; |
return; |
return; |
} else if ([[a objectAtIndex: 0] compare: @"showFile"] == NSOrderedSame) { |
} else if ([[a objectAtIndex: 0] compare: @"showFile"] == NSOrderedSame) { |