Chameleon Applications

Chameleon Applications Svn Source Tree

Root/trunk/ChameleonPrefPane/Sources/PeripheralsController.mm

1//
2// PeripheralsController.mm
3// ChameleonPrefPane
4//
5// Created by Rekursor on 1/22/10.
6//
7
8#import "PeripheralsController.h"
9
10static PeripheralsController *gInstance = NULL;
11
12@implementation PeripheralsController
13
14//--------------------------------------------------------------------------
15- (id) init
16{
17self = [super init];
18return (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(mAtiVideoROM, nil, OptionYesNo, "UseAtiVideoROM", "No");
28 BootProp::instance().addOptionDesc(mNvidiaVideoROM, nil, OptionYesNo, "UseAtiVideoROM", "No");
29 BootProp::instance().addOptionDesc(mGraphicsMode, mGraphicsModeText, OptionString, "Graphics Mode", "");
30 BootProp::instance().addOptionDesc(mGraphicsEnabler, nil, OptionYesNo, "GraphicsEnabler", "No");
31 BootProp::instance().addOptionDesc(mUSBBusFix, nil, OptionYesNo, "USBBusFix", "No");
32 BootProp::instance().addOptionDesc(mEHCIacquire, nil, OptionYesNo, "EHCIacquire", "No");
33 BootProp::instance().addOptionDesc(mUHCIreset, nil,OptionYesNo, "UHCIreset", "No");
34 BootProp::instance().addOptionDesc(mEthernetBuiltIn, nil, OptionYesNo, "EthernetBuiltIn", "No");
35 BootProp::instance().addOptionDesc(mPciRoot, mPciRootText, OptionString, "PciRoot", "");
36 BootProp::instance().addOptionDesc(mForceHPET, nil, OptionYesNo, "ForceHPET", "No");
37
38}
39
40//--------------------------------------------------------------------------
41-(void) setDefaultsValues: (NSMutableDictionary*) dict
42{
43}
44
45//--------------------------------------------------------------------------
46- (void) refreshLockStates
47{
48// automatic, nothing to do
49}
50
51//--------------------------------------------------------------------------
52-(void) loadOptionsFromPreferencesFile: (NSMutableDictionary*) dict
53{
54
55}
56//--------------------------------------------------------------------------
57-(IBAction) onCheckButtonChange: (NSButton*) sender
58{
59[self handleSender: sender];
60}
61
62//--------------------------------------------------------------------------
63-(IBAction) onTextFiedChange: (NSTextField*) sender
64{
65[self handleSender: sender];
66}
67
68+ (PeripheralsController *)instance { return(gInstance);}
69
70@end
71

Archive Download this file

Revision: 93