1 | //␊ |
2 | // BootFlagsController.mm␊ |
3 | // ChameleonPrefPane␊ |
4 | //␊ |
5 | // Created by Rekursor on 1/22/10.␊ |
6 | //␊ |
7 | ␊ |
8 | #import "BootFlagsController.h"␊ |
9 | ␊ |
10 | // Constants␊ |
11 | ␊ |
12 | // File static variables␊ |
13 | static BootFlagsController *gInstance = NULL;␊ |
14 | ␊ |
15 | ␊ |
16 | @implementation BootFlagsController␊ |
17 | ␊ |
18 | - (id) init␊ |
19 | {␊ |
20 | ␉self = [super init];␊ |
21 | ␉return (gInstance = self);␊ |
22 | }␉␊ |
23 | ␊ |
24 | -(void) addOptionsDesc␊ |
25 | {␊ |
26 | ␉prop->addOptionDesc(mVerbose, nil, OptionUnix, "-v", "");␊ |
27 | ␉prop->addOptionDesc(mSafeBoot, nil, OptionUnix, "-x", "");␊ |
28 | ␉prop->addOptionDesc(mIgnoreBootConfig, nil, OptionUnix, "-F", "");␊ |
29 | ␉prop->addOptionDesc(mSingleUser, nil, OptionUnix, "-s", "");␊ |
30 | ␉prop->addOptionDesc(mTimeOut, mTimeOutText, OptionString,"Timeout", "5");␊ |
31 | ␉prop->addOptionDesc(mQuietBoot, nil, OptionYesNo, "Quiet Boot", "No");␊ |
32 | ␉prop->addOptionDesc(mInstantMenu, nil, OptionYesNo, "Instant Menu", "No");␊ |
33 | ␉prop->addOptionDesc(mWait, nil, OptionYesNo, "Wait", "No");␊ |
34 | ␉prop->addOptionDesc(mRescan, nil, OptionYesNo, "Rescan", "No");␊ |
35 | ␉prop->addOptionDesc(mRescanPrompt, nil, OptionYesNo, "Rescan Prompt", "No");␊ |
36 | ␉prop->addOptionDesc(mRescanSingleDrive, nil, OptionYesNo, "Rescan SingleDrive", "No");␊ |
37 | }␊ |
38 | ␊ |
39 | - (void) refreshLockStates␊ |
40 | {␊ |
41 | [self refreshLockState: mVerbose];␊ |
42 | [self refreshLockState: mSafeBoot];␊ |
43 | [self refreshLockState: mIgnoreBootConfig];␊ |
44 | [self refreshLockState: mTimeOut];␊ |
45 | [self refreshLockState: mTimeOutText];␊ |
46 | [self refreshLockState: mSingleUser];␊ |
47 | [self refreshLockState: mQuietBoot];␊ |
48 | [self refreshLockState: mInstantMenu];␊ |
49 | [self refreshLockState: mWait];␊ |
50 | [self refreshLockState: mRescan];␊ |
51 | [self refreshLockState: mRescanPrompt];␊ |
52 | [self refreshLockState: mRescanSingleDrive];␊ |
53 | }␊ |
54 | ␊ |
55 | -(void) loadOptionsFromPreferencesFile: (NSMutableDictionary*) dict␊ |
56 | {␊ |
57 | ␉␊ |
58 | }␊ |
59 | ␊ |
60 | -(IBAction) onCheckButtonChange: (NSButton*) sender␊ |
61 | {␊ |
62 | ␉␊ |
63 | }␊ |
64 | ␊ |
65 | -(IBAction) onTextFiedChange: (NSTextField*) sender␊ |
66 | {␊ |
67 | ␉␊ |
68 | }␊ |
69 | ␊ |
70 | + (BootFlagsController *)instance { return(gInstance);}␊ |
71 | ␊ |
72 | @end␊ |
73 | |