VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.4.2/Preferences.h@ 43272

Last change on this file since 43272 was 43272, checked in by vboxsync, 12 years ago

Additions/x11: more original X server headers.

  • Property svn:eol-style set to native
File size: 4.4 KB
Line 
1/*
2 * Copyright (c) 2002-2003 Torrey T. Lyons. All Rights Reserved.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the
6 * "Software"), to deal in the Software without restriction, including
7 * without limitation the rights to use, copy, modify, merge, publish,
8 * distribute, sublicense, and/or sell copies of the Software, and to
9 * permit persons to whom the Software is furnished to do so, subject to
10 * the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included
13 * in all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 * IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
19 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 *
23 * Except as contained in this notice, the name(s) of the above copyright
24 * holders shall not be used in advertising or otherwise to promote the
25 * sale, use or other dealings in this Software without prior written
26 * authorization.
27 */
28
29#import <Cocoa/Cocoa.h>
30
31@interface Preferences : NSObject
32{
33 IBOutlet NSPanel *window;
34 IBOutlet id displayField;
35 IBOutlet id dockSwitchButton;
36 IBOutlet id fakeButton;
37 IBOutlet id button2ModifiersMatrix;
38 IBOutlet id button3ModifiersMatrix;
39 IBOutlet id switchKeyButton;
40 IBOutlet id keymapFileField;
41 IBOutlet id modeMatrix;
42 IBOutlet id modeWindowButton;
43 IBOutlet id startupHelpButton;
44 IBOutlet id systemBeepButton;
45 IBOutlet id mouseAccelChangeButton;
46 IBOutlet id useXineramaButton;
47 IBOutlet id addToPathButton;
48 IBOutlet id addToPathField;
49 IBOutlet id useDefaultShellMatrix;
50 IBOutlet id useOtherShellField;
51 IBOutlet id depthButton;
52
53 BOOL isGettingKeyCode;
54 int keyCode;
55 int modifiers;
56 NSMutableString *switchString;
57}
58
59- (IBAction)close:(id)sender;
60- (IBAction)pickFile:(id)sender;
61- (IBAction)saveChanges:(id)sender;
62- (IBAction)setKey:(id)sender;
63
64- (BOOL)sendEvent:(NSEvent *)anEvent;
65
66- (void)awakeFromNib;
67- (void)windowWillClose:(NSNotification *)aNotification;
68
69+ (void)setUseKeymapFile:(BOOL)newUseKeymapFile;
70+ (void)setKeymapFile:(NSString *)newFile;
71+ (void)setSwitchString:(NSString *)newString;
72+ (void)setKeyCode:(int)newKeyCode;
73+ (void)setModifiers:(int)newModifiers;
74+ (void)setDisplay:(int)newDisplay;
75+ (void)setDockSwitch:(BOOL)newDockSwitch;
76+ (void)setFakeButtons:(BOOL)newFakeButtons;
77+ (void)setButton2Mask:(int)newFakeMask;
78+ (void)setButton3Mask:(int)newFakeMask;
79+ (void)setMouseAccelChange:(BOOL)newMouseAccelChange;
80+ (void)setUseQDCursor:(int)newUseQDCursor;
81+ (void)setRootless:(BOOL)newRootless;
82+ (void)setUseAGL:(BOOL)newUseAGL;
83+ (void)setModeWindow:(BOOL)newModeWindow;
84+ (void)setStartupHelp:(BOOL)newStartupHelp;
85+ (void)setSystemBeep:(BOOL)newSystemBeep;
86+ (void)setEnableKeyEquivalents:(BOOL)newKeyEquivs;
87+ (void)setXinerama:(BOOL)newXinerama;
88+ (void)setAddToPath:(BOOL)newAddToPath;
89+ (void)setAddToPathString:(NSString *)newAddToPathString;
90+ (void)setUseDefaultShell:(BOOL)newUseDefaultShell;
91+ (void)setShellString:(NSString *)newShellString;
92+ (void)setDepth:(int)newDepth;
93+ (void)setDisplayModeBundles:(NSArray *)newBundles;
94+ (void)saveToDisk;
95
96+ (BOOL)useKeymapFile;
97+ (NSString *)keymapFile;
98+ (NSString *)switchString;
99+ (unsigned int)keyCode;
100+ (unsigned int)modifiers;
101+ (int)display;
102+ (BOOL)dockSwitch;
103+ (BOOL)fakeButtons;
104+ (int)button2Mask;
105+ (int)button3Mask;
106+ (BOOL)mouseAccelChange;
107+ (int)useQDCursor;
108+ (BOOL)rootless;
109+ (BOOL)useAGL;
110+ (BOOL)modeWindow;
111+ (BOOL)startupHelp;
112+ (BOOL)systemBeep;
113+ (BOOL)enableKeyEquivalents;
114+ (BOOL)xinerama;
115+ (BOOL)addToPath;
116+ (NSString *)addToPathString;
117+ (BOOL)useDefaultShell;
118+ (NSString *)shellString;
119+ (int)depth;
120+ (NSArray *)displayModeBundles;
121
122@end
123
124// Possible settings for useQDCursor
125enum {
126 qdCursor_Never, // never use QuickDraw cursor
127 qdCursor_Not8Bit, // don't try to use QuickDraw with 8-bit depth
128 qdCursor_Always // always try to use QuickDraw cursor
129};
130
131// Possible settings for depth
132enum {
133 depth_Current,
134 depth_8Bit,
135 depth_15Bit,
136 depth_24Bit
137};
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette