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 NSTextField*mStatusText;
27IBOutlet NSBox*mOptions;
28
29 IBOutlet SFAuthorizationView *authView;
30 IBOutlet NSButton *touchButton;
31
32NSImage *mMacOSXImage;
33NSImage *mWindowsImage;
34NSImage *mLinuxImage;
35NSImage *mUnknownImage;
36NSImage *mCDROMImage;
37NSMutableDictionary *mOptionsDict;
38NSString * mOptionsPlistPath;
39}
40
41
42- (void)awakeFromNib;
43- (void)initBootConfig;
44- (id) getImageResource: (NSString *) str ofType: (NSString*) sType;
45
46//- (void) mainViewDidLoad;
47- (void)tableViewSelectionDidChange:(NSNotification *)notification;
48- (void) selectDefaultPartition;
49
50- (IBAction)onRestart: (id)sender;
51- (IBAction)onShutdown: (id)sender;
52- (IBAction)onSleep: (id)sender;
53- (IBAction)onSwapHD: (id)sender;
54
55- (BOOL)isUnlocked;
56- (void) refreshLockStates;
57- (void) doSwapHD: (int) val save: (bool) doSave src: (int)isrc dst: (int) idst;
58- (void)tableViewSelectionDidChange:(NSNotification *)notification;
59
60- (void) swapDisks: (bool) bSwap src: (int) iSrc dst: (int) iDst;
61
62@end
63

Archive Download this file

Revision: 14