2001-10-19 19:41:13 +00:00
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
enum DataProtection
|
|
|
|
{
|
|
|
|
preserveBackupsBox = 0,
|
|
|
|
autosaveBox,
|
|
|
|
deleteResourceWarningBox
|
|
|
|
};
|
|
|
|
|
2002-02-12 04:01:47 +00:00
|
|
|
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;
|
2002-02-12 04:01:47 +00:00
|
|
|
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
|