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@interface ChameleonPrefPane : NSPreferencePane
13{
14@public
15// Objects corresponding to the interface mapping:
16IBOutlet NSTableView *mPartitionsTable;
17IBOutlet NSTableColumn *mPartitionImgColumn;
18IBOutlet NSTableColumn *mFileSystemColumn;
19IBOutlet NSTableColumn *mPartitionNameColumn;
20IBOutlet NSTableColumn *mPartitionIDColumn;
21IBOutlet NSButton *mSleepButton;
22IBOutlet NSButton *mShutDownButton;
23IBOutlet NSButton *mRestartButton;
24IBOutlet NSButton *mSwapHD01;
25IBOutlet NSButton *mSwapHD02;
26IBOutlet NSButton *mFreezeParts;
27IBOutlet NSButton *mInjectFrozenParts;
28IBOutlet NSTextField*mStatusText;
29IBOutlet NSBox*mOptions;
30 IBOutlet SFAuthorizationView *authView;
31
32NSImage*mMacOSXImage;
33NSImage*mWindowsImage;
34NSImage*mLinuxImage;
35NSImage*mUnknownImage;
36NSImage*mCDROMImage;
37NSMutableDictionary*mOptionsDict;
38NSString*mOptionsPlistPath;
39intmPreferenceFileVersion;
40}
41
42
43- (void)awakeFromNib;
44- (void)initBootConfig;
45- (id) getImageResource: (NSString *) str ofType: (NSString*) sType;
46- (void) loadPreferences;
47-(bool) savePreferences: (NSDictionary*) dict;
48
49//- (void) mainViewDidLoad;
50- (void)tableViewSelectionDidChange:(NSNotification *)notification;
51- (void) selectDefaultPartition;
52
53- (IBAction)onRestart: (id)sender;
54- (IBAction)onShutdown: (id)sender;
55- (IBAction)onSleep: (id)sender;
56- (IBAction)onSwapHD: (id)sender;
57- (IBAction)onUseFrozenParts: (id)sender;
58- (IBAction)onInjectPartsToFreeze: (id)sender;
59
60- (bool)isUnlocked;
61- (void) refreshLockStates;
62- (void) doSwapHD: (int) val save: (bool) doSave src: (int)isrc dst: (int) idst;
63- (void)tableViewSelectionDidChange:(NSNotification *)notification;
64
65- (void) swapDisks: (bool) bSwap src: (int) iSrc dst: (int) iDst;
66
67@end
68

Archive Download this file

Revision: 18