Chameleon Applications

Chameleon Applications Svn Source Tree

Root/trunk/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}
37
38//--------------------------------------------------------------------------
39-(void) loadOptionsFromPreferencesFile: (NSMutableDictionary*) dict
40{
41
42}
43
44//--------------------------------------------------------------------------
45-(IBAction) onCheckButtonChange: (NSButton*) sender
46{
47if(sender == mCurrentGfxInjection)
48{ // using nohan script from Lizard here:
49NSString* pathTask = [self getResourcePath:@"getDevProp" ofType:@"sh"];
50[self executeTaskAndWaitForTermination: pathTask];
51}
52else
53[self handleSender: sender];
54}
55
56//--------------------------------------------------------------------------
57-(IBAction) onTextFiedChange: (NSTextField*) sender
58{
59[self handleSender: sender];
60}
61
62+ (EfiInjectController *)instance { return(gInstance);}
63
64@end
65

Archive Download this file

Revision: 67