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(mVideoROM, mVideoROMText, OptionFileString, "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 BootProp::instance().addOptionDesc(mPciRoot, mPciRootText, OptionString, "PciRoot", "");
35 BootProp::instance().addOptionDesc(mForceHPET, nil, OptionYesNo, "ForceHPET", "No");
36
37}
38
39//--------------------------------------------------------------------------
40-(void) setDefaultsValues: (NSMutableDictionary*) dict
41{
42}
43
44//--------------------------------------------------------------------------
45- (void) refreshLockStates
46{
47// automatic, nothing to do
48}
49
50//--------------------------------------------------------------------------
51-(void) loadOptionsFromPreferencesFile: (NSMutableDictionary*) dict
52{
53
54}
55//--------------------------------------------------------------------------
56-(IBAction) onCheckButtonChange: (NSButton*) sender
57{
58[self handleSender: sender];
59}
60
61//--------------------------------------------------------------------------
62-(IBAction) onTextFiedChange: (NSTextField*) sender
63{
64[self handleSender: sender];
65}
66
67+ (PeripheralsController *)instance { return(gInstance);}
68
69@end
70

Archive Download this file

Revision: 68