version 1.10, 2016/09/30 01:13:38 |
version 1.13, 2016/10/07 05:13:42 |
Line 76 static NSMenuItem *menuItemPrettyPrint = nil; // pret |
|
Line 76 static NSMenuItem *menuItemPrettyPrint = nil; // pret |
|
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 ([textViewIn isAutomaticQuoteSubstitutionEnabled]) [textViewIn toggleAutomaticQuoteSubstitution: self]; // Turn off the smart quote. |
if ([MyEnvironment isX11Installed] != 1) |
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]; |
[self messageDialog: NSLocalizedString(@"XQuartz(X11) is not installed and cfep/asir will not run properly. To install it, visit http://www.xquartz.org.",nil) with: 0]; |
// if ([MyEnvironment isGccInstalled] != 1) |
// 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 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]; |
Line 249 static NSMenuItem *menuItemPrettyPrint = nil; // pret |
|
Line 249 static NSMenuItem *menuItemPrettyPrint = nil; // pret |
|
-(void) sayTheMessageAboutX { |
-(void) sayTheMessageAboutX { |
NSLog(@"myDocumentSaidTheMessageAboutX=%d\n",myDocumentSaidTheMessageAboutX); |
NSLog(@"myDocumentSaidTheMessageAboutX=%d\n",myDocumentSaidTheMessageAboutX); |
if (!myDocumentSaidTheMessageAboutX) { |
if (!myDocumentSaidTheMessageAboutX) { |
if ([MyEnvironment checkX] != 1) |
// [[NSWorkspace sharedWorkspace] launchApplication: @"Console"]; // check if it works for apps in Utilities |
|
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: |
[self changeOutputCounterFieldWithString: |
[NSLocalizedString(@"Output mini-view: ",nil) stringByAppendingString: |
[NSLocalizedString(@"Output mini-view: ",nil) stringByAppendingString: |
NSLocalizedString(@"A few commands (plot, ...) cannot be used, because X11 is not running.",nil)]]; |
NSLocalizedString(@"Starting XQuartz(X11). Please wait.",nil)]]; |
|
if ([[NSWorkspace sharedWorkspace] launchApplication: @"XQuartz"]) { |
|
NSLog(@"Starting XQuartz.\n"); |
|
}else{ |
|
NSLog(@"Starting XQuartz failed.\n"); |
|
[self messageDialog: |
|
NSLocalizedString(@"Starting XQuartz(X11) failed. A few commands (plot, ...) cannot be used, because X11 is not running.",nil) with: 0]; |
|
} |
|
while ([MyEnvironment checkX]!=1) { |
|
sleep(1); |
|
} |
|
[self changeOutputCounterFieldWithString: |
|
[NSLocalizedString(@"Output mini-view: ",nil) stringByAppendingString: |
|
NSLocalizedString(@"Started XQuartz(X11)",nil)]]; |
|
} |
myDocumentSaidTheMessageAboutX = 1; |
myDocumentSaidTheMessageAboutX = 1; |
} |
} |
} |
} |