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 | ␊ |
13 | @interface ChameleonPrefPane : NSPreferencePane ␊ |
14 | {␊ |
15 | @private␊ |
16 | ␉// Objects corresponding to the interface mapping:␊ |
17 | ␉IBOutlet NSTableView *␉␉mPartitionsTable;␊ |
18 | ␉IBOutlet NSTableColumn *␉mPartitionImgColumn;␊ |
19 | ␉IBOutlet NSTableColumn *␉mFileSystemColumn;␊ |
20 | ␉IBOutlet NSTableColumn *␉mPartitionNameColumn;␊ |
21 | ␉IBOutlet NSTableColumn *␉mPartitionIDColumn;␊ |
22 | ␉IBOutlet NSButton *␉␉␉mSleepButton;␊ |
23 | ␉IBOutlet NSButton *␉␉␉mShutDownButton;␊ |
24 | ␉IBOutlet NSButton *␉␉␉mRestartButton;␊ |
25 | ␉IBOutlet NSButton *␉␉␉mSwapHD01;␊ |
26 | ␉IBOutlet NSButton *␉␉␉mSwapHD02;␊ |
27 | ␉IBOutlet NSButton *␉␉␉mFreezeParts;␊ |
28 | ␉IBOutlet NSButton *␉␉␉mInjectFrozenParts;␊ |
29 | ␉IBOutlet NSTextField*␉␉mStatusText;␊ |
30 | ␉IBOutlet NSBox*␉␉␉␉mOptions;␊ |
31 | IBOutlet SFAuthorizationView *authView;␊ |
32 | ␊ |
33 | ␉NSImage*␉␉␉␉␉mMacOSXImage;␊ |
34 | ␉NSImage*␉␉␉␉␉mWindowsImage;␊ |
35 | ␉NSImage*␉␉␉␉␉mLinuxImage;␊ |
36 | ␉NSImage*␉␉␉␉␉mUnknownImage;␊ |
37 | ␉NSImage*␉␉␉␉␉mCDROMImage;␊ |
38 | ␉NSMutableDictionary*␉␉mOptionsDict;␊ |
39 | ␉NSMutableDictionary*␉␉mPartitionsDict;␊ |
40 | ␉NSString*␉␉␉␉␉mOptionsPlistPath;␊ |
41 | ␉int␉␉␉␉␉␉␉mPreferenceFileVersion; ␊ |
42 | }␊ |
43 | ␊ |
44 | + (ChameleonPrefPane*) instance; // return the current instance␊ |
45 | ␊ |
46 | - (IBAction)onRestart: (id)sender;␊ |
47 | - (IBAction)onShutdown: (id)sender;␊ |
48 | - (IBAction)onSleep: (id)sender;␊ |
49 | - (IBAction)onSwapHD: (id)sender;␊ |
50 | - (IBAction)onUseFrozenParts: (id)sender;␊ |
51 | - (IBAction)onInjectPartsToFreeze: (id)sender;␊ |
52 | ␊ |
53 | - (NSMutableDictionary*) getPreferencesFile;␊ |
54 | ␊ |
55 | - (void)awakeFromNib;␊ |
56 | - (void)initBootConfig;␊ |
57 | - (id) getImageResource: (NSString *) str ofType: (NSString*) sType;␊ |
58 | - (void) loadPreferences;␊ |
59 | - (bool) savePreferences: (NSDictionary*) dict;␊ |
60 | ␊ |
61 | - (void)tableViewSelectionDidChange:(NSNotification *)notification;␊ |
62 | - (void) selectDefaultPartition;␊ |
63 | ␊ |
64 | - (bool)isUnlocked;␊ |
65 | - (void) refreshLockStates;␊ |
66 | - (void) doSwapHD: (int) val save: (bool) doSave src: (int)isrc dst: (int) idst;␊ |
67 | - (void)tableViewSelectionDidChange:(NSNotification *)notification;␊ |
68 | ␊ |
69 | - (void) swapDisks: (bool) bSwap src: (int) iSrc dst: (int) iDst;␊ |
70 | ␊ |
71 | @end␊ |
72 | |