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//--------------------------------------------------------------------------
19- (id) init
20{
21self = [super init];
22return (gInstance = self);
23}
24
25//--------------------------------------------------------------------------
26-(void) addOptionsDesc
27{
28prop->addOptionDesc(mVerbose, nil, OptionUnix, "-v", "");
29prop->addOptionDesc(mSafeBoot, nil, OptionUnix, "-x", "");
30prop->addOptionDesc(mIgnoreBootConfig, nil, OptionUnix, "-F", "");
31prop->addOptionDesc(mSingleUser, nil, OptionUnix, "-s", "");
32prop->addOptionDesc(mTimeOut, mTimeOutText, OptionString,"Timeout", "5");
33prop->addOptionDesc(mQuietBoot, nil, OptionYesNo, "Quiet Boot", "No");
34prop->addOptionDesc(mInstantMenu, nil, OptionYesNo, "Instant Menu", "No");
35prop->addOptionDesc(mWait, nil, OptionYesNo, "Wait", "No");
36prop->addOptionDesc(mRescan, nil, OptionYesNo, "Rescan", "No");
37prop->addOptionDesc(mRescanPrompt, nil, OptionYesNo, "Rescan Prompt", "No");
38prop->addOptionDesc(mRescanSingleDrive, nil, OptionYesNo, "Rescan SingleDrive", "No");
39}
40
41//--------------------------------------------------------------------------
42- (void) refreshLockStates
43{
44// automatic, nothing to do
45}
46
47//--------------------------------------------------------------------------
48-(void) loadOptionsFromPreferencesFile: (NSMutableDictionary*) dict
49{
50
51}
52
53//--------------------------------------------------------------------------
54-(IBAction) onCheckButtonChange: (NSButton*) sender
55{
56[self handleSender: sender];
57}
58
59//--------------------------------------------------------------------------
60-(IBAction) onTextFiedChange: (NSTextField*) sender
61{
62[self handleSender: sender];
63}
64
65+ (BootFlagsController *)instance { return(gInstance);}
66
67@end
68

Archive Download this file

Revision: 50