ResKnife/Cocoa/Classes/PrefsWindowController.h

40 lines
767 B
C
Raw Normal View History

2001-10-19 19:41:13 +00:00
#import <Cocoa/Cocoa.h>
enum DataProtection
{
preserveBackupsBox = 0,
autosaveBox,
deleteResourceWarningBox
};
enum LaunchAction
{
doNothingBox = 0,
createNewDocumentBox,
displayOpenPanelBox
};
2002-03-21 04:02:26 +00:00
#define prefs [NSUserDefaults standardUserDefaults]
2001-10-19 19:41:13 +00:00
@interface PrefsWindowController : NSWindowController
{
IBOutlet NSTextField *autosaveIntervalField;
IBOutlet NSMatrix *dataProtectionMatrix;
IBOutlet NSMatrix *launchActionMatrix;
2001-10-19 19:41:13 +00:00
}
2002-02-11 01:22:17 +00:00
- (void)updatePrefs:(NSNotification *)notification;
2001-10-19 19:41:13 +00:00
- (IBAction)acceptPrefs:(id)sender;
- (IBAction)cancelPrefs:(id)sender;
- (IBAction)resetToDefault:(id)sender;
+ (id)sharedPrefsWindowController;
2002-03-21 04:02:26 +00:00
@end
@interface NSString (BooleanSupport)
- (BOOL)boolValue;
+ (NSString *)stringWithBool:(BOOL)boolean;
2001-10-19 19:41:13 +00:00
@end