1 | //␊ |
2 | // AdvancedSetupController.mm␊ |
3 | // ChameleonPrefPane␊ |
4 | //␊ |
5 | // Created by Rekursor on 1/22/10.␊ |
6 | //␊ |
7 | ␊ |
8 | #import "AdvancedSetupController.h"␊ |
9 | ␊ |
10 | static AdvancedSetupController *gInstance = NULL;␊ |
11 | ␊ |
12 | @implementation AdvancedSetupController␊ |
13 | ␊ |
14 | - (id) init␊ |
15 | {␊ |
16 | ␉self = [super init];␊ |
17 | ␉return (gInstance = self);␊ |
18 | }␉␊ |
19 | ␊ |
20 | //--------------------------------------------------------------------------␊ |
21 | - (void) addOptionsDesc␊ |
22 | {␊ |
23 | prop->addOptionDesc(mKernel, mKernelText, OptionKernel1, "", "mach_kernel"); // empty field for 1 field only "i.e: mach_kernel" syntax ␊ |
24 | prop->addOptionDesc(mDeviceRd, mDeviceRdText, OptionKernel, "rd", "disk0s1");␊ |
25 | prop->addOptionDesc(mArch, mArchText, OptionKernel, "arch", "X86_64");␊ |
26 | prop->addOptionDesc(mCPU, mCPUText, OptionKernel, "cpus", "4");␊ |
27 | prop->addOptionDesc(mBusRatio, mBusRatioText, OptionKernel, "busratio", "20");␊ |
28 | prop->addOptionDesc(mDebug, mDebugText, OptionString, "debug", "0x144");␊ |
29 | prop->addOptionDesc(mIO, mIOText, OptionString, "io", "0xffffffff");␊ |
30 | prop->addOptionDesc(mDisableKextsBlacklisting, nil, OptionString, "blacklist", "1");␊ |
31 | prop->addOptionDesc(mDSDTFile, mDSDTFileText, OptionString, "DSDT", "");␊ |
32 | prop->addOptionDesc(mDSDTDrop, nil, OptionYesNo, "DropSSDT", "No");␊ |
33 | prop->addOptionDesc(mSMBIOSFile,mSMBIOSFileText, OptionString, "SMBIOS", "");␊ |
34 | prop->addOptionDesc(mSMBIOSDefaults, nil, OptionYesNo, "SMBIOSdefaults", "No");␊ |
35 | prop->addOptionDesc(mWake, nil, OptionYesNo, "Wake", "No");␊ |
36 | prop->addOptionDesc(mForceWake, nil, OptionYesNo, "ForceWake", "No");␊ |
37 | prop->addOptionDesc(mWakeImage, mWakeImageText, OptionString, "WakeImage", "");␊ |
38 | }␊ |
39 | ␊ |
40 | - (void) refreshLockStates␊ |
41 | {␊ |
42 | [self refreshLockState: mKernel ];␊ |
43 | [self refreshLockState: mKernelText ];␊ |
44 | [self refreshLockState: mDeviceRd ];␊ |
45 | [self refreshLockState: mDeviceRdText ];␊ |
46 | [self refreshLockState: mArch ];␊ |
47 | [self refreshLockState: mArchText ];␊ |
48 | [self refreshLockState: mCPU ];␊ |
49 | [self refreshLockState: mCPUText ];␊ |
50 | [self refreshLockState: mBusRatio ];␊ |
51 | [self refreshLockState: mBusRatioText ];␊ |
52 | [self refreshLockState: mDebug ];␊ |
53 | [self refreshLockState: mDebugText ];␊ |
54 | [self refreshLockState: mIO ];␊ |
55 | [self refreshLockState: mIOText ];␊ |
56 | [self refreshLockState: mDisableKextsBlacklisting ];␊ |
57 | [self refreshLockState: mDSDTFile ];␊ |
58 | [self refreshLockState: mDSDTFileText ];␊ |
59 | [self refreshLockState: mDSDTDrop ];␊ |
60 | [self refreshLockState: mSMBIOSFile ];␊ |
61 | [self refreshLockState: mSMBIOSFileText ];␊ |
62 | [self refreshLockState: mSMBIOSDefaults ];␊ |
63 | [self refreshLockState: mWake ];␊ |
64 | [self refreshLockState: mForceWake ];␊ |
65 | [self refreshLockState: mWakeImage ];␊ |
66 | [self refreshLockState: mWakeImageText ];␊ |
67 | }␊ |
68 | ␊ |
69 | -(void) loadOptionsFromPreferencesFile: (NSMutableDictionary*) dict␊ |
70 | {␊ |
71 | ␉␊ |
72 | }␊ |
73 | ␊ |
74 | -(IBAction) onCheckButtonChange: (NSButton*) sender␊ |
75 | {␊ |
76 | ␉␊ |
77 | }␊ |
78 | ␊ |
79 | -(IBAction) onTextFiedChange: (NSTextField*) sender␊ |
80 | {␊ |
81 | ␉␊ |
82 | }␊ |
83 | ␊ |
84 | + (AdvancedSetupController *)instance { return(gInstance);}␊ |
85 | ␊ |
86 | @end␊ |
87 | |