Skip to content

Commit

Permalink
Remove unused "Complexity" preference; fix ions text in English local…
Browse files Browse the repository at this point in the history
…ization
  • Loading branch information
nickzman committed May 30, 2020
1 parent e159e3e commit 6de3d02
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 94 deletions.
91 changes: 28 additions & 63 deletions Base.lproj/Helios.xib

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions HeliosView.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,8 @@

HeliosSaverSettings settings;
rsTimer timer;
int complexity;
int sphereType;

IBOutlet id IBcomplexity;
IBOutlet id IBcomplexityTxt;

IBOutlet id IBdIons;
IBOutlet id IBdIonsTxt;

Expand Down Expand Up @@ -61,7 +57,6 @@

IBOutlet id configureSheet;
IBOutlet id IBversionNumberField;
IBOutlet id IBUpdatesInfo;
IBOutlet id IBmainMonitorOnly;

IBOutlet id IBDefaultValues;
Expand Down
18 changes: 0 additions & 18 deletions HeliosView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ - (id)initWithFrame:(NSRect)frameRect isPreview:(BOOL) preview
// par.dWireframe = [defaults boolForKey:@"dWireframe"];
settings.dBlur = int([defaults integerForKey:@"dBlur"]);
sphereType = int([defaults integerForKey:@"sphereType"]);
complexity = int([defaults integerForKey:@"complexity"]);
}

NSRect newBounds = [_view convertRectToBacking:_view.bounds];
Expand Down Expand Up @@ -258,8 +257,6 @@ - (NSWindow*)configureSheet

[IBversionNumberField setStringValue:kVersion];

[IBUpdatesInfo setStringValue:@""];

[IBmainMonitorOnly setState:(mainMonitorOnly ? NSOnState : NSOffState)];


Expand Down Expand Up @@ -300,10 +297,6 @@ - (NSWindow*)configureSheet
[IBsphereType selectItemAtIndex:sphereType];
[IBsphereType setEnabled:settings.dSurface];

[IBcomplexity setIntValue:complexity];
[IBcomplexityTxt setStringValue:[NSString stringWithFormat:
[thisBundle localizedStringForKey:@"Complexity (%d)" value:@"" table:@""], complexity]];

[IBmainMonitorOnly setTitle:[thisBundle localizedStringForKey:@"Main monitor only" value:@"" table:@""]];
[IBDefaultValues setTitle:[thisBundle localizedStringForKey:@"Default values" value:@"" table:@""]];
[IBCancel setTitle:[thisBundle localizedStringForKey:@"Cancel" value:@"" table:@""]];
Expand Down Expand Up @@ -360,11 +353,6 @@ - (IBAction) sheet_update:(id) sender
fooBool = ( [IBdSurface state] == NSOnState ) ? true : false;
[IBsphereType setEnabled:fooBool];
}
else if( sender == IBcomplexity ) {
fooInt = [IBcomplexity intValue];
[IBcomplexityTxt setStringValue:[NSString stringWithFormat:
[thisBundle localizedStringForKey:@"Complexity (%d)" value:@"" table:@""], fooInt]];
}
}

- (IBAction) closeSheet_save:(id) sender {
Expand Down Expand Up @@ -393,7 +381,6 @@ - (IBAction) closeSheet_save:(id) sender {
// par.dWireframe = ( [IBdWireframe state] == NSOnState ) ? true : false;
settings.dBlur = [IBdBlur intValue];
sphereType = int([IBsphereType indexOfSelectedItem]);
complexity = [IBcomplexity intValue];


[defaults setBool: mainMonitorOnly forKey: @"mainMonitorOnly"];
Expand All @@ -407,7 +394,6 @@ - (IBAction) closeSheet_save:(id) sender {
[defaults setBool: settings.dSurface forKey: @"dSurface"];
[defaults setInteger: settings.dBlur forKey: @"dBlur"];
[defaults setInteger: sphereType forKey: @"sphereType"];
[defaults setInteger: complexity forKey: @"complexity"];

[defaults synchronize];

Expand Down Expand Up @@ -477,10 +463,6 @@ - (IBAction) restoreDefaults:(id) sender {
[IBsphereType selectItem:nil];
[IBsphereType selectItemAtIndex:0];
[IBsphereType setEnabled:[IBdSurface state] == NSOnState];

[IBcomplexity setIntValue:0];
[IBcomplexityTxt setStringValue:[NSString stringWithFormat:
[thisBundle localizedStringForKey:@"Complexity (%d)" value:@"" table:@""], 0]];
}


Expand Down
Binary file modified de.lproj/Localizable.strings
Binary file not shown.
Binary file modified en.lproj/Localizable.strings
Binary file not shown.
Binary file modified fr.lproj/Localizable.strings
Binary file not shown.
8 changes: 0 additions & 8 deletions it.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,3 @@
"Default values" = "Valori di default";
"Cancel" = "Cancella";
"Save" = "Salva";

/* version checking strings. */
"Couldn't connect to version database, sorry" = "Non posso connettermi al database, peccato";
"New version available !!" = "C'è una nuova versione !!";
"You're up-to-date" = "Hai già l'ultima versione";



Binary file modified ja.lproj/Localizable.strings
Binary file not shown.

0 comments on commit 6de3d02

Please sign in to comment.