Revision: 3722
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3722&view=rev
Author:   hofman
Date:     2008-04-13 10:34:17 -0700 (Sun, 13 Apr 2008)

Log Message:
-----------
Revert part of last commit. Shouldn't have removed accessors for sizes.

Modified Paths:
--------------
    trunk/SKPreferenceController.h
    trunk/SKPreferenceController.m

Modified: trunk/SKPreferenceController.h
===================================================================
--- trunk/SKPreferenceController.h      2008-04-13 17:09:17 UTC (rev 3721)
+++ trunk/SKPreferenceController.h      2008-04-13 17:34:17 UTC (rev 3722)
@@ -61,6 +61,9 @@
 
 + (id)sharedPrefenceController;
 
+- (unsigned)countOfSizes;
+- (id)objectInSizesAtIndex:(unsigned)anIndex;
+
 - (BOOL)isCustomTeXEditor;
 - (void)setCustomTeXEditor:(BOOL)flag;
 

Modified: trunk/SKPreferenceController.m
===================================================================
--- trunk/SKPreferenceController.m      2008-04-13 17:09:17 UTC (rev 3721)
+++ trunk/SKPreferenceController.m      2008-04-13 17:34:17 UTC (rev 3722)
@@ -48,6 +48,7 @@
 static NSString *SKPreferenceInitialUserDefaultsFileName = 
@"InitialUserDefaults";
 static NSString *SKPreferenceResettableKeysKey = @"ResettableKeys";
 
+static float SKDefaultFontSizes[] = {8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 
16.0, 18.0, 20.0, 24.0, 28.0, 32.0, 48.0, 64.0};
 static NSString *SKTeXEditors[] = {@"TextMate", @"BBEdit", @"TextWrangler", 
@"Emacs", @"Aquamacs Emacs", @"LyX"};
 static NSString *SKTeXEditorCommands[] = {@"mate", @"bbedit", @"edit", 
@"emacsclient", @"emacsclient", @"lyxeditor"};
 static NSString *SKTeXEditorArguments[] = {@"-l %line \"%file\"", @"+%line 
\"%file\"", @"+%line \"%file\"", @"--no-wait +%line \"%file\"", @"--no-wait 
+%line \"%file\"", @"\"%file\" %line"};
@@ -160,6 +161,14 @@
         [[self window] endEditingFor:nil];
 }
 
+- (unsigned)countOfSizes {
+    return sizeof(SKDefaultFontSizes) / sizeof(float);
+}
+
+- (id)objectInSizesAtIndex:(unsigned)anIndex {
+    return [NSNumber numberWithFloat:SKDefaultFontSizes[anIndex]];
+}
+
 - (BOOL)isCustomTeXEditor {
     return isCustomTeXEditor;
 }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to