1 /* X11Controller.h -- connect the IB ui
2 $Id: X11Controller.h,v 1.21 2003/07/24 17:52:29 jharper Exp $
4 Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
6 Permission is hereby granted, free of charge, to any person
7 obtaining a copy of this software and associated documentation files
8 (the "Software"), to deal in the Software without restriction,
9 including without limitation the rights to use, copy, modify, merge,
10 publish, distribute, sublicense, and/or sell copies of the Software,
11 and to permit persons to whom the Software is furnished to do so,
12 subject to the following conditions:
14 The above copyright notice and this permission notice shall be
15 included in all copies or substantial portions of the Software.
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20 NONINFRINGEMENT. IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT
21 HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
24 DEALINGS IN THE SOFTWARE.
26 Except as contained in this notice, the name(s) of the above
27 copyright holders shall not be used in advertising or otherwise to
28 promote the sale, use or other dealings in this Software without
29 prior written authorization. */
31 #ifndef X11CONTROLLER_H
32 #define X11CONTROLLER_H 1
36 #import <Cocoa/Cocoa.h>
39 @interface X11Controller : NSObject
43 NSButton *fake_buttons;
44 NSButton *enable_fullscreen;
45 NSButton *use_sysbeep;
46 NSButton *enable_keyequivs;
47 NSButton *sync_keymap;
48 NSButton *enable_auth;
52 NSMenuItem *x11_about_item;
53 NSMenuItem *window_separator;
54 NSMenuItem *dock_window_separator;
55 NSMenuItem *apps_separator;
56 NSMenuItem *toggle_fullscreen_item;
57 NSMenu *dock_apps_menu;
58 NSTableView *apps_table;
61 NSMutableArray *table_apps;
65 int checked_window_item;
68 BOOL finished_launching;
72 - (void) set_window_menu:(NSArray *)list;
73 - (void) set_window_menu_check:(NSNumber *)n;
74 - (void) set_apps_menu:(NSArray *)list;
75 - (void) set_can_quit:(BOOL)state;
76 - (void) server_ready;
82 extern void X11ControllerMain (int argc, const char *argv[],
83 void (*server_thread) (void *),
86 #endif /* X11CONTROLLER_H */