Chameleon Applications

Chameleon Applications Svn Source Tree

Root/branches/ErmaC/ChameleonPrefPane/Sources/EfiInjectController.mm

1//
2// EfiInject.mm
3// ChameleonPrefPane
4//
5// Created by Rekursor on 1/26/10.
6//
7
8#import "EfiInjectController.h"
9
10
11static EfiInjectController *gInstance = NULL;
12
13@implementation EfiInjectController
14//--------------------------------------------------------------------------
15- (id) init
16{
17self = [super init];
18return (gInstance = self);
19}
20
21//--------------------------------------------------------------------------
22- (void) addOptionsDesc
23{
24 BootProp::instance().addOptionDesc(mEfiInject, mEfiInjectText, OptionString, "device-properties", "");
25}
26
27//--------------------------------------------------------------------------
28-(void) setDefaultsValues: (NSMutableDictionary*) dict
29{
30}
31
32//--------------------------------------------------------------------------
33- (void) refreshLockStates
34{
35// automatic, nothing to do
36 [PreferencesControllerBase refreshLockState: mCurrentGfxInjection ];
37}
38
39//--------------------------------------------------------------------------
40-(void) loadOptionsFromPreferencesFile: (NSMutableDictionary*) dict
41{
42
43}
44
45//--------------------------------------------------------------------------
46-(IBAction) onCheckButtonChange: (NSButton*) sender
47{
48if(sender == mCurrentGfxInjection)
49{ // using nohan script from Lizard here:
50NSString* pathTask = [self getResourcePath:@"getDevProp" ofType:@"sh"];
51[self executeTaskAndWaitForTermination: pathTask];
52}
53else
54[self handleSender: sender];
55}
56
57//--------------------------------------------------------------------------
58-(IBAction) onTextFiedChange: (NSTextField*) sender
59{
60[self handleSender: sender];
61}
62
63+ (EfiInjectController *)instance { return(gInstance);}
64
65@end
66

Archive Download this file

Revision: 396