Preferences.h revision b8e299dddd091ae24e0c08c45d91b8f937bd14d2
c869993e79c1eafbec61a56bf6cea848fe754c71xy/*
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Copyright (c) 2002-2003 Torrey T. Lyons. All Rights Reserved.
c869993e79c1eafbec61a56bf6cea848fe754c71xy *
c869993e79c1eafbec61a56bf6cea848fe754c71xy * Permission is hereby granted, free of charge, to any person obtaining a
c869993e79c1eafbec61a56bf6cea848fe754c71xy * copy of this software and associated documentation files (the
c869993e79c1eafbec61a56bf6cea848fe754c71xy * "Software"), to deal in the Software without restriction, including
c869993e79c1eafbec61a56bf6cea848fe754c71xy * without limitation the rights to use, copy, modify, merge, publish,
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng * distribute, sublicense, and/or sell copies of the Software, and to
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng * permit persons to whom the Software is furnished to do so, subject to
c869993e79c1eafbec61a56bf6cea848fe754c71xy * the following conditions:
c869993e79c1eafbec61a56bf6cea848fe754c71xy *
c869993e79c1eafbec61a56bf6cea848fe754c71xy * The above copyright notice and this permission notice shall be included
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng * in all copies or substantial portions of the Software.
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng *
c869993e79c1eafbec61a56bf6cea848fe754c71xy * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
c869993e79c1eafbec61a56bf6cea848fe754c71xy * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
c869993e79c1eafbec61a56bf6cea848fe754c71xy * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
c869993e79c1eafbec61a56bf6cea848fe754c71xy * IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
c869993e79c1eafbec61a56bf6cea848fe754c71xy * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
c869993e79c1eafbec61a56bf6cea848fe754c71xy * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
c869993e79c1eafbec61a56bf6cea848fe754c71xy * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
c869993e79c1eafbec61a56bf6cea848fe754c71xy *
69b2d733deffed6bf9baf89d901afd9c81b484edGuoqing Zhu * Except as contained in this notice, the name(s) of the above copyright
c869993e79c1eafbec61a56bf6cea848fe754c71xy * holders shall not be used in advertising or otherwise to promote the
c869993e79c1eafbec61a56bf6cea848fe754c71xy * sale, use or other dealings in this Software without prior written
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng * authorization.
69b2d733deffed6bf9baf89d901afd9c81b484edGuoqing Zhu */
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng/* $XFree86: xc/programs/Xserver/hw/darwin/quartz/Preferences.h,v 1.2 2003/01/15 02:34:05 torrey Exp $ */
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy#import <Cocoa/Cocoa.h>
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy@interface Preferences : NSObject
c869993e79c1eafbec61a56bf6cea848fe754c71xy{
c869993e79c1eafbec61a56bf6cea848fe754c71xy IBOutlet NSPanel *window;
c869993e79c1eafbec61a56bf6cea848fe754c71xy IBOutlet id displayField;
c869993e79c1eafbec61a56bf6cea848fe754c71xy IBOutlet id dockSwitchButton;
c869993e79c1eafbec61a56bf6cea848fe754c71xy IBOutlet id fakeButton;
c869993e79c1eafbec61a56bf6cea848fe754c71xy IBOutlet id button2ModifiersMatrix;
c869993e79c1eafbec61a56bf6cea848fe754c71xy IBOutlet id button3ModifiersMatrix;
c869993e79c1eafbec61a56bf6cea848fe754c71xy IBOutlet id switchKeyButton;
c869993e79c1eafbec61a56bf6cea848fe754c71xy IBOutlet id keymapFileField;
c869993e79c1eafbec61a56bf6cea848fe754c71xy IBOutlet id modeMatrix;
c869993e79c1eafbec61a56bf6cea848fe754c71xy IBOutlet id modeWindowButton;
c869993e79c1eafbec61a56bf6cea848fe754c71xy IBOutlet id startupHelpButton;
c869993e79c1eafbec61a56bf6cea848fe754c71xy IBOutlet id systemBeepButton;
c869993e79c1eafbec61a56bf6cea848fe754c71xy IBOutlet id mouseAccelChangeButton;
c869993e79c1eafbec61a56bf6cea848fe754c71xy IBOutlet id useXineramaButton;
c869993e79c1eafbec61a56bf6cea848fe754c71xy IBOutlet id addToPathButton;
c869993e79c1eafbec61a56bf6cea848fe754c71xy IBOutlet id addToPathField;
c869993e79c1eafbec61a56bf6cea848fe754c71xy IBOutlet id useDefaultShellMatrix;
c869993e79c1eafbec61a56bf6cea848fe754c71xy IBOutlet id useOtherShellField;
c869993e79c1eafbec61a56bf6cea848fe754c71xy IBOutlet id depthButton;
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy BOOL isGettingKeyCode;
c869993e79c1eafbec61a56bf6cea848fe754c71xy int keyCode;
c869993e79c1eafbec61a56bf6cea848fe754c71xy int modifiers;
c869993e79c1eafbec61a56bf6cea848fe754c71xy NSMutableString *switchString;
c869993e79c1eafbec61a56bf6cea848fe754c71xy}
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy- (IBAction)close:(id)sender;
c869993e79c1eafbec61a56bf6cea848fe754c71xy- (IBAction)pickFile:(id)sender;
c869993e79c1eafbec61a56bf6cea848fe754c71xy- (IBAction)saveChanges:(id)sender;
c869993e79c1eafbec61a56bf6cea848fe754c71xy- (IBAction)setKey:(id)sender;
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy- (BOOL)sendEvent:(NSEvent *)anEvent;
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy- (void)awakeFromNib;
c869993e79c1eafbec61a56bf6cea848fe754c71xy- (void)windowWillClose:(NSNotification *)aNotification;
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (void)setUseKeymapFile:(BOOL)newUseKeymapFile;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (void)setKeymapFile:(NSString *)newFile;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (void)setSwitchString:(NSString *)newString;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (void)setKeyCode:(int)newKeyCode;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (void)setModifiers:(int)newModifiers;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (void)setDisplay:(int)newDisplay;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (void)setDockSwitch:(BOOL)newDockSwitch;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (void)setFakeButtons:(BOOL)newFakeButtons;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (void)setButton2Mask:(int)newFakeMask;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (void)setButton3Mask:(int)newFakeMask;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (void)setMouseAccelChange:(BOOL)newMouseAccelChange;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (void)setUseQDCursor:(int)newUseQDCursor;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (void)setRootless:(BOOL)newRootless;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (void)setUseAGL:(BOOL)newUseAGL;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (void)setModeWindow:(BOOL)newModeWindow;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (void)setStartupHelp:(BOOL)newStartupHelp;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (void)setSystemBeep:(BOOL)newSystemBeep;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (void)setEnableKeyEquivalents:(BOOL)newKeyEquivs;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (void)setXinerama:(BOOL)newXinerama;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (void)setAddToPath:(BOOL)newAddToPath;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (void)setAddToPathString:(NSString *)newAddToPathString;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (void)setUseDefaultShell:(BOOL)newUseDefaultShell;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (void)setShellString:(NSString *)newShellString;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (void)setDepth:(int)newDepth;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (void)setDisplayModeBundles:(NSArray *)newBundles;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (void)saveToDisk;
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (BOOL)useKeymapFile;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (NSString *)keymapFile;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (NSString *)switchString;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (unsigned int)keyCode;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (unsigned int)modifiers;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (int)display;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (BOOL)dockSwitch;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (BOOL)fakeButtons;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (int)button2Mask;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (int)button3Mask;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (BOOL)mouseAccelChange;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (int)useQDCursor;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (BOOL)rootless;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (BOOL)useAGL;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (BOOL)modeWindow;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (BOOL)startupHelp;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (BOOL)systemBeep;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (BOOL)enableKeyEquivalents;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (BOOL)xinerama;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (BOOL)addToPath;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (NSString *)addToPathString;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (BOOL)useDefaultShell;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (NSString *)shellString;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (int)depth;
c869993e79c1eafbec61a56bf6cea848fe754c71xy+ (NSArray *)displayModeBundles;
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy@end
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy// Possible settings for useQDCursor
c869993e79c1eafbec61a56bf6cea848fe754c71xyenum {
c869993e79c1eafbec61a56bf6cea848fe754c71xy qdCursor_Never, // never use QuickDraw cursor
c869993e79c1eafbec61a56bf6cea848fe754c71xy qdCursor_Not8Bit, // don't try to use QuickDraw with 8-bit depth
c869993e79c1eafbec61a56bf6cea848fe754c71xy qdCursor_Always // always try to use QuickDraw cursor
c869993e79c1eafbec61a56bf6cea848fe754c71xy};
c869993e79c1eafbec61a56bf6cea848fe754c71xy
c869993e79c1eafbec61a56bf6cea848fe754c71xy// Possible settings for depth
c869993e79c1eafbec61a56bf6cea848fe754c71xyenum {
c869993e79c1eafbec61a56bf6cea848fe754c71xy depth_Current,
c869993e79c1eafbec61a56bf6cea848fe754c71xy depth_8Bit,
c869993e79c1eafbec61a56bf6cea848fe754c71xy depth_15Bit,
c869993e79c1eafbec61a56bf6cea848fe754c71xy depth_24Bit
c869993e79c1eafbec61a56bf6cea848fe754c71xy};
c869993e79c1eafbec61a56bf6cea848fe754c71xy