108 lines
2.9 KiB
C
108 lines
2.9 KiB
C
|
/* $XFree86: xc/programs/Xserver/hw/darwin/quartz/Preferences.h,v 1.2 2003/01/15 02:34:05 torrey Exp $ */
|
||
|
|
||
|
#import <Cocoa/Cocoa.h>
|
||
|
|
||
|
@interface Preferences : NSObject
|
||
|
{
|
||
|
IBOutlet NSPanel *window;
|
||
|
IBOutlet id displayField;
|
||
|
IBOutlet id dockSwitchButton;
|
||
|
IBOutlet id fakeButton;
|
||
|
IBOutlet id button2ModifiersMatrix;
|
||
|
IBOutlet id button3ModifiersMatrix;
|
||
|
IBOutlet id switchKeyButton;
|
||
|
IBOutlet id keymapFileField;
|
||
|
IBOutlet id modeMatrix;
|
||
|
IBOutlet id modeWindowButton;
|
||
|
IBOutlet id startupHelpButton;
|
||
|
IBOutlet id systemBeepButton;
|
||
|
IBOutlet id mouseAccelChangeButton;
|
||
|
IBOutlet id useXineramaButton;
|
||
|
IBOutlet id addToPathButton;
|
||
|
IBOutlet id addToPathField;
|
||
|
IBOutlet id useDefaultShellMatrix;
|
||
|
IBOutlet id useOtherShellField;
|
||
|
IBOutlet id depthButton;
|
||
|
|
||
|
BOOL isGettingKeyCode;
|
||
|
int keyCode;
|
||
|
int modifiers;
|
||
|
NSMutableString *switchString;
|
||
|
}
|
||
|
|
||
|
- (IBAction)close:(id)sender;
|
||
|
- (IBAction)pickFile:(id)sender;
|
||
|
- (IBAction)saveChanges:(id)sender;
|
||
|
- (IBAction)setKey:(id)sender;
|
||
|
|
||
|
- (BOOL)sendEvent:(NSEvent*)anEvent;
|
||
|
|
||
|
- (void)awakeFromNib;
|
||
|
- (void)windowWillClose:(NSNotification *)aNotification;
|
||
|
|
||
|
+ (void)setUseKeymapFile:(BOOL)newUseKeymapFile;
|
||
|
+ (void)setKeymapFile:(NSString*)newFile;
|
||
|
+ (void)setSwitchString:(NSString*)newString;
|
||
|
+ (void)setKeyCode:(int)newKeyCode;
|
||
|
+ (void)setModifiers:(int)newModifiers;
|
||
|
+ (void)setDisplay:(int)newDisplay;
|
||
|
+ (void)setDockSwitch:(BOOL)newDockSwitch;
|
||
|
+ (void)setFakeButtons:(BOOL)newFakeButtons;
|
||
|
+ (void)setButton2Mask:(int)newFakeMask;
|
||
|
+ (void)setButton3Mask:(int)newFakeMask;
|
||
|
+ (void)setMouseAccelChange:(BOOL)newMouseAccelChange;
|
||
|
+ (void)setUseQDCursor:(int)newUseQDCursor;
|
||
|
+ (void)setRootless:(BOOL)newRootless;
|
||
|
+ (void)setUseAGL:(BOOL)newUseAGL;
|
||
|
+ (void)setModeWindow:(BOOL)newModeWindow;
|
||
|
+ (void)setStartupHelp:(BOOL)newStartupHelp;
|
||
|
+ (void)setSystemBeep:(BOOL)newSystemBeep;
|
||
|
+ (void)setXinerama:(BOOL)newXinerama;
|
||
|
+ (void)setAddToPath:(BOOL)newAddToPath;
|
||
|
+ (void)setAddToPathString:(NSString*)newAddToPathString;
|
||
|
+ (void)setUseDefaultShell:(BOOL)newUseDefaultShell;
|
||
|
+ (void)setShellString:(NSString*)newShellString;
|
||
|
+ (void)setDepth:(int)newDepth;
|
||
|
+ (void)saveToDisk;
|
||
|
|
||
|
+ (BOOL)useKeymapFile;
|
||
|
+ (NSString*)keymapFile;
|
||
|
+ (NSString*)switchString;
|
||
|
+ (unsigned int)keyCode;
|
||
|
+ (unsigned int)modifiers;
|
||
|
+ (int)display;
|
||
|
+ (BOOL)dockSwitch;
|
||
|
+ (BOOL)fakeButtons;
|
||
|
+ (int)button2Mask;
|
||
|
+ (int)button3Mask;
|
||
|
+ (BOOL)mouseAccelChange;
|
||
|
+ (int)useQDCursor;
|
||
|
+ (BOOL)rootless;
|
||
|
+ (BOOL)useAGL;
|
||
|
+ (BOOL)modeWindow;
|
||
|
+ (BOOL)startupHelp;
|
||
|
+ (BOOL)systemBeep;
|
||
|
+ (BOOL)xinerama;
|
||
|
+ (BOOL)addToPath;
|
||
|
+ (NSString*)addToPathString;
|
||
|
+ (BOOL)useDefaultShell;
|
||
|
+ (NSString*)shellString;
|
||
|
+ (int)depth;
|
||
|
|
||
|
@end
|
||
|
|
||
|
// Possible settings for useQDCursor
|
||
|
enum {
|
||
|
qdCursor_Never, // never use QuickDraw cursor
|
||
|
qdCursor_Not8Bit, // don't try to use QuickDraw with 8-bit depth
|
||
|
qdCursor_Always // always try to use QuickDraw cursor
|
||
|
};
|
||
|
|
||
|
// Possible settings for depth
|
||
|
enum {
|
||
|
depth_Current,
|
||
|
depth_8Bit,
|
||
|
depth_15Bit,
|
||
|
depth_24Bit
|
||
|
};
|