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 prop->addOptionDesc(mLegacyLogo, nil, OptionYesNo, "Legacy Logo", "No");
25 prop->addOptionDesc(mBootBanner, nil, OptionYesNo, "Boot Banner", "No");
26 prop->addOptionDesc(mVBIOS, nil, OptionYesNo, "VBIOS", "No");
27 prop->addOptionDesc(mVideoROM, mVideoROMText, OptionString, "VideoROM", "");
28 prop->addOptionDesc(mGraphicsMode, mGraphicsModeText, OptionString, "Graphics Mode", "");
29 prop->addOptionDesc(mGraphicsEnabler, nil, OptionYesNo, "GraphicsEnabler", "No");
30 prop->addOptionDesc(mUSBBusFix, nil, OptionYesNo, "USBBusFix", "No");
31 prop->addOptionDesc(mEHCIacquire, nil, OptionYesNo, "EHCIacquire", "No");
32 prop->addOptionDesc(mUHCIreset, nil,OptionYesNo, "UHCIreset", "No");
33 prop->addOptionDesc(mEthernetBuiltIn, nil, OptionYesNo, "EthernetBuiltIn", "No");
34}
35
36//--------------------------------------------------------------------------
37- (void) refreshLockStates
38{
39 [self refreshLockState: mLegacyLogo ];
40 [self refreshLockState: mBootBanner ];
41 [self refreshLockState: mVBIOS ];
42 [self refreshLockState: mVideoROM ];
43 [self refreshLockState: mVideoROMText ];
44 [self refreshLockState: mGraphicsMode ];
45 [self refreshLockState: mGraphicsModeText ];
46 [self refreshLockState: mGraphicsEnabler ];
47 [self refreshLockState: mUSBBusFix ];
48 [self refreshLockState: mEHCIacquire ];
49 [self refreshLockState: mUHCIreset ];
50 [self refreshLockState: mEthernetBuiltIn ];
51}
52
53//--------------------------------------------------------------------------
54-(void) loadOptionsFromPreferencesFile: (NSMutableDictionary*) dict
55{
56
57}
58
59//--------------------------------------------------------------------------
60-(IBAction) onCheckButtonChange: (NSButton*) sender
61{
62[self handleSender: sender];
63}
64
65//--------------------------------------------------------------------------
66-(IBAction) onTextFiedChange: (NSTextField*) sender
67{
68[self handleSender: sender];
69}
70
71+ (PeripheralsController *)instance { return(gInstance);}
72
73@end
74

Archive Download this file

Revision: 48