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

Archive Download this file

Revision: 19