Chromium Updater
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.8 KiB

13 years ago
  1. //
  2. // MGMPreferences.h
  3. // MGMUsers
  4. //
  5. // Created by Mr. Gecko on 7/27/10.
  6. // Copyright (c) 2011 Mr. Gecko's Media (James Coleman). All rights reserved. http://mrgeckosmedia.com/
  7. //
  8. #import <Cocoa/Cocoa.h>
  9. @class MGMPreferencesPane;
  10. @interface MGMPreferences : NSObject
  11. #if (MAC_OS_X_VERSION_MAX_ALLOWED >= 1060)
  12. <NSWindowDelegate, NSToolbarDelegate>
  13. #endif
  14. {
  15. @private
  16. NSWindow *preferencesWindow;
  17. NSMutableArray *preferencesPanes;
  18. MGMPreferencesPane *currentPane;
  19. int defaultPane;
  20. BOOL titleIsToolbar;
  21. }
  22. - (NSWindow *)preferencesWindow;
  23. - (void)addPreferencesPaneClass:(Class)theClass;
  24. - (void)removePreferencesPaneClass:(Class)theClass;
  25. - (void)addPreferencesPaneClassName:(NSString *)theClass;
  26. - (void)removePreferencesPaneClassName:(NSString *)theClass;
  27. - (NSArray *)preferencesPanes;
  28. - (void)setSelectedPaneIndex:(int)theIndex;
  29. - (void)setupToolbar;
  30. - (NSArray *)arrayForKey:(NSString *)theKey;
  31. - (BOOL)boolForKey:(NSString *)theKey;
  32. - (NSData *)dataForKey:(NSString *)theKey;
  33. - (NSDictionary *)dictionaryForKey:(NSString *)theKey;
  34. - (float)floatForKey:(NSString *)theKey;
  35. - (int)integerForKey:(NSString *)theKey;
  36. - (id)objectForKey:(NSString *)theKey;
  37. - (NSArray *)stringArrayForKey:(NSString *)theKey;
  38. - (NSString *)stringForKey:(NSString *)theKey;
  39. - (double)doubleForKey:(NSString *)theKey;
  40. - (void)setBool:(BOOL)theValue forKey:(NSString *)theKey;
  41. - (void)setFloat:(float)theValue forKey:(NSString *)theKey;
  42. - (void)setInteger:(int)theValue forKey:(NSString *)theKey;
  43. - (void)setObject:(id)theValue forKey:(NSString *)theKey;
  44. - (void)setDouble:(double)theValue forKey:(NSString *)theKey;
  45. - (void)removeObjectForKey:(NSString *)theKey;
  46. - (void)setupWindowForPane:(MGMPreferencesPane *)thePane animate:(BOOL)shouldAnimate;
  47. - (void)showPreferences;
  48. - (void)closePreferences;
  49. @end
  50. @interface NSWindow (MGMToolbar)
  51. - (NSSize)toolbarSize;
  52. @end