Chameleon Applications

Chameleon Applications Svn Source Tree

Root/trunk/ChameleonPrefPane/Sources/BootFlagsController.mm

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
13static BootFlagsController *gInstance = NULL;
14
15
16@implementation BootFlagsController
17
18- (id) init
19{
20self = [super init];
21return (gInstance = self);
22}
23
24-(void) addOptionsDesc
25{
26prop->addOptionDesc(mVerbose, nil, OptionUnix, "-v", "");
27prop->addOptionDesc(mSafeBoot, nil, OptionUnix, "-x", "");
28prop->addOptionDesc(mIgnoreBootConfig, nil, OptionUnix, "-F", "");
29prop->addOptionDesc(mSingleUser, nil, OptionUnix, "-s", "");
30prop->addOptionDesc(mTimeOut, mTimeOutText, OptionString,"Timeout", "5");
31prop->addOptionDesc(mQuietBoot, nil, OptionYesNo, "Quiet Boot", "No");
32prop->addOptionDesc(mInstantMenu, nil, OptionYesNo, "Instant Menu", "No");
33prop->addOptionDesc(mWait, nil, OptionYesNo, "Wait", "No");
34prop->addOptionDesc(mRescan, nil, OptionYesNo, "Rescan", "No");
35prop->addOptionDesc(mRescanPrompt, nil, OptionYesNo, "Rescan Prompt", "No");
36prop->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

Archive Download this file

Revision: 47