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;
36NSMutableDictionary *mOptionsDict;
37NSString * mOptionsPlistPath;
38}
39
40
41- (void)awakeFromNib;
42- (void)initBootConfig;
43- (id) getImageResource: (NSString *) str ofType: (NSString*) sType;
44
45//- (void) mainViewDidLoad;
46- (void)tableViewSelectionDidChange:(NSNotification *)notification;
47- (void) selectDefaultPartition;
48
49- (IBAction)onRestart: (id)sender;
50- (IBAction)onShutdown: (id)sender;
51- (IBAction)onSleep: (id)sender;
52- (IBAction)onSwapHD: (id)sender;
53
54- (BOOL)isUnlocked;
55- (void) refreshLockStates;
56- (void) doSwapHD: (int) val save: (bool) doSave src: (int)isrc dst: (int) idst;
57- (void)tableViewSelectionDidChange:(NSNotification *)notification;
58
59- (void) swapDisks: (bool) bSwap src: (int) iSrc dst: (int) iDst;
60
61@end
62

Archive Download this file

Revision: 12