1 | //
|
---|
2 | // DockCamPrefs.h
|
---|
3 | // DockCam
|
---|
4 | //
|
---|
5 | // Created by Nicholas Riley on Thu Jun 27 2002.
|
---|
6 | // Copyright (c) 2002 Nicholas Riley. All rights reserved.
|
---|
7 | //
|
---|
8 |
|
---|
9 | #import <AppKit/AppKit.h>
|
---|
10 |
|
---|
11 | extern NSString * const DCImageLocation;
|
---|
12 | extern NSString * const DCImageSize;
|
---|
13 | extern NSString * const DCImageRefreshEnabled;
|
---|
14 | extern NSString * const DCImageRefreshInterval;
|
---|
15 | extern NSString * const DCShowImageInBackground;
|
---|
16 | extern NSString * const DCShowStatus;
|
---|
17 |
|
---|
18 | extern NSString * const DCPrefChangedNotification;
|
---|
19 |
|
---|
20 | @interface DockCamPrefs : NSWindowController {
|
---|
21 | IBOutlet NSComboBox *imageLocation;
|
---|
22 | IBOutlet NSMatrix *retrieveImageAutomatically;
|
---|
23 | IBOutlet NSTextField *imageRefreshInterval;
|
---|
24 | IBOutlet NSPopUpButton *imageRefreshIntervalUnits;
|
---|
25 | IBOutlet NSButton *showImageInBackground;
|
---|
26 | }
|
---|
27 |
|
---|
28 | + (BOOL)boolForPref:(NSString *)pref;
|
---|
29 | + (int)intForPref:(NSString *)pref;
|
---|
30 | + (NSSize)sizeForPref:(NSString *)pref;
|
---|
31 | + (NSString *)stringForPref:(NSString *)pref;
|
---|
32 |
|
---|
33 | + (void)setBool:(BOOL)value forPref:(NSString *)pref;
|
---|
34 | + (void)setInt:(int)value forPref:(NSString *)pref;
|
---|
35 | + (void)setString:(NSString *)value forPref:(NSString *)pref;
|
---|
36 | + (void)setSize:(NSSize)value forPref:(NSString *)pref;
|
---|
37 |
|
---|
38 | - (IBAction)writeToPrefs:(id)sender;
|
---|
39 | - (IBAction)retrieveImageAutomatically:(id)sender;
|
---|
40 |
|
---|
41 | @end
|
---|