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", "Yes");
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// automatic, nothing to do
40}
41
42//--------------------------------------------------------------------------
43-(void) loadOptionsFromPreferencesFile: (NSMutableDictionary*) dict
44{
45
46}
47//--------------------------------------------------------------------------
48-(IBAction) onCheckButtonChange: (NSButton*) sender
49{
50[self handleSender: sender];
51}
52
53//--------------------------------------------------------------------------
54-(IBAction) onTextFiedChange: (NSTextField*) sender
55{
56[self handleSender: sender];
57}
58
59+ (PeripheralsController *)instance { return(gInstance);}
60
61@end
62

Archive Download this file

Revision: 50