Chameleon Applications

Chameleon Applications Svn Source Tree

Root/trunk/ChameleonPrefPane/Sources/ChameleonPrefPane.h

1//
2// ChameleonPrefPane.h
3// ChameleonPrefPane
4//
5// Created by Rekursor on 1/16/10.
6//
7
8#import <PreferencePanes/PreferencePanes.h>
9#import <SecurityFoundation/SFAuthorization.h>
10#import <SecurityInterface/SFAuthorizationView.h>
11
12
13@interface ChameleonPrefPane : NSPreferencePane
14{
15@private
16// Objects corresponding to the interface mapping:
17IBOutlet NSTableView *mPartitionsTable;
18IBOutlet NSTableColumn *mPartitionImgColumn;
19IBOutlet NSTableColumn *mFileSystemColumn;
20IBOutlet NSTableColumn *mPartitionNameColumn;
21IBOutlet NSTableColumn *mPartitionIDColumn;
22IBOutlet NSButton *mSleepButton;
23IBOutlet NSButton *mShutDownButton;
24IBOutlet NSButton *mRestartButton;
25IBOutlet NSButton *mSwapHD01;
26IBOutlet NSButton *mSwapHD02;
27IBOutlet NSButton *mFreezeParts;
28IBOutlet NSButton *mInjectFrozenParts;
29IBOutlet NSTextField*mStatusText;
30IBOutlet NSBox*mOptions;
31 IBOutlet SFAuthorizationView *authView;
32
33NSImage*mMacOSXImage;
34NSImage*mWindowsImage;
35NSImage*mLinuxImage;
36NSImage*mUnknownImage;
37NSImage*mCDROMImage;
38NSMutableDictionary*mOptionsDict;
39NSMutableDictionary*mPartitionsDict;
40NSString*mOptionsPlistPath;
41intmPreferenceFileVersion;
42}
43
44+ (ChameleonPrefPane*) instance; // return the current instance
45
46- (IBAction)onRestart: (id)sender;
47- (IBAction)onShutdown: (id)sender;
48- (IBAction)onSleep: (id)sender;
49- (IBAction)onSwapHD: (id)sender;
50- (IBAction)onUseFrozenParts: (id)sender;
51- (IBAction)onInjectPartsToFreeze: (id)sender;
52
53- (NSMutableDictionary*) getPreferencesFile;
54
55- (void)awakeFromNib;
56- (void)initBootConfig;
57- (id) getImageResource: (NSString *) str ofType: (NSString*) sType;
58- (void) loadPreferences;
59- (bool) savePreferences: (NSDictionary*) dict;
60
61- (void)tableViewSelectionDidChange:(NSNotification *)notification;
62- (void) selectDefaultPartition;
63
64- (bool)isUnlocked;
65- (void) refreshLockStates;
66- (void) doSwapHD: (int) val save: (bool) doSave src: (int)isrc dst: (int) idst;
67- (void)tableViewSelectionDidChange:(NSNotification *)notification;
68
69- (void) swapDisks: (bool) bSwap src: (int) iSrc dst: (int) iDst;
70
71@end
72

Archive Download this file

Revision: 43