1 | //␊ |
2 | // PeripheralsController.mm␊ |
3 | // ChameleonPrefPane␊ |
4 | //␊ |
5 | // Created by Rekursor on 1/22/10.␊ |
6 | //␊ |
7 | ␊ |
8 | #import "PeripheralsController.h"␊ |
9 | ␊ |
10 | static PeripheralsController *gInstance = NULL;␊ |
11 | ␊ |
12 | @implementation PeripheralsController␊ |
13 | ␊ |
14 | //--------------------------------------------------------------------------␊ |
15 | - (id) init␊ |
16 | {␊ |
17 | ␉self = [super init];␊ |
18 | ␉return (gInstance = self);␊ |
19 | }␉␊ |
20 | ␊ |
21 | //--------------------------------------------------------------------------␊ |
22 | - (void) addOptionsDesc␊ |
23 | {␊ |
24 | BootProp::instance().addOptionDesc(mLegacyLogo, nil, OptionYesNo, "Legacy Logo", "No");␊ |
25 | BootProp::instance().addOptionDesc(mBootBanner, nil, OptionYesNo, "Boot Banner", "Yes");␊ |
26 | BootProp::instance().addOptionDesc(mVBIOS, nil, OptionYesNo, "VBIOS", "No");␊ |
27 | BootProp::instance().addOptionDesc(mVideoROM, mVideoROMText, OptionString, "VideoROM", "");␊ |
28 | BootProp::instance().addOptionDesc(mGraphicsMode, mGraphicsModeText, OptionString, "Graphics Mode", "");␊ |
29 | BootProp::instance().addOptionDesc(mGraphicsEnabler, nil, OptionYesNo, "GraphicsEnabler", "No");␊ |
30 | BootProp::instance().addOptionDesc(mUSBBusFix, nil, OptionYesNo, "USBBusFix", "No");␊ |
31 | BootProp::instance().addOptionDesc(mEHCIacquire, nil, OptionYesNo, "EHCIacquire", "No");␊ |
32 | BootProp::instance().addOptionDesc(mUHCIreset, nil,OptionYesNo, "UHCIreset", "No");␊ |
33 | BootProp::instance().addOptionDesc(mEthernetBuiltIn, nil, OptionYesNo, "EthernetBuiltIn", "No");␊ |
34 | }␊ |
35 | ␊ |
36 | //--------------------------------------------------------------------------␊ |
37 | -(void) setDefaultsValues: (NSMutableDictionary*) dict␊ |
38 | {␊ |
39 | }␊ |
40 | ␊ |
41 | //--------------------------------------------------------------------------␊ |
42 | - (void) refreshLockStates␊ |
43 | {␊ |
44 | ␉// automatic, nothing to do␊ |
45 | }␊ |
46 | ␊ |
47 | //--------------------------------------------------------------------------␊ |
48 | -(void) loadOptionsFromPreferencesFile: (NSMutableDictionary*) dict␊ |
49 | {␊ |
50 | ␉␊ |
51 | }␊ |
52 | //--------------------------------------------------------------------------␊ |
53 | -(IBAction) onCheckButtonChange: (NSButton*) sender␊ |
54 | {␊ |
55 | ␉[self handleSender: sender];␊ |
56 | }␊ |
57 | ␊ |
58 | //--------------------------------------------------------------------------␊ |
59 | -(IBAction) onTextFiedChange: (NSTextField*) sender␊ |
60 | {␊ |
61 | ␉[self handleSender: sender];␊ |
62 | }␊ |
63 | ␊ |
64 | + (PeripheralsController *)instance { return(gInstance);}␊ |
65 | ␊ |
66 | @end␊ |
67 | |