1 | //␊ |
2 | // ChameleonPrefPane.h␊ |
3 | // ChameleonPrefPane␊ |
4 | //␊ |
5 | // Created by Rekursor on 1/16/10.␊ |
6 | //␊ |
7 | ␊ |
8 | #import <PreferencePanes/PreferencePanes.h>␊ |
9 | #import <SecurityFoundation/SFAuthorization.h>␊ |
10 | #import <SecurityInterface/SFAuthorizationView.h>␊ |
11 | ␊ |
12 | @interface ChameleonPrefPane : NSPreferencePane ␊ |
13 | {␊ |
14 | @public␊ |
15 | ␉// Objects corresponding to the interface mapping:␊ |
16 | ␉IBOutlet NSTableView *␉␉mPartitionsTable;␊ |
17 | ␉IBOutlet NSTableColumn *␉mPartitionImgColumn;␊ |
18 | ␉IBOutlet NSTableColumn *␉mFileSystemColumn;␊ |
19 | ␉IBOutlet NSTableColumn *␉mPartitionNameColumn;␊ |
20 | ␉IBOutlet NSTableColumn *␉mPartitionIDColumn;␊ |
21 | ␉IBOutlet NSButton *␉␉␉mSleepButton;␊ |
22 | ␉IBOutlet NSButton *␉␉␉mShutDownButton;␊ |
23 | ␉IBOutlet NSButton *␉␉␉mRestartButton;␊ |
24 | ␉IBOutlet NSButton *␉␉␉mSwapHD01;␊ |
25 | ␉IBOutlet NSButton *␉␉␉mSwapHD02;␊ |
26 | ␉IBOutlet NSTextField*␉␉mStatusText;␊ |
27 | ␉IBOutlet NSBox*␉␉␉␉mOptions;␊ |
28 | ␉␊ |
29 | IBOutlet SFAuthorizationView *authView;␊ |
30 | IBOutlet NSButton *touchButton;␊ |
31 | ␊ |
32 | ␉NSImage *␉␉␉␉␉mMacOSXImage;␊ |
33 | ␉NSImage *␉␉␉␉␉mWindowsImage;␊ |
34 | ␉NSImage *␉␉␉␉␉mLinuxImage;␊ |
35 | ␉NSImage *␉␉␉␉␉mUnknownImage;␊ |
36 | ␉NSMutableDictionary *mOptionsDict;␊ |
37 | ␉NSString * mOptionsPlistPath;␊ |
38 | }␊ |
39 | ␊ |
40 | ␊ |
41 | - (void)awakeFromNib;␊ |
42 | - (void)initBootConfig;␊ |
43 | - (id) getImageResource: (NSString *) str ofType: (NSString*) sType;␊ |
44 | ␊ |
45 | //- (void) mainViewDidLoad;␊ |
46 | - (void)tableViewSelectionDidChange:(NSNotification *)notification;␊ |
47 | - (void) selectDefaultPartition;␊ |
48 | ␊ |
49 | - (IBAction)onRestart: (id)sender;␊ |
50 | - (IBAction)onShutdown: (id)sender;␊ |
51 | - (IBAction)onSleep: (id)sender;␊ |
52 | - (IBAction)onSwapHD: (id)sender;␊ |
53 | ␊ |
54 | - (BOOL)isUnlocked;␊ |
55 | - (void) refreshLockStates;␊ |
56 | - (void) doSwapHD: (int) val save: (bool) doSave src: (int)isrc dst: (int) idst;␊ |
57 | - (void)tableViewSelectionDidChange:(NSNotification *)notification;␊ |
58 | ␊ |
59 | - (void) swapDisks: (bool) bSwap src: (int) iSrc dst: (int) iDst;␊ |
60 | ␊ |
61 | @end␊ |
62 | |